joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005830
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
push 0
push 0
push 3
push 0
push 1
push 8
lea ecx, [ebp + 8]
call fcn.10002620
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x1000587a
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
lea ecx, [ebp + 8]
call fcn.10002430
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x100059d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015dadb
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x101c2520]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x240], 0
lea ecx, [ebp - 0x238]
call fcn.1000cbb0
mov dword [ebp - 4], 0
cmp dword [ebp + 0x18], 0
je 0x10005a3d
mov dword [ebp - 0x248], 0x20119
jmp 0x10005a47
mov dword [ebp - 0x248], 0x20219
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x24c], eax
lea ecx, [ebp - 0x23c]
push ecx
mov edx, dword [ebp - 0x24c]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0
jne 0x10005b0d
xor edx, edx
mov word [ebp - 0x218], dx
push 0x206
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.10122830
add esp, 0xc
mov dword [ebp - 0x21c], 0x104
mov dword [ebp - 0x220], 1
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x220]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x23c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0
jne 0x10005b00
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x238]
call fcn.100048f0
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x238]
call fcn.10004980
push eax
mov ecx, dword [ebp + 8]
call fcn.10005070
mov edx, dword [ebp - 0x244]
or edx, 1
mov dword [ebp - 0x244], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.10005200
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.1012032b
mov esp, ebp
pop ebp
ret
Function at 0x10005c30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x101c2520]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 0x14], 0
je 0x10005c64
mov dword [ebp - 0x1c], 0x20119
jmp 0x10005c6b
mov dword [ebp - 0x1c], 0x20219
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x20]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x10005cdf
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x24], 0
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10005cd5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1012032b
mov esp, ebp
pop ebp
ret

Function at 0x10006a90
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x101c2520]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
cmp dword [ebp + 8], 0
jne 0x10006aac
xor eax, eax
jmp 0x10006b2a
mov byte [ebp - 0x14], 0x48
mov byte [ebp - 0x13], 0x68
mov byte [ebp - 0x12], 0x28
mov byte [ebp - 0x11], 0x4e
mov byte [ebp - 0x10], 0x61
mov byte [ebp - 0xf], 0x4d
mov byte [ebp - 0xe], 0x29
mov byte [ebp - 0xd], 0x75
mov byte [ebp - 0xc], 0x46
mov byte [ebp - 0xb], 0x30
mov byte [ebp - 0xa], 0x4f
mov byte [ebp - 9], 0x56
mov byte [ebp - 8], 0x2c
mov byte [ebp - 7], 0
mov eax, 1
shl eax, 2
mov byte [ebp + eax - 0x14], 0x2b
mov ecx, 1
shl ecx, 3
mov byte [ebp + ecx - 0x14], 0x7a
xor edx, edx
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], edx
mov ecx, 8
lea esi, [ebp - 0x14]
mov edi, dword [ebp + 8]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1012032b
mov esp, ebp
pop ebp
ret
Function at 0x10006be0
Capabilities:
Create directory
Delete file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015d7d9
mov eax, dword fs:[0]
push eax
sub esp, 0x340
mov eax, dword [0x101c2520]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x338], ecx
mov eax, dword [ebp - 0x338]
mov dword [eax], 0
mov ecx, dword [ebp - 0x338]
mov byte [ecx + 4], 0
mov edx, dword [ebp - 0x338]
mov dword [edx + 8], 0x78
mov ecx, dword [ebp - 0x338]
add ecx, 0xc
call fcn.10002370
mov dword [ebp - 4], 0
call fcn.10018030
mov ecx, dword [ebp - 0x338]
mov dword [ecx], eax
call fcn.10005eb0
mov ecx, eax
call fcn.10005e60
mov edx, dword [ebp - 0x338]
mov byte [edx + 4], al
mov byte [ebp - 0x218], 0
push 0x103
push 0
lea eax, [ebp - 0x217]
push eax
call fcn.10122830
add esp, 0xc
mov byte [ebp - 0x31c], 0
push 0x103
push 0
lea ecx, [ebp - 0x31b]
push ecx
call fcn.10122830
add esp, 0xc
mov byte [ebp - 0x114], 0
push 0x103
push 0
lea edx, [ebp - 0x113]
push edx
call fcn.10122830
add esp, 0xc
mov dword [ebp - 0x33c], 0
push 0x104
push 0x104
lea eax, [ebp - 0x31c]
push eax
lea ecx, [ebp - 0x218]
push ecx
call fcn.10001860
add esp, 0x10
lea edx, [ebp - 0x218]
push edx
push str._slog
push 0x104
lea eax, [ebp - 0x114]
push eax
call fcn.100015c0
add esp, 0x10
mov dword [ebp - 0x33c], eax
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0x10
je 0x10006d33
push 0
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push str.curl
lea eax, [ebp - 0x218]
push eax
push str._slog_s
push 0x104
lea ecx, [ebp - 0x114]
push ecx
call fcn.100015c0
add esp, 0x14
mov dword [ebp - 0x33c], eax
lea edx, [ebp - 0x114]
push edx
mov ecx, dword [ebp - 0x338]
add ecx, 0xc
call fcn.10002450
push str..txt
mov ecx, dword [ebp - 0x338]
add ecx, 0xc
call fcn.10002490
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x334]
call fcn.100023a0
mov byte [ebp - 4], 1
push str..txt.1
lea ecx, [ebp - 0x334]
call fcn.10002490
mov ecx, dword [ebp - 0x338]
add ecx, 0xc
sub esp, 0x18
mov edx, esp
mov dword [ebp - 0x348], esp
push ecx
mov ecx, edx
call fcn.10008a20
mov dword [ebp - 0x34c], eax
call fcn.10005830
add esp, 0x18
mov dword [ebp - 0x344], eax
mov eax, dword [ebp - 0x344]
mov dword [ebp - 0x340], eax
cmp dword [ebp - 0x340], 0xa00000
jbe 0x10006e29
lea ecx, [ebp - 0x334]
call fcn.10002620
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
lea ecx, [ebp - 0x334]
call fcn.10002620
push eax
mov ecx, dword [ebp - 0x338]
add ecx, 0xc
call fcn.10002620
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov ecx, dword [ebp - 0x338]
mov dword [ecx + 0x24], 0
push 0x101b5308
mov ecx, dword [ebp - 0x338]
add ecx, 0xc
call fcn.10002620
push eax
call fcn.10121148
add esp, 8
mov edx, dword [ebp - 0x338]
mov dword [edx + 0x24], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x334]
call fcn.10002430
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x338]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1012032b
mov esp, ebp
pop ebp
ret
Function at 0x10007d50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov dword [0x101ceda4], eax
mov ecx, dword [ebp + 0x14]
mov dword [0x101ceda8], ecx
mov edx, dword [ebp + 0x10]
mov dword [0x101cedac], edx
push 0
push 0
push 0
push 0x10008630
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
ret

Function at 0x10018300
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x101c2520]
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 0x10018350
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x1001834a
shr eax, 8
cmp al, 2
jne 0x1001834a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1012032b
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.1012032b
mov esp, ebp
pop ebp
ret
Function at 0x1001f290
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 0x1001f2c6
mov al, byte [esi]
push eax
call fcn.1002bcf0
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 0x1001f2a8
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret

Function at 0x100205e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x100205fe
cmp dword [esi + 0x6c], 0
je 0x100205fe
push 2
push 3
push esi
call fcn.1002c2b0
add esp, 0xc
push dword [ebp + 0xc]
call fcn.1002f130
add esp, 4
test esi, esi
je 0x1002061e
cmp dword [esi + 0x6c], 0
je 0x1002061e
push 3
push esi
call fcn.1002c2f0
add esp, 8
pop esi
pop ebp
ret

Function at 0x100211c0
Capabilities:
Create udp socket

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

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x618], 0
je 0x100296e4
push esi
push 1
push edi
call fcn.1001b710
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.1001b710
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x1002971a
push dword [edi + 0x5a0]
lea eax, [eax + eax*2]
push 1
add eax, 0x10161998
push 2
push eax
call fcn.10122dfc
push dword [edi + 0x5a0]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.10122dfc
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret

Function at 0x10029ab0
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.10029fc0
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 0x10029b34
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x10029b0c
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.100510d0
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.10029720
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 0x10029fc0
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 0x1002a078
cmp dword [ebx + ecx*4 + 0x1c0], 0x10029a00
jne 0x1002a078
cmp dword [esi], 0
je 0x1002a00a
test edi, edi
je 0x1002a078
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.10029200
add esp, 0x14
cmp eax, 0xffffffff
je 0x1002a078
test al, 1
je 0x1002a078
cmp dword [esi], 0
jne 0x1002a05f
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 0x1002a05f
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 0x1002a078
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1002a160
Capabilities:
Receive data
Receive data on socket

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

Function at 0x1002a8e0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x101c9dd0]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x1002a931
push 3
push 2
push eax
push 6
call fcn.10051b70
add esp, 0x10
test eax, eax
je 0x1002a925
mov dword [0x101c9dd0], 2
mov esp, ebp
pop ebp
ret
mov dword [0x101c9dd0], 1
jmp 0x1002a936
cmp eax, 2
je 0x1002a976
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 0x1002a95d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x1002a976
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 0x1002aaa0
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 0x1002aae8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.100510d0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.10029800
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.10029800
add esp, 8
pop edi
pop esi
pop ebp
ret
Function at 0x1002ac50
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x101c2520]
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 0x1002ae29
cmp dword [ebx + 0x2a4], 0
push esi
jne 0x1002ae1f
cmp dword [ebx + 0x314], 0
jne 0x1002ae1f
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 0x1002acee
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.100510d0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.10029720
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1012032b
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
mov dword [ebp - 0x108], 0x80
call fcn.10122830
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 0x1002ad57
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.100510d0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.10029720
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1012032b
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.1002a370
add esp, 0xc
test eax, eax
jne 0x1002adb5
call fcn.10123fdf
mov esi, eax
call fcn.10123fdf
push dword [esi]
mov edi, eax
push ebx
call fcn.100510d0
push eax
push dword [edi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x10c]
call fcn.10029720
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1012032b
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.1002a370
add esp, 0xc
test eax, eax
jne 0x1002ae1f
call fcn.10123fdf
mov esi, eax
call fcn.10123fdf
push dword [esi]
mov edi, eax
push ebx
call fcn.100510d0
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x10c]
call fcn.10029720
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1012032b
mov esp, ebp
pop ebp
ret
push ebx
call fcn.1002a860
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.1012032b
mov esp, ebp
pop ebp
ret
Function at 0x1002b740
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x101c2520]
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 0x1002b79d
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.10029800
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1012032b
mov esp, ebp
pop ebp
ret
push dword [esi + 0xb44]
mov dword [ebp - 0x10], 1
call fcn.1002b9a0
imul eax, eax, 0x3e8
push dword [esi + 0xb48]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.1002b9a0
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 0x1002b80d
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.10029800
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1012032b
mov esp, ebp
pop ebp
ret
Function at 0x10038280
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 0x10038414
push edi
mov edi, dword [ebp - 0xc]
test edi, edi
je 0x10038400
push esi
lea esp, [esp]
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x100382cf
mov eax, 0x10
jmp 0x100382dd
cmp eax, 0x17
jne 0x10038391
mov eax, 0x1c
cmp dword [edi + 0x18], 0
mov dword [ebp - 4], eax
je 0x10038391
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x10038391
cmp ecx, eax
jb 0x10038391
push 0x20
call dword [section..data]
mov esi, eax
add esp, 4
test esi, esi
je 0x100383f5
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 0x100383e4
push dword [ebp - 4]
push dword [edi + 0x18]
push eax
call fcn.10122e80
mov eax, dword [edi + 0x14]
add esp, 0xc
test eax, eax
je 0x1003837f
push eax
call dword [0x101bd00c]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x100383ca
mov eax, dword [ebp - 8]
test ebx, ebx
cmove ebx, esi
test eax, eax
je 0x1003838e
mov dword [eax + 0x1c], esi
mov dword [ebp - 8], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x100382c0
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
pop esi
test eax, eax
je 0x100383ae
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x100383fc
push ebx
call fcn.10038240
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 [0x101bd004]
push esi
call dword [0x101bd004]
add esp, 8
jmp 0x1003839f
push esi
mov edi, 8
call dword [0x101bd004]
add esp, 4
jmp 0x1003839f
mov edi, 8
jmp 0x1003839f
test ebx, ebx
jne 0x1003840c
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 0x100387c0
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.10124f3b
add esp, 0x18
test eax, eax
je 0x100387e2
cmp eax, 0xffffffff
jne 0x100387e4
xor eax, eax
pop ebp
ret