joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10040180
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009a04f
mov eax, dword fs:[0]
push eax
sub esp, 0xec
mov eax, dword [0x100c520c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 0xf8]
mov dword [ebp - 0xc4], eax
lea ecx, [ebp - 0xf4]
mov eax, dword [ebp + 8]
mov dword [ebp - 0xf8], eax
lea eax, [ebp + 0xc]
push eax
call fcn.1003fde0
mov byte [ebp - 4], 1
lea eax, [ebp + 0x24]
push eax
lea ecx, [ebp - 0xdc]
call fcn.1003fde0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x30]
mov eax, dword [ebp - 0xf8]
mov dword [esi + 0x2c], eax
lea eax, [ebp - 0xf4]
cmp ecx, eax
je 0x10040221
cmp dword [ebp - 0xe0], 8
push dword [ebp - 0xe4]
cmovae eax, dword [ebp - 0xf4]
push eax
call fcn.1003b7a0
lea ecx, [esi + 0x48]
lea eax, [ebp - 0xdc]
cmp ecx, eax
je 0x10040248
cmp dword [ebp - 0xc8], 8
push dword [ebp - 0xcc]
cmovae eax, dword [ebp - 0xdc]
push eax
call fcn.1003b7a0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xdc]
call fcn.1003b1a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xf4]
call fcn.1003b1a0
cmp dword [esi + 0x8c], 8
lea eax, [esi + 0x78]
jb 0x10040274
mov eax, dword [eax]
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi + 0x18], eax
test eax, eax
je 0x10040342
mov ecx, dword [esi + 0x24]
push ecx
push ecx
push ecx
push ecx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x100402b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__u_in_WinHttpSetTimeouts._n
call fcn.1003b110
add esp, 8
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0xc0], 2
call fcn.1003fe70
mov byte [ebp - 4], 7
lea eax, [esi + 0x110]
push eax
push esi
lea ecx, [ebp - 0xc0]
call fcn.10040a60
test al, al
je 0x100402ef
mov ecx, esi
call fcn.100404c0
mov bl, 1
jmp 0x100402f1
xor bl, bl
mov byte [ebp - 4], 0
lea eax, [ebp - 0xbc]
mov dword [ebp - 0xc4], eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x2c]
call fcn.1003b1a0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x44]
call fcn.1003b1a0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x5c]
call fcn.1003b1a0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x74]
call fcn.1003b1a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.1003b1a0
jmp 0x10040350
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x110], eax
xor bl, bl
mov dword [ebp - 4], 0xe
lea ecx, [ebp + 0x24]
call fcn.1003b1a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.1003b1a0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10067217
mov esp, ebp
pop ebp
ret 0x34
Function at 0x10040a60
Capabilities:
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
push dword [ebp + 8]
lea ecx, [esi + 4]
call fcn.10040960
cmp dword [esi + 0x48], 8
lea eax, [esi + 0x34]
movzx ecx, word [esi + 0x30]
jb 0x10040a82
mov eax, dword [eax]
push 0
push ecx
push eax
push dword [esi + 0x1c]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edx, eax
mov dword [esi + 0x20], edx
test edx, edx
je 0x10040b94
mov ecx, dword [esi + 0x30]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
cmp ecx, 0x1bb
jne 0x10040ad9
cmp dword [esi + 0x60], 8
lea eax, [esi + 0x4c]
jb 0x10040ab8
mov eax, dword [eax]
cmp dword [esi + 0x78], 8
lea ecx, [esi + 0x64]
jb 0x10040ac3
mov ecx, dword [ecx]
push 0x800000
push 0
push 0
push 0
push eax
push ecx
push edx
call edi
mov ecx, dword [esi + 0x30]
mov dword [esi + 0x24], eax
cmp ecx, 0x50
jne 0x10040b06
cmp dword [esi + 0x60], 8
lea eax, [esi + 0x4c]
jb 0x10040ae9
mov eax, dword [eax]
cmp dword [esi + 0x78], 8
lea ecx, [esi + 0x64]
jb 0x10040af4
mov ecx, dword [ecx]
push 0
push 0
push 0
push 0
push eax
push ecx
push dword [esi + 0x20]
call edi
mov dword [esi + 0x24], eax
cmp dword [esi + 0x2c], 0
je 0x10040b1a
push 4
push esi
push 0x3f
push dword [esi + 0x24]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov edi, dword [esi + 0x24]
test edi, edi
je 0x10040b94
push ebx
mov ebx, dword [esi + 0xac]
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10040b30
sub ecx, edx
mov edx, ebx
lea eax, [edx + 1]
mov dword [ebp - 4], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x10040b41
sub edx, dword [ebp - 4]
lea eax, [esi + 0x94]
cmp dword [eax + 0x14], 8
jb 0x10040b59
mov eax, dword [eax]
push 0
push ecx
push edx
push ebx
push 0
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [esi + 0x14], eax
pop ebx
test eax, eax
je 0x10040b94
push 0
push dword [esi + 0x24]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov ecx, dword [ebp + 8]
mov dword [esi + 0x14], eax
lea eax, [esi + 4]
push eax
call fcn.10040960
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
pop edi
pop esi
mov dword [ecx], eax
xor al, al
mov esp, ebp
pop ebp
ret 8

Function at 0x10044b80
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [0x100c5160]
cmp eax, 0xffffffff
jne 0x10044bc2
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x10044ba8
xor eax, eax
test eax, eax
mov dword [0x100c5160], eax
setg al
ret
push eax
push 0
mov dword [0x100c5160], 1
call fcn.10046350
mov eax, dword [0x100c5160]
add esp, 8
test eax, eax
setg al
ret
Function at 0x10044bd0
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x2b0], 2
jne 0x10044c29
mov eax, dword [0x100c5160]
cmp eax, 0xffffffff
jne 0x10044c22
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x10044c08
xor eax, eax
test eax, eax
mov dword [0x100c5160], eax
setg al
pop ebp
ret
push eax
push 0
mov dword [0x100c5160], 1
call fcn.10046350
mov eax, dword [0x100c5160]
add esp, 8
test eax, eax
setg al
pop ebp
ret
mov al, 1
pop ebp
ret
Function at 0x100459e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100c520c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x4f8], 0
jne 0x10045a0d
cmp dword [edi + 0x160], 0
je 0x10045aab
push esi
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push 0x100
push eax
call fcn.10042160
lea esi, [ebp - 0x108]
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10045a32
sub esi, ecx
mov ecx, dword [edi + 0x160]
test ecx, ecx
je 0x10045a68
cmp byte [edi + 0x48a8], al
jne 0x10045a68
lea edx, [ebp - 0x108]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x10045a53
mov byte [edi + 0x48a8], 1
cmp byte [edi + 0x4f8], 0
je 0x10045aaa
mov byte [ebp + esi - 0x108], 0xa
inc esi
cmp esi, 0x102
jae 0x10045af6
mov eax, dword [edi + 0x1d0]
mov byte [ebp + esi - 0x108], 0
test eax, eax
je 0x10045aba
push dword [edi + 0x15c]
lea ecx, [ebp - 0x108]
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.10067217
mov esp, ebp
pop ebp
ret
push dword [edi + 0x158]
push 1
push 2
push 0x100a19cc
call fcn.100711f0
push dword [edi + 0x158]
lea eax, [ebp - 0x108]
push 1
push esi
push eax
call fcn.100711f0
mov ecx, dword [ebp - 4]
add esp, 0x20
xor ecx, ebp
pop esi
pop edi
call fcn.10067217
mov esp, ebp
pop ebp
ret
call fcn.10067349
int3

Function at 0x10045b00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x100c520c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x10045bb7
cmp byte [edi + 0x4f8], 0
je 0x10045bb7
push esi
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push 0x801
push eax
call fcn.10042160
lea esi, [ebp - 0x808]
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10045b51
mov eax, dword [edi + 0x1d0]
sub esi, ecx
test eax, eax
je 0x10045b8a
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.10067217
mov esp, ebp
pop ebp
ret
push dword [edi + 0x158]
push 1
push 2
push 0x100a19cc
call fcn.100711f0
push dword [edi + 0x158]
lea eax, [ebp - 0x808]
push 1
push esi
push eax
call fcn.100711f0
add esp, 0x20
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.10067217
mov esp, ebp
pop ebp
ret
Function at 0x10046080
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
xor eax, eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x1cc
mov ecx, dword [edi + 0x1ac]
cmp edx, ecx
sete al
lea eax, [eax*4 + 0x1a8]
mov eax, dword [eax + edi]
mov dword [ebp + 8], eax
mov eax, 0x1dc
cmove esi, eax
mov eax, dword [edi + 0x2a8]
add esi, edi
mov ebx, dword [esi + 4]
sub ebx, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x1004615f
xor eax, eax
cmp edx, ecx
sete al
lea eax, [eax*4 + 0x1bc]
cmp dword [eax + edi], 0x10045d60
jne 0x1004615f
cmp dword [esi], 0
je 0x100460eb
test ebx, ebx
je 0x1004615f
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10045360
add esp, 0x14
cmp eax, 0xffffffff
je 0x1004615f
test al, 1
je 0x1004615f
mov ecx, dword [esi]
test ecx, ecx
jne 0x1004613d
mov eax, dword [edi]
mov eax, dword [eax + 0x4b8]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x100c514c]
mov ebx, dword [esi + 4]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test ecx, ecx
je 0x10046158
mov eax, dword [esi + 8]
push 0
push ebx
add eax, ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x1004615f
add dword [esi + 8], eax
jmp 0x1004615f
mov dword [esi + 4], 0
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100461c6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x10046198
mov ecx, dword [ebp + 0x18]
lea eax, [ebx + 0x52]
pop edi
pop esi
pop ebx
mov dword [ecx], 0
pop ebp
ret
push esi
push edi
call fcn.10041690
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.100459e0
mov eax, dword [edi]
add esp, 0x14
mov ecx, dword [ebp + 0x18]
mov dword [eax + 0x48ac], esi
mov eax, 0x37
pop edi
pop esi
mov dword [ecx], ebx
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 0x18]
xor eax, eax
pop edi
pop esi
mov dword [ecx], ebx
pop ebx
pop ebp
ret

Function at 0x100462e0
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 0x10046309
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 0x1004633f
push dword [esi + 0x158]
lea eax, [eax + eax*2]
push 1
add eax, 0x100a19cc
push 2
push eax
call fcn.100711f0
push dword [esi + 0x158]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.100711f0
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax + 0x1ec], 0
jne 0x10046431
mov eax, dword [eax + 0x1a8]
cmp eax, 0xffffffff
je 0x10046431
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x10046431
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret
Function at 0x10046ae0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100c6540]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x10046b31
push 3
push 2
push eax
push 6
call fcn.10060a20
add esp, 0x10
test al, al
je 0x10046b25
mov dword [0x100c6540], 2
mov esp, ebp
pop ebp
ret
mov dword [0x100c6540], 1
jmp 0x10046b36
cmp eax, 2
je 0x10046b76
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 0x10046b5d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x10046b76
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 0x1004ca50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.10080e5d
Function at 0x1004e720
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [eax], ebx
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 0x1004e8b4
push edi
mov edi, dword [ebp - 0xc]
test edi, edi
je 0x1004e8a0
push esi
nop dword [eax]
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x1004e76f
mov eax, 0x10
jmp 0x1004e77d
cmp eax, 0x17
jne 0x1004e831
mov eax, 0x1c
cmp dword [edi + 0x18], 0
mov dword [ebp - 4], eax
je 0x1004e831
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x1004e831
cmp ecx, eax
jb 0x1004e831
push 0x20
call dword [0x100c514c]
mov esi, eax
add esp, 4
test esi, esi
je 0x1004e895
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 [0x100c514c]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x1004e884
push dword [ebp - 4]
push dword [edi + 0x18]
push eax
call fcn.10068e00
mov eax, dword [edi + 0x14]
add esp, 0xc
test eax, eax
je 0x1004e81f
push eax
call dword [0x100c5158]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x1004e86a
mov eax, dword [ebp - 8]
test ebx, ebx
cmove ebx, esi
test eax, eax
je 0x1004e82e
mov dword [eax + 0x1c], esi
mov dword [ebp - 8], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x1004e760
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
pop esi
test eax, eax
je 0x1004e84e
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x1004e89c
push ebx
call fcn.1004e6e0
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 [0x100c5150]
push esi
call dword [0x100c5150]
add esp, 8
jmp 0x1004e83f
push esi
mov edi, 8
call dword [0x100c5150]
add esp, 4
jmp 0x1004e83f
mov edi, 8
jmp 0x1004e83f
test ebx, ebx
jne 0x1004e8ac
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 0x1004eaf0
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.10072644
add esp, 0x18
test eax, eax
je 0x1004eb12
cmp eax, 0xffffffff
jne 0x1004eb14
xor eax, eax
pop ebp
ret
Function at 0x10053b90
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x100c520c]
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 0x10053c03
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.10046350
add esp, 8
cmp edi, 0xffffffff
jne 0x10053c3b
push str.Error_accept__ing_server_connect
push ebx
call fcn.100459e0
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10067217
mov esp, ebp
pop ebp
ret
push str.Connection_accepted_from_server_n
push ebx
call fcn.10045b00
push 1
mov byte [esi + 0x270], 0
push edi
mov dword [esi + 0x1ac], edi
call fcn.100608a0
mov byte [esi + 0x1b9], 1
add esp, 0x10
mov eax, dword [ebx + 0x1d8]
test eax, eax
je 0x10053ca0
push 1
push edi
push dword [ebx + 0x1dc]
call eax
add esp, 0xc
test eax, eax
je 0x10053ca0
push esi
call fcn.10054150
add esp, 4
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10067217
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.10067217
mov esp, ebp
pop ebp
ret
Function at 0x10055b90
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 0x10055bbf
push str.Couldnt_set_desired_mode
push edx
call fcn.100459e0
add esp, 8
lea eax, [esi + 0x11]
pop edi
pop esi
pop ebp
ret
cmp ecx, 0xc8
je 0x10055bd6
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push edx
call fcn.10045b00
add esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
cmp eax, 0x13
jne 0x10055bef
push edi
call fcn.10055aa0
add esp, 4
mov esi, eax
pop ebx
pop edi
pop esi
pop ebp
ret
cmp eax, 0x14
jne 0x10055d0b
mov ebx, dword [edi]
xor edx, edx
mov esi, dword [ebx + 0x4b14]
mov dword [ebp + 8], edx
cmp dword [ebx + 0x4d0], 2
jne 0x10055c6f
test esi, esi
je 0x10055c6f
cmp byte [esi], dl
je 0x10055c6f
push 0x2f
push esi
call fcn.10069bc0
add esp, 8
test eax, eax
je 0x10055c6c
mov ecx, esi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10055c30
sub ecx, edx
cmp byte [ecx + esi - 1], 0x2f
je 0x10055c4f
push 0x2f
push esi
call fcn.10069d00
mov ecx, eax
add esp, 8
sub ecx, esi
push 0
push 0
lea eax, [ebp + 8]
push eax
push ecx
push esi
push ebx
call fcn.1005d8d0
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x10055d38
mov edx, dword [ebp + 8]
mov ecx, dword [ebx + 0x540]
test ecx, ecx
jne 0x10055c8d
cmp byte [ebx + 0x4e6], 0
mov ecx, str.NLST
mov eax, str.LIST
cmove ecx, eax
mov esi, 0x1009ee82
test edx, edx
mov eax, esi
cmovne eax, edx
push eax
mov eax, 0x100a3b44
cmove eax, esi
push eax
push ecx
push 0x100a19c4
call fcn.10041fc0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x10055ccf
push dword [ebp + 8]
call dword [0x100c5150]
add esp, 4
mov esi, 0x1b
mov eax, esi
pop ebx
pop edi
pop esi
pop ebp
ret
push ebx
lea eax, [edi + 0x440]
push 0x1009fa90
push eax
call fcn.10062c40
push dword [ebp + 8]
mov esi, eax
call dword [0x100c5150]
push ebx
call dword [0x100c5150]
add esp, 0x14
test esi, esi
jne 0x10055d38
pop ebx
mov dword [edi + 0x4b8], 0x1f
mov eax, esi
pop edi
pop esi
pop ebp
ret
cmp eax, 0x15
jne 0x10055d24
push 0xd
push 1
push edi
call fcn.10055610
add esp, 0xc
mov esi, eax
pop ebx
pop edi
pop esi
pop ebp
ret
cmp eax, 0x16
jne 0x10055d38
push 0xe
push 1
push edi
call fcn.10055610
add esp, 0xc
mov esi, eax
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x1005a690
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 0
mov byte [ebp + 0xa], al
lea eax, [ebp + 8]
mov edi, dword [esi]
push 3
push eax
push dword [esi + 0x1a8]
mov byte [ebp + 8], 0xff
mov byte [ebp + 9], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1005a6d8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.100459e0
add esp, 0xc
push dword [ebp + 0x10]
push ebx
push str.SENT
push dword [esi]
call fcn.1005a2a0
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0xc], 0x1f
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov eax, dword [eax + 0x150]
mov dword [ebp - 4], eax
jne 0x1005a958
push ebx
push esi
push edi
lea ebx, [eax + 0x1cb0]
lea edi, [eax + 0x1eb0]
mov dword [edi], ebx
cmp ebx, edi
jae 0x1005a83f
mov byte [ebx], 0xff
inc dword [edi]
mov ecx, dword [edi]
jmp 0x1005a841
mov ecx, ebx
cmp ecx, edi
jae 0x1005a855
mov byte [ecx], 0xfa
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x1005a855
mov byte [ecx], 0x1f
inc dword [edi]
movzx eax, word [eax + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
movzx eax, ax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x1caa]
push eax
call esi
mov edx, dword [ebp + 0xc]
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x1005a8c0
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1005a8c0
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1005a8c0
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1005a8c0
shr ecx, 8
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1005a8c0
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1005a8c0
mov byte [eax], 0xf0
mov eax, dword [edi]
inc eax
mov esi, dword [ebp - 4]
mov dword [edi], ebx
mov edi, dword [ebp - 8]
mov dword [esi + 0x1eb4], eax
sub eax, ebx
sub eax, 2
push eax
lea eax, [esi + 0x1cb2]
push eax
push 0x3e
push edi
call fcn.1005a3a0
add esp, 0x10
push 0
push 3
push ebx
mov ebx, dword [ebp + 8]
push dword [ebx + 0x1a8]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1005a913
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.100459e0
add esp, 0xc
push 4
lea eax, [esi + 0x1cb3]
push eax
push ebx
call fcn.1005a6f0
add esp, 0xc
lea eax, [esi + 0x1cb7]
push 0
push 2
push eax
push dword [ebx + 0x1a8]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1005a955
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.100459e0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret