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

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x140462680]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x1400f0e86
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400f0e69
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x1400f0e63
shr ax, 8
cmp al, 2
je 0x1400f0e86
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.14033bfd0
add rsp, 0x1e8
ret
lea rcx, str.iphlpapi.dll
mov qword [rsp + 0x1e0], rbx
call fcn.1400f0c80
mov qword [0x14049a690], rax
test rax, rax
je 0x1400f0ec2
lea rdx, str.if_nametoindex
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400f0ec2
mov qword [0x14049a670], rax
lea rcx, [0x140346748]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
test rax, rax
je 0x1400f0f1c
lea rdx, str.FreeAddrInfoExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetAddrInfoExCancel
mov rcx, rbx
mov qword [0x14049a678], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetAddrInfoExW
mov rcx, rbx
mov qword [0x14049a680], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14049a688], rax
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.140128040
mov r9d, 2
mov dword [rsp + 0x20], 3
test al, al
mov edx, r9d
setne byte [0x14049d9d9]
xor r8d, r8d
lea ecx, [r9 + 4]
call fcn.140128040
test al, al
lea rcx, [0x14049d9e0]
setne byte [0x14049d9d8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov rbx, qword [rsp + 0x1e0]
xor eax, eax
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.14033bfd0
add rsp, 0x1e8
ret

Function at 0x1400f2ee0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movzx ebp, byte [rcx]
mov rsi, rdx
mov rbx, rcx
test bpl, bpl
je 0x1400f2f2e
movzx ecx, byte [rsi]
test cl, cl
je 0x1400f2f2e
call fcn.1400f2d70
movzx ecx, bpl
movzx edi, al
call fcn.1400f2d70
cmp al, dil
jne 0x1400f2f53
movzx ebp, byte [rbx + 1]
inc rbx
inc rsi
test bpl, bpl
jne 0x1400f2f02
xor ecx, ecx
mov eax, ecx
cmp byte [rbx], al
sete al
cmp byte [rsi], cl
setne cl
xor eax, ecx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor eax, eax
jmp 0x1400f2f3e
test rcx, rcx
je 0x1400f2f6f
test rdx, rdx
je 0x1400f2f7a
jmp 0x1400f2ee0
test rdx, rdx
jne 0x1400f2f7a
mov eax, 1
ret
xor eax, eax
ret
Function at 0x1401002c0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rbx, r8
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x1401002ea
cmp dword [rdx], 0
jne 0x140100300
test rbx, rbx
je 0x1401002f5
cmp dword [r8], 0
jne 0x140100300
test rdi, rdi
je 0x14010034c
cmp dword [r9], 0
je 0x14010034c
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.14012d2d0
test rdi, rdi
je 0x140100319
cmp dword [rdi], 0
jne 0x14010031b
xor edi, edi
test rbx, rbx
je 0x140100325
cmp dword [rbx], 0
jne 0x140100327
xor ebx, ebx
test rsi, rsi
je 0x140100331
cmp dword [rsi], 0
jne 0x140100333
xor esi, esi
lea ecx, [rbp + 1]
mov qword [rsp + 0x20], rax
mov r9, rdi
mov r8, rbx
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_select]
jmp 0x140100356
mov rcx, qword [rsp + 0x60]
call fcn.140100270
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140101f30
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.1400e1920
mov rcx, rbx
movups xmm6, xmmword [rax]
call fcn.140100460
mov rcx, rdi
mov rsi, rax
call fcn.140100460
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x140101fe0
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.1400e1920
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.1400e19b0
cmp rax, 0x3e8
ja 0x140102013
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 0x140101f90
test rsi, rsi
je 0x140101fee
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x140101ffc
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
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 0x140102021
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x14010202f
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 1
jmp 0x140101ffe
Function at 0x1401025b0
Capabilities:
Resolve dns

Disassembly:
push r12
push r13
push r14
push r15
sub rsp, 0x28
mov r13, r9
xor r14d, r14d
mov qword [r9], r14
xor r15d, r15d
lea r9, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r12d, eax
test eax, eax
jne 0x14010273b
mov qword [rsp + 0x20], rdi
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x140102720
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x14010261e
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140102610
inc rbx
jmp 0x140102620
xor ebx, ebx
mov eax, dword [rdi + 4]
cmp eax, 2
jne 0x14010262d
lea ebp, [rax + 0xe]
jmp 0x140102639
cmp eax, 0x17
jne 0x1401026d5
lea ebp, [rax + 5]
cmp qword [rdi + 0x20], 0
je 0x1401026d5
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x1401026d5
cmp rax, rbp
jb 0x1401026d5
lea rcx, [rbp + 0x30]
add rcx, rbx
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x1401026e4
mov ecx, dword [rdi]
mov r8, rbp
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], ebp
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 0x1401026c2
mov rcx, qword [rsi + 0x20]
mov r8, rbx
add rcx, rbp
mov qword [rsi + 0x18], rcx
mov rdx, qword [rdi + 0x18]
call sub.VCRUNTIME140.dll_memcpy
test r14, r14
cmove r14, rsi
test r15, r15
je 0x1401026d2
mov qword [r15 + 0x28], rsi
mov r15, rsi
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x140102600
jmp 0x1401026ea
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
test rcx, rcx
je 0x140102709
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x14010271b
mov rcx, r14
call fcn.140102580
xor r14d, r14d
jmp 0x14010272f
test r14, r14
jne 0x14010272f
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x20]
mov eax, r12d
mov qword [r13], r14
add rsp, 0x28
pop r15
pop r14
pop r13
pop r12
ret

Function at 0x140102bf0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
mov r9, rdx
mov r8, rcx
mov qword [rsp + 0x28], rbx
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
test rax, rax
je 0x140102c27
cmp rax, 0xffffffffffffffff
cmovne rbx, rax
mov rax, rbx
add rsp, 0x30
pop rbx
ret
add rsp, 0x30
pop rbx
ret

Function at 0x140102e50
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov r8, rdx
xor edx, edx
mov rdi, rcx
call sub.VCRUNTIME140.dll_memset
mov r9d, 2
mov r8d, ebx
mov rdx, rdi
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
mov rbx, qword [rsp + 0x30]
neg eax
sbb eax, eax
and eax, 2
add rsp, 0x20
pop rdi
ret
Function at 0x1401086e0
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.0x1400ea102.0]
mov rdi, rax
test rax, rax
je 0x14010875d
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 0x140108788
cmp ebx, esi
je 0x140108788
cmp ebx, 0x8000
ja 0x140108788
cmp ebx, esi
jb 0x140108783
mov edx, ebx
mov rcx, rdi
call qword [case.0x1400ea102.0]
mov rdi, rax
test rax, rax
jne 0x140108720
mov rcx, rbp
call qword [case.0x1400e29fc.0]
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 0x140108768
mov rcx, rdi
jmp 0x140108760
jmp 0x1401086e0

Function at 0x140108790
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.0x1400ea102.0]
mov rdi, rax
test rax, rax
je 0x14010875d
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 0x140108788
cmp ebx, esi
je 0x140108788
cmp ebx, 0x8000
ja 0x140108788
cmp ebx, esi
jb 0x140108783
mov edx, ebx
mov rcx, rdi
call qword [case.0x1400ea102.0]
mov rdi, rax
test rax, rax
jne 0x140108720
mov rcx, rbp
call qword [case.0x1400e29fc.0]
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 0x140108768
mov rcx, rdi
jmp 0x140108760
jmp 0x1401086e0
Function at 0x1401132e0
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 [0x140462680]
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 + 0x190]
mov rcx, rbx
mov qword [rsp + 0x28], 0xffffffffffffffff
mov dword [rsp + 0x20], Ordinal_133
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x14011335c
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], Ordinal_133
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsp + 0x28], rax
jmp 0x140113361
mov rax, qword [rsp + 0x28]
mov rcx, rdi
cmp rax, 0xffffffffffffffff
jne 0x140113380
lea rdx, str.Error_accept__ing_server_connect
call fcn.1400edea0
mov eax, 0x1e
jmp 0x14011340c
lea rdx, str.Connection_accepted_from_server
call fcn.1400edf90
mov byte [rsi + 0x2b5], 0
mov edx, 1
mov rcx, qword [rsp + 0x28]
call fcn.14012d340
lea r9, [rsp + 0x28]
mov r8d, 1
mov rdx, rsi
mov rcx, rdi
call fcn.1401212d0
test eax, eax
jne 0x14011340c
cmp qword [rdi + 0x268], 0
je 0x14011340a
mov dl, 1
mov rcx, rdi
call fcn.1400dc3e0
mov rdx, qword [rsp + 0x28]
mov r8d, 1
mov rcx, qword [rdi + 0x270]
call qword [rdi + 0x268]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.1400dc3e0
test ebx, ebx
je 0x14011340a
mov rdx, rsi
mov rcx, rdi
call fcn.140113940
mov eax, Ordinal_46
jmp 0x14011340c
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14033bfd0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rax, rdx
mov rbx, rcx
add rdx, 0x360
cmp byte [rdx + 0xfd], 0
jne 0x140114619
xor r8d, r8d
mov dword [rdx + 0xec], r8d
cmp byte [rax + 0x2af], r8b
je 0x1401145d3
mov r9, qword [rdx + 0x98]
test r9, r9
je 0x1401145d3
cmp dword [rdx + 0xe0], r8d
je 0x1401145c7
mov rax, qword [rdx + 0xa8]
mov rcx, qword [rax]
cmp byte [rcx], 0x2f
je 0x1401145d3
mov dword [rdx + 0xe4], r8d
mov rcx, rbx
jmp 0x1401145f3
mov rcx, rbx
cmp dword [rdx + 0xe0], r8d
je 0x140114619
mov r9, qword [rdx + 0xa8]
mov dword [rdx + 0xe4], 1
mov r9, qword [r9]
lea r8, str.CWD__s
call fcn.14012dba0
mov r8d, eax
test eax, eax
jne 0x140114623
mov dl, reloc.WS2_32.dll_recv
mov rcx, rbx
call fcn.1401138e0
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1401149f0
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, qword [rcx + 0x20]
mov rbx, rcx
add rdx, 0x360
cmp byte [rcx + 0xa7a], 0
jne 0x140114a16
cmp byte [rcx + 0x510], 0
je 0x140114a48
mov r9, qword [rdx + 0xa0]
test r9, r9
je 0x140114a48
lea r8, str.MDTM__s
call fcn.14012dba0
mov r8d, eax
test eax, eax
jne 0x140114a52
mov dl, reloc.WS2_32.dll_select
mov rcx, rbx
call fcn.1401138e0
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.140115ac0
add rsp, 0x20
pop rbx
ret
Function at 0x140115170
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 0x1401151ef
mov qword [rsp + 0x30], rsi
mov rsi, qword [rcx + 0x20]
mov qword [rsp + 0x38], rdi
mov eax, dword [rsi + 0x448]
lea edi, [rax + 1]
test eax, eax
jne 0x1401151cb
lea rdx, str.disabling_EPRT_usage
call fcn.1400edf90
mov byte [rsi + 0x2ba], 0
mov edx, edi
mov rcx, rbx
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
jmp 0x140115ea0
cmp edi, 2
jne 0x1401151b2
lea rdx, str.Failed_to_do_PORT
call fcn.1400edea0
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.1400edf90
xor edx, edx
mov rcx, rbx
call fcn.1401138e0
add rsp, 0x20
pop rbx
jmp fcn.140113b80
Function at 0x140115510
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x198]
add rdx, 0x360
mov rbx, rcx
cmp dword [rax + 0x10], 0
je 0x140115560
cmp qword [rdx + 0xa0], 0
je 0x140115560
xor r9d, r9d
lea r8, str.REST__d
call fcn.14012dba0
mov r8d, eax
test eax, eax
jne 0x14011556a
mov dl, reloc.WLDAP32.dll_Ordinal_26
mov rcx, rbx
call fcn.1401138e0
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.140115210
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x198]
mov rbx, rcx
cmp dword [rax + 0x10], 1
jne 0x14011586f
mov r9, qword [rdx + 0x400]
test r9, r9
je 0x14011586f
lea r8, str.SIZE__s
add rdx, 0x360
call fcn.14012dba0
mov r8d, eax
test eax, eax
jne 0x140115879
mov dl, reloc.WS2_32.dll_socket
mov rcx, rbx
call fcn.1401138e0
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.140115510
add rsp, 0x20
pop rbx
ret

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

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x1c7], 0
mov r10, rcx
mov r11, qword [rcx + 0x20]
je 0x140115b19
cmp qword [r11 + 0x400], 0
je 0x140115b19
movzx edx, byte [rcx + 0x1392]
mov rcx, r11
call fcn.140113df0
test eax, eax
je 0x140115b19
mov rax, qword [r10 + 0x198]
mov r9b, reloc.WS2_32.dll_send
mov rdx, r11
mov rcx, r10
mov dword [rax + 0x10], 1
movzx r8d, byte [r10 + 0x1392]
add rsp, 0x28
jmp fcn.140113d50
mov rdx, r11
mov rcx, r10
add rsp, 0x28
jmp fcn.140115820

Function at 0x140115b30
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 0x140115b6d
lea rdx, str.Couldnt_set_desired_mode
call fcn.1400edea0
lea eax, [rdi + 0x11]
jmp 0x140115bc9
cmp edx, 0xc8
je 0x140115b84
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200
call fcn.1400edf90
cmp sil, 0x13
jne 0x140115b97
mov rdx, rbp
mov rcx, rbx
call fcn.140115820
jmp 0x140115bc5
cmp sil, 0x14
jne 0x140115ba7
mov rcx, rbx
call fcn.140114850
jmp 0x140115bc5
cmp sil, 0x15
jne 0x140115bb7
mov rcx, rbx
call fcn.140115810
jmp 0x140115bc5
cmp sil, 0x16
jne 0x140115bc7
mov rcx, rbx
call fcn.140115a10
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 0x14011cbc0
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 0x14011cc41
sub r8d, 1
je 0x14011cc18
cmp r8d, 1
jne 0x14011cc55
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x14011cc39
cmp ecx, r8d
jne 0x14011cc55
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.14011cde0
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x14011cc39
cmp ecx, 1
jne 0x14011cc55
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.14011cde0
ret

Function at 0x14011cc60
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 0x14011cd04
sub r8d, 2
je 0x14011ccbd
cmp r8d, 1
jne 0x14011ccf6
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x14011ccb0
cmp ecx, r8d
jne 0x14011ccf6
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 0x14011ccf7
cmp ecx, 1
jne 0x14011ccf6
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.14011cde0
ret
mov dword [r9 + r10*4 + 0xc08], 1
ret
cmp dword [r9 + r10*4 + 0x1408], 1
jne 0x14011cce9
mov r8d, edx
mov dword [r9 + r10*4 + 0xc08], 1
mov edx, 0xfd
jmp fcn.14011cde0

Function at 0x14011cd30
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 0x14011cdbd
sub r8d, 1
je 0x14011cd8e
cmp r8d, 1
jne 0x14011cdd4
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x14011cdb2
cmp ecx, r8d
jne 0x14011cdd4
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.14011cde0
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x14011cdb2
cmp ecx, 1
jne 0x14011cdd4
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.14011cde0
ret
Function at 0x14011cde0
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 + 0x188]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14011ce3f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbx
mov r8d, eax
call fcn.1400edea0
mov r9d, edi
lea rdx, str.SENT
mov r8d, esi
mov rcx, rbx
call fcn.14011c5d0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14011d1a0
Capabilities:
Send data
Send data on socket

Disassembly:
mov r10, qword [rcx + 0x198]
movsxd r11, edx
mov r9d, dword [r10 + r11*4 + 8]
cmp r8d, 1
jne 0x14011d1f3
test r9d, r9d
je 0x14011d1dd
sub r9d, 2
je 0x14011d205
cmp r9d, r8d
jne 0x14011d233
cmp dword [r10 + r11*4 + 0x408], 0
jne 0x14011d233
mov dword [r10 + r11*4 + 0x408], 1
ret
mov r8d, edx
mov dword [r10 + r11*4 + 8], 2
mov edx, 0xfb
jmp fcn.14011cde0
sub r9d, 1
je 0x14011d21d
sub r9d, 1
je 0x14011d1c5
cmp r9d, 1
jne 0x14011d233
cmp dword [r10 + r11*4 + 0x408], 1
jne 0x14011d233
mov dword [r10 + r11*4 + 0x408], 0
ret
mov r8d, edx
mov dword [r10 + r11*4 + 8], 3
mov edx, 0xfc
jmp fcn.14011cde0
ret

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

Disassembly:
mov r10, qword [rcx + 0x198]
movsxd r11, edx
mov r9d, dword [r10 + r11*4 + 0xc08]
cmp r8d, 1
jne 0x14011d299
test r9d, r9d
je 0x14011d280
sub r9d, 2
je 0x14011d2ab
cmp r9d, r8d
jne 0x14011d2dc
cmp dword [r10 + r11*4 + 0x1008], 0
jne 0x14011d2dc
mov dword [r10 + r11*4 + 0x1008], 1
ret
mov r8d, edx
mov dword [r10 + r11*4 + 0xc08], 2
mov edx, 0xfd
jmp fcn.14011cde0
sub r9d, 1
je 0x14011d2c3
sub r9d, 1
je 0x14011d268
cmp r9d, 1
jne 0x14011d2dc
cmp dword [r10 + r11*4 + 0x1008], 1
jne 0x14011d2dc
mov dword [r10 + r11*4 + 0x1008], 0
ret
mov r8d, edx
mov dword [r10 + r11*4 + 0xc08], 3
mov edx, 0xfe
jmp fcn.14011cde0
ret
Function at 0x14011e440
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x140462680]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rcx + 0x20]
mov rbp, rcx
xor r9d, r9d
xor esi, esi
mov rdi, qword [rax + 0x360]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], Ordinal_133
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]
mov dword [rdi + 0x13c], eax
cmp dword [rdi + 0x138], esi
jne 0x14011e4de
movsxd r8, dword [rsp + 0x30]
lea rcx, [rdi + 0xb8]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rdi + 0x138], eax
mov r9d, dword [rdi + 0x13c]
mov qword [rsp + 0x100], r15
cmp r9d, 4
jge 0x14011e537
lea rdx, str.Received_too_short_packet
mov rcx, rbp
call fcn.1400edea0
mov dword [rdi + 0xc], 7
mov eax, esi
mov r15, qword [rsp + 0x100]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14033bfd0
mov rbp, qword [rsp + 0x108]
add rsp, 0xd0
pop r14
pop rdi
pop rsi
ret
mov rcx, r14
call fcn.14011df80
movzx r8d, ax
mov dword [rdi + 0xc], r8d
dec r8d
cmp r8d, 5
ja case.0x14011e568.1
lea rdx, [0x140000000]
movsxd rax, r8d
mov ecx, dword [rdx + rax*4 + 0x11e670]
add rcx, rdx
jmp rcx
cmp r9d, 4
jle case.0x14011e568.4
mov rcx, r14
call fcn.14011df60
movzx ecx, word [rdi + 0x14c]
inc ecx
cmp cx, ax
jne case.0x14011e568.4
mov r8, qword [r14]
lea eax, [r9 - 4]
movsxd r9, eax
add r8, 4
mov edx, 1
mov rcx, rbp
call fcn.1400ee490
mov esi, eax
test eax, eax
je case.0x14011e568.4
mov edx, 5
mov rcx, rdi
call fcn.14011eec0
jmp 0x14011e509
mov r15, qword [r14]
lea eax, [r9 - 4]
mov qword [rsp + 0xf8], rbx
mov rcx, r14
movsxd rbx, eax
call fcn.14011df60
movzx r9d, ax
lea rcx, [r15 + 4]
mov rdx, rbx
mov dword [rdi + 8], r9d
call fcn.14011efe0
cmp rax, rbx
mov rbx, qword [rsp + 0xf8]
jae case.0x14011e568.4
lea r8, [r15 + 4]
mov rcx, rbp
lea rdx, str.TFTP_error:__s
call fcn.1400edf90
jmp case.0x14011e568.4
mov rdx, qword [r14]
lea r8d, [r9 - 2]
add rdx, 2
mov rcx, rdi
call fcn.14011e1a0
mov esi, eax
test eax, eax
je case.0x14011e568.4
jmp 0x14011e50b
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rbp
lea rdx, [0x1403447b0]
call fcn.1400edea0
mov rcx, rbp
call fcn.1400ff3b0
test eax, eax
je 0x14011e509
mov edx, 5
mov rcx, rdi
call fcn.14011eec0
mov eax, Ordinal_46
jmp 0x14011e50b