joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140195e70
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.140174b10
mov rcx, rbx
movups xmm6, xmmword [rax]
call case.0x14017d3cf.1
mov rcx, rdi
mov rsi, rax
call case.0x14017d3cf.1
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x140195f20
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.140174b10
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.140174b90
cmp rax, 0x3e8
ja 0x140195f51
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_MoveFileExA]
test eax, eax
je 0x140195ed0
test rsi, rsi
je 0x140195f2d
mov rcx, rsi
call fcn.1401c8df5
test rbx, rbx
je 0x140195f3a
mov rcx, rbx
call fcn.1401c8df5
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 0x140195f5e
mov rcx, rsi
call fcn.1401c8df5
test rbx, rbx
je 0x140195f6b
mov rcx, rbx
call fcn.1401c8df5
mov eax, 1
jmp 0x140195f3c
Function at 0x1401964e0
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 0x14019667e
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rdi
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x14019665e
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x20], r14
nop
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x14019654e
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140196540
inc rbx
jmp 0x140196550
xor ebx, ebx
mov eax, dword [rdi + 4]
cmp eax, 2
jne 0x14019655e
lea r14d, [rax + 0xe]
jmp 0x14019656b
cmp eax, 0x17
jne 0x140196604
lea r14d, [rax + 5]
cmp qword [rdi + 0x20], 0
je 0x140196604
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x140196604
cmp rax, r14
jb 0x140196604
lea rcx, [rbx + 0x30]
add rcx, r14
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140196613
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 sub.VCRUNTIME140.dll_memcpy
test rbx, rbx
je 0x1401965f1
mov rcx, qword [rsi + 0x20]
mov r8, rbx
add rcx, r14
mov qword [rsi + 0x18], rcx
mov rdx, qword [rdi + 0x18]
call sub.VCRUNTIME140.dll_memcpy
test rbp, rbp
cmove rbp, rsi
test r15, r15
je 0x140196601
mov qword [r15 + 0x28], rsi
mov r15, rsi
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x140196530
jmp 0x140196619
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x58]
test rcx, rcx
je 0x140196633
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x140196659
test rbp, rbp
je 0x140196655
nop dword [rax]
mov rbx, qword [rbp + 0x28]
mov rcx, rbp
call qword [fcn.1401c8df5]
mov rbp, rbx
test rbx, rbx
jne 0x140196640
xor ebp, ebp
jmp 0x14019666d
test rbp, rbp
jne 0x14019666d
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov eax, r12d
mov rbx, qword [rsp + 0x50]
mov qword [r13], rbp
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
ret
Function at 0x140196c80
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov edx, Ordinal_45
mov rsi, r8
mov rbp, rcx
test r8, r8
je 0x140196d4b
nop dword [rax + rax]
mov ebx, 4
lea rdx, [rsp + 0x40]
cmp rsi, rbx
mov r8d, 4
mov rcx, rbp
cmovb rbx, rsi
call fcn.14017ad20
cmp eax, 4
jne 0x140196cfe
cmp byte [0x1404cefb0], 0
jne 0x140196d0a
xor eax, eax
lea rdx, [rsp + 0x40]
xor ecx, ecx
mov dword [rsp + 0x40], eax
lea r9d, [rax + 2]
lea r8d, [rax + 4]
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
mov edx, eax
test eax, eax
jne 0x140196d4d
mov eax, dword [rsp + 0x40]
jmp 0x140196d28
imul eax, dword [0x1404cefb4], 0x41c64e6d
add eax, 0x3039
mov dword [0x1404cefb4], eax
rol eax, 0x10
mov dword [rsp + 0x40], eax
xor edx, edx
test rbx, rbx
je 0x140196d42
sub rsi, rbx
mov byte [rdi], al
inc rdi
shr eax, 8
sub rbx, 1
jne 0x140196d30
mov dword [rsp + 0x40], eax
test rsi, rsi
jne 0x140196cb0
mov eax, edx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140196d70
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
sub rdi, 1
je 0x140196e3b
lea rbp, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
nop
mov r8d, 4
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14017ad20
cmp eax, 4
jne 0x140196e04
cmp byte [0x1404cefb0], 0
jne 0x140196de6
xor eax, eax
lea rdx, [rsp + 0x40]
xor ecx, ecx
mov dword [rsp + 0x40], eax
lea r9d, [rax + 2]
lea r8d, [rax + 4]
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
je 0x140196e08
mov eax, 2
jmp 0x140196e40
imul eax, dword [0x1404cefb4], 0x41c64e6d
add eax, 0x3039
mov dword [0x1404cefb4], eax
rol eax, 0x10
mov dword [rsp + 0x40], eax
jmp 0x140196e08
test eax, eax
jne 0x140196e40
mov ecx, dword [rsp + 0x40]
cmp ecx, 0xfffffffc
jae 0x140196da0
mov eax, 0x8421085
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
imul eax, eax, 0x3e
sub ecx, eax
movzx eax, byte [rcx + rbp]
mov byte [rsi], al
inc rsi
sub rdi, 1
jne 0x140196da0
mov byte [rsi], 0
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14019a0d0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [case.0x14017d3cf.0]
mov rdi, rax
test rax, rax
je 0x14019a14d
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x14019a178
cmp ebx, esi
je 0x14019a178
cmp ebx, 0x8000
ja 0x14019a178
cmp ebx, esi
jb 0x14019a173
mov edx, ebx
mov rcx, rdi
call qword [case.0x14017d3cf.0]
mov rdi, rax
test rax, rax
jne 0x14019a110
mov rcx, rbp
call qword [fcn.1401c8df5]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rdi
jmp 0x14019a158
mov rcx, rdi
jmp 0x14019a150
jmp 0x14019a0d0

Function at 0x14019a180
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [case.0x14017d3cf.0]
mov rdi, rax
test rax, rax
je 0x14019a14d
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x14019a178
cmp ebx, esi
je 0x14019a178
cmp ebx, 0x8000
ja 0x14019a178
cmp ebx, esi
jb 0x14019a173
mov edx, ebx
mov rcx, rdi
call qword [case.0x14017d3cf.0]
mov rdi, rax
test rax, rax
jne 0x14019a110
mov rcx, rbp
call qword [fcn.1401c8df5]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rdi
jmp 0x14019a158
mov rcx, rdi
jmp 0x14019a150
jmp 0x14019a0d0
Function at 0x1401a4980
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x14026fad8]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rsi, qword [rcx + 0x20]
lea r8, [rsp + 0x20]
mov rdi, rcx
lea rdx, [rsp + 0x30]
mov rbx, qword [rsi + 0x1e0]
mov rcx, rbx
mov qword [rsp + 0x28], 0xffffffffffffffff
mov dword [rsp + 0x20], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1401a49fc
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x80
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsp + 0x28], rax
jmp 0x1401a4a01
mov rax, qword [rsp + 0x28]
mov rcx, rdi
cmp rax, 0xffffffffffffffff
jne 0x1401a4a20
lea rdx, str.Error_accept__ing_server_connect
call fcn.1401815e0
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x1401a4aac
lea rdx, str.Connection_accepted_from_server
call fcn.140181770
mov byte [rsi + 0x305], 0
mov edx, 1
mov rcx, qword [rsp + 0x28]
call fcn.1401bec30
lea r9, [rsp + 0x28]
mov r8d, 1
mov rdx, rsi
mov rcx, rdi
call fcn.1401b6f30
test eax, eax
jne 0x1401a4aac
cmp qword [rdi + 0x270], 0
je 0x1401a4aaa
mov dl, 1
mov rcx, rdi
call fcn.14016f580
mov rdx, qword [rsp + 0x28]
mov r8d, 1
mov rcx, qword [rdi + 0x278]
call qword [rdi + 0x270]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.14016f580
test ebx, ebx
je 0x1401a4aaa
mov rdx, rsi
mov rcx, rdi
call fcn.1401a4fc0
mov eax, Ordinal_45
jmp 0x1401a4aac
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1401c74a0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, qword [rcx + 0x20]
lea eax, [rdx - 0xc8]
mov rbx, rcx
mov edi, dword [rsi + 0x6e8]
cmp eax, 0x64
jb 0x1401a698d
test edi, edi
jne 0x1401a694e
lea rdx, str.disabling_EPRT_usage
call fcn.140181770
mov byte [rsi + 0x30a], dil
inc edi
mov rcx, rbx
cmp edi, 2
jne 0x1401a6977
lea rdx, str.Failed_to_do_PORT
call fcn.1401815e0
lea eax, [rdi + 0x1c]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov edx, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp 0x1401a7750
lea rdx, str.Connect_data_stream_actively
call fcn.140181770
mov rax, qword [rbx + 0x20]
mov byte [rax + 0x6f6], 0
mov rax, qword [rbx + 0x198]
mov rdi, qword [rbx + 0x20]
cmp dword [rax + 0x10], 0
je 0x1401a69d1
or r8, 0xffffffffffffffff
mov dword [rsp + 0x20], 0xffffffff
or edx, r8d
xor r9d, r9d
mov rcx, rbx
call fcn.140187e80
jmp 0x1401a69d8
mov byte [rdi + 0x305], 1
mov rbx, qword [rsp + 0x40]
xor eax, eax
mov rsi, qword [rsp + 0x48]
mov byte [rdi + 0x6fc], 1
add rsp, 0x30
pop rdi
ret
Function at 0x1401a73e0
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 + 0x20]
lea eax, [rdx - 0xc8]
xor edi, edi
movzx esi, r8b
mov rbx, rcx
cmp eax, 0x64
jb 0x1401a741d
lea rdx, str.Couldnt_set_desired_mode
call fcn.1401815e0
lea eax, [rdi + 0x11]
jmp 0x1401a7479
cmp edx, 0xc8
je 0x1401a7434
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200
call fcn.140181770
cmp sil, 0x13
jne 0x1401a7447
mov rdx, rbp
mov rcx, rbx
call fcn.1401a7030
jmp 0x1401a7475
cmp sil, 0x14
jne 0x1401a7457
mov rcx, rbx
call fcn.1401a5de0
jmp 0x1401a7475
cmp sil, 0x15
jne 0x1401a7462
mov r8b, reloc.WS2_32.dll_listen
jmp 0x1401a746b
cmp sil, 0x16
jne 0x1401a7477
mov r8b, ntohs
mov dl, 1
mov rcx, rbx
call fcn.1401a6b20
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 0x1401aacf0
Capabilities:
Send data
Send data on socket

Disassembly:
mov r9, qword [rcx + 0x198]
mov r11, rcx
movsxd r10, edx
mov r8d, dword [r9 + r10*4 + 8]
sub r8d, 1
je 0x1401aad71
sub r8d, 1
je 0x1401aad48
cmp r8d, 1
jne 0x1401aad85
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x1401aad69
cmp ecx, r8d
jne 0x1401aad85
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.1401aaf10
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x1401aad69
cmp ecx, 1
jne 0x1401aad85
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.1401aaf10
ret

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

Disassembly:
mov r9, qword [rcx + 0x198]
mov r11, rcx
movsxd r10, edx
mov r8d, dword [r9 + r10*4 + 0xc08]
test r8d, r8d
je 0x1401aae34
sub r8d, 2
je 0x1401aaded
cmp r8d, 1
jne 0x1401aae26
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x1401aade0
cmp ecx, r8d
jne 0x1401aae26
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 0x1401aae27
cmp ecx, 1
jne 0x1401aae26
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.1401aaf10
ret
mov dword [r9 + r10*4 + 0xc08], 1
ret
cmp dword [r9 + r10*4 + 0x1408], 1
jne 0x1401aae19
mov r8d, edx
mov dword [r9 + r10*4 + 0xc08], 1
mov edx, 0xfd
jmp fcn.1401aaf10

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

Disassembly:
mov r9, qword [rcx + 0x198]
mov r11, rcx
movsxd r10, edx
mov r8d, dword [r9 + r10*4 + 0xc08]
sub r8d, 1
je 0x1401aaeed
sub r8d, 1
je 0x1401aaebe
cmp r8d, 1
jne 0x1401aaf04
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x1401aaee2
cmp ecx, r8d
jne 0x1401aaf04
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.1401aaf10
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x1401aaee2
cmp ecx, 1
jne 0x1401aaf04
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.1401aaf10
ret
Function at 0x1401aaf10
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 + 0x20]
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 + 0x1d8]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1401aaf6f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbx
mov r8d, eax
call fcn.1401815e0
mov r9d, edi
lea rdx, str.SENT
mov r8d, esi
mov rcx, rbx
call fcn.1401aa730
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
cmp edx, 0x1f
jne 0x1401ab2bf
push rsi
push rdi
push r15
sub rsp, 0x30
mov rdi, qword [rcx + 0x198]
mov rsi, rcx
mov r15, qword [rcx + 0x20]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x28], rbp
lea rbx, [rdi + 0x1eb8]
mov qword [rsp + 0x20], r14
lea r14, [rdi + 0x1cb8]
mov qword [rbx], r14
cmp r14, rbx
jae 0x1401ab15b
mov byte [r14], 0xff
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1401ab169
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1401ab177
mov byte [rax], Ordinal_33
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx ebp, ax
mov word [rsp + 0x58], ax
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rbx]
movzx r8d, ax
mov word [rsp + 0x50], ax
cmp rcx, rbx
jae 0x1401ab1b0
mov byte [rcx], bpl
inc qword [rbx]
mov rdx, qword [rbx]
mov rbp, qword [rsp + 0x28]
cmp rdx, rbx
jae 0x1401ab1c7
movzx ecx, byte [rsp + 0x59]
mov byte [rdx], cl
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1401ab1d5
mov byte [rax], r8b
inc qword [rbx]
mov rcx, qword [rbx]
cmp rcx, rbx
jae 0x1401ab1e7
movzx eax, byte [rsp + 0x51]
mov byte [rcx], al
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1401ab1f5
mov byte [rax], 0xff
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1401ab203
mov byte [rax], 0xf0
inc qword [rbx]
mov rax, qword [rbx]
lea r8, [rdi + 0x1cba]
mov r9, rax
mov qword [rdi + 0x1ec0], rax
sub r9, r14
mov qword [rbx], r14
sub r9, 2
mov edx, 0x3e
mov rcx, rsi
call fcn.1401aa870
mov rcx, qword [r15 + 0x1d8]
xor r9d, r9d
mov rdx, r14
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov r14, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x60]
test eax, eax
jns 0x1401ab26b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.1401815e0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, rsi
call fcn.1401aafa0
mov rcx, qword [r15 + 0x1d8]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1401ab2b7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.1401815e0
add rsp, 0x30
pop r15
pop rdi
pop rsi
ret
Function at 0x1401ac4e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x14026fad8]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rcx + 0x20]
mov rsi, rcx
xor r9d, r9d
xor edi, edi
mov rbx, qword [rax + 0x600]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x80
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r8d, dword [rbx + 0x144]
mov rdx, qword [rbx + 0x150]
add r8d, 4
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.WS2_32.dll_recvfrom]
mov dword [rbx + 0x13c], eax
cmp dword [rbx + 0x138], edi
jne 0x1401ac576
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xb8]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x138], eax
mov r8d, dword [rbx + 0x13c]
cmp r8d, 4
jge 0x1401ac5b6
lea rdx, str.Received_too_short_packet
mov rcx, rsi
call fcn.1401815e0
mov dword [rbx + 0xc], 7
mov eax, edi
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1401c74a0
add rsp, 0xd0
pop rdi
pop rsi
pop rbx
ret
mov rax, qword [rbx + 0x150]
movzx ecx, byte [rax]
movzx edx, byte [rax + 1]
shl ecx, 8
or edx, ecx
mov dword [rbx + 0xc], edx
sub edx, 3
je 0x1401ac6b0
sub edx, 1
je 0x1401ac689
sub edx, 1
je 0x1401ac61b
cmp edx, 1
je 0x1401ac603
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rsi
lea rdx, [0x140241c80]
call fcn.1401815e0
jmp 0x1401ac689
add r8d, 0xfffffffe
lea rdx, [rax + 2]
mov rcx, rbx
call fcn.1401ac150
mov edi, eax
test eax, eax
je 0x1401ac689
jmp 0x1401ac59b
mov qword [rsp + 0xf8], rbp
xor edx, edx
lea rbp, [rax + 4]
mov qword [rsp + 0x100], r14
lea eax, [r8 - 4]
movsxd r14, eax
mov rax, qword [rbx + 0x150]
mov r8, r14
movzx ecx, byte [rax + 2]
movzx eax, byte [rax + 3]
shl ecx, 8
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rbp
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x1401ac679
sub rax, rbp
cmp rax, r14
jae 0x1401ac679
mov r8, rbp
lea rdx, str.TFTP_error:__s
mov rcx, rsi
call fcn.140181770
mov rbp, qword [rsp + 0xf8]
mov r14, qword [rsp + 0x100]
mov rcx, rsi
call fcn.140192dc0
test eax, eax
je 0x1401ac599
mov edx, 5
mov rcx, rbx
call fcn.1401ad100
mov eax, Ordinal_45
jmp 0x1401ac59b
cmp r8d, 4
jle 0x1401ac689
movzx ecx, byte [rax + 2]
movzx eax, byte [rax + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x14c]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x1401ac689
lea eax, [r8 - 4]
mov edx, 1
mov r8, qword [rbx + 0x150]
mov rcx, rsi
add r8, 4
movsxd r9, eax
call fcn.140181cd0
mov edi, eax
test eax, eax
je 0x1401ac689
mov edx, 5
mov rcx, rbx
call fcn.1401ad100
jmp 0x1401ac599
Function at 0x1401ad100
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x28
mov r8d, dword [rcx]
mov r9, qword [rcx + 0x10]
test r8d, r8d
je 0x1401ad167
sub r8d, 1
je 0x1401ad15e
sub r8d, 1
je 0x1401ad155
lea rdx, [0x140241c80]
mov rcx, r9
cmp r8d, 1
je 0x1401ad142
lea r8, str.Internal_state_machine_error
call fcn.1401815e0
mov eax, 0x47
add rsp, 0x28
ret
lea r8, str.TFTP_finished
call fcn.140181770
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.1401ad270
add rsp, 0x28
jmp fcn.1401ac710
add rsp, 0x28
jmp fcn.1401aca50
Function at 0x1401b71b0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x1404cefb8]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x1401b7214
lea r9d, [rax + 2]
mov dword [rsp + 0x20], 3
xor r8d, r8d
lea ecx, [rax + 6]
xor edx, edx
call fcn.1401b9710
test al, al
je 0x1401b7208
mov dword [0x1404cefb8], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x1404cefb8], 1
jmp 0x1401b7219
cmp eax, 2
je 0x1401b726b
lea rax, [rsp + 0x58]
mov edx, 0xffff
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1401b724a
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x1401b726b
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x30
pop rbx
ret
Function at 0x1401b7c60
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rbx, qword [rcx + 0x10]
mov rdi, rdx
mov rsi, rcx
mov r8d, dword [rbx + 0x14]
lea rdx, [rbx + 0x18]
mov rcx, qword [rbx + 0x98]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1401b7cba
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [rbx + 0xe0]
mov rcx, rdi
mov r8d, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
jmp fcn.1401b8330
mov rdx, rdi
mov rcx, rsi
call fcn.1401b8080
cmp dword [rbx], 5
lea rax, str.QUIC
lea rcx, [rbx + 0xe0]
lea rdx, [rbx + 0x114]
lea r9, [0x14024e60c]
cmove r9, rax
lea r8, str._s_socket__qd_connected:___s:_d_______s:_d_
mov eax, dword [rbx + 0x110]
mov dword [rsp + 0x40], eax
mov eax, dword [rbx + 0x144]
mov qword [rsp + 0x38], rcx
mov rcx, rdi
mov dword [rsp + 0x30], eax
mov rax, qword [rbx + 0x98]
mov qword [rsp + 0x28], rdx
mov rdx, rsi
mov qword [rsp + 0x20], rax
call fcn.140181810
mov rcx, qword [rbx + 0x98]
mov edx, 1
call fcn.1401bec30
mov rbx, qword [rsp + 0x60]
xor eax, eax
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

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

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x148
mov rax, qword [0x14026fad8]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rax, qword [rcx]
mov rdi, rcx
mov rsi, r9
mov rbp, r8
mov rcx, qword [rax + 0x10]
mov dword [r9], 0
xor r9d, r9d
mov rcx, qword [rcx + 0x98]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
jne 0x1401b7f1e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x1401b7ee5
mov dword [rsi], 0x51
jmp 0x1401b7f1a
mov r8d, 0x100
lea rdx, [rsp + 0x30]
mov ecx, ebx
call fcn.140194720
mov rcx, qword [rdi + 8]
lea rdx, str.Recv_failure:__s
mov r8, rax
call fcn.1401815e0
mov rax, qword [rdi + 8]
mov dword [rax + 0xd64], ebx
mov dword [rsi], Ordinal_60
or rbx, 0xffffffffffffffff
mov edx, dword [rsi]
lea r8, str.nw_in_read_len_zu______d__err_d
mov rcx, qword [rdi + 8]
mov r9, rbp
mov dword [rsp + 0x28], edx
mov rdx, qword [rdi]
mov dword [rsp + 0x20], ebx
call fcn.140181810
mov rax, rbx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1401c74a0
add rsp, 0x148
pop rdi
pop rsi
pop rbp
pop rbx
ret