Guest User

Starting Function

a guest
Aug 19th, 2025
7
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.98 KB | None | 0 0
  1. .text:00000001400027C0 ; int __stdcall wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nShowCmd)
  2. .text:00000001400027C0 wWinMain proc near ; CODE XREF: __tmainCRTStartup+14F↓p
  3. .text:00000001400027C0 ; DATA XREF: .pdata:00000001400161C8↓o
  4. .text:00000001400027C0
  5. .text:00000001400027C0 var_1C8 = qword ptr -1C8h
  6. .text:00000001400027C0 hInternet = qword ptr -1C0h
  7. .text:00000001400027C0 WSAData = WSAData ptr -1B8h
  8. .text:00000001400027C0 var_18 = qword ptr -18h
  9. .text:00000001400027C0 arg_0 = qword ptr 8
  10. .text:00000001400027C0
  11. .text:00000001400027C0 ; __unwind { // __GSHandlerCheck
  12. .text:00000001400027C0 mov [rsp+arg_0], rbx
  13. .text:00000001400027C5 push rdi
  14. .text:00000001400027C6 sub rsp, 1E0h
  15. .text:00000001400027CD mov rax, cs:qword_140012008
  16. .text:00000001400027D4 xor rax, rsp
  17. .text:00000001400027D7 mov [rsp+1E8h+var_18], rax
  18. .text:00000001400027DF xor edi, edi
  19. .text:00000001400027E1 xor ecx, ecx ; hWnd
  20. .text:00000001400027E3 mov [rsp+1E8h+hInternet], rdi
  21. .text:00000001400027E8 mov [rsp+1E8h+var_1C8], rdi
  22. .text:00000001400027ED call cs:GetDC
  23. .text:00000001400027F3 lea rdx, [rsp+1E8h+WSAData] ; lpWSAData
  24. .text:00000001400027F8 mov ecx, 202h ; wVersionRequested
  25. .text:00000001400027FD call cs:WSAStartup
  26. .text:0000000140002803 call sub_140002230
  27. .text:0000000140002808 call sub_140001150
  28. .text:000000014000280D mov ebx, eax
  29. .text:000000014000280F test eax, eax
  30. .text:0000000140002811 js loc_140002907
  31. .text:0000000140002817 lea rcx, unk_140014560
  32. .text:000000014000281E call sub_1400012E0
  33. .text:0000000140002823 mov ebx, eax
  34. .text:0000000140002825 test eax, eax
  35. .text:0000000140002827 js loc_140002907
  36. .text:000000014000282D lea edx, [rdi+1] ; bManualReset
  37. .text:0000000140002830 xor r9d, r9d ; lpName
  38. .text:0000000140002833 xor r8d, r8d ; bInitialState
  39. .text:0000000140002836 xor ecx, ecx ; lpEventAttributes
  40. .text:0000000140002838 call cs:CreateEventW
  41. .text:000000014000283E mov cs:hHandle, rax
  42. .text:0000000140002845
  43. .text:0000000140002845 loc_140002845: ; CODE XREF: wWinMain+13F↓j
  44. .text:0000000140002845 lea r8, [rsp+1E8h+hInternet]
  45. .text:000000014000284A lea rdx, [rsp+1E8h+var_1C8]
  46. .text:000000014000284F lea rcx, unk_140014560
  47. .text:0000000140002856 call sub_140001C10
  48. .text:000000014000285B mov rbx, [rsp+1E8h+hInternet]
  49. .text:0000000140002860 test eax, eax
  50. .text:0000000140002862 js short loc_14000288A
  51. .text:0000000140002864 lea r8, unk_140014560
  52. .text:000000014000286B lea rdx, qword_140014540
  53. .text:0000000140002872 mov rcx, rbx ; hFile
  54. .text:0000000140002875 call sub_140001840
  55. .text:000000014000287A test eax, eax
  56. .text:000000014000287C js short loc_14000288A
  57. .text:000000014000287E lea rcx, qword_140014540
  58. .text:0000000140002885 call sub_140001FB0
  59. .text:000000014000288A
  60. .text:000000014000288A loc_14000288A: ; CODE XREF: wWinMain+A2↑j
  61. .text:000000014000288A ; wWinMain+BC↑j
  62. .text:000000014000288A test rbx, rbx
  63. .text:000000014000288D jz short loc_14000289D
  64. .text:000000014000288F mov rcx, rbx ; hInternet
  65. .text:0000000140002892 call cs:InternetCloseHandle
  66. .text:0000000140002898 mov [rsp+1E8h+hInternet], rdi
  67. .text:000000014000289D
  68. .text:000000014000289D loc_14000289D: ; CODE XREF: wWinMain+CD↑j
  69. .text:000000014000289D mov rcx, [rsp+1E8h+var_1C8] ; hInternet
  70. .text:00000001400028A2 test rcx, rcx
  71. .text:00000001400028A5 jz short loc_1400028B2
  72. .text:00000001400028A7 call cs:InternetCloseHandle
  73. .text:00000001400028AD mov [rsp+1E8h+var_1C8], rdi
  74. .text:00000001400028B2
  75. .text:00000001400028B2 loc_1400028B2: ; CODE XREF: wWinMain+E5↑j
  76. .text:00000001400028B2 cmp cs:lpMem, rdi
  77. .text:00000001400028B9 jz short loc_1400028D3
  78. .text:00000001400028BB call cs:GetProcessHeap
  79. .text:00000001400028C1 mov r8, cs:lpMem ; lpMem
  80. .text:00000001400028C8 xor edx, edx ; dwFlags
  81. .text:00000001400028CA mov rcx, rax ; hHeap
  82. .text:00000001400028CD call cs:HeapFree
  83. .text:00000001400028D3
  84. .text:00000001400028D3 loc_1400028D3: ; CODE XREF: wWinMain+F9↑j
  85. .text:00000001400028D3 mov edx, cs:dwMilliseconds ; dwMilliseconds
  86. .text:00000001400028D9 mov rcx, cs:hHandle ; hHandle
  87. .text:00000001400028E0 xor eax, eax
  88. .text:00000001400028E2 mov cs:qword_140014540, rax
  89. .text:00000001400028E9 mov cs:lpMem, rax
  90. .text:00000001400028F0 mov cs:qword_140014550, rax
  91. .text:00000001400028F7 call cs:WaitForSingleObject
  92. .text:00000001400028FD test eax, eax
  93. .text:00000001400028FF jnz loc_140002845
  94. .text:0000000140002905 mov ebx, edi
  95. .text:0000000140002907
  96. .text:0000000140002907 loc_140002907: ; CODE XREF: wWinMain+51↑j
  97. .text:0000000140002907 ; wWinMain+67↑j
  98. .text:0000000140002907 call sub_140002550
  99. .text:000000014000290C call cs:WSACleanup
  100. .text:0000000140002912 mov eax, ebx
  101. .text:0000000140002914 mov rcx, [rsp+1E8h+var_18]
  102. .text:000000014000291C xor rcx, rsp ; StackCookie
  103. .text:000000014000291F call __security_check_cookie
  104. .text:0000000140002924 mov rbx, [rsp+1E8h+arg_0]
  105. .text:000000014000292C add rsp, 1E0h
  106. .text:0000000140002933 pop rdi
  107. .text:0000000140002934 retn
  108. .text:0000000140002934 ; } // starts at 1400027C0
  109. .text:0000000140002934 wWinMain endp
Advertisement
Add Comment
Please, Sign In to add comment