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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x18005392b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
mov edx, 0x51
cmp eax, 0x2733
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x1800539d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x730], 0
mov rsi, r9
mov rbp, r8
movsxd rbx, edx
mov rdi, rcx
je 0x180053a31
mov edx, 1
call fcn.1800519d0
mov r11, qword [rdi + 0x688]
mov r9, rsi
mov r8, rbp
mov edx, ebx
mov rcx, rdi
mov qword [rsp + 0x20], r11
call qword [rdi + 0x730]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.1800519d0
mov eax, ebx
jmp 0x180053a77
test edx, edx
js 0x180053a75
cmp ebx, 2
jg 0x180053a75
mov r9, qword [rdi + 0x680]
lea rdx, [0x180090fc8]
lea rcx, [rbx + rbx*2]
add rcx, rdx
mov edx, 2
lea r8d, [rdx - 1]
call fcn.1800350cc
mov r9, qword [rdi + 0x680]
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call fcn.1800350cc
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
movsxd rcx, edx
mov rax, qword [rsi + 0x478]
mov rbp, qword [rsi + rcx*8 + 0x258]
lea rbx, [rcx + 0x15]
shl rbx, 5
add rbx, rsi
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x7c], 3
je 0x18005418c
lea rax, [0x180053db0]
cmp qword [rsi + rcx*8 + 0x280], rax
jne 0x18005418c
cmp qword [rbx], 0
je 0x180054116
test rdi, rdi
je 0x18005418c
or r8, 0xffffffffffffffff
xor r9d, r9d
mov rcx, rbp
or rdx, r8
call fcn.18004ef70
cmp eax, 0xffffffff
je 0x18005418c
test al, 1
je 0x18005418c
cmp qword [rbx], 0
jne 0x18005416b
mov rax, qword [rsi]
mov ecx, dword [rax + 0xbb0]
add ecx, ecx
movsxd rcx, ecx
mov qword [rbx + 8], rcx
call qword [fcn.1800339ec]
mov rdi, qword [rbx + 8]
xor ecx, ecx
mov qword [rbx], rax
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], rcx
test rax, rax
jne 0x18005416b
mov qword [rbx + 8], rcx
jmp 0x18005418c
mov rdx, qword [rbx]
xor r9d, r9d
mov r8d, edi
add rdx, qword [rbx + 0x10]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x18005418c
add qword [rbx + 0x10], rcx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1800541b0
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0xb0
mov rax, qword [0x1800ac030]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rbp, qword [rsp + 0x100]
movsxd rax, edx
mov rsi, r9
mov rbx, qword [rcx + rax*8 + 0x258]
mov rdi, r8
mov r12, rcx
call fcn.1800540b0
xor r9d, r9d
mov r8d, esi
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
mov dword [rbp], 0
movsxd rdi, eax
cmp rdi, 0xffffffffffffffff
jne 0x180054264
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x18005422d
mov dword [rbp], 0x51
xor eax, eax
jmp 0x180054267
lea rdx, [rsp + 0x20]
mov r8d, pe_nt_image_headers64
mov ecx, eax
call fcn.180079630
mov rcx, qword [r12]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.180053b90
mov r11, qword [r12]
mov dword [r11 + 0x1238], ebx
mov dword [rbp], gethostname
mov rax, rdi
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1800334b0
add rsp, 0xb0
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x180055030
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1800ac030]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor esi, esi
mov rdi, rdx
mov rbx, rcx
mov eax, esi
lea r9, [rsp + 0x50]
lea r8d, [rsi + 8]
cmp dword [rcx + 0xf7c], eax
mov edx, 0xffff
mov rcx, rdi
setne al
mov dword [rsp + 0x20], 4
mov dword [rsp + 0x50], eax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x18005509f
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov r8, rdi
mov rcx, rbx
call fcn.180053a90
jmp 0x18005512e
mov ecx, dword [rbx + 0xe5c]
mov dword [rsp + 0x58], 1
call fcn.18004ee10
mov ecx, dword [rbx + 0xe60]
imul eax, eax, 0x3e8
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x5c], eax
call fcn.18004ee10
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
lea r8, [rsp + 0x58]
mov r9d, reloc.WS2_32.dll_inet_ntoa
mov edx, 0x98000004
imul eax, eax, 0x3e8
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], rax
mov rcx, rdi
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x18005512e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
mov r8d, edi
mov r9d, eax
mov rcx, rbx
call fcn.180053a90
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1800334b0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1800559e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x1c0
mov rax, qword [0x1800ac030]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
cmp dword [rcx + 0xbc], 3
mov rdi, rdx
mov rbx, rcx
jne 0x180055c26
cmp dword [rcx + 0x3d4], 0
mov qword [rsp + 0x1e0], rsi
jne 0x180055c16
cmp dword [rcx + 0x440], 0
jne 0x180055c16
mov rsi, qword [rcx]
lea r8, [rsp + 0x24]
lea rdx, [rsp + 0xb0]
mov rcx, rdi
mov dword [rsp + 0x24], pe_nt_image_headers64
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x180055a90
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [rsp + 0x130]
mov r8d, pe_nt_image_headers64
mov ecx, eax
mov ebx, eax
call fcn.180079630
lea rdx, str.getpeername___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.180053b90
jmp 0x180055c1e
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, pe_nt_image_headers64
mov dword [rsp + 0x20], pe_nt_image_headers64
call fcn.180037c60
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x180055af8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [rsp + 0x130]
mov r8d, pe_nt_image_headers64
mov ecx, eax
mov ebx, eax
call fcn.180079630
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.180053b90
jmp 0x180055c1e
mov edx, dword [rsp + 0x24]
lea r9, [rbx + 0x1bc]
lea r8, [rbx + 0x18e]
lea rcx, [rsp + 0xb0]
call fcn.180055950
test eax, eax
jne 0x180055b5a
call fcn.180037008
mov rbx, rax
call fcn.180037008
mov ecx, dword [rbx]
lea rdx, [rsp + 0x130]
mov r8d, pe_nt_image_headers64
mov rdi, rax
call fcn.180079630
mov r8d, dword [rdi]
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.180053b90
jmp 0x180055c1e
mov rax, qword [rbx + 0x18e]
mov edx, dword [rsp + 0x20]
lea r9, [rbx + 0x1f0]
mov qword [rbx + 0x88], rax
mov rax, qword [rbx + 0x196]
lea r8, [rbx + 0x1c0]
mov qword [rbx + 0x90], rax
mov rax, qword [rbx + 0x19e]
lea rcx, [rsp + 0x30]
mov qword [rbx + 0x98], rax
mov rax, qword [rbx + 0x1a6]
mov qword [rbx + 0xa0], rax
mov rax, qword [rbx + 0x1ae]
mov qword [rbx + 0xa8], rax
mov eax, dword [rbx + 0x1b6]
mov dword [rbx + 0xb0], eax
movzx eax, word [rbx + 0x1ba]
mov word [rbx + 0xb4], ax
call fcn.180055950
test eax, eax
jne 0x180055c16
call fcn.180037008
mov rbx, rax
call fcn.180037008
mov ecx, dword [rbx]
lea rdx, [rsp + 0x130]
mov r8d, pe_nt_image_headers64
mov rdi, rax
call fcn.180079630
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.180053b90
jmp 0x180055c1e
mov rcx, rbx
call fcn.180055830
mov rsi, qword [rsp + 0x1e0]
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1800334b0
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1c0
pop rdi
ret
Function at 0x180055d80
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0xd0
mov rax, qword [0x1800ac030]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx]
mov rax, rdx
mov edx, 6
lea r9, [rsp + 0x30]
lea r8d, [rdx - 5]
mov rcx, rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x180055df8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [rsp + 0x40]
mov r8d, pe_nt_image_headers64
mov ecx, eax
call fcn.180079630
lea rdx, str.Could_not_set_TCP_NODELAY:__s_n
mov rcx, rbx
mov r8, rax
call fcn.180053a90
jmp 0x180055e07
lea rdx, str.TCP_NODELAY_set_n
mov rcx, rbx
call fcn.180053a90
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1800334b0
add rsp, 0xd0
pop rbx
ret

Function at 0x180055e20
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x1800affd0]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x180055e7d
lea r9d, [rax + 3]
lea r8d, [rax + 2]
lea ecx, [rax + 6]
xor edx, edx
call fcn.180050170
test eax, eax
je 0x180055e71
mov dword [0x1800affd0], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x1800affd0], 1
jmp 0x180055e82
cmp eax, 2
je 0x180055ed4
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x48]
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 0x180055eb3
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x180055ed4
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x30
pop rbx
ret

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

Disassembly:
sub rsp, 0x28
cmp dword [rcx + 0x2e8], 0
je 0x180055fd4
xor eax, eax
add rsp, 0x28
ret
mov rcx, qword [rcx + 0x258]
cmp rcx, 0xffffffffffffffff
je 0x180055fcd
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x28
ret
Function at 0x1800600e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r13
sub rsp, 0xd0
mov rax, qword [0x1800ac030]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rdi, qword [rcx + 0x5c0]
mov rsi, qword [rcx]
mov dword [rsp + 0x30], pe_nt_image_headers64
mov r8d, dword [rdi + 0x15c]
mov rdx, qword [rdi + 0x168]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov r13, rcx
mov rcx, qword [rdi + 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 [rdi + 0x150], 0
mov dword [rdi + 0x154], eax
jne 0x18006017b
movsxd r8, dword [rsp + 0x30]
lea rcx, [rdi + 0xd0]
lea rdx, [rsp + 0x40]
call fcn.180033ff0
mov r11d, dword [rsp + 0x30]
mov dword [rdi + 0x150], r11d
mov r9d, dword [rdi + 0x154]
mov qword [rsp + 0xf8], rbx
mov qword [rsp + 0x100], r12
cmp r9d, 4
jge 0x1800601e4
lea rdx, str.Received_too_short_packet
mov rcx, rsi
call fcn.180053b90
mov dword [rdi + 0xc], 7
xor eax, eax
mov r12, qword [rsp + 0x100]
mov rbx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1800334b0
mov rbp, qword [rsp + 0x108]
add rsp, 0xd0
pop r13
pop rdi
pop rsi
ret
lea rcx, [rdi + 0x168]
call fcn.18005ec70
movzx r8d, ax
mov dword [rdi + 0xc], r8d
sub r8d, 3
je 0x1800602a2
dec r8d
je 0x180060319
dec r8d
je 0x180060254
dec r8d
je 0x180060230
lea r8, str.Internal_error:_Unexpected_packet
lea rdx, [0x180099668]
mov rcx, rsi
call fcn.180053b90
jmp 0x180060319
mov rdx, qword [rdi + 0x168]
lea r8d, [r9 - 2]
mov rcx, rdi
add rdx, 2
call fcn.18005ed70
test eax, eax
je 0x180060319
jmp 0x1800601b0
mov r12, qword [rdi + 0x168]
lea eax, [r9 - 4]
lea rcx, [rdi + 0x168]
movsxd rbx, eax
call fcn.18005ec80
lea rcx, [r12 + 4]
movzx r9d, ax
mov rdx, rbx
mov dword [rdi + 8], r9d
call fcn.18005eca0
cmp rax, rbx
jae 0x180060319
lea r8, [r12 + 4]
lea rdx, str.TFTP_error:__s_n
mov rcx, rsi
call fcn.180053a90
jmp 0x180060319
cmp r9d, 4
jle 0x180060319
lea rcx, [rdi + 0x168]
call fcn.18005ec80
movzx ecx, word [rdi + 0x48]
inc ecx
cmp cx, ax
jne 0x180060319
mov r8, qword [rdi + 0x168]
lea eax, [r9 - 4]
mov edx, 1
add r8, 4
movsxd r9, eax
mov rcx, r13
call fcn.180054070
mov ebx, eax
test eax, eax
je 0x1800602f8
mov edx, 5
mov rcx, rdi
call fcn.180060060
mov eax, ebx
jmp 0x1800601b0
mov eax, dword [rdi + 0x154]
mov rcx, rsi
sub eax, 4
cdqe
add qword [rsi + 0xf8], rax
mov rdx, qword [rsi + 0xf8]
call fcn.180072c00
mov rcx, r13
call fcn.180073360
test eax, eax
je 0x1800601ae
mov edx, 5
mov rcx, rdi
call fcn.180060060
mov eax, Ordinal_46
jmp 0x1800601b0
Function at 0x180061f70
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1d0
mov rax, qword [0x1800ac030]
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 0x180061fb6
lea rdx, str.WSAStartup_failed___d_
mov r8d, eax
mov rcx, rbx
call fcn.180053b90
jmp 0x180061fe5
call qword [sym.imp.WS2_32.dll_WSACleanup]
movzx r11d, word [rsp + 0x20]
cmp r11b, 2
jne 0x180061fd6
shr r11w, 8
test r11b, r11b
jne 0x180061fd6
xor eax, eax
jmp 0x180061fea
lea rdx, str.insufficient_winsock_version_to_support_telnet
mov rcx, rbx
call fcn.180053b90
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1800334b0
add rsp, 0x1d0
pop rbx
ret

Function at 0x1800621f0
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 + 0x258]
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 0x18006224e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.180053b90
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.1800620b0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x180062280
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 + 0x1e0]
cmp r8d, 1
jne 0x1800622f3
mov r10d, dword [r9 + r11*4 + 0xc08]
test r10d, r10d
je 0x1800622d5
sub r10d, 2
je 0x180062307
dec r10d
jne 0x18006233d
cmp dword [r9 + r11*4 + 0x1008], 0
jne 0x18006233d
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.1800621f0
mov ecx, dword [r9 + r11*4 + 0xc08]
dec ecx
je 0x180062321
dec ecx
je 0x1800622b8
dec ecx
jne 0x18006233d
mov ecx, dword [r9 + r11*4 + 0x1008]
dec ecx
jne 0x18006233d
mov dword [r9 + r11*4 + 0x1008], ecx
add rsp, 0x20
pop rbx
ret
mov edx, 0xfe
mov rcx, rbx
mov r8d, r11d
mov dword [r9 + r11*4 + 0xc08], 3
call fcn.1800621f0
add rsp, 0x20
pop rbx
ret
Function at 0x180062350
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 + 0x1e0]
mov r10d, dword [r8 + r9*4 + 0xc08]
test r10d, r10d
je 0x180062404
sub r10d, 2
je 0x1800623ba
dec r10d
jne 0x1800623ee
mov ecx, dword [r8 + r9*4 + 0x1008]
test ecx, ecx
je 0x1800623a9
dec ecx
jne 0x1800623ee
mov dword [r8 + r9*4 + 0xc08], 1
mov dword [r8 + r9*4 + 0x1008], ecx
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 0x1800623f3
dec ecx
jne 0x1800623ee
mov dword [r8 + r9*4 + 0x1008], ecx
mov dword [r8 + r9*4 + 0xc08], 3
mov rcx, r11
mov r8d, edx
mov edx, 0xfe
call fcn.1800621f0
add rsp, 0x28
ret
mov dword [r8 + r9*4 + 0xc08], 1
add rsp, 0x28
ret
cmp dword [r8 + r9*4 + 0x1408], 1
jne 0x1800623e1
mov dword [r8 + r9*4 + 0xc08], 1
mov r8d, edx
mov edx, 0xfd
add rsp, 0x28
jmp fcn.1800621f0

Function at 0x180062430
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 + 0x1e0]
mov r10d, dword [r8 + r9*4 + 0xc08]
dec r10d
je 0x1800624cf
dec r10d
je 0x1800624a8
dec r10d
jne 0x1800624e6
mov ecx, dword [r8 + r9*4 + 0x1008]
test ecx, ecx
je 0x180062499
dec ecx
jne 0x1800624e6
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.1800621f0
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 0x180062499
dec ecx
jne 0x1800624e6
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.1800621f0
add rsp, 0x28
ret

Function at 0x1800624f0
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 + 0x1e0]
cmp r8d, 1
jne 0x180062559
mov r10d, dword [r9 + r11*4 + 8]
test r10d, r10d
je 0x18006253e
sub r10d, 2
je 0x18006256a
dec r10d
jne 0x18006259d
cmp dword [r9 + r11*4 + 0x408], 0
jne 0x18006259d
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.1800621f0
mov ecx, dword [r9 + r11*4 + 8]
dec ecx
je 0x180062584
dec ecx
je 0x180062521
dec ecx
jne 0x18006259d
mov ecx, dword [r9 + r11*4 + 0x408]
dec ecx
jne 0x18006259d
mov dword [r9 + r11*4 + 0x408], ecx
add rsp, 0x20
pop rbx
ret
mov edx, 0xfc
mov rcx, rbx
mov r8d, r11d
mov dword [r9 + r11*4 + 8], 3
call fcn.1800621f0
add rsp, 0x20
pop rbx
ret
Function at 0x1800625b0
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 + 0x1e0]
mov r10d, dword [r8 + r9*4 + 8]
dec r10d
je 0x18006263f
dec r10d
je 0x18006261b
dec r10d
jne 0x180062653
mov ecx, dword [r8 + r9*4 + 0x408]
test ecx, ecx
je 0x18006260f
dec ecx
jne 0x180062653
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.1800621f0
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 0x18006260f
dec ecx
jne 0x180062653
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.1800621f0
add rsp, 0x28
ret
Function at 0x180063250
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x1800633fe
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 + 0x1e0]
mov r13, rcx
mov qword [rsp + 0x20], r12
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x180063299
mov byte [rsi], 0xff
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1800632a7
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1800632b5
mov byte [rax], 0x1f
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 0x1800632ef
mov byte [rcx], r12b
inc qword [rbx]
mov rdx, qword [rbx]
mov r12, qword [rsp + 0x20]
cmp rdx, rbx
jae 0x180063306
movzx ecx, byte [rsp + 0x59]
mov byte [rdx], cl
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x180063314
mov byte [rax], r11b
inc qword [rbx]
mov rcx, qword [rbx]
cmp rcx, rbx
jae 0x180063326
movzx eax, byte [rsp + 0x51]
mov byte [rcx], al
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x180063334
mov byte [rax], 0xff
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x180063342
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.180062660
mov rcx, qword [r13 + 0x258]
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 0x1800633aa
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.180053b90
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r13
call fcn.180063000
mov rcx, qword [r13 + 0x258]
xor r9d, r9d
lea r8d, [r9 + 2]
lea rdx, [rdi + 0x1cbf]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1800633f6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.180053b90
add rsp, 0x30
pop r13
pop rdi
pop rbp
repz ret
Function at 0x180064000
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, 0xc0
mov rax, qword [0x1800ac030]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbp, qword [rcx + 0x260]
mov rsi, qword [rcx]
mov rdi, rcx
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, rbp
or rbx, 0xffffffffffffffff
mov dword [rsp + 0x20], pe_nt_image_headers64
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x180064077
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, rbp
mov dword [rsp + 0x20], pe_nt_image_headers64
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
mov rdx, rbp
mov rcx, rdi
call fcn.180056010
mov rcx, rsi
cmp rbx, 0xffffffffffffffff
jne 0x18006409f
lea rdx, str.Error_accept__ing_server_connect
call fcn.180053b90
lea eax, [rbx + 0x1f]
jmp 0x180064121
lea rdx, str.Connection_accepted_from_server_n
call fcn.180053a90
mov edx, 1
mov rcx, rbx
mov dword [rdi + 0x400], 0
mov qword [rdi + 0x260], rbx
call fcn.180078860
mov dword [rdi + 0x27c], 1
cmp qword [rsi + 0x740], 0
je 0x18006411f
mov edx, 1
mov rcx, rsi
call fcn.1800519d0
mov rcx, qword [rsi + 0x748]
mov r8d, 1
mov rdx, rbx
call qword [rsi + 0x740]
xor edx, edx
mov rcx, rsi
mov ebx, eax
call fcn.1800519d0
test ebx, ebx
je 0x18006411f
mov rcx, rdi
call fcn.180063ec0
mov eax, Ordinal_46
jmp 0x180064121
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1800334b0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret