joyce8/EMBER2024-capa huggingface dataset:
Function at 0x478910
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d7cf0
mov eax, dword fs:[0]
push eax
mov eax, 0x235c
call fcn.0059f1e0
mov eax, dword [0x651da0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, 0x67b5d0
call fcn.0059f048
mov dword [ebp - 0x14], 0x800
mov dword [ebp - 0x18], 0x64
mov dword [ebp - 0x1c], 0x896
push 0x1000
push 0
lea eax, [ebp - 0x101c]
push eax
call fcn.005a41c0
add esp, 0xc
lea eax, [ebp + 0xc]
mov dword [ebp - 0x1020], eax
mov eax, dword [ebp - 0x1020]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0xffffffffffffffff
push 0x800
lea edx, [ebp - 0x101c]
push edx
call fcn.0047c7c0
add esp, 0x14
mov dword [ebp - 0x1020], 0
push 0x112c
push 0
lea eax, [ebp - 0x214c]
push eax
call fcn.005a41c0
add esp, 0xc
lea eax, [ebp - 0x101c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.0045fed0
push eax
push 0x5ff0ec
lea ecx, [ebp - 0x214c]
push ecx
call fcn.0043c750
add esp, 0x18
lea eax, [ebp - 0x214c]
push eax
lea ecx, [ebp - 0x2164]
push ecx
call fcn.0046f7b0
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2164]
call fcn.0040d5e0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [0x678eb8], 0
je 0x478a3f
lea ecx, [ebp - 0x2164]
call fcn.0040d5e0
push eax
mov ecx, dword [0x678eb8]
call fcn.004287e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2164]
call fcn.00404fb0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059f07a
mov esp, ebp
pop ebp
ret
Function at 0x47a510
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d7f30
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x50
mov eax, dword [0x651da0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ecx
mov ecx, 0x67b5d0
call fcn.0059f048
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.00442000
movzx ecx, al
test ecx, ecx
je 0x47a577
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x47a57c
jmp 0x47a631
movzx eax, byte [0x678e88]
test eax, eax
je 0x47a631
cmp dword [0x679728], 0
jne 0x47a631
mov byte [ebp - 0x19], 0x80
push 0
lea eax, [ebp - 0x19]
push eax
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_GetLayeredWindowAttributes]
test eax, eax
je 0x47a60c
movzx eax, byte [ebp - 0x19]
test eax, eax
je 0x47a60c
movzx eax, byte [ebp - 0x19]
push eax
push 0x600e7c
call fcn.004787b0
add esp, 8
mov dword [0x679728], 1
push 2
push 0
push 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0x44f6a0
push 0
push 0
call fcn.005adc18
add esp, 0x18
jmp 0x47a621
mov dword [ebp - 4], 0xffffffff
jmp 0x47a631
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0059f07a
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4a5310
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d8b6d
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x651da0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, 0x67c0b1
call fcn.0059f048
mov ecx, dword [ebp - 0x10]
call fcn.0047dd10
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.CefCppToCRefCounted_class_CefFocusHandlerCppToC__class_CefFocusHandler__struct__cef_focus_handler_t_.0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.0047dd30
mov eax, dword [ebp - 0x10]
mov ecx, dword [0x6513d4]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0xc], ecx
push 0x20
push 0
mov ecx, dword [ebp - 0x10]
call fcn.00488b30
push eax
call fcn.005a41c0
add esp, 0xc
mov ecx, dword [ebp - 0x10]
call fcn.00488b30
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], 0x20
mov eax, dword [ebp - 0x14]
mov dword [eax + 4], 0x4a6200
mov eax, dword [ebp - 0x14]
mov dword [eax + 8], 0x4a66b0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0xc], 0x4a6520
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x10], 0x4a6390
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c7b50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d8b6d
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x651da0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, 0x67c6f1
call fcn.0059f048
mov ecx, dword [ebp - 0x10]
call fcn.0047dd10
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.CefCppToCRefCounted_class_CefResourceBundleHandlerCppToC__class_CefResourceBundleHandler__struct__cef_resource_bundle_handler_t_.0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.0047dd30
mov eax, dword [ebp - 0x10]
mov ecx, dword [0x65151c]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0xc], ecx
push 0x20
push 0
mov ecx, dword [ebp - 0x10]
call fcn.00483c50
push eax
call fcn.005a41c0
add esp, 0xc
mov ecx, dword [ebp - 0x10]
call fcn.00483c50
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], 0x20
mov eax, dword [ebp - 0x14]
mov dword [eax + 4], 0x4c8c70
mov eax, dword [ebp - 0x14]
mov dword [eax + 8], 0x4c9120
mov eax, dword [ebp - 0x14]
mov dword [eax + 0xc], 0x4c8f90
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x10], 0x4c8e00
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x54fe90
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ed7aa
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x651da0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, 0x6808fe
call fcn.0059f048
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.0043e660
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.004083e0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.004083e0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x50
call fcn.00404b80
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x68
call fcn.004083e0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0x80
call fcn.004083e0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
call fcn.00550ba0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x4c], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x48], 0x1e
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x4c], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x98], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x54ff80
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ed81a
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x651da0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, 0x6808fe
call fcn.0059f048
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
je 0x54ffd5
mov ecx, dword [ebp - 0x10]
call fcn.00550880
mov eax, dword [ebp - 0x10]
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x4c], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x48], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x4c], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x98], 0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0x80
call fcn.004095d0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x68
call fcn.004095d0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x50
call fcn.00404fb0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.004095d0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.004095d0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.00440370
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x553980
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5edfe8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x651da0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, 0x680ae6
call fcn.0059f048
push 0x554310
mov ecx, dword [ebp - 0x10]
call fcn.0052c4c0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 8
mov ecx, dword [ebp + 8]
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 [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [eax + 0x18], edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
call fcn.0043e520
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov dword [eax + 0x20], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov dword [eax + 0x24], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx]
mov dword [eax + 0x28], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x20]
mov edx, dword [ecx]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x24]
mov edx, dword [ecx]
mov dword [eax + 0x30], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x18]
push ecx
call fcn.00554250
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
Function at 0x5617e0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x651da0]
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 0x561830
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x56182a
shr eax, 8
cmp al, 2
jne 0x56182a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059f07a
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.0059f07a
mov esp, ebp
pop ebp
ret
Function at 0x56d830
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ecx + eax*4 + 0x134]
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [ebp + 0x18]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x56d8ae
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x56d87e
pop esi
pop edi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
pop ebp
ret
push esi
push dword [ebp + 8]
call fcn.00579070
push eax
mov eax, dword [ebp + 8]
push str.Send_failure:__s
push dword [eax]
call fcn.0056d520
mov eax, dword [ebp + 8]
add esp, 0x14
mov eax, dword [eax]
mov dword [eax + 0x85cc], esi
mov eax, edi
mov dword [ebx], 0x37
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x56da90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x1a0]
test eax, eax
je 0x56dab9
push dword [esi + 0x12c]
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 0x56daef
push dword [esi + 0x128]
lea eax, [eax + eax*2]
push 1
add eax, 0x60d8f0
push 2
push eax
call fcn.005ad1aa
push dword [esi + 0x128]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.005ad1aa
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x590]
test esi, esi
je 0x56dd3a
mov eax, dword [edi + 0x44]
test eax, eax
je 0x56dd3a
push 0x56e930
lea ecx, [ebp - 8]
mov dword [ebp - 8], esi
push ecx
mov dword [ebp - 4], 0
push dword [eax + 0x30]
call fcn.00576330
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x56dd43
mov dword [edi + 0x590], 0
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x56dd4c
mov dword [eax], esi
cmp dword [esi + 0x154], 0
mov edi, dword [esi + 0x134]
jne 0x56dd3a
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x56dd3a
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x56e030
Capabilities:
Check os version
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x651da0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x6798d8]
mov dword [ebp - 0xa0], 0x4020
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0xa4], 4
test eax, eax
jne 0x56e0ca
push 0x90
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.005a41c0
add esp, 0xc
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
mov dword [0x6798d8], 1
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x56e0c5
cmp dword [ebp - 0x94], 6
jb 0x56e0c5
mov dword [0x6798d8], 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059f07a
mov esp, ebp
pop ebp
ret
mov eax, dword [0x6798d8]
cmp eax, 2
je 0x56e11e
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x9c]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x56e102
mov eax, dword [ebp - 0x9c]
cmp eax, dword [ebp - 0xa0]
jg 0x56e11e
push 4
lea eax, [ebp - 0xa0]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059f07a
mov esp, ebp
pop ebp
ret
Function at 0x56e2a0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x651da0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x1a8], 0
mov ebx, dword [edi]
jne 0x56e413
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x108], 0x80
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x56e31e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.00579070
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.0056d520
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059f07a
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x108]
mov dword [ebp - 0x108], 0x80
push eax
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x56e371
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.00579070
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.0056d520
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059f07a
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0xcc]
push eax
lea eax, [edi + 0x9e]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.0056e950
add esp, 0xc
test eax, eax
jne 0x56e3c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.00579070
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0056d520
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059f07a
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0x100]
push eax
lea eax, [edi + 0xd0]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.0056e950
add esp, 0xc
test eax, eax
jne 0x56e413
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.00579070
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0056d520
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059f07a
mov esp, ebp
pop ebp
ret
push edi
call fcn.0056df70
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0059f07a
mov esp, ebp
pop ebp
ret
Function at 0x56ec50
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x651da0]
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 dword [esi + 0x448], eax
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 0x56ecad
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.0056d5c0
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0059f07a
mov esp, ebp
pop ebp
ret
push dword [esi + 0x44c]
mov dword [ebp - 0x10], 1
call fcn.00576090
push dword [esi + 0x450]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.00576090
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 0x56ed1d
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.0056d5c0
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0059f07a
mov esp, ebp
pop ebp
ret

Function at 0x56ed30
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push 4
mov esi, dword [edi]
mov eax, dword [esi + 0x34c]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 1
push 6
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x56ed7a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00579070
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0056d5c0
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0056d5c0
add esp, 8
pop edi
pop esi
pop ebp
ret
Function at 0x578b30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov cl, byte [ebp + 8]
movsx eax, cl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x578b41
jmp dword [eax*4 + 0x578bb4]
mov al, 0x41
pop ebp
ret
mov al, 0x42
pop ebp
ret
mov al, 0x43
pop ebp
ret
mov al, 0x44
pop ebp
ret
mov al, 0x45
pop ebp
ret
mov al, 0x46
pop ebp
ret
mov al, 0x47
pop ebp
ret
mov al, 0x48
pop ebp
ret
mov al, 0x49
pop ebp
ret
mov al, 0x4a
pop ebp
ret
mov al, 0x4b
pop ebp
ret
mov al, 0x4c
pop ebp
ret
mov al, 0x4d
pop ebp
ret
mov al, 0x4e
pop ebp
ret
mov al, 0x4f
pop ebp
ret
mov al, 0x50
pop ebp
ret
mov al, 0x51
pop ebp
ret
mov al, 0x52
pop ebp
ret
mov al, 0x53
pop ebp
ret
mov al, 0x54
pop ebp
ret
mov al, 0x55
pop ebp
ret
mov al, 0x56
pop ebp
ret
mov al, 0x57
pop ebp
ret
mov al, 0x58
pop ebp
ret
mov al, 0x59
pop ebp
ret
mov al, 0x5a
pop ebp
ret
mov al, cl
pop ebp
ret

Function at 0x578cd0
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 0x578e4b
push edi
mov edi, dword [ebp - 8]
test edi, edi
je 0x578e37
push esi
nop dword [eax]
cmp dword [edi + 4], 2
jne 0x578dc8
cmp dword [edi + 0x18], 0
je 0x578dc8
mov eax, dword [edi + 0x10]
test eax, eax
je 0x578dc8
cmp eax, 0x10
jb 0x578dc8
push 0x20
call dword [0x651d00]
mov esi, eax
add esp, 4
test esi, esi
je 0x578e2c
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 [0x651d00]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x578e1b
mov ecx, dword [edi + 0x18]
movups xmm0, xmmword [ecx]
movups xmmword [eax], xmm0
mov eax, dword [edi + 0x14]
test eax, eax
je 0x578db6
push eax
call dword [0x651d0c]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x578e01
mov eax, dword [ebp - 4]
test ebx, ebx
cmove ebx, esi
test eax, eax
je 0x578dc5
mov dword [eax + 0x1c], esi
mov dword [ebp - 4], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x578d10
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
pop esi
test eax, eax
je 0x578de5
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x578e33
push ebx
call fcn.00578c80
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 [0x651d04]
push esi
call dword [0x651d04]
add esp, 8
jmp 0x578dd6
push esi
mov edi, 8
call dword [0x651d04]
add esp, 4
jmp 0x578dd6
mov edi, 8
jmp 0x578dd6
test ebx, ebx
jne 0x578e43
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