joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005e560
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Reference alidns dns server

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e39dc
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x1013dd8c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3c], 0
mov eax, dword [0x1014697c]
mov ecx, dword fs:[0x2c]
mov edx, dword [ecx + eax*4]
mov eax, dword [0x101468c8]
cmp eax, dword [edx + 4]
jle 0x1005e5f8
push 0x101468c8
call fcn.10065f48
add esp, 4
cmp dword [0x101468c8], 0xffffffff
jne 0x1005e5f8
mov dword [ebp - 4], 0
push 0x100fab5f
mov ecx, 0x101468b0
call fcn.10012560
push 0x100e5380
call fcn.10065dba
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x101468c8
call fcn.10065f09
add esp, 4
mov ecx, 0x101468b0
call fcn.10039400
movzx ecx, al
test ecx, ecx
je 0x1005e725
xor edx, edx
mov word [ebp - 0x38], dx
xor eax, eax
mov dword [ebp - 0x36], eax
mov dword [ebp - 0x32], eax
mov dword [ebp - 0x2e], eax
mov word [ebp - 0x2a], ax
mov dword [ebp - 0x44], 0x10
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x40], eax
mov ecx, 2
mov word [ebp - 0x38], cx
push 0x35
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x36], ax
push str.223.5.5.5
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x44]
push edx
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x1005e699
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
push 0x100fab81
mov ecx, dword [ebp + 8]
call fcn.10012560
mov eax, dword [ebp - 0x3c]
or eax, 1
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 8]
jmp 0x1005e73e
mov ecx, dword [ebp - 0x44]
push ecx
push 0
lea edx, [ebp - 0x38]
push edx
call fcn.100a57f0
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1005e6e6
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
push 0x100fab82
mov ecx, dword [ebp + 8]
call fcn.10012560
mov ecx, dword [ebp - 0x3c]
or ecx, 1
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp + 8]
jmp 0x1005e73e
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [ebp - 0x28]
call fcn.10012560
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
push eax
mov ecx, 0x101468b0
call fcn.1001a8d0
lea ecx, [ebp - 0x28]
call fcn.10012470
mov ecx, dword [ebp - 0x34]
mov dword [0x101468ac], ecx
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
push 0x101468b0
mov ecx, dword [ebp + 8]
call fcn.1001a940
mov eax, dword [ebp - 0x3c]
or eax, 1
mov dword [ebp - 0x3c], eax
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.10065961
mov esp, ebp
pop ebp
ret
Function at 0x10069720
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x1013dd8c]
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 0x10069773
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x1006976d
shr eax, 8
cmp al, 2
jne 0x1006976d
call fcn.10070c30
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10065961
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.10065961
mov esp, ebp
pop ebp
ret

Function at 0x10069790
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.100c1fd1

Function at 0x10070270
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x1007028e
cmp dword [esi + 0x6c], 0
je 0x1007028e
push 2
push 3
push esi
call fcn.10086c50
add esp, 0xc
push dword [ebp + 0xc]
call fcn.1007d280
add esp, 4
test esi, esi
je 0x100702ae
cmp dword [esi + 0x6c], 0
je 0x100702ae
push 3
push esi
call fcn.10086c90
add esp, 8
pop esi
pop ebp
ret

Function at 0x10070a90
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x2c0], 2
jne 0x10070aa5
pop ebp
jmp fcn.10070a40
mov al, 1
pop ebp
ret
Function at 0x1007aaf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1013dd8c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push 0x100
push eax
call fcn.10069aa0
lea esi, [ebp - 0x108]
add esp, 0x10
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x1007ab30
sub esi, ecx
mov ecx, dword [edi + 0x160]
test ecx, ecx
je 0x1007ab66
cmp byte [edi + 0x48b0], al
jne 0x1007ab66
lea edx, [ebp - 0x108]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x1007ab51
mov byte [edi + 0x48b0], 1
cmp byte [edi + 0x4f8], 0
je 0x1007aba8
mov byte [ebp + esi - 0x108], 0xa
inc esi
cmp esi, 0x102
jae 0x1007abf4
mov eax, dword [edi + 0x1d0]
mov byte [ebp + esi - 0x108], 0
test eax, eax
je 0x1007abb8
push dword [edi + 0x15c]
lea ecx, [ebp - 0x108]
push esi
push ecx
push 0
push edi
call eax
add esp, 0x14
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10065961
mov esp, ebp
pop ebp
ret
push dword [edi + 0x158]
push 1
push 2
push 0x101014b8
call fcn.100adb4b
push dword [edi + 0x158]
lea eax, [ebp - 0x108]
push 1
push esi
push eax
call fcn.100adb4b
mov ecx, dword [ebp - 4]
add esp, 0x20
xor ecx, ebp
pop edi
pop esi
call fcn.10065961
mov esp, ebp
pop ebp
ret
call fcn.10066246
int3

Function at 0x1007ac00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x1013dd8c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x1007acb7
cmp byte [edi + 0x4f8], 0
je 0x1007acb7
push esi
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push 0x801
push eax
call fcn.10069aa0
lea esi, [ebp - 0x808]
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x1007ac51
mov eax, dword [edi + 0x1d0]
sub esi, ecx
test eax, eax
je 0x1007ac8a
push dword [edi + 0x15c]
lea ecx, [ebp - 0x808]
push esi
push ecx
push 0
push edi
call eax
add esp, 0x14
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10065961
mov esp, ebp
pop ebp
ret
push dword [edi + 0x158]
push 1
push 2
push 0x101014b8
call fcn.100adb4b
push dword [edi + 0x158]
lea eax, [ebp - 0x808]
push 1
push esi
push eax
call fcn.100adb4b
add esp, 0x20
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.10065961
mov esp, ebp
pop ebp
ret
Function at 0x1007af20
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.1007b380
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 0x1007afa4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x1007af7c
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.10087c30
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.1007aaf0
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0x48b4], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x37
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

Function at 0x1007b380
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 + 0x2b8]
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x1007b43d
cmp dword [ebx + ecx*4 + 0x1bc], 0x1007ae70
jne 0x1007b43d
cmp dword [esi], 0
je 0x1007b3cf
test edi, edi
je 0x1007b43d
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.1007a430
add esp, 0x14
cmp eax, 0xffffffff
je 0x1007b43d
test al, 1
je 0x1007b43d
cmp dword [esi], 0
jne 0x1007b424
mov eax, dword [ebx]
mov eax, dword [eax + 0x4b8]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x1013de0c]
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 0x1007b424
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 0x1007b43d
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1007b450
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 0x1007b479
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 0x1007b4af
push dword [esi + 0x158]
lea eax, [eax + eax*2]
push 1
add eax, 0x101014b8
push 2
push eax
call fcn.100adb4b
push dword [esi + 0x158]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.100adb4b
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret
Function at 0x1007b580
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax + 0x1ec], 0
je 0x1007b5a0
push eax
call fcn.10071270
add esp, 4
test eax, eax
jne 0x1007b5c2
xor al, al
pop ebp
ret
mov eax, dword [eax + 0x1a8]
cmp eax, 0xffffffff
je 0x1007b59c
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x1007b5c2
xor al, al
pop ebp
ret
mov al, 1
pop ebp
ret

Function at 0x1007bd70
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10147250]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x1007bdc1
push 3
push 2
push eax
push 6
call fcn.10088990
add esp, 0x10
test al, al
je 0x1007bdb5
mov dword [0x10147250], 2
mov esp, ebp
pop ebp
ret
mov dword [0x10147250], 1
jmp 0x1007bdc6
cmp eax, 2
je 0x1007be06
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 0x1007bded
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x1007be06
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 0x1007bed0
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 0x1007bf18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.10087c30
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.1007ac00
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.1007ac00
add esp, 8
pop edi
pop esi
pop ebp
ret
Function at 0x1007c050
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x1013dd8c]
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 0x1007c24d
cmp byte [ebx + 0x276], 0
push esi
jne 0x1007c243
cmp byte [ebx + 0x292], 0
jne 0x1007c243
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 0x1007c0ee
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.10087c30
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.1007aaf0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10065961
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
mov dword [ebp - 0x108], 0x80
push 0
push eax
call fcn.100a57f0
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 0x1007c157
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.10087c30
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.1007aaf0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10065961
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.1007c7d0
add esp, 0xc
test al, al
jne 0x1007c1b5
call fcn.100adf37
mov esi, eax
call fcn.100adf37
push dword [esi]
mov edi, eax
push ebx
call fcn.10087c30
push eax
push dword [edi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x10c]
call fcn.1007aaf0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10065961
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.1007c7d0
add esp, 0xc
test al, al
jne 0x1007c243
call fcn.100adf37
mov esi, eax
call fcn.100adf37
push dword [esi]
mov edi, eax
push ebx
call fcn.10087c30
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x10c]
call fcn.1007aaf0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10065961
mov esp, ebp
pop ebp
ret
push ebx
call fcn.1007bc90
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.10065961
mov esp, ebp
pop ebp
ret
Function at 0x1007cbf0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1013dd8c]
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 + 0x648], 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 0x1007cc4d
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.1007ac00
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10065961
mov esp, ebp
pop ebp
ret
push dword [esi + 0x64c]
mov dword [ebp - 0x10], 1
call fcn.100697a0
push dword [esi + 0x650]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.100697a0
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 0x1007ccbd
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.1007ac00
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10065961
mov esp, ebp
pop ebp
ret
Function at 0x100870e0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x14]
push esi
xor esi, esi
mov dword [ebp - 8], esi
mov dword [eax], esi
lea eax, [ebp - 0xc]
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 - 0x10], eax
test eax, eax
jne 0x10087295
push ebx
mov ebx, dword [ebp - 0xc]
push edi
test ebx, ebx
je 0x10087280
nop dword [eax]
mov eax, dword [ebx + 4]
cmp eax, 2
jne 0x1008712f
mov eax, 0x10
jmp 0x1008713d
cmp eax, 0x17
jne 0x100871f1
mov eax, 0x1c
cmp dword [ebx + 0x18], 0
mov dword [ebp - 4], eax
je 0x100871f1
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x100871f1
cmp ecx, eax
jb 0x100871f1
push 0x20
call dword [0x1013de0c]
mov edi, eax
add esp, 4
test edi, edi
je 0x10087275
mov ecx, dword [ebx]
mov dword [edi], ecx
mov ecx, dword [ebx + 4]
mov dword [edi + 4], ecx
mov ecx, dword [ebx + 8]
mov dword [edi + 8], ecx
mov eax, dword [ebx + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 4]
push eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
call dword [0x1013de0c]
add esp, 4
mov dword [edi + 0x18], eax
test eax, eax
je 0x10087264
push dword [ebp - 4]
push dword [ebx + 0x18]
push eax
call fcn.100a5270
mov eax, dword [ebx + 0x14]
add esp, 0xc
test eax, eax
je 0x100871df
push eax
call dword [0x1013de18]
add esp, 4
mov dword [edi + 0x14], eax
test eax, eax
je 0x1008724a
mov eax, dword [ebp - 8]
test esi, esi
cmove esi, edi
test eax, eax
je 0x100871ee
mov dword [eax + 0x1c], edi
mov dword [ebp - 8], edi
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x10087120
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x1008720d
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebx, ebx
je 0x1008727c
test esi, esi
je 0x1008723a
push dword [esi + 0x18]
call dword [0x1013de10]
push dword [esi + 0x14]
call dword [0x1013de10]
mov edi, dword [esi + 0x1c]
push esi
call dword [0x1013de10]
add esp, 0xc
mov esi, edi
test edi, edi
jne 0x10087215
mov eax, dword [ebp + 0x14]
xor esi, esi
pop edi
mov dword [eax], esi
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push dword [edi + 0x18]
mov ebx, 8
call dword [0x1013de10]
push edi
call dword [0x1013de10]
add esp, 8
jmp 0x100871ff
push edi
mov ebx, 8
call dword [0x1013de10]
add esp, 4
jmp 0x100871ff
mov ebx, 8
jmp 0x100871ff
test esi, esi
jne 0x1008728c
mov ebx, 0x2af9
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
pop edi
mov dword [eax], esi
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100884a0
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.100b5b45
add esp, 0x18
test eax, eax
je 0x100884c2
cmp eax, 0xffffffff
jne 0x100884c4
xor eax, eax
pop ebp
ret
Function at 0x10088840
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push 0x10104de0
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
test eax, eax
jne 0x10088860
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push str.LoadLibraryExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp + 8]
mov ebx, eax
push 0x10104dfc
push esi
mov dword [ebp - 8], ebx
call fcn.100b8302
add esp, 8
test eax, eax
je 0x100888ac
test ebx, ebx
je 0x1008889c
push 8
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x100888d5
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100888d5
push 0x800
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0x10088980
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100888f1
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [0x1013de0c]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10088976
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10088976
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10088922
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10088940
sub ecx, edx
add ecx, ebx
sub ecx, esi
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x10088950
mov eax, dword [ebp - 8]
test eax, eax
je 0x1008896d
push 8
push 0
push ebx
call eax
jmp 0x10088974
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x1013de10]
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x100901f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x1013dd8c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x88]
push edi
push ecx
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x88], 0x80
mov eax, dword [esi + 0x1ac]
or edi, 0xffffffff
mov ebx, dword [esi]
push ecx
push eax
mov dword [ebp - 0x8c], eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x10090263
lea eax, [ebp - 0x88]
mov dword [ebp - 0x88], 0x80
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x8c]
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
push dword [ebp - 0x8c]
push esi
call fcn.1007b4c0
add esp, 8
cmp edi, 0xffffffff
jne 0x1009029b
push str.Error_accept__ing_server_connect
push ebx
call fcn.1007aaf0
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10065961
mov esp, ebp
pop ebp
ret
push str.Connection_accepted_from_server_n
push ebx
call fcn.1007ac00
push 1
mov byte [esi + 0x280], 0
push edi
mov dword [esi + 0x1ac], edi
call fcn.1009ce00
mov byte [esi + 0x1b9], 1
add esp, 0x10
mov eax, dword [ebx + 0x1d8]
test eax, eax
je 0x1009031d
push 1
push edi
push dword [ebx + 0x1dc]
call eax
add esp, 0xc
test eax, eax
je 0x1009031d
mov eax, dword [esi + 0x1ac]
cmp eax, 0xffffffff
je 0x10090300
push eax
push esi
call fcn.1007b4c0
add esp, 8
mov dword [esi + 0x1ac], 0xffffffff
pop edi
mov byte [esi + 0x282], 0
mov eax, 0x2a
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10065961
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10065961
mov esp, ebp
pop ebp
ret

Function at 0x100929a0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
lea eax, [ecx - 0xc8]
mov edx, dword [edi]
cmp eax, 0x64
jb 0x100929cf
push str.Couldnt_set_desired_mode
push edx
call fcn.1007aaf0
add esp, 8
lea eax, [esi + 0x11]
pop edi
pop esi
pop ebp
ret
cmp ecx, 0xc8
je 0x100929e6
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push edx
call fcn.1007ac00
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x100929fd
push edi
call fcn.10092700
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x14
jne 0x10092a11
push edi
call fcn.100916d0
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x15
jne 0x10092a29
push 0xd
push 1
push edi
call fcn.10092250
add esp, 0xc
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x16
jne 0x10092a3d
push 0xe
push 1
push edi
call fcn.10092250
add esp, 0xc
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
ret