joyce8/EMBER2024-capa huggingface dataset:
Function at 0x497953
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x49798b
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.004959e0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004959b8
jmp 0x497997
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x499044
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 0x499086
call fcn.0049f39b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x499086
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x49907d
xor eax, eax
jmp 0x49908e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00499094
pop edi
pop esi
pop ebx
ret 4

Function at 0x49ea8a
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 0x49eab8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49ead6
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049e9f0
jmp 0x49ead6
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49ead6
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049e9f0
test edi, edi
mov eax, edi
jne 0x49eac0
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401800
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47bba0
mov eax, dword fs:[0]
push eax
mov eax, 0x1008
call fcn.004574e0
mov eax, dword [0x49b0c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1014], 0
mov dword [ebp - 4], 3
lea ecx, [ebp + 0xc]
call fcn.00402170
movzx eax, al
test eax, eax
jne 0x40186d
lea ecx, [ebp + 0x10]
call fcn.00402170
movzx ecx, al
test ecx, ecx
jne 0x40186d
lea ecx, [ebp + 0x14]
call fcn.00402170
movzx edx, al
test edx, edx
je 0x4018c4
push 0x492c64
mov ecx, dword [ebp + 8]
call fcn.004020b0
mov eax, dword [ebp - 0x1014]
or eax, 1
mov dword [ebp - 0x1014], eax
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xc]
call fcn.00402090
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call fcn.00402090
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x14]
call fcn.00402090
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x18]
call fcn.00402090
mov eax, dword [ebp + 8]
jmp 0x40196d
xor ecx, ecx
mov word [ebp - 0x1010], cx
push 0xffe
push 0
lea edx, [ebp - 0x100e]
push edx
call fcn.004597c0
add esp, 0xc
lea ecx, [ebp + 0xc]
call fcn.004021c0
push eax
push 0x800
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp + 0x18]
call fcn.004021c0
push eax
lea ecx, [ebp + 0x14]
call fcn.004021c0
push eax
lea ecx, [ebp + 0x10]
call fcn.004021c0
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x1010]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004020b0
mov edx, dword [ebp - 0x1014]
or edx, 1
mov dword [ebp - 0x1014], edx
mov byte [ebp - 4], 2
lea ecx, [ebp + 0xc]
call fcn.00402090
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call fcn.00402090
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x14]
call fcn.00402090
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x18]
call fcn.00402090
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00456b9f
mov esp, ebp
pop ebp
ret
Function at 0x4039f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x403a14
xor eax, eax
jmp 0x403a94
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403a2b
xor eax, eax
jmp 0x403a94
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x403a77
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x403a77
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x403a4e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x403a83
xor eax, eax
jmp 0x403a94
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x403a91
xor eax, eax
jmp 0x403a94
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x405b10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47be70
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x49b0c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
push 0x492e3c
lea ecx, [ebp - 0x2c]
call fcn.004072e0
mov dword [ebp - 4], 0
push 0x492e40
lea ecx, [ebp - 0x50]
call fcn.004072e0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x50]
push ecx
mov ecx, dword [ebp - 0x30]
call fcn.00406940
movzx edx, al
cmp edx, 1
jne 0x405b81
mov dword [ebp - 0x38], 1
jmp 0x405b88
mov dword [ebp - 0x38], 0
mov al, byte [ebp - 0x38]
mov byte [ebp - 0x31], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.004089f0
movzx ecx, byte [ebp - 0x31]
test ecx, ecx
je 0x405bb1
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp - 0x30]
add ecx, 0x48
call fcn.00407270
mov eax, dword [ebp - 0x30]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 3
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ecx, dword [ebp - 0x30]
call fcn.004068b0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x30]
add ecx, 0x30
call fcn.00407250
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0x1c], 0
je 0x405c17
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x20], 0
je 0x405c17
mov ecx, dword [ebp - 0x30]
cmp dword [ecx + 0x24], 0
jne 0x405c17
lea edx, [ebp - 0x14]
push edx
push 0
mov eax, dword [ebp - 0x30]
push eax
push 0x405d60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x24], eax
mov edx, dword [ebp - 0x30]
add edx, 4
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 0x32], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004089f0
mov al, byte [ebp - 0x32]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00456b9f
mov esp, ebp
pop ebp
ret 4
Function at 0x41ae10
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d078
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x49b0c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], 0xc
xor eax, eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
push 1
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x60], eax
push str.GlobalTransmitServer_RunOnce
push 0
lea ecx, [ebp - 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edx, dword [ebp - 0x68]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x68]
cmp dword [eax + 0xc], 0
je 0x41aeba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0xb7
jne 0x41aeba
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x68]
mov dword [eax + 0xc], 0
jmp 0x41af3c
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, dword [ebp - 0x68]
call fcn.0041af60
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.004087f0
push eax
call fcn.00405a20
mov ecx, eax
call fcn.00405b10
call fcn.00405a20
mov ecx, eax
call fcn.00405c60
mov ecx, dword [ebp - 0x68]
add ecx, 4
call fcn.00401180
push 0
push 0
push 0
lea edx, [ebp - 0x58]
push edx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jle 0x41af2d
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ebp - 0x58]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x41af03
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.004089f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00456b9f
mov esp, ebp
pop ebp
ret
Function at 0x41b0e0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1bc
mov eax, dword [0x49b0c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1a8], eax
mov ecx, dword [ebp - 0x1a8]
add ecx, 2
mov dword [ebp - 0x1b4], ecx
mov edx, dword [ebp - 0x1a8]
mov ax, word [edx]
mov word [ebp - 0x1aa], ax
add dword [ebp - 0x1a8], 2
cmp word [ebp - 0x1aa], 0
jne 0x41b10b
mov ecx, dword [ebp - 0x1a8]
sub ecx, dword [ebp - 0x1b4]
sar ecx, 1
mov dword [ebp - 0x1b8], ecx
je 0x41b146
xor eax, eax
jmp 0x41b1a7
mov edx, 0x202
mov word [ebp - 0x1b0], dx
lea eax, [ebp - 0x1a4]
push eax
movzx ecx, word [ebp - 0x1b0]
push ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x41b16f
xor eax, eax
jmp 0x41b1a7
push 0x10
lea ecx, [ebp - 0x14]
call fcn.004017e0
lea ecx, [ebp - 0x14]
call fcn.0041ad80
lea ecx, [ebp - 0x14]
call fcn.0041ae10
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [ebp - 0x1bc], 0
lea ecx, [ebp - 0x14]
call fcn.0041adc0
mov eax, dword [ebp - 0x1bc]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00456b9f
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41fba0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x49b0c8]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x41fbf0
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x41fbea
shr eax, 8
cmp al, 2
jne 0x41fbea
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00456b9f
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
mov eax, 2
xor ecx, ebp
call fcn.00456b9f
mov esp, ebp
pop ebp
ret

Function at 0x424ae0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x424afe
cmp dword [esi + 0x6c], 0
je 0x424afe
push 2
push 3
push esi
call fcn.00439950
add esp, 0xc
push dword [ebp + 0xc]
call fcn.0042ffe0
add esp, 4
test esi, esi
je 0x424b1e
cmp dword [esi + 0x6c], 0
je 0x424b1e
push 3
push esi
call fcn.00439990
add esp, 8
pop esi
pop ebp
ret
Function at 0x42e090
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push eax
push edi
mov esi, dword [edi + eax*4 + 0x1a8]
call fcn.0042e410
add esp, 8
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
cmp ebx, 0xffffffff
jne 0x42e114
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x42e0ec
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov dword [eax], 0x51
xor eax, eax
pop ebp
ret
push esi
push edi
call fcn.0043b4e0
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.0042dcf0
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0x48ac], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x37
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
shl eax, 4
push edi
mov edx, dword [ebx + ecx*4 + 0x1a8]
lea esi, [ebx + 0x1cc]
add esi, eax
mov dword [ebp + 8], edx
mov eax, dword [ebx + 0x2a8]
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x42e4cd
cmp dword [ebx + ecx*4 + 0x1bc], 0x42dfe0
jne 0x42e4cd
cmp dword [esi], 0
je 0x42e45f
test edi, edi
je 0x42e4cd
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.0042d640
add esp, 0x14
cmp eax, 0xffffffff
je 0x42e4cd
test al, 1
je 0x42e4cd
cmp dword [esi], 0
jne 0x42e4b4
mov eax, dword [ebx]
mov eax, dword [eax + 0x4b8]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [section..data]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
jne 0x42e4b4
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
pop ebp
ret
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x42e4cd
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x42e4e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x1d0]
test eax, eax
je 0x42e509
push dword [esi + 0x15c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
add esp, 0x14
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x42e53f
push dword [esi + 0x158]
lea eax, [eax + eax*2]
push 1
add eax, 0x47f538
push 2
push eax
call fcn.0046640f
push dword [esi + 0x158]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0046640f
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax + 0x1ec], 0
je 0x42e613
xor al, al
pop ebp
ret
mov eax, dword [eax + 0x1a8]
cmp eax, 0xffffffff
je 0x42e60f
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
setne al
pop ebp
ret
Function at 0x42ed30
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x49c120]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x42ed81
push 3
push 2
push eax
push 6
call fcn.0044f560
add esp, 0x10
test al, al
je 0x42ed75
mov dword [0x49c120], 2
mov esp, ebp
pop ebp
ret
mov dword [0x49c120], 1
jmp 0x42ed86
cmp eax, 2
je 0x42edc6
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x42edad
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x42edc6
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret

Function at 0x42ee90
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp + 8]
push 4
push eax
push 1
mov esi, dword [edi]
push 6
push dword [ebp + 0xc]
mov dword [ebp + 8], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x42eed8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0043b4e0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0042ddc0
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0042ddc0
add esp, 8
pop edi
pop esi
pop ebp
ret
Function at 0x42f010
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x49b0c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
cmp dword [ebx + 0x94], 2
mov edi, dword [ebx]
mov dword [ebp - 0x10c], edi
je 0x42f20d
cmp byte [ebx + 0x266], 0
push esi
jne 0x42f203
cmp byte [ebx + 0x282], 0
jne 0x42f203
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
mov dword [ebp - 0x108], 0x80
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x42f0ae
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.0043b4e0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.0042dcf0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00456b9f
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
mov dword [ebp - 0x108], 0x80
push 0
push eax
call fcn.004597c0
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x84]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x42f117
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.0043b4e0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.0042dcf0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00456b9f
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 0x138]
push eax
lea esi, [ebx + 0x10a]
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.0042f710
add esp, 0xc
test al, al
jne 0x42f175
call fcn.0045d870
mov esi, eax
call fcn.0045d870
push dword [esi]
mov edi, eax
push ebx
call fcn.0043b4e0
push eax
push dword [edi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x10c]
call fcn.0042dcf0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00456b9f
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [esi]
mov eax, dword [esi + 0x28]
movups xmmword [ebx + 0x60], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [ebx + 0x70], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [ebx + 0x80], xmm0
mov dword [ebx + 0x88], eax
mov ax, word [esi + 0x2c]
mov word [ebx + 0x8c], ax
lea eax, [ebx + 0x16c]
push eax
lea eax, [ebx + 0x13c]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.0042f710
add esp, 0xc
test al, al
jne 0x42f203
call fcn.0045d870
mov esi, eax
call fcn.0045d870
push dword [esi]
mov edi, eax
push ebx
call fcn.0043b4e0
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x10c]
call fcn.0042dcf0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00456b9f
mov esp, ebp
pop ebp
ret
push ebx
call fcn.0042ec50
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00456b9f
mov esp, ebp
pop ebp
ret
Function at 0x42faa0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x49b0c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
push 4
cmp byte [esi + 0x640], al
setne al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x42fafd
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.0042ddc0
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00456b9f
mov esp, ebp
pop ebp
ret
push dword [esi + 0x644]
mov dword [ebp - 0x10], 1
call fcn.00437ba0
push dword [esi + 0x648]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.00437ba0
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x42fb6d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.0042ddc0
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00456b9f
mov esp, ebp
pop ebp
ret
Function at 0x437b80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.00402b00
add esp, 4
mov dword [ebp + 0x10], eax
pop ebp
jmp fcn.0046c519
Function at 0x43b140
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [eax], ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x43b2bb
push edi
mov edi, dword [ebp - 8]
test edi, edi
je 0x43b2a7
push esi
nop dword [eax]
cmp dword [edi + 4], 2
jne 0x43b238
cmp dword [edi + 0x18], 0
je 0x43b238
mov eax, dword [edi + 0x10]
test eax, eax
je 0x43b238
cmp eax, 0x10
jb 0x43b238
push 0x20
call dword [section..data]
mov esi, eax
add esp, 4
test esi, esi
je 0x43b29c
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call dword [section..data]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x43b28b
mov ecx, dword [edi + 0x18]
movups xmm0, xmmword [ecx]
movups xmmword [eax], xmm0
mov eax, dword [edi + 0x14]
test eax, eax
je 0x43b226
push eax
call dword [0x49b00c]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x43b271
mov eax, dword [ebp - 4]
test ebx, ebx
cmove ebx, esi
test eax, eax
je 0x43b235
mov dword [eax + 0x1c], esi
mov dword [ebp - 4], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x43b180
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
pop esi
test eax, eax
je 0x43b255
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x43b2a3
push ebx
call fcn.0043b100
mov eax, dword [ebp + 0x14]
add esp, 4
xor ebx, ebx
mov dword [eax], ebx
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + 0x18]
mov edi, 8
call dword [0x49b004]
push esi
call dword [0x49b004]
add esp, 8
jmp 0x43b246
push esi
mov edi, 8
call dword [0x49b004]
add esp, 4
jmp 0x43b246
mov edi, 8
jmp 0x43b246
test ebx, ebx
jne 0x43b2b3
mov edi, 0x2af9
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43bd50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call fcn.004674d5
add esp, 0x18
test eax, eax
je 0x43bd72
cmp eax, 0xffffffff
jne 0x43bd74
xor eax, eax
pop ebp
ret