joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18009a030
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x180106f10]
xor rax, rsp
mov qword [rsp + 0x130], rax
cmp dword [rcx + 0xa4], 2
mov rsi, qword [rcx]
mov rbx, rdx
mov rdi, rcx
je 0x18009a214
cmp dword [rcx + 0x27c], 0
jne 0x18009a20c
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0xb0]
mov rcx, rbx
mov dword [rsp + 0x20], 0x80
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x18009a0c5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.18008ab20
lea rdx, str.getpeername___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.180097330
jmp 0x18009a214
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x80
mov dword [rsp + 0x20], 0x80
call fcn.18005cae0
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x18009a122
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.18008ab20
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.180097330
jmp 0x18009a214
lea r8, [rdi + 0x120]
lea rdx, [rdi + 0xf0]
lea rcx, [rsp + 0xb0]
call fcn.180099fb0
test eax, eax
jne 0x18009a16d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.18008ab20
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.180097330
jmp 0x18009a214
mov rax, qword [rdi + 0xf0]
lea r8, [rdi + 0x154]
lea rdx, [rdi + 0x124]
mov qword [rdi + 0x70], rax
mov rax, qword [rdi + 0xf8]
lea rcx, [rsp + 0x30]
mov qword [rdi + 0x78], rax
mov rax, qword [rdi + 0x100]
mov qword [rdi + 0x80], rax
mov rax, qword [rdi + 0x108]
mov qword [rdi + 0x88], rax
mov rax, qword [rdi + 0x110]
mov qword [rdi + 0x90], rax
mov eax, dword [rdi + 0x118]
mov dword [rdi + 0x98], eax
movzx eax, word [rdi + 0x11c]
mov word [rdi + 0x9c], ax
call fcn.180099fb0
test eax, eax
jne 0x18009a20c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.18008ab20
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.180097330
jmp 0x18009a214
mov rcx, rdi
call fcn.180099ec0
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1800564b0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x18009a240
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [rcx]
mov r10, rdx
mov edx, 6
mov eax, dword [rbx + 0x4d4]
mov rdi, rcx
lea r9, [rsp + 0x40]
lea r8d, [rdx - 5]
mov rcx, r10
mov dword [rsp + 0x20], 4
mov dword [rsp + 0x40], eax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x18009a2ad
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rdi
mov edx, eax
call fcn.18008ab20
lea rdx, str.Could_not_set_TCP_NODELAY:__s_n
mov rcx, rbx
mov r8, rax
call fcn.180097280
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rdx, str.TCP_NODELAY_set_n
mov rcx, rbx
call fcn.180097280
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x18009a2d0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0xf0
mov rax, qword [0x180106f10]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov eax, dword [0x18010a898]
mov rbx, rcx
mov dword [rsp + 0x30], 0x4020
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x38], 4
test eax, eax
jne 0x18009a3a8
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x9c
call fcn.18005cae0
mov r8b, 3
mov edx, 2
xor ecx, ecx
mov dword [rsp + 0x40], 0x9c
mov dword [rsp + 0x44], 6
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov edx, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov edx, reloc.WLDAP32.dll_Ordinal_32
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov edx, reloc.WS2_32.dll_recv
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea rcx, [rsp + 0x40]
mov edx, 0x33
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x18009a39c
mov dword [0x18010a898], 2
jmp 0x18009a3ff
mov dword [0x18010a898], 1
jmp 0x18009a3ad
cmp eax, 2
je 0x18009a3ff
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x18009a3de
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x34], eax
jg 0x18009a3ff
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1800564b0
add rsp, 0xf0
pop rbx
ret
Function at 0x18009a440
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, qword [rcx + 0x830]
mov rsi, rdx
mov rdi, rcx
test rbx, rbx
je 0x18009a4b3
mov rcx, qword [rcx + 0x80]
test rcx, rcx
jne 0x18009a473
cmp qword [rdi + 0x78], rcx
je 0x18009a4b3
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x28], 0
test rcx, rcx
jne 0x18009a489
mov rcx, qword [rdi + 0x78]
lea r8, [0x18009a420]
lea rdx, [rsp + 0x20]
add rcx, 0xc0
call fcn.1800b93e0
cmp dword [rsp + 0x28], 0
jne 0x18009a4c7
mov qword [rdi + 0x830], 0
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test rsi, rsi
je 0x18009a4cf
mov qword [rsi], rbx
cmp dword [rbx + 0x1f0], 0
mov rdi, qword [rbx + 0x1a8]
jne 0x18009a4b3
mov r9d, 2
lea rdx, [rsp + 0x40]
mov rcx, rdi
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
or rcx, 0xffffffffffffffff
test eax, eax
cmove rdi, rcx
mov rax, rdi
add rsp, 0x30
pop rdi
ret
Function at 0x18009a660
Capabilities:
Connect socket

Disassembly:
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x110
mov rax, qword [0x180106f10]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rbp, qword [rcx]
mov r13, r8
mov qword [r8], 0xffffffffffffffff
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x20]
mov rsi, rcx
xor r14d, r14d
call fcn.18009a590
mov edi, eax
test eax, eax
je 0x18009a6b0
xor eax, eax
jmp 0x18009a8e5
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x108], rbx
call fcn.180099fb0
test eax, eax
jne 0x18009a70c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov edx, eax
mov ebx, eax
call fcn.18008ab20
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rbp
call fcn.180097330
mov rdx, qword [rsp + 0x20]
mov rcx, rsi
call fcn.18009a520
jmp 0x18009a8db
lea r8, [rsp + 0xc0]
lea rdx, str.__Trying__s..._n
mov rcx, rbp
mov qword [rsp + 0x100], r12
call fcn.180097280
cmp dword [rsp + 0x30], 2
mov rbx, qword [rsp + 0x20]
jne 0x18009a75a
cmp dword [rsp + 0x34], 1
jne 0x18009a75a
mov r12d, 1
cmp dword [rbp + 0x4d4], r14d
je 0x18009a75d
mov rdx, rbx
mov rcx, rsi
call fcn.18009a240
jmp 0x18009a75d
xor r12d, r12d
mov rcx, rbx
call fcn.18009a2d0
test r12d, r12d
mov r12, qword [rsp + 0x100]
je 0x18009a786
cmp dword [rbp + 0x6a4], r14d
je 0x18009a786
mov rdx, rbx
mov rcx, rbp
call fcn.1800997c0
mov rax, qword [rbp + 0x278]
test rax, rax
je 0x18009a7aa
mov rcx, qword [rbp + 0x280]
xor r8d, r8d
mov rdx, rbx
call rax
cmp eax, 2
jne 0x18009a7f1
lea r14d, [rax - 1]
cmp dword [rsp + 0x30], 2
jne 0x18009a80a
lea rcx, [rsp + 0x40]
call fcn.1800ba8e0
mov r8d, dword [rsp + 0x30]
mov rdx, rbx
mov r9d, eax
mov rcx, rsi
call fcn.1800999c0
mov edi, eax
test eax, eax
je 0x18009a80a
mov rdx, rbx
mov rcx, rsi
call fcn.18009a520
mov eax, 7
cmp edi, 1
cmove edi, eax
mov eax, edi
jmp 0x18009a8dd
test eax, eax
je 0x18009a7aa
mov rdx, rbx
mov rcx, rsi
call fcn.18009a520
mov eax, Ordinal_46
jmp 0x18009a8dd
mov edx, 1
mov rcx, rbx
call fcn.1800ba910
call fcn.180096d30
cmp dword [rsi + 0x2e4], 1
mov qword [rsi + 0x2dc], rax
jle 0x18009a83a
mov edx, dword [rsi + 0x2e8]
mov rcx, rbp
call fcn.1800951a0
test r14d, r14d
jne 0x18009a8d7
cmp dword [rsi + 0xa4], 1
jne 0x18009a8d7
mov r8d, dword [rsp + 0x3c]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x18009a8cb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0xb
je 0x18009a8c1
cmp eax, 0x2732
jle 0x18009a883
cmp eax, 0x2734
jle 0x18009a8c1
mov edx, eax
mov rcx, rsi
call fcn.18008ab20
lea r8, [rsp + 0xc0]
lea rdx, str.Immediate_connect_fail_for__s:__s_n
mov r9, rax
mov rcx, rbp
call fcn.180097280
mov rdx, rbx
mov rcx, rsi
mov dword [rbp + 0x889c], edi
call fcn.18009a520
mov edi, 7
mov eax, edi
jmp 0x18009a8dd
xor edi, edi
mov qword [r13], rbx
mov eax, edi
jmp 0x18009a8dd
test edi, edi
jne 0x18009a8d3
mov qword [r13], rbx
mov eax, edi
jmp 0x18009a8dd
mov qword [r13], rbx
xor eax, eax
mov rbx, qword [rsp + 0x108]
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.1800564b0
add rsp, 0x110
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x18009c860
Capabilities:
Resolve dns

Disassembly:
push rbp
push rsi
push r12
push r13
push r14
sub rsp, 0x20
xor r14d, r14d
mov r13, r9
mov qword [r9], r14
lea r9, [rsp + 0x68]
mov rsi, r14
mov r12, r14
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebp, eax
test eax, eax
jne 0x18009c9ee
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x18009c9d6
mov qword [rsp + 0x58], rdi
nop dword [rax]
cmp dword [rbx + 4], 2
jne 0x18009c96d
cmp qword [rbx + 0x20], r14
je 0x18009c96d
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x18009c96d
cmp rax, 0x10
jb 0x18009c96d
mov ecx, Ordinal_50
call qword [fcn.180062e8c]
mov rdi, rax
test rax, rax
je 0x18009c9a6
mov ecx, dword [rbx]
mov dword [rax], ecx
mov ecx, dword [rbx + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rbx + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rbx + 0xc]
mov dword [rax + reloc.WS2_32.dll_recv], 0x10
mov dword [rax + 0xc], ecx
mov ecx, reloc.WS2_32.dll_recv
mov qword [rax + 0x20], r14
mov qword [rax + 0x18], r14
mov qword [rax + 0x28], r14
call qword [fcn.180062e8c]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x18009c996
mov rdx, qword [rbx + 0x20]
mov rcx, qword [rdx]
mov qword [rax], rcx
mov rcx, qword [rdx + 8]
mov qword [rax + 8], rcx
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x18009c959
call qword [fcn.180089480]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x18009c97c
test rsi, rsi
cmove rsi, rdi
test r12, r12
je 0x18009c96a
mov qword [r12 + 0x28], rdi
mov r12, rdi
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x18009c8b0
jmp 0x18009c9ab
mov rcx, qword [rdi + 0x20]
mov ebp, 8
call qword [fcn.180057358]
mov rcx, rdi
call qword [fcn.180057358]
jmp 0x18009c9ab
mov rcx, rdi
mov ebp, 8
call qword [fcn.180057358]
jmp 0x18009c9ab
mov ebp, 8
mov rcx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x58]
test rcx, rcx
je 0x18009c9c0
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebp, ebp
je 0x18009c9d1
mov rcx, rsi
call fcn.18009c810
mov rsi, r14
jmp 0x18009c9e3
test rsi, rsi
jne 0x18009c9e3
mov ebp, 0x2af9
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rbx, qword [rsp + 0x50]
mov qword [r13], rsi
mov eax, ebp
add rsp, 0x20
pop r14
pop r13
pop r12
pop rsi
pop rbp
ret

Function at 0x18009cdb0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor eax, eax
mov r9, rdx
mov r8, rcx
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call fcn.1800c2b64
test rax, rax
je 0x18009cdd9
cmp rax, 0xffffffffffffffff
jne 0x18009cddb
xor eax, eax
add rsp, 0x38
ret
Function at 0x1800a6390
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x180106f10]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0x520]
mov rdi, qword [rcx]
mov dword [rsp + 0x30], 0x80
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rbp, rcx
mov rcx, qword [rbx + 0x18]
lea rax, [rsp + 0x40]
add r8d, 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x1800a6432
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call fcn.18005ff50
mov r11d, dword [rsp + 0x30]
mov dword [rbx + 0x150], r11d
mov r9d, dword [rbx + 0x154]
cmp r9d, 4
jge 0x1800a6480
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.180097330
mov dword [rbx + 0xc], 7
xor eax, eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1800564b0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
lea rcx, [rbx + 0x168]
call fcn.1800a5040
movzx r8d, ax
mov dword [rbx + 0xc], r8d
sub r8d, 3
je 0x1800a6523
sub r8d, 1
je 0x1800a659a
sub r8d, 1
je 0x1800a64f3
cmp r8d, 1
je 0x1800a64cf
lea r8, str.Internal_error:_Unexpected_packet
lea rdx, [0x1800e3dc8]
mov rcx, rdi
call fcn.180097330
jmp 0x1800a659a
mov rdx, qword [rbx + 0x168]
lea r8d, [r9 - 2]
mov rcx, rbx
add rdx, 2
call fcn.1800a5140
test eax, eax
je 0x1800a659a
jmp 0x1800a6457
lea rcx, [rbx + 0x168]
call fcn.1800a5050
lea rdx, [0x1800dcb58]
mov rcx, rdi
movzx r8d, ax
mov dword [rbx + 8], r8d
mov r8, qword [rbx + 0x168]
add r8, 4
call fcn.180097280
jmp 0x1800a659a
cmp r9d, 4
jle 0x1800a659a
lea rcx, [rbx + 0x168]
call fcn.1800a5050
movzx ecx, word [rbx + 0x48]
inc ecx
cmp cx, ax
jne 0x1800a659a
mov r8, qword [rbx + 0x168]
lea eax, [r9 - 4]
mov edx, 1
add r8, 4
movsxd r9, eax
mov rcx, rbp
call fcn.1800978e0
mov esi, eax
test eax, eax
je 0x1800a6579
mov edx, 5
mov rcx, rbx
call fcn.1800a6310
mov eax, esi
jmp 0x1800a6457
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xb0], rax
mov rdx, qword [rdi + 0xb0]
call fcn.1800b68d0
mov rcx, rbp
call fcn.1800b6950
test eax, eax
je 0x1800a6455
mov edx, 5
mov rcx, rbx
call fcn.1800a6310
mov eax, Ordinal_46
jmp 0x1800a6457
Function at 0x1800a8100
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1d0
mov rax, qword [0x180106f10]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1800a8146
lea rdx, str.WSAStartup_failed___d_
mov r8d, eax
mov rcx, rbx
call fcn.180097330
jmp 0x1800a8175
call qword [sym.imp.WS2_32.dll_WSACleanup]
movzx r11d, word [rsp + 0x20]
cmp r11b, 2
jne 0x1800a8166
shr r11w, 8
test r11b, r11b
jne 0x1800a8166
xor eax, eax
jmp 0x1800a817a
lea rdx, str.insufficient_winsock_version_to_support_telnet
mov rcx, rbx
call fcn.180097330
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1800564b0
add rsp, 0x1d0
pop rbx
ret

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
xor r9d, r9d
mov rbx, rcx
mov rcx, qword [rcx + 0x1a8]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x11], dl
mov byte [rax + 0x12], r8b
lea r8d, [r9 + 3]
lea rdx, [rax + 0x10]
mov byte [rax + 0x10], 0xff
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1800a83de
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.180097330
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.1800a8240
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
movsxd r11, edx
mov rbx, rcx
mov r9, qword [rax + 0x1a8]
cmp r8d, 1
jne 0x1800a8487
mov r10d, dword [r9 + r11*4 + 0xc08]
test r10d, r10d
je 0x1800a8469
sub r10d, 2
je 0x1800a849e
cmp r10d, r8d
jne 0x1800a84d7
cmp dword [r9 + r11*4 + 0x1008], 0
jne 0x1800a84d7
mov dword [r9 + r11*4 + 0x1008], 1
add rsp, 0x20
pop rbx
ret
mov edx, 0xfd
mov r8d, r11d
mov dword [r9 + r11*4 + 0xc08], 2
add rsp, 0x20
pop rbx
jmp fcn.1800a8380
mov ecx, dword [r9 + r11*4 + 0xc08]
sub ecx, 1
je 0x1800a84bb
sub ecx, 1
je 0x1800a8448
cmp ecx, 1
jne 0x1800a84d7
cmp dword [r9 + r11*4 + 0x1008], 1
jne 0x1800a84d7
mov dword [r9 + r11*4 + 0x1008], 0
add rsp, 0x20
pop rbx
ret
mov edx, 0xfe
mov rcx, rbx
mov r8d, r11d
mov dword [r9 + r11*4 + 0xc08], 3
call fcn.1800a8380
add rsp, 0x20
pop rbx
ret
Function at 0x1800a84e0
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
movsxd r9, edx
mov r11, rcx
mov r8, qword [rax + 0x1a8]
mov r10d, dword [r8 + r9*4 + 0xc08]
test r10d, r10d
je 0x1800a859b
sub r10d, 2
je 0x1800a854c
cmp r10d, 1
jne 0x1800a8585
mov ecx, dword [r8 + r9*4 + 0x1008]
test ecx, ecx
je 0x1800a853b
cmp ecx, r10d
jne 0x1800a8585
mov dword [r8 + r9*4 + 0xc08], r10d
mov dword [r8 + r9*4 + 0x1008], 0
add rsp, 0x28
ret
mov dword [r8 + r9*4 + 0xc08], 0
add rsp, 0x28
ret
mov ecx, dword [r8 + r9*4 + 0x1008]
test ecx, ecx
je 0x1800a858a
cmp ecx, 1
jne 0x1800a8585
mov dword [r8 + r9*4 + 0xc08], 3
mov dword [r8 + r9*4 + 0x1008], 0
mov rcx, r11
mov r8d, edx
mov edx, 0xfe
call fcn.1800a8380
add rsp, 0x28
ret
mov dword [r8 + r9*4 + 0xc08], 1
add rsp, 0x28
ret
cmp dword [r8 + r9*4 + 0x1408], 1
jne 0x1800a8578
mov dword [r8 + r9*4 + 0xc08], 1
mov r8d, edx
mov edx, 0xfd
add rsp, 0x28
jmp fcn.1800a8380

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

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
movsxd r9, edx
mov r11, rcx
mov r8, qword [rax + 0x1a8]
mov r10d, dword [r8 + r9*4 + 0xc08]
sub r10d, 1
je 0x1800a8678
sub r10d, 1
je 0x1800a8650
cmp r10d, 1
jne 0x1800a868f
mov ecx, dword [r8 + r9*4 + 0x1008]
test ecx, ecx
je 0x1800a8641
cmp ecx, r10d
jne 0x1800a868f
xor eax, eax
mov dword [r8 + r9*4 + 0xc08], 2
mov rcx, r11
mov dword [r8 + r9*4 + 0x1008], eax
mov r8d, edx
mov edx, 0xfd
add rsp, 0x28
jmp fcn.1800a8380
xor eax, eax
mov dword [r8 + r9*4 + 0xc08], eax
add rsp, 0x28
ret
mov ecx, dword [r8 + r9*4 + 0x1008]
test ecx, ecx
je 0x1800a8641
cmp ecx, 1
jne 0x1800a868f
xor eax, eax
mov dword [r8 + r9*4 + 0xc08], eax
mov dword [r8 + r9*4 + 0x1008], eax
add rsp, 0x28
ret
xor eax, eax
mov dword [r8 + r9*4 + 0xc08], eax
mov r8d, edx
mov edx, 0xfe
call fcn.1800a8380
add rsp, 0x28
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
movsxd r11, edx
mov rbx, rcx
mov r9, qword [rax + 0x1a8]
cmp r8d, 1
jne 0x1800a870d
mov r10d, dword [r9 + r11*4 + 8]
test r10d, r10d
je 0x1800a86f2
sub r10d, 2
je 0x1800a8721
cmp r10d, r8d
jne 0x1800a8757
cmp dword [r9 + r11*4 + 0x408], 0
jne 0x1800a8757
mov dword [r9 + r11*4 + 0x408], 1
add rsp, 0x20
pop rbx
ret
mov edx, 0xfb
mov r8d, r11d
mov dword [r9 + r11*4 + 8], 2
add rsp, 0x20
pop rbx
jmp fcn.1800a8380
mov ecx, dword [r9 + r11*4 + 8]
sub ecx, 1
je 0x1800a873e
sub ecx, 1
je 0x1800a86d5
cmp ecx, 1
jne 0x1800a8757
cmp dword [r9 + r11*4 + 0x408], 1
jne 0x1800a8757
mov dword [r9 + r11*4 + 0x408], 0
add rsp, 0x20
pop rbx
ret
mov edx, 0xfc
mov rcx, rbx
mov r8d, r11d
mov dword [r9 + r11*4 + 8], 3
call fcn.1800a8380
add rsp, 0x20
pop rbx
ret
Function at 0x1800a8760
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
movsxd r9, edx
mov r11, rcx
mov r8, qword [rax + 0x1a8]
mov r10d, dword [r8 + r9*4 + 8]
sub r10d, 1
je 0x1800a87f4
sub r10d, 1
je 0x1800a87cf
cmp r10d, 1
jne 0x1800a8808
mov ecx, dword [r8 + r9*4 + 0x408]
test ecx, ecx
je 0x1800a87c3
cmp ecx, r10d
jne 0x1800a8808
xor eax, eax
mov dword [r8 + r9*4 + 8], 2
mov rcx, r11
mov dword [r8 + r9*4 + 0x408], eax
mov r8d, edx
mov edx, 0xfb
add rsp, 0x28
jmp fcn.1800a8380
xor eax, eax
mov dword [r8 + r9*4 + 8], eax
add rsp, 0x28
ret
mov ecx, dword [r8 + r9*4 + 0x408]
test ecx, ecx
je 0x1800a87c3
cmp ecx, 1
jne 0x1800a8808
xor eax, eax
mov dword [r8 + r9*4 + 8], eax
mov dword [r8 + r9*4 + 0x408], eax
add rsp, 0x28
ret
xor eax, eax
mov dword [r8 + r9*4 + 8], eax
mov r8d, edx
mov edx, 0xfc
call fcn.1800a8380
add rsp, 0x28
ret
Function at 0x1800a9420
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x1800a95ce
push rbp
push rdi
push r13
sub rsp, 0x30
mov rbp, qword [rcx]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x28], rsi
mov rdi, qword [rbp + 0x1a8]
mov r13, rcx
mov qword [rsp + 0x20], r12
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x1800a9469
mov byte [rsi], 0xff
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1800a9477
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1800a9485
mov byte [rax], Ordinal_32
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r12d, ax
mov word [rsp + 0x58], ax
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rbx]
movzx r11d, ax
mov word [rsp + 0x50], ax
cmp rcx, rbx
jae 0x1800a94bf
mov byte [rcx], r12b
inc qword [rbx]
mov rdx, qword [rbx]
mov r12, qword [rsp + 0x20]
cmp rdx, rbx
jae 0x1800a94d6
movzx ecx, byte [rsp + 0x59]
mov byte [rdx], cl
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1800a94e4
mov byte [rax], r11b
inc qword [rbx]
mov rcx, qword [rbx]
cmp rcx, rbx
jae 0x1800a94f6
movzx eax, byte [rsp + 0x51]
mov byte [rcx], al
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1800a9504
mov byte [rax], 0xff
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1800a9512
mov byte [rax], 0xf0
inc qword [rbx]
mov rax, qword [rbx]
lea r8, [rdi + 0x1cba]
mov edx, 0x3e
mov r9, rax
mov rcx, rbp
mov qword [rbx], rsi
sub r9, rsi
mov qword [rdi + 0x1ec0], rax
sub r9, 2
call fcn.1800a8810
mov rcx, qword [r13 + 0x1a8]
xor r9d, r9d
lea r8d, [r9 + 3]
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x60]
test eax, eax
jns 0x1800a957a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.180097330
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r13
call fcn.1800a9230
mov rcx, qword [r13 + 0x1a8]
xor r9d, r9d
lea r8d, [r9 + 2]
lea rdx, [rdi + 0x1cbf]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1800a95c6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.180097330
add rsp, 0x30
pop r13
pop rdi
pop rbp
repz ret
Function at 0x1800aa1c0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x180106f10]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbp, qword [rcx + 0x1b0]
mov rsi, qword [rcx]
mov rbx, rcx
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
mov rcx, rbp
or rdi, 0xffffffffffffffff
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1800aa231
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
mov rcx, rbp
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_accept]
mov rdi, rax
mov rdx, rbp
mov rcx, rbx
call fcn.18009a520
mov rcx, rsi
cmp rdi, 0xffffffffffffffff
jne 0x1800aa256
lea rdx, str.Error_accept__ing_server_connect
call fcn.180097330
lea eax, [rdi + 0x1f]
jmp 0x1800aa2c1
lea rdx, str.Connection_accepted_from_server_n
call fcn.180097280
mov edx, 1
mov rcx, rdi
mov qword [rbx + 0x1b0], rdi
call fcn.1800ba910
mov dword [rbx + 0x1cc], 1
mov rax, qword [rsi + 0x278]
test rax, rax
je 0x1800aa2bf
mov rcx, qword [rsi + 0x280]
mov r8d, 1
mov rdx, rdi
call rax
test eax, eax
je 0x1800aa2bf
mov rdx, rdi
mov rcx, rbx
call fcn.18009a520
mov qword [rbx + 0x1b0], 0xffffffffffffffff
mov eax, Ordinal_46
jmp 0x1800aa2c1
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800564b0
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret