joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa697a0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0xaf8008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 4
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 1
push eax
push 1
push 6
push edx
mov esi, ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0xa697fe
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea edx, [ebp - 0x108]
mov ecx, eax
call fcn.00a6d9c0
add esp, 4
push eax
push str.Could_not_set_TCP_NODELAY:__s
push esi
call fcn.00a55d90
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00a8f813
mov esp, ebp
pop ebp
ret

Function at 0xa69810
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0xaf8008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
xor eax, eax
push edi
push 4
mov edi, edx
cmp byte [esi + 0x6dc], 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 0xa6986b
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d
push esi
call fcn.00a55d90
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00a8f813
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x678]
mov dword [ebp - 0x10], 1
call fcn.00a4bf40
mov ecx, dword [esi + 0x67c]
imul eax, eax, 0x3e8
mov dword [ebp - 0xc], eax
call fcn.00a4bf40
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 0xa698d5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
push esi
call fcn.00a55d90
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00a8f813
mov esp, ebp
pop ebp
ret

Function at 0xa69ab0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0xafd21c]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
push esi
mov esi, ecx
test eax, eax
jne 0xa69b07
push 3
push ecx
push eax
xor edx, edx
lea ecx, [eax + 6]
call fcn.00a59440
add esp, 0xc
test al, al
je 0xa69afb
mov dword [0xafd21c], 2
pop esi
mov esp, ebp
pop ebp
ret
mov dword [0xafd21c], 1
jmp 0xa69b0c
cmp eax, 2
je 0xa69b48
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0xa69b31
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0xa69b48
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0xa6a260
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18c
mov eax, dword [0xaf8008]
xor eax, esp
mov dword [esp + 0x188], eax
push ebx
push esi
mov esi, dword [ecx + 8]
lea eax, [esp + 0xc]
push edi
push 0x80
push 0
push eax
mov ebx, edx
mov dword [esp + 0x18], 0x80
call fcn.00a91e70
add esp, 0xc
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
push dword [esi + 0x98]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0xa6a2fc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea edx, [esp + 0x90]
push ecx
mov ecx, esi
call fcn.00a6d9c0
add esp, 4
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.00a55cd0
add esp, 0x10
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x188]
xor ecx, esp
call fcn.00a8f813
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0xc]
lea eax, [esi + 0x100]
push eax
lea eax, [esi + 0xd0]
push eax
lea ecx, [esp + 0x18]
call fcn.00a4c320
add esp, 8
test al, al
jne 0xa6a369
call fcn.00a9b937
mov esi, dword [eax]
call fcn.00a9b937
push ecx
lea edx, [esp + 0x94]
mov ecx, esi
mov edi, eax
call fcn.00a6d9c0
add esp, 4
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00a55cd0
add esp, 0x10
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x188]
xor ecx, esp
call fcn.00a8f813
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x194]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00a8f813
mov esp, ebp
pop ebp
ret

Function at 0xa6a610
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 8], 0
mov ecx, dword [ecx + 8]
jne 0xa6a631
push dword [ecx + 0x14]
lea eax, [ecx + 0x18]
push eax
push dword [ecx + 0x98]
call dword [sym.imp.WS2_32.dll_connect]
pop ebp
ret
or eax, 0xffffffff
pop ebp
ret

Function at 0xa6aee0
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, ecx
push edi
mov edi, edx
mov esi, dword [ebx + 8]
push dword [esi + 0x14]
lea eax, [esi + 0x18]
push eax
push dword [esi + 0x98]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0xa6af1d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea edx, [esi + 0x9c]
mov ecx, edi
call fcn.00a6a0b0
add esp, 4
pop edi
pop esi
pop ebx
ret
mov edx, edi
mov ecx, ebx
call fcn.00a6a260
mov ecx, dword [esi + 0x98]
mov edx, 1
call fcn.00a8c940
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0xa6ba00
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
push edi
mov edi, edx
mov edx, str.WWW_Authenticate:
push 0x11
call fcn.00a577d0
add esp, 4
test eax, eax
je 0xa6ba2f
mov ebx, dword [edi + 0xe0]
cmp ebx, 0x191
je 0xa6ba52
push 0x13
mov edx, str.Proxy_authenticate:
mov ecx, esi
call fcn.00a577d0
add esp, 4
test eax, eax
je 0xa6ba98
mov ebx, dword [edi + 0xe0]
cmp ebx, 0x197
jne 0xa6ba98
mov ecx, esi
call fcn.00a62070
mov esi, eax
test esi, esi
jne 0xa6ba68
lea eax, [esi + 0x1b]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
cmp ebx, 0x197
mov ecx, edi
push esi
sete dl
call fcn.00a62aa0
add esp, 4
mov edi, eax
push esi
call dword [0xaf8984]
add esp, 4
test edi, edi
je 0xa6bc3e
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
push 0xf
mov edx, str.Content_Length:
mov ecx, esi
call fcn.00a577d0
add esp, 4
test eax, eax
je 0xa6baf5
mov ecx, dword [edi + 0xe0]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0xa6bad5
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response
push edi
call fcn.00a55d90
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
mov eax, dword [ebp + 8]
lea ecx, [esi + 0xf]
add eax, 0x200
xor edx, edx
push eax
push 0xa
call fcn.00a6e360
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
push 5
push str.close
push 0xb
mov edx, str.Connection:
mov ecx, esi
call fcn.00a63160
add esp, 0xc
test al, al
jne 0xa6bc34
push 0x12
mov edx, str.Transfer_Encoding:
mov ecx, esi
call fcn.00a577d0
add esp, 4
test eax, eax
je 0xa6bb99
mov ecx, dword [edi + 0xe0]
lea eax, [ecx - 0xc8]
cmp eax, 0x64
jae 0xa6bb52
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
push edi
call fcn.00a55d90
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
push 7
push str.chunked
push 0x12
mov edx, str.Transfer_Encoding:
mov ecx, esi
call fcn.00a63160
add esp, 0xc
test al, al
je 0xa6bc3e
push str.CONNECT_responded_chunked
push edi
call fcn.00a55d90
mov eax, dword [ebp + 8]
add esp, 8
mov ecx, edi
mov byte [eax + 0x20c], 1
call fcn.00a855b0
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
push 5
push str.close
push 0x11
mov edx, str.Proxy_Connection:
mov ecx, esi
call fcn.00a63160
add esp, 0xc
test al, al
jne 0xa6bc34
push 7
push str.HTTP_1.
push esi
call fcn.00aa1630
add esp, 0xc
test eax, eax
jne 0xa6bc3e
mov al, byte [esi + 7]
cmp al, 0x30
je 0xa6bbd4
cmp al, 0x31
jne 0xa6bc3e
cmp byte [esi + 8], 0x20
jne 0xa6bc3e
mov cl, byte [esi + 9]
mov al, cl
sub al, 0x30
cmp al, 9
ja 0xa6bc3e
mov dl, byte [esi + 0xa]
mov al, dl
sub al, 0x30
cmp al, 9
ja 0xa6bc3e
mov bl, byte [esi + 0xb]
mov al, bl
sub al, 0x30
cmp al, 9
ja 0xa6bc3e
mov al, byte [esi + 0xc]
cmp al, 0x30
jl 0xa6bc06
cmp al, 0x39
jle 0xa6bc3e
movsx eax, cl
lea ecx, [eax + eax*4]
movsx eax, dl
lea eax, [eax + ecx*2]
lea ecx, [eax + eax*4]
movsx eax, bl
lea eax, [eax + ecx*2]
add eax, 0xffffeb30
mov dword [edi + 0xe0], eax
mov dword [edi + 0xd5c], eax
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
mov eax, dword [ebp + 8]
mov byte [eax + 0x20d], 1
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
pop ebp
ret
Function at 0xa6e420
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0xaf8008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x18]
mov edi, edx
push eax
mov esi, ecx
call fcn.00a56770
add esp, 4
mov ecx, esi
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x18], xmm0
call fcn.00a57b10
mov ecx, edi
mov ebx, eax
call fcn.00a57b10
push 1
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0xa6e4b7
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x28]
push eax
call fcn.00a56770
movups xmm0, xmmword [ebp - 0x18]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
call fcn.00a56820
add esp, 0x20
test edx, edx
ja 0xa6e4e4
jb 0xa6e4a5
cmp eax, 0x3e8
ja 0xa6e4e4
push 1
call edi
push 1
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0xa6e470
test ebx, ebx
je 0xa6e4c4
push ebx
call fcn.00a9546f
add esp, 4
test esi, esi
je 0xa6e4d1
push esi
call fcn.00a9546f
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00a8f813
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0xa6e4f1
push ebx
call fcn.00a9546f
add esp, 4
test esi, esi
je 0xa6e4fe
push esi
call fcn.00a9546f
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00a8f813
mov esp, ebp
pop ebp
ret
Function at 0xa77e00
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0xaf8008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
push edi
mov eax, dword [ebx + 0xc]
mov edi, dword [eax + 0x378]
lea eax, [ebp - 0x8c]
push eax
mov dword [ebp - 0x8c], 0x80
lea eax, [ebp - 0x88]
push eax
mov eax, dword [edi + 0x13c]
lea esi, [edi + 0x148]
push 0
add eax, 4
push eax
push dword [esi]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [edi + 0x130], 0
mov dword [edi + 0x134], eax
jne 0xa77e8d
push dword [ebp - 0x8c]
lea eax, [ebp - 0x88]
push eax
lea eax, [edi + 0xb0]
push eax
call fcn.00a918f0
mov eax, dword [ebp - 0x8c]
add esp, 0xc
mov dword [edi + 0x130], eax
mov edx, dword [edi + 0x134]
cmp edx, 4
jge 0xa77ec0
push str.Received_too_short_packet
push ebx
call fcn.00a55cd0
add esp, 8
mov dword [edi + 0xc], 7
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00a8f813
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00a76b30
movzx eax, ax
mov dword [edi + 0xc], eax
dec eax
cmp eax, 5
ja case.0xa77ed7.1
jmp dword [eax*4 + 0xa7801c]
cmp edx, 4
jle case.0xa77ed7.4
mov ecx, esi
call fcn.00a76b50
movzx ecx, word [edi + 0x144]
inc ecx
cmp cx, ax
jne case.0xa77ed7.4
lea eax, [edx - 4]
mov ecx, ebx
push eax
mov eax, dword [esi]
mov edx, 1
add eax, 4
push eax
call fcn.00a4beb0
mov esi, eax
add esp, 8
test esi, esi
je 0xa77f3d
mov edx, 5
mov ecx, edi
call fcn.00a77af0
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00a8f813
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x134]
mov ecx, ebx
sub eax, 4
cdq
add dword [ebx + 0x90], eax
adc dword [ebx + 0x94], edx
push dword [ebx + 0x94]
push dword [ebx + 0x90]
call fcn.00a614f0
add esp, 8
jmp case.0xa77ed7.4
mov eax, dword [esi]
lea ecx, [edi + 0x148]
add eax, 4
lea esi, [edx - 4]
mov dword [ebp - 0x90], eax
call fcn.00a76b50
mov ecx, dword [ebp - 0x90]
mov edx, esi
movzx eax, ax
mov dword [edi + 8], eax
call fcn.00a76b70
cmp eax, esi
jae case.0xa77ed7.4
push dword [ebp - 0x90]
push str.TFTP_error:__s
push ebx
call fcn.00a55d90
jmp 0xa77fe6
lea eax, [edx - 2]
mov ecx, edi
mov edx, dword [esi]
push eax
add edx, 2
call fcn.00a76bf0
add esp, 4
test eax, eax
je case.0xa77ed7.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00a8f813
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0xac8b68
push ebx
call fcn.00a55cd0
add esp, 0xc
mov ecx, ebx
call fcn.00a61e40
test eax, eax
je 0xa77ead
mov edx, 5
mov ecx, edi
call fcn.00a77af0
mov ecx, dword [ebp - 4]
mov eax, 0x2a
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00a8f813
mov esp, ebp
pop ebp
ret
Function at 0xa79d00
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0xaf8008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x88]
push eax
mov ebx, dword [edi + 0xc]
mov esi, dword [ebx + 0x124]
push esi
mov dword [ebp - 0x8c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0xa79e1a
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x8c], 0x80
push eax
lea eax, [ebp - 0x88]
push eax
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
mov dword [ebp - 0x90], esi
cmp esi, 0xffffffff
je 0xa79e1a
push str.Connection_accepted_from_server
push edi
call fcn.00a55d90
add esp, 8
mov byte [ebx + 0x1cd], 0
mov edx, 1
mov ecx, esi
call fcn.00a8c940
lea eax, [ebp - 0x90]
mov edx, ebx
push eax
push ecx
mov ecx, edi
call fcn.00a6b2e0
add esp, 8
test eax, eax
jne 0xa79e2d
cmp dword [edi + 0x1ac], eax
je 0xa79e07
mov dl, 1
mov ecx, edi
call fcn.00a4bb20
mov eax, dword [edi + 0x1ac]
push 1
push dword [ebp - 0x90]
push dword [edi + 0x1b0]
call eax
add esp, 0xc
xor dl, dl
mov ecx, edi
mov esi, eax
call fcn.00a4bb20
test esi, esi
je 0xa79e07
mov edx, ebx
call fcn.00a79c40
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00a8f813
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00a8f813
mov esp, ebp
pop ebp
ret
push str.Error_accept__ing_server_connect
push edi
call fcn.00a55cd0
add esp, 8
mov eax, 0x1e
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00a8f813
mov esp, ebp
pop ebp
ret
Function at 0xa7c000
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
lea eax, [edx - 0xc8]
push edi
xor edi, edi
mov ebx, dword [esi + 0xc]
cmp eax, 0x64
jb 0xa7c02e
push str.Couldnt_set_desired_mode
push esi
call fcn.00a55cd0
add esp, 8
lea eax, [edi + 0x11]
pop edi
pop esi
pop ebx
pop ebp
ret
cmp edx, 0xc8
je 0xa7c045
push edx
push str.Got_a__03d_response_code_instead_of_the_assumed_200
push esi
call fcn.00a55d90
add esp, 0xc
mov al, byte [ebp + 8]
cmp al, 0x13
jne 0xa7c05c
mov edx, ebx
mov ecx, esi
call fcn.00a7afc0
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp al, 0x14
jne 0xa7c06e
mov ecx, esi
call fcn.00a7b010
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp al, 0x15
jne 0xa7c080
mov ecx, esi
call fcn.00a7b120
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp al, 0x16
jne 0xa7c08d
mov ecx, esi
call fcn.00a7b130
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov byte [ebp - 4], 0xff
mov ecx, dword [ebp + 8]
mov ebx, edx
push 0
mov byte [ebp - 2], cl
lea ecx, [ebp - 4]
mov eax, dword [esi + 0xc]
push 3
push ecx
mov byte [ebp - 3], bl
push dword [eax + 0x120]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0xa7eba7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.00a55cd0
add esp, 0xc
push dword [ebp + 8]
mov edx, str.SENT
mov ecx, esi
push ebx
call fcn.00a7ea60
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov eax, dword [edi + 0x124]
mov ecx, dword [eax + esi*4 + 8]
sub ecx, 0
je 0xa7eea4
sub ecx, 2
je 0xa7ee54
sub ecx, 1
jne 0xa7ee84
mov ecx, dword [eax + esi*4 + 0x408]
sub ecx, 0
je 0xa7ee48
sub ecx, 1
jne 0xa7ee84
mov dword [eax + esi*4 + 8], 1
mov dword [eax + esi*4 + 0x408], ecx
pop edi
pop esi
pop ebx
ret
mov dword [eax + esi*4 + 8], 0
pop edi
pop esi
pop ebx
ret
mov ecx, dword [eax + esi*4 + 0x408]
sub ecx, 0
je 0xa7ee88
sub ecx, 1
jne 0xa7ee84
mov dword [eax + esi*4 + 8], 3
mov dword [eax + esi*4 + 0x1008], ecx
push esi
mov edx, 0xfc
mov ecx, edi
call fcn.00a7eb60
add esp, 4
pop edi
pop esi
pop ebx
ret
cmp dword [eax + esi*4 + 0x1808], 1
mov dword [eax + esi*4 + 8], 1
jne 0xa7ee84
mov ecx, edi
pop edi
pop esi
pop ebx
jmp fcn.00a7f8c0
cmp dword [eax + esi*4 + 0x808], 1
lea ebx, [eax + esi*4]
jne 0xa7eede
push esi
mov edx, 0xfb
mov dword [eax + esi*4 + 8], 1
mov ecx, edi
call fcn.00a7eb60
add esp, 4
cmp dword [ebx + 0x1808], 1
jne 0xa7ee84
mov edx, esi
mov ecx, edi
pop edi
pop esi
pop ebx
jmp fcn.00a7f8c0
cmp dword [ebx + 0x1808], 1
jne 0xa7ee74
push esi
mov edx, 0xfb
mov dword [eax + esi*4 + 8], 1
mov ecx, edi
call fcn.00a7eb60
add esp, 4
mov ecx, edi
mov edx, esi
pop edi
pop esi
pop ebx
jmp fcn.00a7f8c0
Function at 0xa7f640
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0xaf8008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov edx, 0x3c
push esi
push edi
mov dword [ebp - 0x810], ebx
mov edi, dword [ebx + 0x124]
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x80c], eax
mov eax, dword [edi + 0x1eb8]
sub eax, dword [edi + 0x1eb4]
add eax, 2
push eax
lea eax, [edi + 0x1cb4]
push eax
call fcn.00a7efa0
mov eax, dword [edi + 0x1eb4]
add esp, 8
mov cl, byte [eax]
inc eax
mov dword [edi + 0x1eb4], eax
cmp cl, 0x18
je 0xa7f808
cmp cl, 0x23
je 0xa7f7e1
cmp cl, 0x27
jne 0xa7f8a0
push 0
push 0x27
push 0xfa
push 0xff
push str._c_c_c_c
lea eax, [ebp - 0x808]
push 0x800
push eax
call fcn.00a590c0
mov edi, dword [edi + 0x1cb0]
add esp, 0x1c
mov esi, 4
test edi, edi
je 0xa7f77b
mov edx, dword [edi]
mov eax, edx
lea ebx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xa7f700
sub eax, ebx
inc eax
add eax, esi
cmp eax, 0x7fa
jae 0xa7f76e
push 0x2c
push edx
call fcn.00a93f00
mov edx, eax
mov ebx, 0x800
lea eax, [ebp - 0x808]
add esp, 8
sub ebx, esi
add eax, esi
test edx, edx
jne 0xa7f747
push dword [edi]
push edx
push str._c_s
push ebx
push eax
call fcn.00a590c0
add esp, 0x14
jmp 0xa7f76c
mov ecx, dword [edi]
lea eax, [edx + 1]
push eax
push 1
push ecx
sub edx, ecx
lea eax, [ebp - 0x808]
push edx
push 0
push str._c_.s_c_s
add eax, esi
push ebx
push eax
call fcn.00a590c0
add esp, 0x20
add esi, eax
mov edi, dword [edi + 4]
test edi, edi
jne 0xa7f6f5
mov ebx, dword [ebp - 0x810]
push 0xf0
push 0xff
mov eax, 0x800
sub eax, esi
push str._c_c
push eax
lea eax, [ebp - 0x808]
add eax, esi
push eax
call fcn.00a590c0
add esp, 0x14
lea eax, [esi + 2]
push 0
push eax
lea eax, [ebp - 0x808]
push eax
mov eax, dword [ebp - 0x80c]
push dword [eax + 0x120]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0xa7f7db
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.00a55cd0
add esp, 0xc
push esi
jmp 0xa7f88a
add edi, 0x1c28
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0xa7f7f0
push 0xf0
push 0xff
push edi
push 0
push 0x23
jmp 0xa7f829
add edi, 0x1c08
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0xa7f813
push 0xf0
push 0xff
push edi
push 0
push 0x18
push 0xfa
push 0xff
push str._c_c_c_c_s_c_c
sub ecx, edx
lea eax, [ebp - 0x808]
push 0x800
push eax
lea esi, [ecx + 6]
call fcn.00a590c0
add esp, 0x28
lea eax, [ebp - 0x808]
push 0
push esi
push eax
mov eax, dword [ebp - 0x80c]
push dword [eax + 0x120]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0xa7f886
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.00a55cd0
add esp, 0xc
lea eax, [esi - 2]
push eax
lea eax, [ebp - 0x806]
mov edx, 0x3e
push eax
mov ecx, ebx
call fcn.00a7efa0
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00a8f813
mov esp, ebp
pop ebp
ret
Function at 0xa80800
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [eax], ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
push edx
push ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0xa8096d
push esi
mov esi, dword [ebp - 0x10]
test esi, esi
je 0xa80959
push edi
mov eax, dword [esi + 0x14]
test eax, eax
je 0xa80850
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xa80842
sub eax, edx
lea ecx, [eax + 1]
jmp 0xa80852
xor ecx, ecx
mov eax, dword [esi + 4]
mov dword [ebp - 8], ecx
cmp eax, 2
jne 0xa80864
mov eax, 0x10
jmp 0xa80872
cmp eax, 0x17
jne 0xa80917
mov eax, 0x1c
cmp dword [esi + 0x18], 0
mov dword [ebp - 4], eax
je 0xa80917
mov edx, dword [esi + 0x10]
test edx, edx
je 0xa80917
cmp edx, eax
jb 0xa80917
add ecx, 0x20
add eax, ecx
push eax
call dword [0xaf897c]
mov edi, eax
add esp, 4
test edi, edi
je 0xa8094e
mov ecx, dword [esi]
mov dword [edi], ecx
mov ecx, dword [esi + 4]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 8]
mov dword [edi + 8], ecx
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 4]
mov dword [edi + 0xc], eax
lea eax, [edi + 0x20]
push ecx
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], eax
push dword [esi + 0x18]
push eax
call fcn.00a918f0
mov edx, dword [ebp - 8]
add esp, 0xc
test edx, edx
je 0xa80905
mov eax, dword [edi + 0x18]
add eax, dword [ebp - 4]
push edx
mov dword [edi + 0x14], eax
push dword [esi + 0x14]
push eax
call fcn.00a918f0
add esp, 0xc
mov eax, dword [ebp - 0xc]
test ebx, ebx
cmove ebx, edi
test eax, eax
je 0xa80914
mov dword [eax + 0x1c], edi
mov dword [ebp - 0xc], edi
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0xa80838
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
pop edi
test eax, eax
je 0xa80934
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0xa80955
mov ecx, ebx
call fcn.00a807e0
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 8
jmp 0xa80925
test ebx, ebx
jne 0xa80965
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0xa85240
Capabilities:
Create thread

Disassembly:
push 0
push 0
push edx
push 0xa56150
push 0
push 0
call fcn.00a955d3
add esp, 0x18
test eax, eax
je 0xa8525f
cmp eax, 0xffffffff
jne 0xa85261
xor eax, eax
ret