joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100433e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1018bdff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
mov ebx, ecx
push esi
mov dword [esp + 0xc], 0
push edi
lea ecx, [ebx + 0x40]
mov dword [esp + 0x14], ebx
mov dword [ebx + 4], 0x101e5b8c
call fcn.10020190
mov ebp, dword [esp + 0x40]
push ecx
mov dword [esp + 0x3c], 0
push ebp
mov ecx, ebx
mov dword [esp + 0x18], 1
call fcn.1002b750
mov dword [esp + 0x38], 1
mov eax, dword [ebx + 4]
mov dword [ebx], vtable.log4cplus::Win32ConsoleAppender.0
mov eax, dword [eax + 4]
lea esi, [ebx + 0x38]
mov dword [eax + ebx + 4], vtable.log4cplus::Win32ConsoleAppender.1.0
lea edi, [ebx + 0x39]
add ebx, 0x3c
push 0x101e583c
lea ecx, [esp + 0x1c]
mov byte [esi], 1
mov byte [edi], 0
mov dword [ebx], 0
call fcn.10008180
lea eax, [esp + 0x18]
push eax
push esi
mov ecx, ebp
mov byte [esp + 0x40], 2
call fcn.1003daa0
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 1
call fcn.10007890
push str.logToStdErr
lea ecx, [esp + 0x1c]
call fcn.10008180
lea eax, [esp + 0x18]
push eax
push edi
mov ecx, ebp
mov byte [esp + 0x40], 3
call fcn.1003daa0
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 1
call fcn.10007890
push str.TextColor
lea ecx, [esp + 0x1c]
call fcn.10008180
lea eax, [esp + 0x18]
push eax
push ebx
mov ecx, ebp
mov byte [esp + 0x40], 4
call fcn.1003de10
lea ecx, [esp + 0x18]
call fcn.10007890
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 8

Function at 0x100436a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1018be40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push esi
push edi
push dword [ebp + 0x10]
lea ecx, [esp + 0x34]
push dword [ebp + 0xc]
call fcn.1000e190
lea edx, [esp + 0x30]
lea ecx, [esp + 0x18]
mov dword [esp + 0x54], 0
call fcn.1002e6b0
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], 1
call fcn.10007940
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.10007770
mov ebx, eax
xor esi, esi
push 0
lea eax, [esp + 0x14]
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [ebp + 8]
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10043731
add esi, dword [esp + 0x10]
cmp esi, edi
jne 0x10043702
jmp 0x1004376c
mov ecx, dword [0x10206138]
test ecx, ecx
jne 0x10043746
call fcn.1001d5b0
mov ecx, dword [0x10206138]
push 0
lea eax, [esp + 0x18]
push eax
push str.log4cplus:ERROR
push 0x1001c950
push 0x10205d70
add ecx, 4
mov dword [esp + 0x28], str.Win32ConsoleAppender::write_handle__WriteFile_has_failed.
call fcn.1001cca0
lea ecx, [esp + 0x18]
call fcn.10008290
lea ecx, [esp + 0x30]
call fcn.10007890
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10043ce0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1018bea5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push ebp
mov ebp, ecx
push esi
mov dword [esp + 0xc], 0
push edi
lea ecx, [ebp + 0x64]
mov dword [esp + 0x14], ebp
mov dword [ebp + 4], 0x101e5ebc
call fcn.10020190
mov ebx, dword [esp + 0x70]
push ecx
mov dword [esp + 0x6c], 0
push ebx
mov ecx, ebp
mov dword [esp + 0x18], 1
call fcn.1002b750
mov dword [esp + 0x68], 1
mov eax, dword [ebp + 4]
mov dword [ebp], vtable.log4cplus::Log4jUdpAppender.0
mov eax, dword [eax + 4]
mov dword [eax + ebp + 4], vtable.log4cplus::Log4jUdpAppender.1.0
mov dword [ebp + 0x3c], 0xffffffff
mov dword [ebp + 0x40], 1
mov dword [ebp + 0x44], 0
mov dword [ebp + 0x38], vtable.log4cplus::helpers::Socket.0
lea ecx, [ebp + 0x48]
mov byte [esp + 0x68], 2
call fcn.10007560
lea edi, [ebp + 0x60]
mov byte [esp + 0x68], 3
push str.localhost
lea ecx, [esp + 0x34]
mov dword [edi], 0x1388
call fcn.10008180
push str.host
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6c], 4
call fcn.10008180
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x50]
push eax
mov ecx, ebx
mov byte [esp + 0x74], 5
call fcn.1003d6e0
push eax
lea ecx, [ebp + 0x48]
call fcn.10002690
lea ecx, [esp + 0x48]
call fcn.10007890
lea ecx, [esp + 0x18]
call fcn.10007890
lea ecx, [esp + 0x30]
mov byte [esp + 0x68], 3
call fcn.10007890
push str.port
lea ecx, [esp + 0x34]
call fcn.10008180
lea eax, [esp + 0x30]
push eax
push edi
mov ecx, ebx
mov byte [esp + 0x70], 6
call fcn.1003dcb0
lea ecx, [esp + 0x30]
mov byte [esp + 0x68], 3
call fcn.10007890
mov ecx, ebp
call fcn.10043ea0
mov eax, ebp
pop edi
mov ecx, dword [esp + 0x5c]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c
ret 8
Function at 0x100447e0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1018bf50
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x38]
lea edi, [esi + 0x38]
mov eax, dword [eax + 8]
mov ecx, edi
call eax
test al, al
jne 0x100448d1
movzx edx, word [esi + 0x60]
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 0
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x30], 0
push 0
lea ecx, [esi + 0x48]
mov dword [esp + 0x18], vtable.log4cplus::helpers::Socket.0
call fcn.1003e880
add esp, 8
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x1004488b
push 4
lea ecx, [esp + 0x10]
push ecx
push 1
push 6
push eax
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x10044896
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call fcn.1016366f
mov dword [eax], esi
call fcn.1016366f
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x2c], 1
cmp eax, edi
je 0x100448b9
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, dword [edi]
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
call dword [eax + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], vtable.log4cplus::helpers::AbstractSocket.0
cmp eax, 0xffffffff
je 0x100448d1
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x24]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10044eae
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x1018c068
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
movzx edx, word [ecx - 0x34]
push edi
mov edi, dword [esp + 0x18]
mov dword [esp + 4], 0
lea eax, [edi + 8]
mov dword [edi + 4], 0xffffffff
mov dword [eax], 1
mov dword [edi + 0xc], 0
push eax
mov dword [esp + 0x14], 0
push 0
add ecx, 0xffffffb4
mov dword [edi], vtable.log4cplus::helpers::Socket.0
call fcn.1003e880
add esp, 8
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x10044be1
push 4
lea ecx, [esp + 0x1c]
push ecx
push 1
push 6
push eax
mov dword [esp + 0x2c], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x10044beb
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call fcn.1016366f
mov dword [eax], esi
pop esi
call fcn.1016366f
mov eax, dword [eax]
mov dword [edi + 0xc], eax
mov ecx, dword [esp + 8]
mov eax, edi
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
sub ecx, dword [ecx - 4]
jmp 0x10044b50
Function at 0x10044fd0
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x1018c088
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [esp + 8], edi
lea eax, [edi + 8]
mov dword [edi + 4], 0xffffffff
mov dword [eax], 1
mov dword [edi + 0xc], 0
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
push eax
push dword [esp + 0x28]
mov dword [edi], vtable.log4cplus::helpers::Socket.0
call fcn.1003e880
add esp, 8
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x10045064
cmp byte [esp + 0x24], 0
jne 0x1004506e
push 4
lea ecx, [esp + 0x28]
push ecx
push 1
push 6
push eax
mov dword [esp + 0x38], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x1004506e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call fcn.1016366f
mov dword [eax], esi
call fcn.1016366f
mov eax, dword [eax]
mov dword [edi + 0xc], eax
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x10
ret 0xc

Function at 0x100464f0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x101f9e50]
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 0x10046540
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x1004653a
shr eax, 8
cmp al, 2
jne 0x1004653a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1016059f
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 2
call fcn.1016059f
mov esp, ebp
pop ebp
ret
Function at 0x1004d480
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea edi, [esi + eax]
mov ebx, 0x1505
cmp esi, edi
jae 0x1004d4b6
mov al, byte [esi]
push eax
call fcn.10059ef0
movsx ecx, al
mov eax, ebx
shl eax, 5
add eax, ebx
xor ecx, eax
inc esi
add esp, 4
mov ebx, ecx
cmp esi, edi
jb 0x1004d498
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret

Function at 0x1004e7e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x1004e7fe
cmp dword [esi + 0x6c], 0
je 0x1004e7fe
push 2
push 3
push esi
call fcn.1005a4b0
add esp, 0xc
push dword [ebp + 0xc]
call fcn.1005d330
add esp, 4
test esi, esi
je 0x1004e81e
cmp dword [esi + 0x6c], 0
je 0x1004e81e
push 3
push esi
call fcn.1005a4f0
add esp, 8
pop esi
pop ebp
ret

Function at 0x1004f3c0
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x358], 2
jne 0x1004f3d5
pop ebp
jmp fcn.1004f370
mov eax, 1
pop ebp
ret
Function at 0x100578a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x618], 0
je 0x100578e4
push esi
push 1
push edi
call fcn.10049900
push dword [edi + 0x5a4]
mov eax, dword [edi + 0x618]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.10049900
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x1005791a
push dword [edi + 0x5a0]
lea eax, [eax + eax*2]
push 1
add eax, 0x1018e9b0
push 2
push eax
call fcn.1016233c
push dword [edi + 0x5a0]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.1016233c
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret

Function at 0x10057cb0
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
mov esi, dword [edi + eax*4 + 0x1a8]
push edi
call fcn.100581c0
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 0x10057d34
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x10057d0c
mov eax, dword [ebp + 0x18]
pop edi
pop esi
mov dword [eax], 0x51
xor eax, eax
pop ebx
pop ebp
ret
push esi
push edi
call fcn.1007f2d0
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.10057920
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0xde0], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x37
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov eax, dword [ebx + 0x350]
mov edx, dword [ebx + ecx*4 + 0x1a8]
lea esi, [ecx + 0x1d]
shl esi, 4
add esi, ebx
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
mov dword [ebp + 8], edx
je 0x10058278
cmp dword [ebx + ecx*4 + 0x1c0], 0x10057c00
jne 0x10058278
cmp dword [esi], 0
je 0x1005820a
test edi, edi
je 0x10058278
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.10057400
add esp, 0x14
cmp eax, 0xffffffff
je 0x10058278
test al, 1
je 0x10058278
cmp dword [esi], 0
jne 0x1005825f
mov eax, dword [ebx]
mov eax, dword [eax + 0x940]
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 0x1005825f
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 0x10058278
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10058360
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1f0], 0
je 0x10058380
push eax
call fcn.100518a0
add esp, 4
test eax, eax
jne 0x100583a0
xor eax, eax
pop ebp
ret
mov eax, dword [eax + 0x1a8]
cmp eax, 0xffffffff
je 0x1005837c
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x100583a0
pop ebp
ret
mov eax, 1
pop ebp
ret

Function at 0x10058ae0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10202090]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x10058b31
push 3
push 2
push eax
push 6
call fcn.1007fd70
add esp, 0x10
test eax, eax
je 0x10058b25
mov dword [0x10202090], 2
mov esp, ebp
pop ebp
ret
mov dword [0x10202090], 1
jmp 0x10058b36
cmp eax, 2
je 0x10058b76
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 0x10058b5d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x10058b76
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 0x10058ca0
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]
lea eax, [ebp + 8]
push eax
push 1
push 6
push dword [ebp + 0xc]
mov dword [ebp + 8], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x10058ce8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.1007f2d0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.10057a00
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.10057a00
add esp, 8
pop edi
pop esi
pop ebp
ret
Function at 0x10058e50
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x101f9e50]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
cmp dword [ebx + 0x90], 2
mov edi, dword [ebx]
mov dword [ebp - 0x10c], edi
je 0x10059029
cmp dword [ebx + 0x2a4], 0
push esi
jne 0x1005901f
cmp dword [ebx + 0x314], 0
jne 0x1005901f
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
push eax
push esi
mov dword [ebp - 0x108], 0x80
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x10058eee
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.1007f2d0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.10057920
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1016059f
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
mov dword [ebp - 0x108], 0x80
call fcn.10161d70
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 0x10058f57
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.1007f2d0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.10057920
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1016059f
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 0x134]
push eax
lea esi, [ebx + 0x106]
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.10058570
add esp, 0xc
test eax, eax
jne 0x10058fb5
call fcn.1016366f
mov esi, eax
call fcn.1016366f
push dword [esi]
mov edi, eax
push ebx
call fcn.1007f2d0
push eax
push dword [edi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x10c]
call fcn.10057920
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1016059f
mov esp, ebp
pop ebp
ret
lea edi, [ebx + 0x5c]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x168]
push eax
lea eax, [ebx + 0x138]
push eax
lea eax, [ebp - 0x84]
push eax
movsw word es:[edi], word [esi]
call fcn.10058570
add esp, 0xc
test eax, eax
jne 0x1005901f
call fcn.1016366f
mov esi, eax
call fcn.1016366f
push dword [esi]
mov edi, eax
push ebx
call fcn.1007f2d0
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x10c]
call fcn.10057920
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1016059f
mov esp, ebp
pop ebp
ret
push ebx
call fcn.10058a60
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.1016059f
mov esp, ebp
pop ebp
ret
Function at 0x10059940
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x101f9e50]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
cmp dword [esi + 0xb40], eax
push edi
mov edi, dword [ebp + 0xc]
setne al
push 4
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 0x1005999d
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.10057a00
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1016059f
mov esp, ebp
pop ebp
ret
push dword [esi + 0xb44]
mov dword [ebp - 0x10], 1
call fcn.10059b80
imul eax, eax, 0x3e8
push dword [esi + 0xb48]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.10059b80
imul eax, eax, 0x3e8
add esp, 8
mov dword [ebp - 0x14], eax
push 0
push 0
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 0x10059a0d
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.10057a00
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1016059f
mov esp, ebp
pop ebp
ret
Function at 0x10066490
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 8], ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x10066624
push edi
mov edi, dword [ebp - 0xc]
test edi, edi
je 0x10066610
push esi
lea esp, [esp]
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x100664df
mov eax, 0x10
jmp 0x100664ed
cmp eax, 0x17
jne 0x100665a1
mov eax, 0x1c
cmp dword [edi + 0x18], 0
mov dword [ebp - 4], eax
je 0x100665a1
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x100665a1
cmp ecx, eax
jb 0x100665a1
push 0x20
call dword [section..data]
mov esi, eax
add esp, 4
test esi, esi
je 0x10066605
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]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 4]
push eax
mov dword [esi + 0x10], eax
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 0x100665f4
push dword [ebp - 4]
push dword [edi + 0x18]
push eax
call fcn.101623c0
mov eax, dword [edi + 0x14]
add esp, 0xc
test eax, eax
je 0x1006658f
push eax
call dword [0x101f400c]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x100665da
mov eax, dword [ebp - 8]
test ebx, ebx
cmove ebx, esi
test eax, eax
je 0x1006659e
mov dword [eax + 0x1c], esi
mov dword [ebp - 8], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x100664d0
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
pop esi
test eax, eax
je 0x100665be
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x1006660c
push ebx
call fcn.10066450
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 [0x101f4004]
push esi
call dword [0x101f4004]
add esp, 8
jmp 0x100665af
push esi
mov edi, 8
call dword [0x101f4004]
add esp, 4
jmp 0x100665af
mov edi, 8
jmp 0x100665af
test ebx, ebx
jne 0x1006661c
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 0x100669d0
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.10164ddb
add esp, 0x18
test eax, eax
je 0x100669f2
cmp eax, 0xffffffff
jne 0x100669f4
xor eax, eax
pop ebp
ret