joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006a490
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x1401c7b80]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
test cl, 2
je 0x14006a4f6
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14006a4d9
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x14006a4d3
shr ax, 8
cmp al, 2
je 0x14006a4f6
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1401339b0
add rsp, 0x1d8
ret
lea rcx, str.iphlpapi.dll
call fcn.14006a2f0
mov qword [0x1401cba88], rax
test rax, rax
je 0x14006a533
lea rdx, str.if_nametoindex
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401cba80]
test rax, rax
cmovne rcx, rax
mov qword [0x1401cba80], rcx
xor edx, edx
lea r9d, [rdx + 3]
lea r8d, [rdx + 2]
lea ecx, [rdx + 6]
call fcn.140091df0
test al, al
lea rcx, [0x1401cf0f8]
setne byte [0x1401cf0f0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1401339b0
add rsp, 0x1d8
ret
Function at 0x140077ad0
Capabilities:
Get socket status

Disassembly:
push rdi
sub rsp, 0x30
mov r11, qword [rsp + 0x60]
mov r10, rdx
mov rdi, rcx
test rdx, rdx
je 0x140077aeb
cmp dword [rdx], 0
jne 0x140077b09
test r8, r8
je 0x140077af6
cmp dword [r8], 0
jne 0x140077b09
test r9, r9
je 0x140077bb1
cmp dword [r9], 0
je 0x140077bb1
mov qword [rsp + 0x40], rbx
lea rbx, [rsp + 0x48]
test r11, r11
jns 0x140077b1c
xor ebx, ebx
jmp 0x140077b6b
jle 0x140077b62
mov rcx, r11
movabs rax, 0x624dd2f1a9fbe77
mul r11
sub rcx, rdx
shr rcx, 1
add rcx, rdx
mov edx, 0x7fffffff
shr rcx, 9
imul rax, rcx, 0x3e8
sub r11, rax
imul rax, r11, 0x3e8
cmp rcx, rdx
mov dword [rsp + 0x4c], eax
cmovg rcx, rdx
mov dword [rsp + 0x48], ecx
jmp 0x140077b6b
mov qword [rsp + 0x48], 0
test r9, r9
je 0x140077b76
cmp dword [r9], 0
jne 0x140077b79
xor r9d, r9d
test r8, r8
je 0x140077b84
cmp dword [r8], 0
jne 0x140077b87
xor r8d, r8d
test r10, r10
je 0x140077b92
cmp dword [r10], 0
jne 0x140077b95
xor r10d, r10d
lea ecx, [rdi + 1]
mov qword [rsp + 0x20], rbx
mov rdx, r10
call qword [sym.imp.WS2_32.dll_select]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, r11
call fcn.140077a80
add rsp, 0x30
pop rdi
ret
Function at 0x14007ac20
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rbx, rcx
movaps xmmword [rsp + 0x50], xmm6
lea rcx, [rsp + 0x30]
mov rdi, rdx
call fcn.14006dc50
mov rcx, rbx
movups xmm6, xmmword [rax]
call fcn.140079dc0
mov rcx, rdi
mov rsi, rax
call fcn.140079dc0
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x14007acd0
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.14006dc50
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.14006dce0
cmp rax, 0x3e8
ja 0x14007ad01
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 1
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x14007ac80
test rsi, rsi
je 0x14007acdd
mov rcx, rsi
call fcn.14013c958
test rbx, rbx
je 0x14007acea
mov rcx, rbx
call fcn.14013c958
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rdi
ret
test rsi, rsi
je 0x14007ad0e
mov rcx, rsi
call fcn.14013c958
test rbx, rbx
je 0x14007ad1b
mov rcx, rbx
call fcn.14013c958
mov eax, 1
jmp 0x14007acec
Function at 0x14007ad30
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1401c7b80]
xor rax, rsp
mov qword [rbp - 8], rax
mov edx, 1
mov dword [rbp - 0x40], reloc.WS2_32.dll_recv
mov esi, 2
mov dword [rbp - 0x3c], 1
mov ecx, esi
mov rdi, r9
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14007ad82
jmp 0x14007af4b
mov qword [rsp + 0x90], r14
mov ecx, 0x7f000001
xor r14d, r14d
mov word [rbp - 0x38], si
mov qword [rbp - 0x30], r14
call qword [sym.imp.WS2_32.dll_htonl]
lea r9, [rbp - 0x3c]
mov word [rbp - 0x36], r14w
mov edx, 0xffff
mov dword [rbp - 0x34], eax
lea r8d, [r14 + 4]
mov qword [rdi + 8], 0xffffffffffffffff
mov rcx, rbx
mov qword [rdi], 0xffffffffffffffff
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14007af22
lea r8d, [r14 + 0x10]
mov rcx, rbx
lea rdx, [rbp - 0x38]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x14007af22
lea r8, [rbp - 0x40]
mov rcx, rbx
lea rdx, [rbp - 0x38]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x14007af22
cmp dword [rbp - 0x40], 0x10
jl 0x14007af22
lea edx, [r14 + 1]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x14007af22
xor r8d, r8d
lea edx, [r14 + 1]
mov ecx, esi
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rdi], rax
cmp rax, 0xffffffffffffffff
je 0x14007af22
lea r8d, [r14 + 0x10]
mov rcx, rax
lea rdx, [rbp - 0x38]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14007af22
lea edx, [r14 + 1]
mov rcx, rbx
call fcn.1400916b0
test eax, eax
js 0x14007af22
lea edx, [r14 + 1]
mov qword [rbp - 0x18], rbx
mov r8d, 0x2710
mov dword [rbp - 0x10], 0x300
lea rcx, [rbp - 0x18]
call fcn.1400775e0
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rdi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x14007af22
mov rcx, qword [rdi]
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x38]
mov dword [rbp - 0x40], reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x14007af22
cmp dword [rbp - 0x40], 0x10
jl 0x14007af22
mov rcx, qword [rdi + 8]
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x28]
mov dword [rbp - 0x40], reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_getpeername]
cmp eax, 0xffffffff
je 0x14007af22
cmp dword [rbp - 0x40], 0x10
jl 0x14007af22
movzx eax, word [rbp - 0x28]
cmp word [rbp - 0x38], ax
jne 0x14007af22
mov eax, dword [rbp - 0x24]
cmp dword [rbp - 0x34], eax
jne 0x14007af22
movzx eax, word [rbp - 0x26]
cmp word [rbp - 0x36], ax
jne 0x14007af22
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x14007af43
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rdi]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rdi + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
mov r14, qword [rsp + 0x90]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1401339b0
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x14007afa0
Capabilities:
Resolve dns

Disassembly:
push rbp
push r12
push r13
push r15
sub rsp, 0x28
mov r13, r9
xor ebp, ebp
mov qword [r9], rbp
xor r15d, r15d
lea r9, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r12d, eax
test eax, eax
jne 0x14007b129
mov qword [rsp + 0x60], rdi
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x14007b10e
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x20], r14
nop
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x14007b00e
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x14007b000
inc rbx
jmp 0x14007b010
xor ebx, ebx
mov eax, dword [rdi + 4]
cmp eax, 2
jne 0x14007b01e
lea r14d, [rax + 0xe]
jmp 0x14007b02b
cmp eax, 0x17
jne 0x14007b0c4
lea r14d, [rax + 5]
cmp qword [rdi + 0x20], 0
je 0x14007b0c4
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x14007b0c4
cmp rax, r14
jb 0x14007b0c4
lea rcx, [rbx + 0x30]
add rcx, r14
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x14007b0d3
mov ecx, dword [rdi]
mov r8, r14
mov dword [rax], ecx
mov ecx, dword [rdi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rdi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rdi + 0xc]
mov dword [rax + 0xc], ecx
lea rcx, [rsi + 0x30]
mov dword [rax + 0x10], r14d
xor eax, eax
mov qword [rsi + 0x18], rax
mov qword [rsi + 0x28], rax
mov qword [rsi + 0x20], rcx
mov rdx, qword [rdi + 0x20]
call fcn.1401384f0
test rbx, rbx
je 0x14007b0b1
mov rcx, qword [rsi + 0x20]
mov r8, rbx
add rcx, r14
mov qword [rsi + 0x18], rcx
mov rdx, qword [rdi + 0x18]
call fcn.1401384f0
test rbp, rbp
cmove rbp, rsi
test r15, r15
je 0x14007b0c1
mov qword [r15 + 0x28], rsi
mov r15, rsi
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x14007aff0
jmp 0x14007b0d9
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
test rcx, rcx
je 0x14007b0f8
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x14007b109
mov rcx, rbp
call fcn.14007af70
xor ebp, ebp
jmp 0x14007b11d
test rbp, rbp
jne 0x14007b11d
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov eax, r12d
mov qword [r13], rbp
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
ret
Function at 0x1400815c0
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 [0x1401c7b80]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rsi, qword [rcx + 0x18]
lea r8, [rsp + 0x20]
mov rdi, rcx
lea rdx, [rsp + 0x30]
mov rbx, 0xffffffffffffffff
mov rbp, qword [rsi + 0x1f0]
mov rcx, rbp
mov dword [rsp + 0x20], pe_nt_image_headers64
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x14008163b
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], pe_nt_image_headers64
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
mov r8, rbp
mov rdx, rsi
mov rcx, rdi
call fcn.1400682e0
mov rcx, rdi
cmp rbx, 0xffffffffffffffff
jne 0x140081663
lea rdx, str.Error_accept__ing_server_connect
call fcn.1400678e0
lea eax, [rbx + 0x1f]
jmp 0x1400816df
lea rdx, str.Connection_accepted_from_server
call fcn.1400679c0
mov edx, 1
mov byte [rsi + 0x3a2], 0
mov rcx, rbx
mov qword [rsi + 0x1f0], rbx
call fcn.1400916b0
mov byte [rsi + 0x3b5], 1
cmp qword [rdi + 0x288], 0
je 0x1400816dd
mov dl, 1
mov rcx, rdi
call fcn.14005a080
mov rcx, qword [rdi + 0x290]
mov r8d, 1
mov rdx, rbx
call qword [rdi + 0x288]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.14005a080
test ebx, ebx
je 0x1400816dd
mov rdx, rsi
mov rcx, rdi
call fcn.140081b90
mov eax, Ordinal_46
jmp 0x1400816df
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1401339b0
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 0x140082730
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov r8, rdx
mov rbx, rcx
add rdx, 0x498
cmp byte [rdx + 0xa6], 0
jne 0x1400827ed
xor r10d, r10d
mov dword [rdx + 0xc8], r10d
mov eax, r10d
cmp dword [rcx + 0x75c], 2
sete al
mov dword [rdx + 0xcc], eax
cmp byte [r8 + 0x39a], r10b
je 0x1400827a6
mov r9, qword [rdx + 0x88]
test r9, r9
je 0x1400827a6
cmp dword [rdx + 0xa0], r10d
je 0x14008279a
mov rax, qword [rdx + 0x98]
mov rcx, qword [rax]
cmp byte [rcx], 0x2f
je 0x1400827a6
mov dword [rdx + 0xa8], r10d
mov rcx, rbx
jmp 0x1400827c6
mov rcx, rbx
cmp dword [rdx + 0xa0], r10d
je 0x1400827ed
mov r9, qword [rdx + 0x98]
mov dword [rdx + 0xa8], 1
mov r9, qword [r9]
lea r8, str.CWD__s
call fcn.140097110
mov r8d, eax
test eax, eax
jne 0x1400827f7
lea edx, [rax + 0x10]
mov rcx, rbx
call fcn.140081b80
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.140082bd0
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, qword [rcx + 0x18]
mov rbx, rcx
add rdx, 0x498
cmp byte [rcx + 0xb09], 0
jne 0x140082bf6
cmp dword [rcx + 0x570], 0
je 0x140082c29
mov r9, qword [rdx + 0x90]
test r9, r9
je 0x140082c29
lea r8, str.MDTM__s
call fcn.140097110
mov r8d, eax
test eax, eax
jne 0x140082c33
lea edx, [rax + 0x12]
mov rcx, rbx
call fcn.140081b80
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.140083d90
add rsp, 0x20
pop rbx
ret
Function at 0x1400833f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
lea eax, [rdx - 0xc8]
mov rbx, rcx
cmp eax, 0x64
jb 0x14008346f
mov qword [rsp + 0x30], rsi
mov rsi, qword [rcx + 0x18]
mov qword [rsp + 0x38], rdi
mov eax, dword [rsi + 0x55c]
lea edi, [rax + 1]
test eax, eax
jne 0x14008344b
lea rdx, str.disabling_EPRT_usage
call fcn.1400679c0
mov byte [rsi + 0x3a8], 0
mov edx, edi
mov rcx, rbx
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
jmp 0x140084170
cmp edi, 2
jne 0x140083432
lea rdx, str.Failed_to_do_PORT
call fcn.1400678e0
mov rsi, qword [rsp + 0x30]
lea eax, [rdi + 0x1c]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
lea rdx, str.Connect_data_stream_actively
call fcn.1400679c0
xor edx, edx
mov rcx, rbx
call fcn.140081b80
add rsp, 0x20
pop rbx
jmp fcn.140081d30
Function at 0x1400837c0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1b0]
add rdx, 0x498
mov rbx, rcx
cmp dword [rax + 0x10], 0
je 0x140083811
cmp qword [rdx + 0x90], 0
je 0x140083811
xor r9d, r9d
lea r8, str.REST__d
call fcn.140097110
mov r8d, eax
test eax, eax
jne 0x14008381b
lea edx, [rax + 0x1a]
mov rcx, rbx
call fcn.140081b80
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.140083490
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1b0]
mov rbx, rcx
cmp dword [rax + 0x10], 1
jne 0x140083b30
mov r9, qword [rdx + 0x528]
test r9, r9
je 0x140083b30
lea r8, str.SIZE__s
add rdx, 0x498
call fcn.140097110
mov r8d, eax
test eax, eax
jne 0x140083b3a
lea edx, [rax + 0x17]
mov rcx, rbx
call fcn.140081b80
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1400837c0
add rsp, 0x20
pop rbx
ret

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

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0xb1c], 0
mov r10, rcx
mov r11, qword [rcx + 0x18]
je 0x140083dec
cmp qword [r11 + 0x528], 0
je 0x140083dec
movzx edx, byte [rcx + 0x1310]
mov rcx, r11
call fcn.140081f90
test eax, eax
je 0x140083dec
mov rax, qword [r10 + 0x1b0]
mov r9d, reloc.WS2_32.dll_send
mov rdx, r11
mov rcx, r10
mov dword [rax + 0x10], 1
movzx r8d, byte [r10 + 0x1310]
add rsp, 0x28
jmp fcn.140081ef0
mov rdx, r11
mov rcx, r10
add rsp, 0x28
jmp fcn.140083ae0

Function at 0x140083e00
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx + 0x18]
lea eax, [rdx - 0xc8]
xor edi, edi
mov esi, r8d
mov rbx, rcx
cmp eax, 0x64
jb 0x140083e3c
lea rdx, str.Couldnt_set_desired_mode
call fcn.1400678e0
lea eax, [rdi + 0x11]
jmp 0x140083e94
cmp edx, 0xc8
je 0x140083e53
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200
call fcn.1400679c0
cmp esi, 0x13
jne 0x140083e65
mov rdx, rbp
mov rcx, rbx
call fcn.140083ae0
jmp 0x140083e90
cmp esi, 0x14
jne 0x140083e74
mov rcx, rbx
call fcn.140082a30
jmp 0x140083e90
cmp esi, 0x15
jne 0x140083e83
mov rcx, rbx
call fcn.140083ad0
jmp 0x140083e90
cmp esi, 0x16
jne 0x140083e92
mov rcx, rbx
call fcn.140083ce0
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14008a730
Capabilities:
Send data
Send data on socket

Disassembly:
mov r9, qword [rcx + 0x1b0]
mov r11, rcx
movsxd r10, edx
mov r8d, dword [r9 + r10*4 + 8]
sub r8d, 1
je 0x14008a7b1
sub r8d, 1
je 0x14008a788
cmp r8d, 1
jne 0x14008a7c5
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x14008a7a9
cmp ecx, r8d
jne 0x14008a7c5
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.14008a950
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x14008a7a9
cmp ecx, 1
jne 0x14008a7c5
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.14008a950
ret

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

Disassembly:
mov r9, qword [rcx + 0x1b0]
mov r11, rcx
movsxd r10, edx
mov r8d, dword [r9 + r10*4 + 0xc08]
test r8d, r8d
je 0x14008a874
sub r8d, 2
je 0x14008a82d
cmp r8d, 1
jne 0x14008a866
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x14008a820
cmp ecx, r8d
jne 0x14008a866
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 0x14008a867
cmp ecx, 1
jne 0x14008a866
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.14008a950
ret
mov dword [r9 + r10*4 + 0xc08], 1
ret
cmp dword [r9 + r10*4 + 0x1408], 1
jne 0x14008a859
mov r8d, edx
mov dword [r9 + r10*4 + 0xc08], 1
mov edx, 0xfd
jmp fcn.14008a950

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

Disassembly:
mov r9, qword [rcx + 0x1b0]
mov r11, rcx
movsxd r10, edx
mov r8d, dword [r9 + r10*4 + 0xc08]
sub r8d, 1
je 0x14008a92d
sub r8d, 1
je 0x14008a8fe
cmp r8d, 1
jne 0x14008a944
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x14008a922
cmp ecx, r8d
jne 0x14008a944
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.14008a950
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x14008a922
cmp ecx, 1
jne 0x14008a944
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.14008a950
ret
Function at 0x14008a950
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov byte [rsp + 0x38], 0xff
mov rcx, qword [rcx + 0x18]
mov edi, r8d
mov esi, edx
mov byte [rsp + 0x3a], dil
xor r9d, r9d
mov byte [rsp + 0x39], sil
lea rdx, [rsp + 0x38]
mov rcx, qword [rcx + 0x1e8]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14008a9af
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbx
mov r8d, eax
call fcn.1400678e0
mov r9d, edi
lea rdx, str.SENT
mov r8d, esi
mov rcx, rbx
call fcn.14008a140
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14008ad00
Capabilities:
Send data
Send data on socket

Disassembly:
mov r10, qword [rcx + 0x1b0]
movsxd r11, edx
mov r9d, dword [r10 + r11*4 + 8]
cmp r8d, 1
jne 0x14008ad53
test r9d, r9d
je 0x14008ad3d
sub r9d, 2
je 0x14008ad65
cmp r9d, r8d
jne 0x14008ad93
cmp dword [r10 + r11*4 + 0x408], 0
jne 0x14008ad93
mov dword [r10 + r11*4 + 0x408], 1
ret
mov r8d, edx
mov dword [r10 + r11*4 + 8], 2
mov edx, 0xfb
jmp fcn.14008a950
sub r9d, 1
je 0x14008ad7d
sub r9d, 1
je 0x14008ad25
cmp r9d, 1
jne 0x14008ad93
cmp dword [r10 + r11*4 + 0x408], 1
jne 0x14008ad93
mov dword [r10 + r11*4 + 0x408], 0
ret
mov r8d, edx
mov dword [r10 + r11*4 + 8], 3
mov edx, 0xfc
jmp fcn.14008a950
ret

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

Disassembly:
mov r10, qword [rcx + 0x1b0]
movsxd r11, edx
mov r9d, dword [r10 + r11*4 + 0xc08]
cmp r8d, 1
jne 0x14008adf9
test r9d, r9d
je 0x14008ade0
sub r9d, 2
je 0x14008ae0b
cmp r9d, r8d
jne 0x14008ae3c
cmp dword [r10 + r11*4 + 0x1008], 0
jne 0x14008ae3c
mov dword [r10 + r11*4 + 0x1008], 1
ret
mov r8d, edx
mov dword [r10 + r11*4 + 0xc08], 2
mov edx, 0xfd
jmp fcn.14008a950
sub r9d, 1
je 0x14008ae23
sub r9d, 1
je 0x14008adc8
cmp r9d, 1
jne 0x14008ae3c
cmp dword [r10 + r11*4 + 0x1008], 1
jne 0x14008ae3c
mov dword [r10 + r11*4 + 0x1008], 0
ret
mov r8d, edx
mov dword [r10 + r11*4 + 0xc08], 3
mov edx, 0xfe
jmp fcn.14008a950
ret
Function at 0x14008c030
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1401c7b80]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rcx + 0x18]
mov rsi, rcx
xor r9d, r9d
mov rdi, qword [rax + 0x498]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], pe_nt_image_headers64
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r8d, dword [rdi + 0x144]
lea r14, [rdi + 0x150]
mov rdx, qword [r14]
add r8d, 4
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rdi + 0x138], 0
mov dword [rdi + 0x13c], eax
jne 0x14008c0c9
movsxd r8, dword [rsp + 0x30]
lea rcx, [rdi + 0xb8]
lea rdx, [rsp + 0x40]
call fcn.1401384f0
mov eax, dword [rsp + 0x30]
mov dword [rdi + 0x138], eax
mov r9d, dword [rdi + 0x13c]
mov qword [rsp + 0xf8], rbx
mov qword [rsp + 0x100], rbp
cmp r9d, 4
jge 0x14008c12a
lea rdx, str.Received_too_short_packet
mov rcx, rsi
call fcn.1400678e0
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.1401339b0
add rsp, 0xd0
pop r14
pop rdi
pop rsi
ret
mov rcx, r14
call fcn.14008bb50
movzx r8d, ax
mov dword [rdi + 0xc], r8d
dec r8d
cmp r8d, 5
ja case.0x14008c15b.1
lea rdx, [0x140000000]
movsxd rax, r8d
mov ecx, dword [rdx + rax*4 + 0x8c274]
add rcx, rdx
jmp rcx
cmp r9d, 4
jle case.0x14008c15b.4
mov rcx, r14
call fcn.14008bb30
movzx ecx, word [rdi + 0x14c]
inc ecx
cmp cx, ax
jne case.0x14008c15b.4
mov r8, qword [r14]
lea eax, [r9 - 4]
movsxd r9, eax
add r8, 4
mov edx, 1
mov rcx, rsi
call fcn.140067800
mov ebx, eax
test eax, eax
je 0x14008c1b6
mov edx, 5
mov rcx, rdi
call fcn.14008cae0
mov eax, ebx
jmp 0x14008c0fe
mov eax, dword [rdi + 0x13c]
mov rcx, rsi
sub eax, 4
cdqe
add qword [rsi + 0xf8], rax
mov rdx, qword [rsi + 0xf8]
call fcn.140076910
jmp case.0x14008c15b.4
mov rbp, qword [r14]
lea eax, [r9 - 4]
mov rcx, r14
movsxd rbx, eax
call fcn.14008bb30
movzx r9d, ax
lea rcx, [rbp + 4]
mov rdx, rbx
mov dword [rdi + 8], r9d
call fcn.14008cbf0
cmp rax, rbx
jae case.0x14008c15b.4
lea r8, [rbp + 4]
mov rcx, rsi
lea rdx, str.TFTP_error:__s
call fcn.1400679c0
jmp case.0x14008c15b.4
mov rdx, qword [r14]
lea r8d, [r9 - 2]
add rdx, 2
mov rcx, rdi
call fcn.14008bd70
test eax, eax
je case.0x14008c15b.4
jmp 0x14008c0fe
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rsi
lea rdx, [0x1401a6708]
call fcn.1400678e0
mov rcx, rsi
call fcn.140076bb0
test eax, eax
je 0x14008c0fc
mov edx, 5
mov rcx, rdi
call fcn.14008cae0
mov eax, Ordinal_46
jmp 0x14008c0fe