joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4718ff
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.004392d0
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x471938
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00471541
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x471996
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x4719ba
cmp dword [edi + 0x74], 0
jne 0x4719ba
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.004392d0
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00471957
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x473ae6
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00473658
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x473b30
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004116fa
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00410179
jmp 0x473b3b
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00483823
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x473b41
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.0042ef6c
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x473b7e
call fcn.00473658
mov dword [esi + 0xc], 1
jmp 0x473b83
call fcn.00473658
cmp dword [esi], 0
je 0x473bcc
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x473ba4
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004116fa
jmp 0x473bb6
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00401b80
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00410179
jmp 0x473bf0
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x473bf0
push dword [esi]
push dword [ebp + 8]
call fcn.00483823
pop esi
pop ebp
ret 0xc

Function at 0x47787f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x4778c7
call fcn.004392d0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4778c7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x47790a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x4778f3
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4778f3
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x477907
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x47dac8
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x47db06
push 0x5b6d5c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x47db14
push str.MoveFileTransactedA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47db14
push dword [esi]
push 2
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x47db16
cmp dword [esi + 4], 0
je 0x47db14
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_MoveFileA]
xor eax, eax
pop esi
pop ebp
ret 8
Function at 0x482fac
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x59f381
call fcn.00544734
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00401cd0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x48300e
call fcn.00438b93
cmp eax, 1
jne 0x48300e
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.004070d0
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00404690
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401e40
mov dword [ebp + 8], reloc.WS2_32.dll_accept
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401e40
mov eax, esi
call fcn.0054480c
ret 0x10

Function at 0x483037
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x59f381
call fcn.00544734
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00401cd0
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x483099
call fcn.00438b93
cmp eax, 1
jne 0x483099
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.004070d0
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00404690
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401e40
mov dword [ebp + 8], reloc.WS2_32.dll_accept
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401e40
mov eax, esi
call fcn.0054480c
ret 0x14

Function at 0x4dc32c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4dc344
mov edi, dword [esi + 0xc]
jmp 0x4dc384
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4dc35d
call fcn.00471d46
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4dc372
call fcn.00471d46
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4dc384
call fcn.00471d46
call fcn.004392d0
cmp dword [eax + 0x3c], 0
je 0x4dc399
push edi
mov ecx, ebx
call fcn.004db168
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004dc246
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4dc3b7
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4dc3c3
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x5321dd
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00541054
call fcn.00438d01
cmp dword [eax + 0x14], 0
jne 0x5321fa
mov ecx, esi
pop esi
jmp fcn.00531ce2
pop esi
ret

Function at 0x5338ae
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00473c02
call fcn.00438d01
cmp dword [eax + 0x14], 0
jne 0x5338cb
mov ecx, esi
pop esi
jmp fcn.00533281
pop esi
ret

Function at 0x542b84
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x60d110]
jne 0x542b8e
repz ret
jmp fcn.0054ad54

Function at 0x559549
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x60d110]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0054f1e6
and dword [ebp - 0x14], 0
cmp dword [0x614f0c], 0
mov dword [ebp - 0x18], eax
jne 0x5595fc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x5596a4
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x5596a4
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x5d7fd4
push ebx
mov dword [0x614f0c], eax
call edi
push eax
call esi
push 0x5d7fc0
push ebx
mov dword [0x614f10], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x614f14], eax
call edi
push eax
call esi
mov dword [0x614f1c], eax
test eax, eax
je 0x5595fc
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x614f18], eax
mov eax, dword [0x614f18]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x559655
cmp dword [0x614f1c], ecx
je 0x559655
push eax
call esi
push dword [0x614f1c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x559655
test ebx, ebx
je 0x559655
call edi
test eax, eax
je 0x55964c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x55964c
test byte [ebp - 8], 1
jne 0x559655
or dword [ebp + 0x10], 0x200000
jmp 0x559688
mov eax, dword [0x614f10]
cmp eax, dword [ebp - 0x18]
je 0x559688
push eax
call esi
test eax, eax
je 0x559688
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x559688
mov eax, dword [0x614f14]
cmp eax, dword [ebp - 0x18]
je 0x559688
push eax
call esi
test eax, eax
je 0x559688
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x614f0c]
call esi
test eax, eax
je 0x5596a4
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x5596a6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00542b84
leave
ret
Function at 0x55d6b0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x60d110]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x55d705
mov eax, dword [esp]
cmp al, 2
jne 0x55d6ff
shr eax, 8
cmp al, 2
jne 0x55d6ff
call fcn.0055dac0
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00542b84
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.00542b84
add esp, 0x194
ret
Function at 0x56a5d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x56a602
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x56a760
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x1a8]
test ecx, ecx
je 0x56a77b
mov edx, dword [esi + 0x134]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x56a7af
cmp eax, 2
jg 0x56a7af
mov ecx, dword [esi + 0x130]
push ecx
push 1
lea edx, [eax + eax*2 + 0x5d98d0]
push 2
push edx
call fcn.0054371c
mov eax, dword [esi + 0x130]
push eax
push 1
push edi
push ebx
call fcn.0054371c
add esp, 0x20
xor eax, eax
ret

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

Disassembly:
push ebx
mov ebx, dword [eax + ecx*4 + 0x190]
mov edx, ecx
shl edx, 4
push esi
lea esi, [edx + eax + 0x1b8]
mov edx, dword [eax + 0x440]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [edx + 0x3c], 3
je 0x56adef
cmp dword [eax + ecx*4 + 0x1a8], 0x56aad0
jne 0x56adef
cmp dword [esi], 0
je 0x56ad82
test edi, edi
je 0x56adef
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.0055ddb0
add esp, 0x14
cmp eax, 0xffffffff
je 0x56adef
test al, 1
je 0x56adef
cmp dword [esi], 0
jne 0x56adcd
push 0x8000
mov dword [esi + 4], 0x8000
call dword [0x60e604]
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
je 0x56ade8
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x56adef
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
ret
mov dword [esi + 4], 0
pop edi
pop esi
pop ebx
ret

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

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esi + ecx*4 + 0x190]
mov eax, esi
call fcn.0056ad40
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push 0
push eax
push ecx
push edi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x20]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x56ae84
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x56ae5b
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.00570840
mov edx, dword [esi]
push eax
push str.Send_failure:__s
push edx
call fcn.0056a940
mov eax, dword [esi]
mov dword [eax + 0x473c], ebp
add esp, 0x14
mov dword [ebx], 0x37
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x56cd20
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
xor eax, eax
cmp dword [esi + 0x538], eax
push 4
lea ecx, [esp + 4]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x56cd5e
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.0056a8b0
add esp, 0xc
add esp, 0x14
ret
mov edx, dword [esi + 0x53c]
push edx
mov dword [esp + 0xc], 1
call fcn.0056e530
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x540]
push eax
call fcn.0056e530
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0xc
lea edx, [esp + 0x20]
push edx
push 0x98000004
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x56cdd7
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.0056a8b0
add esp, 0x10
add esp, 0x14
ret
Function at 0x56d410
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10c
mov eax, dword [0x60d110]
xor eax, esp
mov dword [esp + 0x108], eax
push ebp
mov ebp, dword [esp + 0x114]
cmp dword [ebp + 0x8c], 2
push edi
mov edi, dword [ebp]
mov dword [esp + 0xc], edi
je 0x56d592
cmp dword [ebp + 0x3a0], 0
push ebx
push esi
jne 0x56d587
cmp dword [ebp + 0x410], 0
jne 0x56d587
mov esi, dword [esp + 0x124]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x9c]
push ecx
mov ebx, 0x80
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x56d4a9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.00570840
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.0056a940
add esp, 0x18
jmp 0x56d590
push ebx
lea edx, [esp + 0x1c]
push 0
push edx
mov dword [esp + 0x1c], ebx
call fcn.005448d0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x56d4f6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.00570840
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.0056a940
add esp, 0x18
jmp 0x56d590
lea edi, [ebp + 0x102]
lea ebx, [ebp + 0x130]
lea esi, [esp + 0x98]
call fcn.0056d3d0
test eax, eax
jne 0x56d537
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.00570840
mov edx, dword [esp + 0x1c]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.0056a940
add esp, 0x18
jmp 0x56d590
lea edi, [ebp + 0x58]
mov ecx, 0xb
lea esi, [ebp + 0x102]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ebx, [ebp + 0x164]
lea edi, [ebp + 0x134]
lea esi, [esp + 0x18]
call fcn.0056d3d0
test eax, eax
jne 0x56d587
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.00570840
push eax
mov eax, dword [esp + 0x20]
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.0056a940
add esp, 0x18
jmp 0x56d590
push ebp
call fcn.0056d350
add esp, 4
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
pop edi
pop ebp
xor ecx, esp
call fcn.00542b84
add esp, 0x10c
ret

Function at 0x56d5b0
Capabilities:
Set socket configuration

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, dword [edi]
push 4
lea eax, [esp + 0x10]
push eax
push 1
push 6
push ecx
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x56d5f9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00570840
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0056a8b0
add esp, 0x14
pop edi
pop esi
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0056a8b0
add esp, 8
pop edi
pop esi
ret
Function at 0x56d750
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x1d8], 0
je 0x56d76d
push eax
call fcn.0055f520
add esp, 4
test eax, eax
jne 0x56d78d
xor eax, eax
ret
mov eax, dword [eax + 0x190]
cmp eax, 0xffffffff
je 0x56d76a
push 2
push 1
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x56d78d
ret
mov eax, 1
ret
Function at 0x56e3b0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
push esi
push str.kernel32
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x56e3ca
pop esi
pop ebp
pop ecx
ret
push ebx
push edi
push str.LoadLibraryExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [esp + 0x18]
mov edi, eax
push 0x5d9f0c
push ebx
mov dword [esp + 0x18], edi
call fcn.00548506
add esp, 8
test eax, eax
je 0x56e416
test edi, edi
je 0x56e407
push 8
push 0
push ebx
call edi
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
test edi, edi
je 0x56e43c
push str.AddDllDirectory
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x56e43c
push 0x800
push 0
push ebx
call edi
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, eax
test edi, edi
je 0x56e4f0
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x56e455
sub eax, edx
lea eax, [eax + edi + 1]
push eax
call dword [0x60e604]
mov esi, eax
add esp, 4
test esi, esi
je 0x56e4e6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x56e4e6
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x56e483
sub eax, edx
mov ecx, 0x5c
mov word [eax + esi], cx
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x56e4a0
sub eax, edx
lea edx, [eax + esi]
mov ecx, ebx
sub edx, ebx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x56e4b0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x56e4dd
push 8
push 0
push esi
call eax
push esi
mov ebp, eax
call dword [0x60e608]
add esp, 4
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
push esi
call dword [0x60e608]
add esp, 4
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret

Function at 0x56e540
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
push eax
call fcn.0056e510
add esp, 4
mov dword [esp + 0xc], eax
jmp fcn.0054e462
Function at 0x56e5c0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ebx
push ebp
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [esp + 0x20]
push edx
push eax
push ecx
mov dword [esp + 0x18], ebx
xor ebp, ebp
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0xc], eax
cmp eax, ebx
jne 0x56e771
push edi
mov edi, dword [esp + 0x14]
cmp edi, ebx
je 0x56e74f
push esi
jmp 0x56e610
cmp dword [edi + 4], 2
jne 0x56e6c8
cmp dword [edi + 0x18], ebx
je 0x56e6c8
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x56e6c8
cmp eax, 0x10
jb 0x56e6c8
push 0x20
call dword [0x60e604]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x56e6d5
mov edx, dword [edi]
mov dword [esi], edx
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
call dword [0x60e604]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x56e6df
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x56e6b5
push eax
call dword [0x60e610]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x56e6f3
cmp dword [esp + 0x10], ebx
jne 0x56e6bf
mov dword [esp + 0x10], esi
cmp ebp, ebx
je 0x56e6c6
mov dword [ebp + 0x1c], esi
mov ebp, esi
mov edi, dword [edi + 0x1c]
cmp edi, ebx
jne 0x56e610
jmp 0x56e70f
mov dword [esp + 0x14], 8
jmp 0x56e70f
push esi
mov dword [esp + 0x18], 8
call dword [0x60e608]
add esp, 4
jmp 0x56e70f
mov edx, dword [esi + 0x18]
push edx
mov dword [esp + 0x18], 8
call dword [0x60e608]
push esi
call dword [0x60e608]
add esp, 8
mov eax, dword [esp + 0x18]
pop esi
cmp eax, ebx
je 0x56e71f
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [esp + 0x10], ebx
je 0x56e749
mov eax, dword [esp + 0xc]
push eax
call fcn.0056e580
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
mov ecx, ebx
pop ebp
mov dword [esp + 4], ebx
mov dword [edx], ecx
pop ebx
add esp, 0xc
ret
cmp dword [esp + 0xc], ebx
jne 0x56e762
push 0x2af9
mov dword [esp + 0x14], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov dword [edx], ecx
pop edi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x56fe00
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.00544ffc
add esp, 0x18
test eax, eax
je 0x56fe23
cmp eax, 0xffffffff
jne 0x56fe25
xor eax, eax
ret