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

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x14036a3c8]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov eax, dword [rcx + 0xe7c]
lea r9, [rsp + 0x50]
mov rdi, rdx
shr eax, 0xb
and eax, 1
mov dword [rsp + 0x20], 4
mov rbx, rcx
mov dword [rsp + 0x50], eax
mov edx, 0xffff
mov r8d, 8
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1400d2c2b
mov r8, rdi
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov rcx, rbx
call fcn.1400d0c20
jmp 0x1400d2cba
mov ecx, dword [rbx + 0xe04]
mov dword [rsp + 0x58], 1
call fcn.1400d2f70
imul ecx, eax, 0x3e8
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x5c], ecx
mov ecx, dword [rbx + 0xe08]
call fcn.1400d2f70
imul ecx, eax, 0x3e8
lea r8, [rsp + 0x58]
lea rax, [rsp + 0x54]
mov edx, 0x98000004
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x60], ecx
xor ecx, ecx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ecx
lea r9d, [rcx + 0xc]
mov qword [rsp + 0x20], rcx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x1400d2cba
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, edi
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
mov r9d, eax
mov rcx, rbx
call fcn.1400d0c20
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140240e30
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret

Function at 0x1400d2ce0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0xd0
mov rax, qword [0x14036a3c8]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx]
lea r9, [rsp + 0x30]
mov rax, rdx
mov dword [rsp + 0x30], 1
mov edx, 6
mov dword [rsp + 0x20], 4
mov rcx, rax
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1400d2d58
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, Ordinal_133
lea rdx, [rsp + 0x40]
mov ecx, eax
call fcn.1400fb880
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s_n
mov rcx, rbx
call fcn.1400d0c20
jmp 0x1400d2d67
lea rdx, str.TCP_NODELAY_set_n
mov rcx, rbx
call fcn.1400d0c20
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140240e30
add rsp, 0xd0
pop rbx
ret

Function at 0x1400d2f30
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
mov rbx, rdx
mov rcx, r8
call fcn.1400d2fb0
mov r8d, eax
mov rdx, rbx
mov ecx, edi
call fcn.14026324c
mov rbx, qword [rsp + 0x30]
cdqe
add rsp, 0x20
pop rdi
ret
Function at 0x1400d3570
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x14036a3c8]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
test cl, 2
je 0x1400d35d6
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400d35b9
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x1400d35b3
shr ax, 8
cmp al, 2
je 0x1400d35d6
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140240e30
add rsp, 0x1d8
ret
xor edx, edx
lea r9d, [rdx + 3]
lea r8d, [rdx + 2]
lea ecx, [rdx + 6]
call fcn.1400d3410
test al, al
je 0x1400d3602
lea rcx, [0x1403744e8]
mov byte [0x1403744e0], 1
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
jmp 0x1400d3609
mov byte [0x1403744e0], 0
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140240e30
add rsp, 0x1d8
ret
Function at 0x1400e0910
Capabilities:
Resolve dns

Disassembly:
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r13d, r13d
mov r12, r9
mov qword [r9], r13
mov esi, r13d
lea r9, [rsp + 0x68]
mov r15d, r13d
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r14d, eax
test eax, eax
jne 0x1400e0aae
mov qword [rsp + 0x60], rdi
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x1400e0a93
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov eax, dword [rdi + 4]
cmp eax, 2
jne 0x1400e096d
lea ebp, [rax + 0xe]
jmp 0x1400e0979
cmp eax, 0x17
jne 0x1400e0a21
lea ebp, [rax + 5]
cmp qword [rdi + 0x20], r13
je 0x1400e0a21
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x1400e0a21
cmp rax, rbp
jb 0x1400e0a21
mov ecx, 0x30
call qword [str._h__]
mov rbx, rax
test rax, rax
je 0x1400e0a5c
mov eax, dword [rdi]
mov rcx, rbp
mov dword [rbx], eax
mov eax, dword [rdi + 4]
mov dword [rbx + 4], eax
mov eax, dword [rdi + 8]
mov dword [rbx + 8], eax
mov eax, dword [rdi + 0xc]
mov dword [rbx + 0xc], eax
mov dword [rbx + 0x10], ebp
mov qword [rbx + 0x20], r13
mov qword [rbx + 0x18], r13
mov qword [rbx + 0x28], r13
call qword [str._h__]
mov qword [rbx + 0x20], rax
test rax, rax
je 0x1400e0a4b
mov rdx, qword [rdi + 0x20]
mov r8, rbp
mov rcx, rax
call fcn.1402430d0
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x1400e0a0e
call qword [case.0x1400c7339.0]
mov qword [rbx + 0x18], rax
test rax, rax
je 0x1400e0a30
test rsi, rsi
cmove rsi, rbx
test r15, r15
je 0x1400e0a1e
mov qword [r15 + 0x28], rbx
mov r15, rbx
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x1400e0960
jmp 0x1400e0a62
mov rcx, qword [rbx + 0x20]
mov r14d, 8
call qword [str.P5__]
mov rcx, rbx
call qword [str.P5__]
jmp 0x1400e0a62
mov rcx, rbx
mov r14d, 8
call qword [str.P5__]
jmp 0x1400e0a62
mov r14d, 8
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400e0a7c
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r14d, r14d
je 0x1400e0a8e
mov rcx, rsi
call fcn.1400e08c0
mov rsi, r13
jmp 0x1400e0aa2
test rsi, rsi
jne 0x1400e0aa2
mov r14d, 0x2af9
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov eax, r14d
mov qword [r12], rsi
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rsi
ret
Function at 0x1400e19a0
Capabilities:
Encode data using xor

Disassembly:
push r14
push r15
sub rsp, 0x1f8
mov rax, qword [0x14036a3c8]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
cmp byte [0x14036f3a0], 0
mov r14, rcx
jne 0x1400e19d9
call fcn.1400e4b10
test al, al
je 0x1400e19f7
mov byte [0x14036f3a0], 1
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140240e30
add rsp, 0x1f8
pop r15
pop r14
ret
mov rcx, qword [r14 + 0xcf8]
test rcx, rcx
je 0x1400e1a16
mov edx, 0x400
call fcn.14011ec60
call fcn.1400e4b10
test al, al
jne 0x1400e19d9
mov qword [rsp + 0x218], rbx
xor r15d, r15d
mov qword [rsp + 0x220], rbp
mov qword [rsp + 0x228], rsi
mov qword [rsp + 0x1f0], rdi
movaps xmmword [rsp + 0x1e0], xmm6
movaps xmmword [rsp + 0x1d0], xmm7
movsd xmm7, qword [0x1402a1890]
nop dword [rax]
nop word [rax + rax]
mov rsi, r15
lea rbp, [rsp + 0x80]
nop dword [rax + rax]
lea rcx, [rsp + 0x30]
call fcn.1400d3e80
mov ecx, 1
movups xmm6, xmmword [rax]
movups xmmword [rsp + 0x20], xmm6
call fcn.1400d0a00
lea rcx, [rsp + 0x40]
lea rdi, [rsi + 3]
call fcn.1400d3e80
lea rcx, [rsp + 0x50]
movsxd rbx, dword [rax + 8]
call fcn.1400d3e80
mov rdx, rbx
lea rcx, [rdi - 2]
add rdx, qword [rax]
movq rax, xmm6
imul rdx, rdi
imul rcx, rax
shl rdx, 8
xor rdx, rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rdx
call fcn.1400d3e80
lea rcx, [rsp + 0x70]
mov rbx, rax
call fcn.1400d3e80
mov ecx, dword [rbx + 8]
lea rbp, [rbp + 0x10]
add ecx, dword [rax]
lea eax, [rsi + 4]
imul ecx, eax
lea eax, [rsi + 2]
imul eax, dword [rsp + 0x28]
inc rsi
shl ecx, 0x10
xor ecx, eax
mov dword [rsp + 0x28], ecx
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rbp - 0x10], xmm0
cmp rsi, 4
jb 0x1400e1a70
movaps xmm2, xmm7
lea rcx, [rsp + 0x80]
mov edx, 0x40
call fcn.14011d8f0
call fcn.1400e4b10
test al, al
je 0x1400e1a60
mov edx, 0x100
mov byte [rsp + 0xc0], r15b
lea rcx, [rsp + 0xc0]
call fcn.14011e9f0
movaps xmm7, xmmword [rsp + 0x1d0]
movaps xmm6, xmmword [rsp + 0x1e0]
mov rdi, qword [rsp + 0x1f0]
mov rsi, qword [rsp + 0x228]
mov rbp, qword [rsp + 0x220]
mov rbx, qword [rsp + 0x218]
cmp byte [rsp + 0xc0], r15b
je 0x1400e1bad
mov edx, 0x400
lea rcx, [rsp + 0xc0]
call fcn.14011ec60
call fcn.1400e4b10
test al, al
jne 0x1400e19d9
lea rdx, str.libcurl_is_now_using_a_weak_random_seed__n
mov rcx, r14
call fcn.1400d0c20
call fcn.1400e4b10
test al, al
mov ecx, 0x23
cmovne ecx, r15d
mov eax, ecx
jmp 0x1400e19db

Function at 0x1400e6230
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x148
mov rax, qword [0x14036a3c8]
xor rax, rsp
mov qword [rsp + 0x130], rax
call fcn.140256d40
mov byte [rsp + 0x20], 0
test rax, rax
je 0x1400e6296
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x1400e6296
lea rcx, [rsp + 0x20]
call qword [case.0x1400c7339.0]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140240e30
add rsp, 0x148
ret
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140240e30
add rsp, 0x148
ret
jmp 0x1400e6230
Function at 0x1400e62b0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x148
mov rax, qword [0x14036a3c8]
xor rax, rsp
mov qword [rsp + 0x130], rax
call fcn.140256d40
mov byte [rsp + 0x20], 0
test rax, rax
je 0x1400e6296
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x1400e6296
lea rcx, [rsp + 0x20]
call qword [case.0x1400c7339.0]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140240e30
add rsp, 0x148
ret
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140240e30
add rsp, 0x148
ret
jmp 0x1400e6230

Function at 0x1400ec430
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 [0x14036a3c8]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbp, qword [rcx + 0x258]
lea r8, [rsp + 0x20]
mov rsi, qword [rcx]
lea rdx, [rsp + 0x30]
mov rdi, rcx
mov dword [rsp + 0x20], Ordinal_133
mov rcx, rbp
mov rbx, 0xffffffffffffffff
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1400ec4aa
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], Ordinal_133
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
mov rdx, rbp
mov rcx, rdi
call fcn.1400d1650
mov rcx, rsi
cmp rbx, 0xffffffffffffffff
jne 0x1400ec4cf
lea rdx, str.Error_accept__ing_server_connect
call fcn.1400d0b10
lea eax, [rbx + 0x1f]
jmp 0x1400ec54b
lea rdx, str.Connection_accepted_from_server_n
call fcn.1400d0c20
and dword [rdi + 0x3d4], 0xfffff7ff
mov edx, 1
mov rcx, rbx
mov qword [rdi + 0x258], rbx
call fcn.1400fc2c0
mov byte [rdi + 0x271], 1
cmp qword [rsi + 0x738], 0
je 0x1400ec549
mov dl, 1
mov rcx, rsi
call fcn.1400c31d0
mov rcx, qword [rsi + 0x740]
mov r8d, 1
mov rdx, rbx
call qword [rsi + 0x738]
xor edx, edx
mov rcx, rsi
mov ebx, eax
call fcn.1400c31d0
test ebx, ebx
je 0x1400ec549
mov rcx, rdi
call fcn.1400eca10
mov eax, Ordinal_46
jmp 0x1400ec54b
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140240e30
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

Function at 0x1400ed610
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [rcx + 0x5d2], 0
mov rbx, rcx
jne 0x1400ed6b7
xor edx, edx
mov dword [rcx + 0x5f4], edx
mov eax, edx
mov rcx, qword [rcx]
cmp dword [rcx + 0xba4], 2
sete al
mov dword [rbx + 0x5f8], eax
cmp dword [rcx + 0xb98], 2
jne 0x1400ed654
cmp dword [rbx + 0x5d4], edx
je 0x1400ed6b4
test byte [rbx + 0x3d4], 2
je 0x1400ed671
mov r8, qword [rbx + 0x5b0]
test r8, r8
je 0x1400ed671
mov dword [rbx + 0x5d4], edx
jmp 0x1400ed68d
cmp dword [rbx + 0x5c0], edx
je 0x1400ed6b4
mov r8, qword [rbx + 0x5b8]
mov dword [rbx + 0x5d4], 1
mov r8, qword [r8]
lea rdx, str.CWD__s
lea rcx, [rbx + 0x540]
call fcn.140100c00
test eax, eax
jne 0x1400ed6c1
lea edx, [rax + 0x10]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400eca00
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400edac0
add rsp, 0x20
pop rbx
ret
Function at 0x1400edac0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
add rcx, 0x540
test dword [rax + 0xe78], 0x200
jne 0x1400edae8
cmp dword [rax + 0xa00], 0
je 0x1400edb14
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x1400edb14
lea rdx, str.MDTM__s
call fcn.140100c00
test eax, eax
jne 0x1400edb21
lea edx, [rax + 0x12]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400eca00
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400eeb70
add rsp, 0x20
pop rbx
ret

Function at 0x1400ee280
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
lea eax, [rdx - 0xc8]
mov rbx, rcx
mov rcx, qword [rcx]
cmp eax, 0x64
jb 0x1400ee2f2
mov eax, dword [rbx + 0x5f0]
mov qword [rsp + 0x30], rdi
lea edi, [rax + 1]
test eax, eax
jne 0x1400ee2d3
lea rdx, str.disabling_EPRT_usage_n
call fcn.1400d0c20
and dword [rbx + 0x3d4], 0xfffbffff
mov edx, edi
mov rcx, rbx
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
jmp 0x1400eef40
cmp edi, 2
jne 0x1400ee2bf
lea rdx, str.Failed_to_do_PORT
call fcn.1400d0b10
lea eax, [rdi + 0x1c]
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
lea rdx, str.Connect_data_stream_actively_n
call fcn.1400d0c20
xor edx, edx
mov rcx, rbx
call fcn.1400eca00
add rsp, 0x20
pop rbx
jmp fcn.1400ecb70
Function at 0x1400ee640
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
mov rdx, qword [rax + 0x1f8]
cmp dword [rdx + 0x20], 0
je 0x1400ee68d
cmp qword [rcx + 0x5c8], 0
je 0x1400ee68d
add rcx, 0x540
lea rdx, str.REST__d
xor r8d, r8d
call fcn.140100c00
test eax, eax
jne 0x1400ee697
lea edx, [rax + 0x1a]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400eca00
add rsp, 0x20
pop rbx
jmp fcn.1400ee320
add rsp, 0x20
pop rbx
ret

Function at 0x1400ee930
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
add rcx, 0x540
mov rax, qword [rbx]
mov rdx, qword [rax + 0x1f8]
cmp dword [rdx + 0x20], 1
jne 0x1400ee97c
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x1400ee97c
lea rdx, str.SIZE__s
call fcn.140100c00
test eax, eax
jne 0x1400ee989
lea edx, [rax + 0x17]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400eca00
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400ee640
add rsp, 0x20
pop rbx
ret

Function at 0x1400eeb70
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub rsp, 0x28
mov r10, qword [rcx]
mov r9, rcx
mov eax, dword [r10 + 0xe78]
bt eax, 0x1c
jae 0x1400eebcf
cmp qword [rcx + 0x5c8], 0
je 0x1400eebcf
shr eax, 0xb
and al, 1
movzx edx, al
call fcn.1400ecdc0
test eax, eax
je 0x1400eebcf
mov rax, qword [r10 + 0x1f8]
mov r8d, reloc.WS2_32.dll_send
mov rcx, r9
mov dword [rax + 0x20], 1
mov edx, dword [r10 + 0xe78]
shr edx, 0xb
and dl, 1
add rsp, 0x28
jmp fcn.1400ecd30
mov rcx, r9
add rsp, 0x28
jmp fcn.1400ee930
Function at 0x1400f40b0
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1d0
mov rax, qword [0x14036a3c8]
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 0x1400f40f6
mov r8d, eax
lea rdx, str.WSAStartup_failed___d_
mov rcx, rbx
call fcn.1400d0b10
jmp 0x1400f4120
call qword [sym.imp.WS2_32.dll_WSACleanup]
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x1400f4111
shr ax, 8
test al, al
jne 0x1400f4111
xor eax, eax
jmp 0x1400f4125
lea rdx, str.insufficient_winsock_version_to_support_telnet
mov rcx, rbx
call fcn.1400d0b10
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140240e30
add rsp, 0x1d0
pop rbx
ret
Function at 0x1400f4850
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, qword [rcx]
mov r11, rcx
movsxd r10, edx
mov r9, qword [rax + 0x1f8]
mov r8d, dword [r9 + r10*4 + 8]
sub r8d, 1
je 0x1400f48d4
sub r8d, 1
je 0x1400f48ab
cmp r8d, 1
jne 0x1400f48e8
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x1400f48cc
cmp ecx, r8d
jne 0x1400f48e8
xor eax, eax
mov dword [r9 + r10*4 + 8], 2
mov r8d, edx
mov dword [r9 + r10*4 + 0x408], eax
mov edx, 0xfb
mov rcx, r11
jmp fcn.1400f4a70
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x1400f48cc
cmp ecx, 1
jne 0x1400f48e8
xor eax, eax
mov dword [r9 + r10*4 + 8], eax
mov dword [r9 + r10*4 + 0x408], eax
ret
xor eax, eax
mov dword [r9 + r10*4 + 8], eax
ret
xor eax, eax
mov r8d, edx
mov edx, 0xfc
mov dword [r9 + r10*4 + 8], eax
jmp fcn.1400f4a70
ret

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

Disassembly:
mov rax, qword [rcx]
mov r11, rcx
movsxd r10, edx
mov r9, qword [rax + 0x1f8]
mov r8d, dword [r9 + r10*4 + 0xc08]
test r8d, r8d
je 0x1400f4997
sub r8d, 2
je 0x1400f4950
cmp r8d, 1
jne 0x1400f4989
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x1400f4943
cmp ecx, r8d
jne 0x1400f4989
mov dword [r9 + r10*4 + 0xc08], r8d
mov dword [r9 + r10*4 + 0x1008], 0
ret
mov dword [r9 + r10*4 + 0xc08], 0
ret
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x1400f498a
cmp ecx, 1
jne 0x1400f4989
mov dword [r9 + r10*4 + 0xc08], 3
mov rcx, r11
mov dword [r9 + r10*4 + 0x1008], 0
mov r8d, edx
mov edx, 0xfe
jmp fcn.1400f4a70
ret
mov dword [r9 + r10*4 + 0xc08], 1
ret
cmp dword [r9 + r10*4 + 0x1408], 1
jne 0x1400f497c
mov r8d, edx
mov dword [r9 + r10*4 + 0xc08], 1
mov edx, 0xfd
jmp fcn.1400f4a70

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

Disassembly:
mov rax, qword [rcx]
mov r11, rcx
movsxd r10, edx
mov r9, qword [rax + 0x1f8]
mov r8d, dword [r9 + r10*4 + 0xc08]
sub r8d, 1
je 0x1400f4a50
sub r8d, 1
je 0x1400f4a21
cmp r8d, 1
jne 0x1400f4a67
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x1400f4a45
cmp ecx, r8d
jne 0x1400f4a67
xor eax, eax
mov dword [r9 + r10*4 + 0xc08], 2
mov r8d, edx
mov dword [r9 + r10*4 + 0x1008], eax
mov edx, 0xfd
mov rcx, r11
jmp fcn.1400f4a70
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x1400f4a45
cmp ecx, 1
jne 0x1400f4a67
xor eax, eax
mov dword [r9 + r10*4 + 0xc08], eax
mov dword [r9 + r10*4 + 0x1008], eax
ret
xor eax, eax
mov dword [r9 + r10*4 + 0xc08], eax
ret
xor eax, eax
mov r8d, edx
mov edx, 0xfe
mov dword [r9 + r10*4 + 0xc08], eax
jmp fcn.1400f4a70
ret
Function at 0x1400f4a70
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]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x250]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400f4acf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400d0b10
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.1400f4250
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400f4e30
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, qword [rcx]
movsxd r11, edx
mov r10, qword [rax + 0x1f8]
mov r9d, dword [r10 + r11*4 + 8]
cmp r8d, 1
jne 0x1400f4e86
test r9d, r9d
je 0x1400f4e70
sub r9d, 2
je 0x1400f4e98
cmp r9d, r8d
jne 0x1400f4ec6
cmp dword [r10 + r11*4 + 0x408], 0
jne 0x1400f4ec6
mov dword [r10 + r11*4 + 0x408], 1
ret
mov r8d, edx
mov dword [r10 + r11*4 + 8], 2
mov edx, 0xfb
jmp fcn.1400f4a70
sub r9d, 1
je 0x1400f4eb0
sub r9d, 1
je 0x1400f4e58
cmp r9d, 1
jne 0x1400f4ec6
cmp dword [r10 + r11*4 + 0x408], 1
jne 0x1400f4ec6
mov dword [r10 + r11*4 + 0x408], 0
ret
mov r8d, edx
mov dword [r10 + r11*4 + 8], 3
mov edx, 0xfc
jmp fcn.1400f4a70
ret

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

Disassembly:
mov rax, qword [rcx]
movsxd r11, edx
mov r10, qword [rax + 0x1f8]
mov r9d, dword [r10 + r11*4 + 0xc08]
cmp r8d, 1
jne 0x1400f4f2c
test r9d, r9d
je 0x1400f4f13
sub r9d, 2
je 0x1400f4f3e
cmp r9d, r8d
jne 0x1400f4f6f
cmp dword [r10 + r11*4 + 0x1008], 0
jne 0x1400f4f6f
mov dword [r10 + r11*4 + 0x1008], 1
ret
mov r8d, edx
mov dword [r10 + r11*4 + 0xc08], 2
mov edx, 0xfd
jmp fcn.1400f4a70
sub r9d, 1
je 0x1400f4f56
sub r9d, 1
je 0x1400f4efb
cmp r9d, 1
jne 0x1400f4f6f
cmp dword [r10 + r11*4 + 0x1008], 1
jne 0x1400f4f6f
mov dword [r10 + r11*4 + 0x1008], 0
ret
mov r8d, edx
mov dword [r10 + r11*4 + 0xc08], 3
mov edx, 0xfe
jmp fcn.1400f4a70
ret
Function at 0x1400f6150
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0xd0
mov rax, qword [0x14036a3c8]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rdi, qword [rcx + 0x540]
lea rax, [rsp + 0x30]
mov rsi, qword [rcx]
mov r15, rcx
mov dword [rsp + 0x30], Ordinal_133
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rdi + 0x15c]
lea r14, [rdi + 0x168]
mov rdx, qword [r14]
add r8d, 4
mov rcx, qword [rdi + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rdi + 0x150], 0
mov dword [rdi + 0x154], eax
jne 0x1400f61ed
movsxd r8, dword [rsp + 0x30]
lea rcx, [rdi + 0xd0]
lea rdx, [rsp + 0x40]
call fcn.1402430d0
mov eax, dword [rsp + 0x30]
mov dword [rdi + 0x150], eax
mov r9d, dword [rdi + 0x154]
mov qword [rsp + 0xf8], rbx
mov qword [rsp + 0x100], rbp
cmp r9d, 4
jge 0x1400f6257
lea rdx, str.Received_too_short_packet
mov rcx, rsi
call fcn.1400d0b10
mov dword [rdi + 0xc], 7
xor eax, eax
mov rbp, qword [rsp + 0x100]
mov rbx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140240e30
mov rsi, qword [rsp + 0x108]
add rsp, 0xd0
pop r15
pop r14
pop rdi
ret
mov rcx, r14
call fcn.1400f5c90
movzx r8d, ax
mov dword [rdi + 0xc], r8d
dec r8d
cmp r8d, 5
ja case.0x1400f6288.1
lea rdx, [0x140000000]
movsxd rax, r8d
mov ecx, dword [rdx + rax*4 + 0xf639c]
add rcx, rdx
jmp rcx
cmp r9d, 4
jle case.0x1400f6288.4
mov rcx, r14
call fcn.1400f5c70
movzx ecx, word [rdi + 0x48]
inc ecx
cmp cx, ax
jne case.0x1400f6288.4
mov r8, qword [r14]
lea eax, [r9 - 4]
movsxd r9, eax
add r8, 4
mov edx, 1
mov rcx, r15
call fcn.1400d0a30
mov ebx, eax
test eax, eax
je 0x1400f62e0
mov edx, 5
mov rcx, rdi
call fcn.1400f6c60
mov eax, ebx
jmp 0x1400f6222
mov eax, dword [rdi + 0x154]
mov rcx, rsi
sub eax, 4
cdqe
add qword [rsi + 0x110], rax
mov rdx, qword [rsi + 0x110]
call fcn.1400dcbb0
jmp case.0x1400f6288.4
mov rbp, qword [r14]
lea eax, [r9 - 4]
mov rcx, r14
movsxd rbx, eax
call fcn.1400f5c70
movzx r9d, ax
lea rcx, [rbp + 4]
mov rdx, rbx
mov dword [rdi + 8], r9d
call fcn.1400f5c30
cmp rax, rbx
jae case.0x1400f6288.4
lea r8, [rbp + 4]
mov rcx, rsi
lea rdx, str.TFTP_error:__s_n
call fcn.1400d0c20
jmp case.0x1400f6288.4
mov rdx, qword [r14]
lea r8d, [r9 - 2]
add rdx, 2
mov rcx, rdi
call fcn.1400f5ea0
test eax, eax
je case.0x1400f6288.4
jmp 0x1400f6222
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rsi
lea rdx, [0x1402a131c]
call fcn.1400d0b10
mov rcx, r15
call fcn.1400dce00
test eax, eax
je 0x1400f6220
mov edx, 5
mov rcx, rdi
call fcn.1400f6c60
mov eax, Ordinal_46
jmp 0x1400f6222