joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400265c0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x1400d86f0]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x140026623
mov qword [rsp], rbx
lea rbx, [0x1400c3240]
nop dword [rax]
cmp r9b, 0x23
jne 0x140026603
cmp byte [r8], r9b
jne 0x140026603
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x1400265f0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5f00]
not eax
mov r8, qword [r10 + 0x5f08]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x14002664f
cmp dword [r8 + 8], eax
je 0x140026656
add r8, 0x48
cmp r8, rcx
jne 0x140026640
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x140046940
Capabilities:
Hash data with crc32

Disassembly:
push rdi
sub rsp, 0x20
test dword [rcx + 0x10], 0x100000
mov rdi, rdx
je 0x1400469cc
movzx r9d, byte [rdx]
lea r8, [rdx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x1400469a0
lea r11, [0x1400c3240]
nop
cmp r9b, 0x23
jne 0x140046983
cmp byte [r8], r9b
jne 0x140046983
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x140046970
mov rcx, qword [0x1400d86f0]
not eax
cmp dword [rcx + 0x406c], eax
jne 0x1400469b7
mov dword [rcx + 0x4070], eax
cmp dword [rcx + 0x4098], eax
jne 0x140046a29
mov byte [rcx + 0x409c], 1
add rsp, 0x20
pop rdi
ret
mov rax, qword [0x1400d86f0]
xor edx, edx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rsi
mov rbx, qword [rax + 0x4008]
movsxd rcx, dword [rbx + 0x100]
mov rax, qword [rbx + 0x108]
mov r8d, dword [rax + rcx*4 - 4]
mov rcx, rdi
call fcn.14000e7a0
mov rcx, qword [rbx]
mov esi, eax
mov rbx, qword [rsp + 0x30]
cmp dword [rcx + 0x4054], eax
jne 0x140046a22
mov r8, rdi
mov edx, ntohs
mov ecx, eax
call fcn.140027700
mov eax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14004fd90
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rsi, [rcx + rdx]
mov rbx, rcx
mov edi, 0x1505
cmp rcx, rsi
jae 0x14004f9eb
movzx ecx, byte [rbx]
call fcn.14005c350
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x14004f9d0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
movzx eax, dil
add rsp, 0x20
pop rdi
ret
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14004fdc6
call fcn.14005d140
test al, al
jne 0x14004fdc6
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140050060
mov rdx, qword [rsp + 0x30]
mov rcx, rax
add rsp, 0x20
pop rbx
jmp 0x14004f9b0
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140057b90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
cmp byte [rcx + 0xab7], 0
mov rbp, r9
mov r14, r8
movsxd rsi, edx
mov rdi, rcx
je 0x140057c5b
cmp qword [rcx + 0x268], 0
je 0x140057c0e
mov qword [rsp + 0x40], rbx
call fcn.14004ce40
mov dl, 1
mov rcx, rdi
movzx ebx, al
call fcn.14004cf60
mov rcx, qword [rdi + 0x1e0]
mov r9, rbp
mov qword [rsp + 0x20], rcx
mov r8, r14
mov rcx, rdi
mov edx, esi
call qword [rdi + 0x268]
movzx edx, bl
mov rcx, rdi
call fcn.14004cf60
mov rbx, qword [rsp + 0x40]
jmp 0x140057c5b
mov ecx, esi
test edx, edx
je 0x140057c1e
sub ecx, 1
je 0x140057c1e
cmp ecx, 1
jne 0x140057c5b
mov r9, qword [rdi + 0x1d8]
lea rax, [0x1400986a8]
mov edx, 2
lea rcx, [rsi + rsi*2]
add rcx, rax
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x1d8]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x140059bb0
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.140059c30
mov r8d, eax
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov rbx, qword [rsp + 0x30]
cdqe
add rsp, 0x20
pop rdi
ret
Function at 0x140059f00
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
jne 0x140059f2a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExW
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x140098908]
mov rcx, rbx
mov r14, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcspbrk]
test rax, rax
je 0x140059f8e
mov rcx, rbx
test r14, r14
je 0x140059f78
xor edx, edx
lea r8d, [rdx + 8]
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
test r14, r14
je 0x140059fc6
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140059fc6
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r15d, eax
test eax, eax
je 0x14005a08a
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x40], rsi
mov rdx, rdi
nop
inc rdx
cmp word [rbx + rdx*2], bp
jne 0x140059ff0
lea ecx, [rax + 1]
add rcx, rdx
add rcx, rcx
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x14005a07c
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14005a07c
mov rax, rdi
cmp word [rsi + rax*2 + 2], bp
lea rax, [rax + 1]
jne 0x14005a023
mov dword [rsi + rax*2], 0x5c
cmp word [rsi + rdi*2 + 2], bp
lea rdi, [rdi + 1]
jne 0x14005a035
lea rcx, [rdi + rdi]
sub rcx, rbx
add rcx, rsi
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rcx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x14005a050
mov rcx, rsi
test r14, r14
je 0x14005a073
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x14005a079
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbp, rax
mov rcx, rsi
call qword [fcn.1400939ca]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
Function at 0x14005a0f0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x1400d76b0]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x14005a156
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14005a139
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x14005a133
shr ax, 8
cmp al, 2
je 0x14005a156
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140092770
add rsp, 0x1e8
ret
call fcn.140085bb0
test eax, eax
jne 0x14005a1cf
lea rcx, str.iphlpapi.dll
call fcn.140059f00
mov qword [0x1400d7f78], rax
test rax, rax
je 0x14005a19c
lea rdx, str.if_nametoindex
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400d7f70]
test rax, rax
cmovne rcx, rax
mov qword [0x1400d7f70], rcx
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.140085750
test al, al
lea rcx, [0x1400d8760]
setne byte [0x1400d8758]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140092770
add rsp, 0x1e8
ret

Function at 0x14005c4c0
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 0x14005c50e
movzx ecx, byte [rsi]
test cl, cl
je 0x14005c50e
call fcn.14005c350
movzx ecx, bpl
movzx edi, al
call fcn.14005c350
cmp al, dil
jne 0x14005c533
movzx ebp, byte [rbx + 1]
inc rbx
inc rsi
test bpl, bpl
jne 0x14005c4e2
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 0x14005c51e
test rcx, rcx
je 0x14005c54f
test rdx, rdx
je 0x14005c55a
jmp 0x14005c4c0
test rdx, rdx
jne 0x14005c55a
mov eax, 1
ret
xor eax, eax
ret

Function at 0x140064320
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 0x14006434a
cmp dword [rdx], 0
jne 0x140064360
test rbx, rbx
je 0x140064355
cmp dword [r8], 0
jne 0x140064360
test rdi, rdi
je 0x1400643ac
cmp dword [r9], 0
je 0x1400643ac
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.14008a3c0
test rdi, rdi
je 0x140064379
cmp dword [rdi], 0
jne 0x14006437b
xor edi, edi
test rbx, rbx
je 0x140064385
cmp dword [rbx], 0
jne 0x140064387
xor ebx, ebx
test rsi, rsi
je 0x140064391
cmp dword [rsi], 0
jne 0x140064393
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 0x1400643b6
mov rcx, qword [rsp + 0x60]
call fcn.1400642d0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140065330
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.140050450
mov rcx, rbx
movups xmm6, xmmword [rax]
call fcn.1400644b0
mov rcx, rdi
mov rsi, rax
call fcn.1400644b0
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1400653e0
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.140050450
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.1400504e0
cmp rax, 0x3e8
ja 0x140065413
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 0x140065390
test rsi, rsi
je 0x1400653ee
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x1400653fc
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 0x140065421
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x14006542f
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 1
jmp 0x1400653fe
Function at 0x1400658c0
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 0x140065a4b
mov qword [rsp + 0x20], rdi
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x140065a30
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x14006592e
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140065920
inc rbx
jmp 0x140065930
xor ebx, ebx
mov eax, dword [rdi + 4]
cmp eax, 2
jne 0x14006593d
lea ebp, [rax + 0xe]
jmp 0x140065949
cmp eax, 0x17
jne 0x1400659e5
lea ebp, [rax + 5]
cmp qword [rdi + 0x20], 0
je 0x1400659e5
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x1400659e5
cmp rax, rbp
jb 0x1400659e5
lea rcx, [rbp + 0x30]
add rcx, rbx
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x1400659f4
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 0x1400659d2
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 0x1400659e2
mov qword [r15 + 0x28], rsi
mov r15, rsi
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x140065910
jmp 0x1400659fa
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 0x140065a19
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x140065a2b
mov rcx, r14
call fcn.140065890
xor r14d, r14d
jmp 0x140065a3f
test r14, r14
jne 0x140065a3f
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 0x140065d90
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 0x140065dc7
cmp rax, 0xffffffffffffffff
cmovne rbx, rax
mov rax, rbx
add rsp, 0x30
pop rbx
ret
add rsp, 0x30
pop rbx
ret

Function at 0x140065f70
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 0x140069020
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.0x140056ea0.0]
mov rdi, rax
test rax, rax
je 0x14006909d
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 0x1400690c8
cmp ebx, esi
je 0x1400690c8
cmp ebx, 0x8000
ja 0x1400690c8
cmp ebx, esi
jb 0x1400690c3
mov edx, ebx
mov rcx, rdi
call qword [case.0x140056ea0.0]
mov rdi, rax
test rax, rax
jne 0x140069060
mov rcx, rbp
call qword [fcn.1400939ca]
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 0x1400690a8
mov rcx, rdi
jmp 0x1400690a0
jmp 0x140069020

Function at 0x1400690d0
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.0x140056ea0.0]
mov rdi, rax
test rax, rax
je 0x14006909d
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 0x1400690c8
cmp ebx, esi
je 0x1400690c8
cmp ebx, 0x8000
ja 0x1400690c8
cmp ebx, esi
jb 0x1400690c3
mov edx, ebx
mov rcx, rdi
call qword [case.0x140056ea0.0]
mov rdi, rax
test rax, rax
jne 0x140069060
mov rcx, rbp
call qword [fcn.1400939ca]
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 0x1400690a8
mov rcx, rdi
jmp 0x1400690a0
jmp 0x140069020
Function at 0x14006a980
Capabilities:
Send data
Send data on socket

Disassembly:
mov r9, qword [rcx + 0x1a8]
mov r11, rcx
movsxd r10, edx
mov r8d, dword [r9 + r10*4 + 8]
sub r8d, 1
je 0x14006aa01
sub r8d, 1
je 0x14006a9d8
cmp r8d, 1
jne 0x14006aa15
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x14006a9f9
cmp ecx, r8d
jne 0x14006aa15
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.14006aba0
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x14006a9f9
cmp ecx, 1
jne 0x14006aa15
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.14006aba0
ret

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

Disassembly:
mov r9, qword [rcx + 0x1a8]
mov r11, rcx
movsxd r10, edx
mov r8d, dword [r9 + r10*4 + 0xc08]
test r8d, r8d
je 0x14006aac4
sub r8d, 2
je 0x14006aa7d
cmp r8d, 1
jne 0x14006aab6
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x14006aa70
cmp ecx, r8d
jne 0x14006aab6
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 0x14006aab7
cmp ecx, 1
jne 0x14006aab6
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.14006aba0
ret
mov dword [r9 + r10*4 + 0xc08], 1
ret
cmp dword [r9 + r10*4 + 0x1408], 1
jne 0x14006aaa9
mov r8d, edx
mov dword [r9 + r10*4 + 0xc08], 1
mov edx, 0xfd
jmp fcn.14006aba0

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

Disassembly:
mov r9, qword [rcx + 0x1a8]
mov r11, rcx
movsxd r10, edx
mov r8d, dword [r9 + r10*4 + 0xc08]
sub r8d, 1
je 0x14006ab7d
sub r8d, 1
je 0x14006ab4e
cmp r8d, 1
jne 0x14006ab94
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x14006ab72
cmp ecx, r8d
jne 0x14006ab94
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.14006aba0
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x14006ab72
cmp ecx, 1
jne 0x14006ab94
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.14006aba0
ret
Function at 0x14006aba0
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 + 0x1a8]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14006abff
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbx
mov r8d, eax
call fcn.140057c80
mov r9d, edi
lea rdx, str.SENT
mov r8d, esi
mov rcx, rbx
call fcn.14006a390
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14006af50
Capabilities:
Send data
Send data on socket

Disassembly:
mov r10, qword [rcx + 0x1a8]
movsxd r11, edx
mov r9d, dword [r10 + r11*4 + 8]
cmp r8d, 1
jne 0x14006afa3
test r9d, r9d
je 0x14006af8d
sub r9d, 2
je 0x14006afb5
cmp r9d, r8d
jne 0x14006afe3
cmp dword [r10 + r11*4 + 0x408], 0
jne 0x14006afe3
mov dword [r10 + r11*4 + 0x408], 1
ret
mov r8d, edx
mov dword [r10 + r11*4 + 8], 2
mov edx, 0xfb
jmp fcn.14006aba0
sub r9d, 1
je 0x14006afcd
sub r9d, 1
je 0x14006af75
cmp r9d, 1
jne 0x14006afe3
cmp dword [r10 + r11*4 + 0x408], 1
jne 0x14006afe3
mov dword [r10 + r11*4 + 0x408], 0
ret
mov r8d, edx
mov dword [r10 + r11*4 + 8], 3
mov edx, 0xfc
jmp fcn.14006aba0
ret

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

Disassembly:
mov r10, qword [rcx + 0x1a8]
movsxd r11, edx
mov r9d, dword [r10 + r11*4 + 0xc08]
cmp r8d, 1
jne 0x14006b049
test r9d, r9d
je 0x14006b030
sub r9d, 2
je 0x14006b05b
cmp r9d, r8d
jne 0x14006b08c
cmp dword [r10 + r11*4 + 0x1008], 0
jne 0x14006b08c
mov dword [r10 + r11*4 + 0x1008], 1
ret
mov r8d, edx
mov dword [r10 + r11*4 + 0xc08], 2
mov edx, 0xfd
jmp fcn.14006aba0
sub r9d, 1
je 0x14006b073
sub r9d, 1
je 0x14006b018
cmp r9d, 1
jne 0x14006b08c
cmp dword [r10 + r11*4 + 0x1008], 1
jne 0x14006b08c
mov dword [r10 + r11*4 + 0x1008], 0
ret
mov r8d, edx
mov dword [r10 + r11*4 + 0xc08], 3
mov edx, 0xfe
jmp fcn.14006aba0
ret
Function at 0x14006c210
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1400d76b0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rcx + 0x20]
mov rsi, rcx
xor r9d, r9d
mov rdi, qword [rax + 0x5d0]
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]
cmp dword [rdi + 0x138], 0
mov dword [rdi + 0x13c], eax
jne 0x14006c2a9
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 + 0xf8], rbx
mov qword [rsp + 0x100], rbp
cmp r9d, 4
jge 0x14006c30a
lea rdx, str.Received_too_short_packet
mov rcx, rsi
call fcn.140057c80
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.140092770
add rsp, 0xd0
pop r14
pop rdi
pop rsi
ret
mov rcx, r14
call fcn.14006bd50
movzx r8d, ax
mov dword [rdi + 0xc], r8d
dec r8d
cmp r8d, 5
ja case.0x14006c33b.1
lea rdx, [0x140000000]
movsxd rax, r8d
mov ecx, dword [rdx + rax*4 + 0x6c454]
add rcx, rdx
jmp rcx
cmp r9d, 4
jle case.0x14006c33b.4
mov rcx, r14
call fcn.14006bd30
movzx ecx, word [rdi + 0x14c]
inc ecx
cmp cx, ax
jne case.0x14006c33b.4
mov r8, qword [r14]
lea eax, [r9 - 4]
movsxd r9, eax
add r8, 4
mov edx, 1
mov rcx, rsi
call fcn.140057e10
mov ebx, eax
test eax, eax
je 0x14006c396
mov edx, 5
mov rcx, rdi
call fcn.14006cca0
mov eax, ebx
jmp 0x14006c2de
mov eax, dword [rdi + 0x13c]
mov rcx, rsi
sub eax, 4
cdqe
add qword [rsi + 0x100], rax
mov rdx, qword [rsi + 0x100]
call fcn.140063140
jmp case.0x14006c33b.4
mov rbp, qword [r14]
lea eax, [r9 - 4]
mov rcx, r14
movsxd rbx, eax
call fcn.14006bd30
movzx r9d, ax
lea rcx, [rbp + 4]
mov rdx, rbx
mov dword [rdi + 8], r9d
call fcn.14006cdc0
cmp rax, rbx
jae case.0x14006c33b.4
lea r8, [rbp + 4]
mov rcx, rsi
lea rdx, str.TFTP_error:__s
call fcn.140057d70
jmp case.0x14006c33b.4
mov rdx, qword [r14]
lea r8d, [r9 - 2]
add rdx, 2
mov rcx, rdi
call fcn.14006bf70
test eax, eax
je case.0x14006c33b.4
jmp 0x14006c2de
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rsi
lea rdx, [0x1400c90f4]
call fcn.140057c80
mov rcx, rsi
call fcn.140063400
test eax, eax
je 0x14006c2dc
mov edx, 5
mov rcx, rdi
call fcn.14006cca0
mov eax, Ordinal_46
jmp 0x14006c2de