joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459400
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x459460
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x459460
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x459460
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x459460
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x459470
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x45a720
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x45a7c3
test eax, eax
jbe 0x45a7c3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x45a7c3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x45a76e
xor esi, esi
jmp 0x45a774
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x45a79f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.004074b0
add esi, eax
push esi
mov ebx, esi
call fcn.004074b0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x45a780
pop ebp
test edi, edi
pop edi
jne 0x45a7c3
test ebx, ebx
je 0x45a7c3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00465fe0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x45a905
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x45aa1d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45aa1d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0047702d
mov esi, eax
test esi, esi
je 0x45aa1d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x45aa1d
mov ecx, esi
call fcn.0045a870
cmp edi, eax
jge 0x45aa1d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x45a9a3
mov dword [esp + 0x34], 1
jmp 0x45a9fe
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x45aa1d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00459e70
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x4779d0
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x477a08
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00475a87
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00475a5f
jmp 0x477a14
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4790ca
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x47910c
call fcn.0047ef37
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47910c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x479103
xor eax, eax
jmp 0x479114
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047911a
pop edi
pop esi
pop ebx
ret 4

Function at 0x47f467
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47f495
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47f4b3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047f3cd
jmp 0x47f4b3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47f4b3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047f3cd
test edi, edi
mov eax, edi
jne 0x47f49d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x40893d
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 0x4085d8
dec ebx
dec esi
call fcn.00408964
sub esi, 0xe4784219
xor dword [edi], eax
dec ebx
inc edi
add ebx, 0x5ea4befc
cmp edi, ecx
jne fcn.0040893d
inc ebx
dec ebx
ret
Function at 0x401150
Capabilities:
Get file version info

Disassembly:
sub esp, 0x334
lea eax, [esp + 0x30]
push esi
push 0x104
push eax
call fcn.00401110
add esp, 8
lea ecx, [esp + 0x34]
push 0x40f084
push ecx
call dword [sym.imp.kernel32.dll_lstrcat]
lea edx, [esp + 0x10]
lea eax, [esp + 0x34]
push edx
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x401263
push edi
push esi
call fcn.004050be
add esp, 4
mov edi, eax
lea ecx, [esp + 0x38]
push edi
push esi
push 0
push ecx
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x401248
lea edx, [esp + 8]
lea eax, [esp + 0xc]
push edx
push eax
push 0x40f068
push edi
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x401248
mov eax, dword [esp + 0xc]
xor edx, edx
mov ecx, dword [eax]
mov dx, word [eax]
shr ecx, 0x10
push ecx
push edx
lea eax, [esp + 0x144]
push 0x40f040
push eax
call dword [sym.imp.user32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
lea eax, [esp + 0x13c]
push ecx
push edx
push eax
push edi
call sub.version.dll_VerQueryValueA
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
cmp byte [eax], 0
je 0x401232
cmp byte [eax], 0x2c
jne 0x401220
mov byte [eax], 0x2e
mov cl, byte [eax]
cmp cl, 0x20
je 0x40122a
mov byte [edx], cl
inc edx
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401218
mov byte [edx], 0
mov edx, dword [esp + 0x340]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.kernel32.dll_lstrcpy]
test edi, edi
je 0x401255
push edi
call fcn.00405002
add esp, 4
pop edi
mov eax, 1
pop esi
add esp, 0x334
ret
xor eax, eax
pop esi
add esp, 0x334
ret

Function at 0x401af0
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x40c25b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push edi
mov edi, ecx
push 0x38
call fcn.004050be
add esp, 4
mov dword [esp + 4], eax
test eax, eax
mov dword [esp + 0x14], 0
je 0x401b2e
mov ecx, eax
call fcn.004033e0
jmp 0x401b30
xor eax, eax
test eax, eax
mov dword [esp + 0x14], 0xffffffff
mov dword [edi + 0x56ac], eax
jne 0x401b52
pop edi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push esi
mov ecx, eax
call fcn.004034a0
lea eax, [esp + 0xc]
push eax
push 4
push edi
push 0x401510
push 0
push 0
call fcn.004050cc
add esp, 0x18
add edi, 0x56bc
mov esi, eax
push 2
push 0
push 0
push edi
mov edi, dword [sym.imp.kernel32.dll_GetCurrentProcess]
call edi
push eax
push esi
call edi
push eax
call dword [sym.imp.kernel32.dll_DuplicateHandle]
push esi
call dword [sym.imp.kernel32.dll_ResumeThread]
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, dword [esp + 0x10]
pop esi
mov eax, 1
pop edi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x401d70
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
push ebp
mov ebp, dword [sym.imp.advapi32.dll_RegQueryValueExA]
push esi
mov esi, dword [esp + 0x118]
push edi
mov edi, dword [sym.imp.advapi32.dll_RegOpenKeyA]
mov eax, dword [esi + 0x5698]
test eax, eax
je 0x401dfc
lea eax, [esp + 0xc]
push eax
push 0x40f0e0
push 0x80000001
call edi
test eax, eax
jne 0x401dfc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x1c]
push 0x40f0d8
push eax
mov dword [esp + 0x28], 0x104
call ebp
test eax, eax
jne 0x401df1
cmp dword [esp + 0x10], 1
jbe 0x401de7
lea ecx, [esp + 0x14]
push 2
push ecx
push 0
push 0x15
call dword [sym.imp.user32.dll_SystemParametersInfoA]
mov dword [esi + 0x5698], 0
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [esi + 0x569c]
test eax, eax
je 0x401e6c
lea eax, [esp + 0x10]
push eax
push 0x40f0e0
push 0x80000001
call edi
test eax, eax
jne 0x401e6c
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x20]
push 0x40f0cc
push eax
mov dword [esp + 0x24], 0x104
call ebp
test eax, eax
jne 0x401e61
cmp dword [esp + 0xc], 1
jbe 0x401e57
lea ecx, [esp + 0x14]
push 2
push ecx
push 0
push 0x14
call dword [sym.imp.user32.dll_SystemParametersInfoA]
mov dword [esi + 0x569c], 0
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [esi + 0x56a0]
test eax, eax
je 0x401ed9
lea eax, [esp + 0xc]
push eax
push 0x40f0e0
push 0x80000001
call edi
test eax, eax
jne 0x401ed9
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x1c]
push 0x40f0bc
push eax
mov dword [esp + 0x28], 0x104
call ebp
test eax, eax
jne 0x401ece
cmp byte [esp + 0x14], 0x30
je 0x401ec4
push 2
push 0
push 1
push 0x4b
call dword [sym.imp.user32.dll_SystemParametersInfoA]
mov dword [esi + 0x56a0], 0
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
add esp, 0x10c
ret
Function at 0x401ef0
Capabilities:
Get session user name

Disassembly:
sub esp, 0x9c
push esi
push 0x8001
call dword [sym.imp.kernel32.dll_SetErrorMode]
mov esi, dword [esp + 0xac]
push esi
call dword [sym.imp.kernel32.dll_lstrlen]
test eax, eax
je 0x40208c
push 0x40f100
push esi
call dword [sym.imp.kernel32.dll_lstrcmp]
test eax, eax
jne 0x401f94
mov dword [esp + 4], eax
push eax
lea eax, [esp + 8]
push eax
push 0
push 0x72
call dword [sym.imp.user32.dll_SystemParametersInfoA]
test eax, eax
je 0x401f5c
mov eax, dword [esp + 4]
test eax, eax
je 0x401f5c
call fcn.00404b70
mov eax, 0xffffffc0
pop esi
add esp, 0x9c
ret 0x10
push 0x2000000
push 0
push 0
call dword [sym.imp.user32.dll_OpenInputDesktop]
test eax, eax
jne 0x401f7e
mov eax, 0xffffffce
pop esi
add esp, 0x9c
ret 0x10
push eax
call dword [sym.imp.user32.dll_CloseDesktop]
mov eax, 0xffffffd4
pop esi
add esp, 0x9c
ret 0x10
call fcn.004020a0
test eax, eax
je 0x40208c
mov ecx, dword [esp + 0xa4]
push esi
mov dword [0x412050], ecx
call fcn.00405636
mov esi, eax
add esp, 4
test esi, esi
jne 0x401fc2
mov esi, 0x17fb
lea edx, [esp + 8]
lea eax, [esp + 0x28]
push edx
push eax
mov dword [esp + 0x10], 0x78
call dword [sym.imp.advapi32.dll_GetUserNameA]
lea ecx, [esp + 0x28]
push 0x40f0f8
push ecx
call dword [sym.imp.kernel32.dll_lstrcmpi]
test eax, eax
je 0x40208c
push ebp
push 0x7724
call fcn.004050be
add esp, 4
test eax, eax
je 0x402010
push esi
mov ecx, eax
call fcn.004020e0
mov ebp, eax
jmp 0x402012
xor ebp, ebp
mov esi, dword [sym.imp.user32.dll_GetMessageA]
push 0
push 0
lea edx, [esp + 0x18]
push 0
push edx
call esi
test eax, eax
je 0x40205d
push ebx
mov ebx, dword [sym.imp.user32.dll_DispatchMessageA]
push edi
mov edi, dword [sym.imp.user32.dll_TranslateMessage]
cmp eax, 0xffffffff
je 0x40204a
lea eax, [esp + 0x18]
push eax
call edi
lea ecx, [esp + 0x18]
push ecx
call ebx
push 0
push 0
lea edx, [esp + 0x20]
push 0
push edx
call esi
test eax, eax
jne 0x402037
pop edi
pop ebx
test ebp, ebp
je 0x402071
mov ecx, ebp
call fcn.004022e0
push ebp
call fcn.00405002
add esp, 4
mov eax, dword [0x412054]
pop ebp
test eax, eax
je 0x40208c
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [0x412054], 0
xor eax, eax
pop esi
add esp, 0x9c
ret 0x10
Function at 0x4020e0
Capabilities:
Get session user name

Disassembly:
sub esp, 0xac
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [esp + 0xbc]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x40]
push ecx
push edx
mov dword [esi + 0x56b4], eax
mov dword [esp + 0x14], 0x78
call dword [sym.imp.advapi32.dll_GetUserNameA]
lea eax, [esp + 0x40]
push 0x40f0f8
push eax
call dword [sym.imp.kernel32.dll_lstrcmpi]
test eax, eax
jne 0x402142
push ebx
call dword [sym.imp.user32.dll_PostQuitMessage]
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0xac
ret 4
mov ecx, 0x14dd
xor eax, eax
mov edi, esi
push 0x83
rep stosd dword es:[edi], eax
mov ecx, 0xc4
lea edi, [esi + 0x5374]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.user32.dll_LoadIconA]
mov dword [esi + 0xf8], 1
mov dword [esi + 0x5688], ebx
mov dword [esi + 0x5694], ebx
mov dword [esi + 0x568c], ebx
mov dword [esi + 0x5698], ebx
mov dword [esi + 0x569c], ebx
mov dword [esi + 0x56a0], ebx
mov dword [esi + 0x56a4], ebx
mov eax, dword [0x412050]
push eax
mov dword [esp + 0x18], 0x30
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 0x402480
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], eax
call edi
push 0x7f00
push ebx
mov dword [esp + 0x30], eax
call dword [sym.imp.user32.dll_LoadCursorA]
push ebx
mov dword [esp + 0x30], eax
call dword [sym.imp.gdi32.dll_GetStockObject]
mov ecx, dword [0x412050]
push 0x83
push ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], 0x40f15c
call edi
lea edx, [esp + 0x10]
mov dword [esp + 0x3c], eax
push edx
call dword [sym.imp.user32.dll_RegisterClassExA]
mov eax, dword [0x412050]
push ebx
push eax
push ebx
push ebx
push 0xc8
push 0xc8
push 0x80000000
push 0x80000000
push 0xcf0000
push 0x40f144
push 0x40f15c
push ebx
call dword [sym.imp.user32.dll_CreateWindowExA]
cmp eax, ebx
mov dword [esi + 0x5690], eax
jne 0x40225b
push ebx
call dword [sym.imp.user32.dll_PostQuitMessage]
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0xac
ret 4
push esi
push 0xffffffffffffffeb
push eax
call dword [sym.imp.user32.dll_SetWindowLongA]
mov ecx, dword [esi + 0x5690]
push ebx
push 0x1388
push 0x3e9
push ecx
call dword [sym.imp.user32.dll_SetTimer]
mov dword [esi + 0x5684], eax
mov edx, dword [0x412050]
push 0x82
push edx
call edi
mov dword [esi + 0x771c], eax
mov eax, dword [0x412050]
push 0x81
push eax
call edi
lea ecx, [esi + 4]
mov dword [esi + 0x7720], eax
push ecx
mov dword [esi + 0x76c0], ebx
mov dword [esi + 0x56ac], ebx
mov dword [esi + 0x56b0], ebx
mov dword [esi + 0x56bc], ebx
call fcn.00404cc0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0xac
ret 4

Function at 0x4033a0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push esi
push eax
mov esi, ecx
push 2
call dword [sym.imp.wsock32.dll_WSAStartup]
neg eax
sbb eax, eax
inc eax
mov dword [esi], eax
mov eax, esi
pop esi
add esp, 0x190
ret
Function at 0x4034a0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], 1
mov eax, dword [esi + 0xc]
test eax, eax
jl 0x4034b9
call fcn.00403520
push 0
push 1
push 2
call dword [sym.imp.wsock32.dll_socket]
test eax, eax
mov dword [esi + 0xc], eax
jge 0x4034de
call dword [sym.imp.kernel32.dll_GetLastError]
call dword [sym.imp.wsock32.dll_WSAGetLastError]
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov edi, dword [sym.imp.wsock32.dll_setsockopt]
lea ecx, [esp + 8]
push 4
push ecx
push 4
push 0xffff
push eax
call edi
test eax, eax
je 0x4034ff
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [esi + 0xc]
lea edx, [esp + 8]
push 4
push edx
push 1
push 6
push eax
call edi
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
pop ecx
ret

Function at 0x403550
Capabilities:
Connect socket
Resolve dns

Disassembly:
sub esp, 0x10
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0xc]
test eax, eax
jge 0x403568
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8
mov esi, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 8], eax
push esi
mov dword [esp + 0x10], eax
mov word [esp + 0xc], 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call dword [sym.imp.wsock32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4035b7
push esi
call dword [sym.imp.wsock32.dll_gethostbyname]
test eax, eax
je 0x40355e
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
test eax, eax
jne 0x4035b1
pop edi
pop esi
add esp, 0x10
ret 8
mov edx, dword [eax]
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.wsock32.dll_htons]
mov edx, dword [edi + 0xc]
lea ecx, [esp + 8]
push 0x10
push ecx
push edx
mov word [esp + 0x16], ax
call dword [sym.imp.wsock32.dll_connect]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
add esp, 0x10
ret 8

Function at 0x4035f0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
mov eax, dword [ecx + 0xc]
push edx
push eax
call dword [sym.imp.wsock32.dll_send]
ret 8

Function at 0x403630
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
mov eax, dword [ecx + 0xc]
push edx
push eax
call dword [sym.imp.wsock32.dll_recv]
ret 8
Function at 0x404bb0
Capabilities:
Get common file path
Query environment variable

Disassembly:
mov eax, 0x425c
call fcn.00405230
push ebx
push ebp
push esi
push edi
mov esi, dword [esp + 0x4270]
mov ecx, 0x1056
xor eax, eax
lea edi, [esp + 0x114]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x4274]
xor ebp, ebp
mov dword [esp + 0x21c], eax
mov eax, 1
mov ecx, 0xf8d
lea edi, [esp + 0x334]
mov dword [esp + 0x220], eax
mov dword [esp + 0x224], eax
mov dword [esp + 0x228], ebp
push 0x104
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x11c]
push ecx
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
lea edx, [esp + 0x118]
push 0x40f210
push edx
call dword [sym.imp.kernel32.dll_lstrcat]
push 0x40f1f4
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov ebx, eax
cmp ebx, ebp
je 0x404c83
push 0x40f200
push ebx
call dword [sym.imp.kernel32.dll_GetProcAddress]
cmp eax, ebp
je 0x404c7c
lea ecx, [esp + 0x114]
push ecx
call eax
test eax, eax
je 0x404c7c
mov edi, dword [esp + 0x4270]
mov ecx, 0xf8d
lea esi, [esp + 0x334]
mov ebp, 1
rep movsd dword es:[edi], dword [esi]
push ebx
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov edx, dword [esp + 0x4270]
lea eax, [esp + 0x10]
lea esi, [edx + 0x10e0]
push esi
push eax
call dword [sym.imp.kernel32.dll_lstrcpy]
push 0x104
lea ecx, [esp + 0x14]
push esi
push ecx
call dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsA]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x425c
ret
Function at 0x404cc0
Capabilities:
Get common file path
Query environment variable

Disassembly:
mov eax, 0x4360
call fcn.00405230
push ebx
push ebp
push esi
mov esi, dword [esp + 0x4370]
push edi
mov ecx, 0x1056
xor eax, eax
lea edi, [esp + 0x218]
rep stosd dword es:[edi], eax
mov ecx, 0xf8d
lea edi, [esp + 0x438]
lea eax, [esp + 0x21c]
push 0x104
rep movsd dword es:[edi], dword [esi]
push eax
xor ebp, ebp
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x21c]
push 0x40f210
push ecx
call dword [sym.imp.kernel32.dll_lstrcat]
push 0x40f1f4
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x404d66
push 0x40f2d0
push ebx
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x404d66
lea edx, [esp + 0x218]
push edx
call eax
test eax, eax
je 0x404d66
mov edi, dword [esp + 0x4374]
mov ecx, 0xf8d
lea esi, [esp + 0x438]
mov ebp, 1
rep movsd dword es:[edi], dword [esi]
jmp 0x404dc9
call dword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
mov al, byte [0x412078]
mov byte [esp + 0x10], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
test ebx, ebx
stosb byte es:[edi], al
push edx
je 0x404d98
lea ecx, [esp + 0x14]
push 0x40f284
push ecx
jmp 0x404da2
lea edx, [esp + 0x14]
push 0x40f23c
push edx
call dword [sym.imp.user32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x10]
push 0x2710
push 0x10010
push 0x40f21c
push eax
push 0
call fcn.00404e40
add esp, 0x14
mov ecx, dword [esp + 0x4374]
lea edx, [esp + 0x114]
lea esi, [ecx + 0x10e0]
push esi
push edx
call dword [sym.imp.kernel32.dll_lstrcpy]
push 0x104
lea eax, [esp + 0x118]
push esi
push eax
call dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsA]
push ebx
call dword [sym.imp.kernel32.dll_FreeLibrary]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x4360
ret

Function at 0x404ee0
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push esi
mov esi, dword [sym.imp.kernel32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x9c
push eax
call esi
test eax, eax
jne 0x404f21
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call esi
test eax, eax
je 0x404f3e
mov eax, dword [esp + 0x18]
sub eax, 2
jne 0x404f3e
cmp dword [esp + 0xc], 5
jne 0x404f3e
mov ecx, dword [esp + 0x10]
mov eax, 1
cmp ecx, eax
je 0x404f40
xor eax, eax
pop edi
pop esi
add esp, 0x9c
ret