joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1017f5b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov edx, dword [eax + 0x328]
push ebx
mov ebx, dword [eax + ecx*4 + 0x158]
push esi
lea esi, [ecx + 0x18]
shl esi, 4
add esi, eax
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [edx + 0x40], 3
je 0x1017f65d
cmp dword [eax + ecx*4 + 0x170], 0x1017f2d0
jne 0x1017f65d
cmp dword [esi], 0
je 0x1017f5ee
test edi, edi
je 0x1017f65d
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.101a86c0
add esp, 0x14
cmp eax, 0xffffffff
je 0x1017f65d
test al, 1
je 0x1017f65d
cmp dword [esi], 0
jne 0x1017f646
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x530]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x10263bac]
add esp, 4
mov dword [esi], eax
test eax, eax
jne 0x1017f635
pop edi
pop esi
mov eax, 0x1b
pop ebx
ret
mov edi, dword [esi + 4]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov ecx, dword [esi]
add ecx, dword [esi + 8]
push 0
push edi
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x1017f65d
add dword [esi + 8], eax
pop edi
pop esi
xor eax, eax
pop ebx
ret

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

Disassembly:
sub esp, 0x104
mov eax, dword [0x10263fdc]
xor eax, esp
mov dword [esp + 0x100], eax
mov ecx, dword [esp + 0x10c]
push ebx
mov ebx, dword [esp + 0x114]
push ebp
push esi
mov esi, dword [esp + 0x114]
mov eax, dword [esi + 0xc]
mov ebp, dword [eax + ecx*4 + 0x158]
push edi
mov edi, dword [esp + 0x128]
push esi
call fcn.1017f5b0
add esp, 4
test eax, eax
je 0x1017f6c6
mov dword [edi], 0x1b
or eax, 0xffffffff
jmp 0x1017f72c
mov eax, dword [esp + 0x124]
push 0
push eax
push ebx
push ebp
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
mov dword [edi], 0
cmp ebx, 0xffffffff
jne 0x1017f72a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x1017f6ff
xor ebx, ebx
mov dword [edi], 0x51
jmp 0x1017f72a
push 0x100
lea ecx, [esp + 0x14]
push ecx
push ebp
call fcn.101af230
push eax
push str.Send_failure:__s
push esi
call fcn.1017f190
mov dword [esi + 0xa70], ebp
add esp, 0x18
mov dword [edi], 0x37
mov eax, ebx
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.101ce9e2
add esp, 0x104
ret
Function at 0x10182bc0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + eax]
mov ebx, 0x1505
cmp esi, edi
jae 0x10182bee
movzx eax, byte [esi]
push eax
call fcn.10187360
mov edx, ebx
shl edx, 5
movsx ecx, al
add ebx, edx
inc esi
add esp, 4
xor ebx, ecx
cmp esi, edi
jb 0x10182bd1
pop edi
pop esi
movzx eax, bl
pop ebx
ret

Function at 0x10184c00
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x10263fdc]
xor eax, esp
mov dword [esp + 0x14], eax
xor eax, eax
cmp dword [esi + 0x7e8], eax
push 4
lea ecx, [esp + 4]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x10184c54
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.1017f0b0
add esp, 0xc
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.101ce9e2
add esp, 0x18
ret
mov edx, dword [esi + 0x700]
push edx
mov dword [esp + 0xc], 1
call fcn.10181a20
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x704]
push eax
call fcn.10181a20
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0xc
lea edx, [esp + 0x20]
push edx
push 0x98000004
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x10184ccd
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.1017f0b0
add esp, 0x10
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.101ce9e2
add esp, 0x18
ret
Function at 0x101855d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x188
mov eax, dword [0x10263fdc]
xor eax, esp
mov dword [esp + 0x184], eax
push ebx
mov ebx, dword [esp + 0x19c]
push esi
mov esi, dword [esp + 0x194]
push edi
mov edi, dword [esp + 0x1a0]
push 0x80
lea eax, [esp + 0x14]
push 0
push eax
mov dword [esp + 0x18], 0x80
call sub.MSVCR100.dll_memset
mov eax, dword [esp + 0x1a8]
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x10185658
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x100
lea ecx, [esp + 0x94]
mov edi, eax
push ecx
push edi
call fcn.101af230
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
jmp 0x1018569c
mov edx, dword [esp + 0xc]
push ebx
push edi
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.10185420
add esp, 0x10
test eax, eax
jne 0x101856a5
mov edi, dword [sym.imp.MSVCR100.dll__errno]
call edi
mov ebx, eax
call edi
mov edx, dword [ebx]
push 0x100
lea ecx, [esp + 0x94]
push ecx
push edx
mov edi, eax
call fcn.101af230
push eax
mov eax, dword [edi]
push eax
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push esi
call fcn.1017f190
add esp, 0x1c
mov ecx, dword [esp + 0x190]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101ce9e2
add esp, 0x188
ret

Function at 0x101858c0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x108
mov eax, dword [0x10263fdc]
xor eax, esp
mov dword [esp + 0x104], eax
push 4
lea eax, [esp + 4]
push eax
push 1
push 6
push ecx
mov dword [esp + 0x14], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x10185917
push 0x100
lea edx, [esp + 8]
push edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.101af230
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.1017f0b0
add esp, 0x18
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.101ce9e2
add esp, 0x108
ret

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

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x1ac], 0
je 0x101859ed
push eax
call fcn.10176820
add esp, 4
test eax, eax
jne 0x10185a0d
xor eax, eax
ret
mov eax, dword [eax + 0x158]
cmp eax, 0xffffffff
je 0x101859ea
push 2
push 1
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x10185a0d
ret
mov eax, 1
ret
Function at 0x101879e0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x18]
mov dword [eax], 0
mov eax, dword [esp + 0x1c]
push edx
push eax
push ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 4], eax
test eax, eax
jne 0x10187b99
push esi
push edi
mov edi, dword [esp + 0x14]
test edi, edi
je 0x10187b76
push ebx
push ebp
mov eax, dword [edi + 0x14]
test eax, eax
je 0x10187a4e
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10187a40
sub eax, edx
lea ebx, [eax + 1]
jmp 0x10187a50
xor ebx, ebx
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x10187a5d
lea ebp, [eax + 0xe]
jmp 0x10187a69
cmp eax, 0x17
jne 0x10187b03
lea ebp, [eax + 5]
cmp dword [edi + 0x18], 0
je 0x10187b03
mov eax, dword [edi + 0x10]
test eax, eax
je 0x10187b03
cmp eax, ebp
jb 0x10187b03
lea edx, [ebx + ebp + 0x20]
push edx
call dword [0x10263bac]
mov esi, eax
xor eax, eax
add esp, 4
cmp esi, eax
je 0x10187b10
mov ecx, dword [edi]
mov dword [esi], ecx
mov edx, dword [edi + 4]
mov dword [esi + 4], edx
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x20]
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], ebp
mov dword [esi + 0x18], eax
mov ecx, dword [edi + 0x18]
push ebp
push ecx
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
test ebx, ebx
je 0x10187ae9
mov eax, dword [esi + 0x18]
add eax, ebp
mov dword [esi + 0x14], eax
mov ecx, dword [edi + 0x14]
push ebx
push ecx
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
cmp dword [esp + 0x10], 0
jne 0x10187af4
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10187aff
mov dword [eax + 0x1c], esi
mov dword [esp + 0x18], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x10187a33
jmp 0x10187b18
mov dword [esp + 0x14], 8
mov eax, dword [esp + 0x1c]
pop ebp
pop ebx
test eax, eax
je 0x10187b29
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [esp + 0xc], 0
je 0x10187b6f
mov eax, dword [esp + 8]
test eax, eax
je 0x10187b53
jmp 0x10187b40
mov esi, dword [eax + 0x1c]
push eax
call dword [0x10263bb0]
add esp, 4
mov eax, esi
test esi, esi
jne 0x10187b40
mov eax, dword [esp + 0x28]
mov dword [esp + 8], 0
mov edx, dword [esp + 8]
pop edi
mov dword [eax], edx
mov eax, dword [esp + 8]
pop esi
add esp, 0x10
ret
cmp dword [esp + 8], 0
jne 0x10187b89
push 0x2af9
mov dword [esp + 0x10], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 8]
pop edi
mov dword [eax], edx
mov eax, dword [esp + 8]
pop esi
add esp, 0x10
ret
Function at 0x101895b0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call dword [sym.imp.MSVCR100.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x101895d4
cmp eax, 0xffffffff
jne 0x101895d6
xor eax, eax
ret

Function at 0x101897c0
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x101897d2
mov eax, dword [eax + 0x7c]
mov eax, dword [eax + 0xf0]
ret
push esi
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x101897ef
xor esi, esi
xor eax, eax
test esi, esi
setg al
pop esi
ret
push eax
mov esi, 1
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
test esi, esi
setg al
pop esi
ret

Function at 0x10189810
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 8]
cmp byte [eax + 0x108], 2
jne 0x10189861
mov eax, dword [esp + 4]
test eax, eax
je 0x1018982f
mov ecx, dword [eax + 0x7c]
mov eax, dword [ecx + 0xf0]
ret
push esi
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x1018984c
xor esi, esi
xor eax, eax
test esi, esi
setg al
pop esi
ret
push eax
mov esi, 1
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
test esi, esi
setg al
pop esi
ret
mov eax, 1
ret
Function at 0x10189b50
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1b8
mov eax, dword [0x10263fdc]
xor eax, esp
mov dword [esp + 0x1b4], eax
cmp dword [0x10267eb4], 0
push esi
mov esi, ecx
mov dword [esp + 0x18], esi
jne 0x10189b87
call fcn.100587d0
test eax, eax
je 0x10189b9f
mov dword [0x10267eb4], 1
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1b4]
xor ecx, esp
call fcn.101ce9e2
add esp, 0x1b8
ret
mov eax, dword [esi + 0x610]
test eax, eax
je 0x10189bc0
push 0x400
push eax
call fcn.101befe0
add esp, 8
call fcn.100587d0
test eax, eax
jne 0x10189b87
push ebx
push ebp
push edi
mov esi, 2
lea edi, [esp + 0x84]
mov dword [esp + 0x20], 4
jmp 0x10189be0
lea eax, [esp + 0x34]
push eax
call fcn.10189620
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov ebx, dword [eax]
mov ebp, dword [eax + 4]
push 0
push 1
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
call fcn.101a8260
add esp, 0xc
push ebp
push ebx
lea eax, [esi - 1]
push 0
push eax
call fcn.101cf330
lea ecx, [esp + 0x74]
mov ebx, esi
imul ebx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
call fcn.10189620
mov eax, dword [eax + 8]
cdq
mov dword [esp + 0x34], edx
lea edx, [esp + 0x68]
push edx
mov ebp, eax
call fcn.10189620
mov ecx, dword [esp + 0x38]
add esp, 8
add ebp, dword [eax]
push 0
adc ecx, dword [eax + 4]
lea edx, [esi + 1]
push edx
push ecx
push ebp
mov dword [esp + 0x38], edx
call fcn.101cf330
shld edx, eax, 8
xor dword [esp + 0x14], edx
shl eax, 8
xor dword [esp + 0x10], eax
lea eax, [esp + 0x44]
push eax
call fcn.10189620
lea ecx, [esp + 0x58]
push ecx
lea ebp, [eax + 8]
call fcn.10189620
mov edx, dword [ebp]
add edx, dword [eax]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add esi, 2
imul edx, esi
mov esi, dword [esp + 0x30]
shl edx, 0x10
mov dword [edi], eax
xor ebx, edx
mov edx, dword [esp + 0x24]
mov dword [edi + 4], ecx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], edx
add esp, 8
add edi, 0x10
dec dword [esp + 0x20]
jne 0x10189be0
fld qword [0x1023aab8]
sub esp, 8
fstp qword [esp]
lea eax, [esp + 0x8c]
push 0x40
push eax
call fcn.10058760
add esp, 0x10
call fcn.100587d0
test eax, eax
je 0x10189bc3
lea ecx, [esp + 0xc4]
push 0x100
push ecx
mov byte [esp + 0xcc], 0
call fcn.101bf1f0
add esp, 8
cmp byte [esp + 0xc4], 0
pop edi
pop ebp
pop ebx
je 0x10189d38
lea edx, [esp + 0xb8]
push 0x400
push edx
call fcn.101befe0
add esp, 8
call fcn.100587d0
test eax, eax
jne 0x10189b87
mov eax, dword [esp + 0x18]
push str.libcurl_is_now_using_a_weak_random_seed__n
push eax
call fcn.1017f0b0
add esp, 8
call fcn.100587d0
mov ecx, dword [esp + 0x1b8]
neg eax
sbb eax, eax
and eax, 0xffffffdd
pop esi
xor ecx, esp
add eax, 0x23
call fcn.101ce9e2
add esp, 0x1b8
ret
Function at 0x10190b80
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
push esi
xor ebp, ebp
push edi
lea esi, [ebp + 1]
push esi
push ebp
call dword [0x10263bb4]
mov edi, eax
add esp, 8
test edi, edi
je 0x10190b48
lea ebx, [ebx]
mov eax, dword [esp + 0x14]
push esi
push edi
push eax
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x10190b60
cmp esi, ebx
je 0x10190b60
cmp esi, 0x8000
ja 0x10190b60
cmp esi, ebx
jb 0x10190b59
push esi
push edi
call dword [0x10263bb4]
mov edi, eax
add esp, 8
test edi, edi
jne 0x10190b10
push ebp
call dword [0x10263bb0]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [0x10263bb0]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
jmp 0x10190af0
Function at 0x10195e70
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
push str.Connected_for_receive
push 0x101f1768
push eax
call fcn.1017f0b0
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.10194e50
test eax, eax
jne 0x10195e9e
mov ecx, esi
jmp fcn.10195280
ret
Function at 0x10196310
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x88
mov eax, dword [0x10263fdc]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [ebx + 0xc]
push ebp
push esi
mov esi, dword [eax + 0x3a0]
push edi
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x10], 0x80
mov eax, dword [esi + 0x14c]
mov ecx, dword [esi + 0x158]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esi + 0x14]
push 0
add eax, 4
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x140], 0
mov dword [esi + 0x144], eax
jne 0x10196391
mov eax, dword [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esi + 0xc0]
push edx
call sub.MSVCR100.dll_memcpy
mov eax, dword [esp + 0x18]
add esp, 0xc
mov dword [esi + 0x140], eax
mov eax, dword [esi + 0x144]
cmp eax, 4
jge 0x101963cb
push str.Received_too_short_packet
push ebx
call fcn.1017f190
add esp, 8
mov dword [esi + 0xc], 7
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.101ce9e2
add esp, 0x88
ret
mov edx, dword [esi + 0x158]
movzx ecx, byte [edx]
movzx edx, byte [edx + 1]
shl cx, 8
movzx ecx, cx
or ecx, edx
mov dword [esi + 0xc], ecx
add ecx, 0xfffffffd
cmp ecx, 3
ja case.default.0x101963f0
jmp dword [ecx*4 + 0x1019656c]
cmp eax, 4
jle case.0x101963f0.4
mov ecx, dword [esi + 0x158]
movzx edx, byte [ecx + 2]
movzx ecx, byte [ecx + 3]
shl dx, 8
movzx edx, dx
or edx, ecx
movzx ecx, word [esi + 0x154]
inc ecx
and ecx, 0xffff
cmp ecx, edx
jne case.0x101963f0.4
mov edx, dword [esi + 0x158]
add eax, 0xfffffffc
push eax
add edx, 4
push edx
push 1
push ebx
call fcn.1017f580
mov edi, eax
add esp, 0x10
test edi, edi
je 0x10196472
mov ecx, 5
mov eax, esi
call fcn.10196290
mov eax, edi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.101ce9e2
add esp, 0x88
ret
mov eax, dword [esi + 0x144]
sub eax, 4
cdq
add dword [ebx + 0x98], eax
mov ecx, dword [ebx + 0x98]
adc dword [ebx + 0x9c], edx
mov eax, dword [ebx + 0x9c]
push eax
push ecx
push ebx
call fcn.1018f850
jmp 0x1019652f
mov edi, dword [esi + 0x158]
lea ebp, [eax - 4]
mov eax, dword [esi + 0x158]
movzx edx, byte [eax + 2]
shl dx, 8
movzx ecx, dx
movzx edx, byte [eax + 3]
push ebp
add edi, 4
or ecx, edx
push 0
push edi
mov dword [esi + 8], ecx
call dword [sym.imp.MSVCR100.dll_memchr]
add esp, 0xc
test eax, eax
je case.0x101963f0.4
sub eax, edi
cmp eax, ebp
jae case.0x101963f0.4
push edi
push str.TFTP_error:__s_n
push ebx
call fcn.1017f0b0
jmp 0x1019652f
add eax, 0xfffffffe
push eax
mov eax, dword [esi + 0x158]
add eax, 2
push eax
push esi
call fcn.10194fc0
add esp, 0xc
test eax, eax
je case.0x101963f0.4
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.101ce9e2
add esp, 0x88
ret
push str.Internal_error:_Unexpected_packet
push 0x101febc8
push ebx
call fcn.1017f190
add esp, 0xc
push ebx
call fcn.10190250
add esp, 4
test eax, eax
je 0x101963b1
mov ecx, 5
mov eax, esi
call fcn.10196290
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 0x2a
call fcn.101ce9e2
add esp, 0x88
ret
Function at 0x10196910
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov cl, byte [esp + 8]
mov eax, dword [edi + 0xc]
push 0
push 3
lea edx, [esp + 8]
mov byte [esp + 8], 0xff
mov byte [esp + 9], cl
mov byte [esp + 0xa], bl
mov eax, dword [eax + 0x158]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x10196954
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.1017f190
add esp, 0xc
push esi
mov esi, dword [esp + 0xc]
push str.SENT
mov eax, ebx
mov ecx, edi
call fcn.10196810
add esp, 4
pop esi
pop ecx
ret
Function at 0x10197680
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
mov eax, dword [esp + 8]
push ebp
mov ebp, dword [eax + 0x13c]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
jne 0x101977d2
push ebx
push esi
push edi
lea ebx, [ebp + 0x1cb4]
lea edi, [ebp + 0x1eb4]
mov dword [edi], ebx
cmp ebx, edi
jae 0x101976b8
mov byte [ebx], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x101976c3
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x101976ce
mov byte [eax], 0x1f
inc dword [edi]
movzx ecx, word [ebp + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push ecx
call esi
movzx edx, ax
movzx eax, word [ebp + 0x1caa]
push eax
mov dword [esp + 0x20], edx
call esi
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x10197700
mov dl, byte [esp + 0x1c]
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1019770e
mov dl, byte [esp + 0x1d]
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10197718
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10197722
mov byte [eax], ch
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1019772d
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10197738
mov byte [eax], 0xf0
inc dword [edi]
mov eax, dword [edi]
mov esi, dword [esp + 0x18]
mov dword [ebp + 0x1eb8], eax
sub eax, ebx
sub eax, 2
push eax
lea eax, [ebp + 0x1cb6]
push 0x3e
mov dword [edi], ebx
call fcn.10196b60
mov edi, dword [sym.imp.WS2_32.dll_send]
add esp, 8
push 0
push 3
push ebx
mov ebx, dword [esp + 0x1c]
mov edx, dword [ebx + 0x158]
push edx
call edi
test eax, eax
jns 0x1019778d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.1017f190
add esp, 0xc
lea eax, [ebp + 0x1cb7]
push eax
push esi
mov eax, 4
call fcn.10197410
mov ecx, dword [ebx + 0x158]
add esp, 8
push 0
push 2
add ebp, 0x1cbb
push ebp
push ecx
call edi
test eax, eax
jns 0x101977cf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.1017f190
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret
Function at 0x1019cf60
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x88
mov eax, dword [0x10263fdc]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
push esi
mov esi, dword [edi + 0xc]
mov ebp, dword [esi + 0x15c]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebp
or ebx, 0xffffffff
mov dword [esp + 0x18], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1019cfbb
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push ebp
mov dword [esp + 0x18], 0x80
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
push ebp
push esi
push edi
call fcn.10185a20
add esp, 0xc
cmp ebx, 0xffffffff
jne 0x1019cff6
push str.Error_accept__ing_server_connect
push edi
call fcn.1017f190
add esp, 8
pop esi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.101ce9e2
add esp, 0x88
ret
push str.Connection_accepted_from_server_n
push edi
call fcn.1017f0b0
push 1
push ebx
mov dword [esi + 0x2ac], 0
mov dword [esi + 0x15c], ebx
call fcn.101ad160
add esp, 0x10
mov dword [esi + 0x2f8], 1
cmp dword [edi + 0x1e0], 0
je 0x1019d080
push 1
push edi
call fcn.1017cbe0
mov ecx, dword [edi + 0x1e4]
mov edx, dword [edi + 0x1e0]
push 1
push ebx
push ecx
call edx
push 0
push edi
mov ebx, eax
call fcn.1017cbe0
add esp, 0x1c
test ebx, ebx
je 0x1019d080
push edi
call fcn.1019cec0
add esp, 4
pop esi
pop ebp
mov eax, 0x2a
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.101ce9e2
add esp, 0x88
ret
mov ecx, dword [esp + 0x90]
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.101ce9e2
add esp, 0x88
ret
Function at 0x101a0b40
Capabilities:
Check http status code

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, eax
mov ebx, dword [edi + 0xc]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
xor esi, esi
cmp eax, 2
je 0x101a0b7b
push str.Couldnt_set_desired_mode
push edi
call fcn.1017f190
add esp, 8
pop edi
lea eax, [esi + 0x11]
pop esi
pop ebp
pop ebx
ret
cmp ecx, 0xc8
je 0x101a0b92
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push edi
call fcn.1017f0b0
add esp, 0xc
cmp ebp, 0x13
jne 0x101a0ba8
push ebx
push edi
call fcn.101a0ac0
add esp, 8
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x14
jne 0x101a0bb9
call fcn.1019dc00
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x15
jne 0x101a0bc2
push 0xd
jmp 0x101a0bc9
cmp ebp, 0x16
jne 0x101a0bd7
push 0xe
push 1
mov eax, edi
call fcn.1019fd40
add esp, 8
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret