joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140054890
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
sub rsp, 0xa8
call qword [sym.imp.SecureEngineSDK64.dll_Ordinal_165]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 2
jae 0x1400548be
mov al, 1
jmp 0x140054906
mov dword [rsp + 0x30], 0x40
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
xor edx, edx
mov rax, qword [rsp + 0x38]
mov ecx, 0x400
div rcx
xor edx, edx
mov ecx, 0x400
div rcx
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0x800
jae 0x1400548fc
mov al, 1
jmp 0x140054906
xor al, al
jmp 0x140054906
add rsp, 0xa8
ret

Function at 0x140054970
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x490
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x438
rep stosb byte [rdi], al
mov dword [rsp + 0x50], 0x238
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x38], eax
xor edx, edx
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x1400549fb
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x4a0]
call fcn.140055110
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x1400549c6
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x4a0]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 8]
cmp qword [rax], rcx
jne 0x140054a30
mov dword [rsp + 0x24], 1
jmp 0x140054a38
mov dword [rsp + 0x24], 0
movzx eax, byte [rsp + 0x24]
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x140054a51
mov eax, 0xffffffff
jmp 0x140054a53
xor eax, eax
add rsp, 0x490
pop rdi
ret
Function at 0x14005c3c0
Capabilities:
Set console window title

Disassembly:
sub rsp, 0x28
cmp qword [0x1401db6b8], 0x10
lea rcx, [0x1401db6a0]
cmovae rcx, qword [0x1401db6a0]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
call fcn.14004f9c0
xor eax, eax
add rsp, 0x28
ret
Function at 0x14005ff70
Capabilities:
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x1401dbde0]
xorps xmm0, xmm0
add rcx, 1
mov rbx, qword [0x1401dbe08]
js 0x14005ff94
cvtsi2ss xmm0, rcx
jmp 0x14005ffa9
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [0x1401dbdd0]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceilf
movss xmm1, dword [0x140178aa8]
xor ecx, ecx
comiss xmm0, xmm1
jb 0x14005ffdb
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x14005ffdb
movabs rax, 0x8000000000000000
mov rcx, rax
cvttss2si rax, xmm0
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp rbx, rcx
jae 0x14006000d
cmp rbx, 0x200
jae 0x14006000a
lea rbx, [rbx*8]
cmp rbx, rcx
jae 0x14006000d
mov rbx, rcx
mov rdx, rbx
add rsp, 0x20
pop rbx
jmp 0x140060020
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x140060051
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x1401dbdd8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x1401dbde8]
lea rdx, [rdi + rdi]
call fcn.14005f8e0
mov rax, qword [0x1401dbdd8]
lea r9, [rdi - 1]
mov qword [0x1401dbe00], r9
mov qword [0x1401dbe08], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x1400601c4
mov qword [rsp + 0x38], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rsi
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, r9
shl r11, 4
add r11, qword [0x1401dbde8]
mov r9, qword [r11]
cmp r9, rbx
jne 0x140060110
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x140060185
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x14006014d
mov r10, qword [rdx]
cmp r10, rax
je 0x140060147
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x140060185
cmp r9, rdx
je 0x140060161
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x140060199
cmp r9, rdx
jne 0x140060152
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
je 0x1400601bf
mov r9, qword [0x1401dbe00]
jmp 0x1400600c1
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x140060185
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140060020
Capabilities:
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x1401dbde0]
xorps xmm0, xmm0
add rcx, 1
mov rbx, qword [0x1401dbe08]
js 0x14005ff94
cvtsi2ss xmm0, rcx
jmp 0x14005ffa9
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [0x1401dbdd0]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceilf
movss xmm1, dword [0x140178aa8]
xor ecx, ecx
comiss xmm0, xmm1
jb 0x14005ffdb
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x14005ffdb
movabs rax, 0x8000000000000000
mov rcx, rax
cvttss2si rax, xmm0
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp rbx, rcx
jae 0x14006000d
cmp rbx, 0x200
jae 0x14006000a
lea rbx, [rbx*8]
cmp rbx, rcx
jae 0x14006000d
mov rbx, rcx
mov rdx, rbx
add rsp, 0x20
pop rbx
jmp 0x140060020
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x140060051
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x1401dbdd8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x1401dbde8]
lea rdx, [rdi + rdi]
call fcn.14005f8e0
mov rax, qword [0x1401dbdd8]
lea r9, [rdi - 1]
mov qword [0x1401dbe00], r9
mov qword [0x1401dbe08], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x1400601c4
mov qword [rsp + 0x38], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rsi
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, r9
shl r11, 4
add r11, qword [0x1401dbde8]
mov r9, qword [r11]
cmp r9, rbx
jne 0x140060110
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x140060185
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x14006014d
mov r10, qword [rdx]
cmp r10, rax
je 0x140060147
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x140060185
cmp r9, rdx
je 0x140060161
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x140060199
cmp r9, rdx
jne 0x140060152
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
je 0x1400601bf
mov r9, qword [0x1401dbe00]
jmp 0x1400600c1
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x140060185
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140060df0
Capabilities:
Check for unmoving mouse cursor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r14d, dword [0x1401dbe80]
xor ecx, ecx
mov esi, dword [0x1401dbe84]
mov r13d, r9d
mov ebx, dword [0x1401dbe8c]
movd xmm0, r9d
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x140178920]
cvttsd2si eax, xmm0
mov dword [rsp + 0x80], eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
add ebx, 0xffffff51
mov ecx, 1
cdq
sub eax, edx
sar eax, 1
mov ebp, eax
mov eax, r14d
cdq
sub eax, edx
sar eax, 1
mov edi, eax
lea r12d, [rax + rbp]
add r12d, ebx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
add esi, 0xffffff51
sub eax, edx
sar eax, 1
mov r15d, eax
mov eax, r13d
cdq
sub eax, edx
sar eax, 1
mov ebx, eax
lea ecx, [rax + r15]
add esi, ecx
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetCursorPos]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [0x1401db860]
mov ecx, r12d
mov r8d, esi
sub ecx, edi
sub r8d, ebx
test edx, edx
je 0x140060fe4
sub edx, 1
je 0x140060fc4
sub edx, 1
je 0x140060f41
cmp edx, 1
jne 0x14006102e
cmp ebp, ecx
jl 0x14006102e
lea eax, [rcx + r14]
cmp ebp, eax
jg 0x14006102e
lea eax, [r13 - 0x32]
lea eax, [rax + rax*2]
cdq
and edx, 3
add eax, edx
sar eax, 2
add eax, r8d
cmp r15d, eax
jl 0x14006102e
lea eax, [r8 + r13]
cmp r15d, eax
jg 0x14006102e
mov eax, r14d
cdq
and edx, 3
add eax, edx
sar eax, 2
add eax, ecx
cmp ebp, eax
jl 0x14006102e
lea eax, [r14 + r14*2]
cdq
and edx, 3
add eax, edx
sar eax, 2
add eax, ecx
cmp ebp, eax
jmp 0x140060ffc
cmp ebp, ecx
jl 0x14006102e
lea eax, [rcx + r14]
cmp ebp, eax
jg 0x14006102e
cmp r15d, r8d
jl 0x14006102e
lea eax, [r13 - 0x64]
add eax, r8d
cmp r15d, eax
jg 0x14006102e
mov eax, r14d
cdq
and edx, 3
add eax, edx
sar eax, 2
add eax, ecx
cmp ebp, eax
jl 0x14006102e
lea eax, [r14 + r14*2]
cdq
and edx, 3
add eax, edx
sar eax, 2
add eax, ecx
cmp ebp, eax
jg 0x14006102e
mov eax, r13d
cdq
and edx, 3
add eax, edx
sar eax, 2
add eax, r8d
cmp r15d, eax
jl 0x14006102e
lea eax, [r13 - 0x64]
lea eax, [rax + rax*2]
cdq
and edx, 3
add eax, edx
sar eax, 2
add eax, r8d
jmp 0x140060ff9
cmp ebp, ecx
jl 0x14006102e
lea eax, [rcx + r14]
cmp ebp, eax
jg 0x14006102e
cmp r15d, r8d
jl 0x14006102e
mov eax, dword [rsp + 0x80]
add eax, r8d
jmp 0x140060f0c
cmp ebp, ecx
jl 0x14006102e
lea eax, [rcx + r14]
cmp ebp, eax
jg 0x14006102e
cmp r15d, r8d
jl 0x14006102e
lea eax, [r8 + r13]
cmp r15d, eax
jg 0x14006102e
xor ebx, ebx
xor r9d, r9d
mov r8d, esi
mov qword [rsp + 0x20], rbx
mov edx, r12d
lea ecx, [rbx + 2]
call qword [sym.imp.USER32.dll_mouse_event]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
mov r8d, esi
lea ecx, [rbx + 4]
mov edx, r12d
call qword [sym.imp.USER32.dll_mouse_event]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140072740
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
cdqe
add rsp, 0x28
ret

Function at 0x1400772d0
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 + 0xaa7], 0
mov rbp, r9
mov r14, r8
movsxd rsi, edx
mov rdi, rcx
je 0x140077399
cmp qword [rcx + 0x260], 0
je 0x14007734e
mov qword [rsp + 0x40], rbx
call fcn.140092600
mov dl, 1
mov rcx, rdi
movzx ebx, al
call fcn.140092960
mov rcx, qword [rdi + 0x1d8]
mov r9, rbp
mov qword [rsp + 0x20], rcx
mov r8, r14
mov rcx, rdi
mov edx, esi
call qword [rdi + 0x260]
movzx edx, bl
mov rcx, rdi
call fcn.140092960
mov rbx, qword [rsp + 0x40]
jmp 0x140077399
mov ecx, esi
test edx, edx
je 0x14007735e
sub ecx, 1
je 0x14007735e
cmp ecx, 1
jne 0x140077399
mov r9, qword [rdi + 0x1d0]
lea rax, [0x140143028]
mov edx, 2
lea rcx, [rsi + rsi*2]
add rcx, rax
lea r8d, [rdx - 1]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov r9, qword [rdi + 0x1d0]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call sub.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 0x140077e70
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.140098670
mov rcx, rbx
movups xmm6, xmmword [rax]
call case.0x14006ce71.1
mov rcx, rdi
mov rsi, rax
call case.0x14006ce71.1
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x140077f20
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.140098670
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.140098700
cmp rax, 0x3e8
ja 0x140077f51
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 0x140077ed0
test rsi, rsi
je 0x140077f2d
mov rcx, rsi
call fcn.14013a766
test rbx, rbx
je 0x140077f3a
mov rcx, rbx
call fcn.14013a766
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 0x140077f5e
mov rcx, rsi
call fcn.14013a766
test rbx, rbx
je 0x140077f6b
mov rcx, rbx
call fcn.14013a766
mov eax, 1
jmp 0x140077f3c
Function at 0x140079a20
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbx, rdx
mov edx, Ordinal_46
mov rsi, r8
mov rbp, rcx
test r8, r8
je 0x140079aeb
xor r14d, r14d
nop dword [rax]
mov edi, 4
lea rdx, [rsp + 0x50]
cmp rsi, rdi
mov r8d, 4
mov rcx, rbp
cmovb rdi, rsi
call fcn.140072390
cmp eax, 4
jne 0x140079a9c
cmp byte [0x1401daf04], r14b
jne 0x140079aa8
lea r9d, [rax - 2]
mov dword [rsp + 0x50], r14d
mov r8d, eax
lea rdx, [rsp + 0x50]
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
mov edx, eax
test eax, eax
jne 0x140079aed
mov eax, dword [rsp + 0x50]
jmp 0x140079ac7
imul eax, dword [0x1401daf00], 0x41c64e6d
mov edx, r14d
add eax, 0x3039
mov dword [0x1401daf00], eax
rol eax, 0x10
mov dword [rsp + 0x50], eax
test rdi, rdi
je 0x140079ae2
sub rsi, rdi
nop
mov byte [rbx], al
inc rbx
shr eax, 8
sub rdi, 1
jne 0x140079ad0
mov dword [rsp + 0x50], eax
test rsi, rsi
jne 0x140079a50
mov eax, edx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x140079b00
Capabilities:
Generate random numbers via winapi

Disassembly:
mov r11, rsp
push rsi
push r12
push r14
push r15
sub rsp, 0xd8
mov rax, qword [0x1401946a8]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rax, r8
lea r15, [rsp + 0x30]
and rax, 0xfffffffffffffffe
mov r14, r8
mov rsi, rdx
mov r12, rcx
cmp rax, 0x100
jae 0x140079cac
test r14b, 1
je 0x140079cac
mov qword [r11 - 0x28], rbp
dec r14
mov qword [r11 - 0x30], rdi
mov rbp, r14
shr rbp, 1
lea rdi, [rsp + 0x30]
mov qword [r11 + 0x18], rbx
mov ecx, Ordinal_46
mov qword [r11 - 0x38], r13
je 0x140079c2b
xor r13d, r13d
nop word [rax + rax]
mov ebx, 4
lea rdx, [rsp + 0x20]
cmp rbp, rbx
mov r8d, 4
mov rcx, r12
cmovb rbx, rbp
call fcn.140072390
cmp eax, 4
jne 0x140079bcc
cmp byte [0x1401daf04], r13b
jne 0x140079bdc
lea r9d, [rax - 2]
mov dword [rsp + 0x20], r13d
mov r8d, eax
lea rdx, [rsp + 0x20]
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
mov ecx, eax
test eax, eax
jne 0x140079c6d
mov eax, dword [rsp + 0x20]
jmp 0x140079bfb
imul eax, dword [0x1401daf00], 0x41c64e6d
mov ecx, r13d
add eax, 0x3039
mov dword [0x1401daf00], eax
rol eax, 0x10
mov dword [rsp + 0x20], eax
test rbx, rbx
je 0x140079c22
sub rbp, rbx
nop dword [rax]
nop word [rax + rax]
mov byte [rdi], al
inc rdi
shr eax, 8
sub rbx, 1
jne 0x140079c10
mov dword [rsp + 0x20], eax
test rbp, rbp
jne 0x140079b80
mov eax, ecx
test ecx, ecx
jne 0x140079c6d
test r14, r14
je 0x140079c68
lea rdx, [0x1401435b0]
nop dword [rax]
movzx ecx, byte [r15]
lea r15, [r15 + 1]
mov eax, ecx
and ecx, 0xf
shr rax, 4
movzx eax, byte [rax + rdx]
mov byte [rsi], al
movzx eax, byte [rcx + rdx]
mov byte [rsi + 1], al
add rsi, 2
sub r14, 2
jne 0x140079c40
mov byte [rsi], 0
xor eax, eax
mov rbx, qword [rsp + 0x110]
mov r13, qword [rsp + 0xc0]
mov rbp, qword [rsp + 0xd0]
mov rdi, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140139c20
add rsp, 0xd8
pop r15
pop r14
pop r12
pop rsi
ret
mov eax, Ordinal_46
jmp 0x140079c8d
Function at 0x14007b040
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 + 0x1a8]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14007b09f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbx
mov r8d, eax
call fcn.1400773b0
mov r9d, edi
lea rdx, str.SENT
mov r8d, esi
mov rcx, rbx
call fcn.14007abe0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
cmp edx, 0x1f
jne 0x14007b3ed
push rsi
push rdi
push r15
sub rsp, 0x20
mov rsi, qword [rcx + 0x1a0]
mov rdi, rcx
mov r15, qword [rcx + 0x18]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rbp
lea rbx, [rsi + 0x1eb8]
mov qword [rsp + 0x58], r14
lea r14, [rsi + 0x1cb8]
mov qword [rbx], r14
mov rax, r14
cmp r14, rbx
jae 0x14007b292
lea rax, [r14 + 1]
mov byte [r14], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x14007b2ab
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x14007b2ab
mov byte [rax], Ordinal_33
inc qword [rbx]
movzx ecx, word [rsi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rsi + 0x1caa]
movzx ebp, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x14007b2e1
mov byte [r9], bpl
inc qword [rbx]
mov r9, qword [rbx]
mov rbp, qword [rsp + 0x50]
cmp r9, rbx
jae 0x14007b337
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14007b337
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14007b337
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14007b337
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14007b337
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rsi + 0x1ec0], r9
lea r8, [rsi + 0x1cba]
sub r9, r14
mov qword [rbx], r14
sub r9, 2
mov edx, 0x3e
mov rcx, rdi
call fcn.14007ad10
mov rcx, qword [r15 + 0x1a8]
xor r9d, r9d
mov rdx, r14
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov r14, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x14007b399
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rdi
mov r8d, eax
call fcn.1400773b0
lea rdx, [rsi + 0x1cbb]
mov r8d, 4
mov rcx, rdi
call fcn.14007b0d0
mov rcx, qword [r15 + 0x1a8]
lea rdx, [rsi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14007b3e5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rdi
mov r8d, eax
call fcn.1400773b0
add rsp, 0x20
pop r15
pop rdi
pop rsi
ret
Function at 0x14007ca30
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x1401946a8]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rcx + 0x18]
mov rsi, rcx
xor r9d, r9d
mov rdi, qword [rax + 0x5d0]
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 [rdi + 0x144]
mov rdx, qword [rdi + 0x150]
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 0x14007cac7
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 r8d, dword [rdi + 0x13c]
mov qword [rsp + 0xe8], rbx
mov qword [rsp + 0xf0], rbp
cmp r8d, 4
jge 0x14007cb2d
lea rdx, str.Received_too_short_packet
mov rcx, rsi
call fcn.1400773b0
mov dword [rdi + 0xc], 7
xor eax, eax
mov rbp, qword [rsp + 0xf0]
mov rbx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140139c20
mov rsi, qword [rsp + 0xf8]
add rsp, 0xd0
pop rdi
ret
mov rdx, qword [rdi + 0x150]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rdi + 0xc], ecx
dec ecx
cmp ecx, 5
ja case.0x14007cb63.1
movsxd rax, ecx
lea r9, [0x140000000]
mov ecx, dword [r9 + rax*4 + 0x7cc7c]
add rcx, r9
jmp rcx
cmp r8d, 4
jle case.0x14007cb63.4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rdi + 0x14c]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x14007cb63.4
lea eax, [r8 - 4]
mov rcx, rsi
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1400a3970
mov ebx, eax
test eax, eax
je 0x14007cbc2
mov edx, 5
mov rcx, rdi
call fcn.14007d690
mov eax, ebx
jmp 0x14007cafc
mov eax, dword [rdi + 0x13c]
mov rcx, rsi
sub eax, 4
cdqe
add qword [rsi + 0xf8], rax
mov rdx, qword [rsi + 0xf8]
call fcn.14009df00
jmp case.0x14007cb63.4
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbx, eax
lea rbp, [rdx + 4]
movzx eax, byte [rdx + 3]
mov rdx, rbx
shl ecx, 8
or ecx, eax
mov dword [rdi + 8], ecx
mov rcx, rbp
call fcn.14007d700
cmp rax, rbx
jae case.0x14007cb63.4
mov r8, rbp
lea rdx, str.TFTP_error:__s
mov rcx, rsi
call fcn.1400774a0
jmp case.0x14007cb63.4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rdi
call fcn.14007c780
test eax, eax
je case.0x14007cb63.4
jmp 0x14007cafc
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rsi
lea rdx, [0x14016f998]
call fcn.1400773b0
mov rcx, rsi
call fcn.14009e370
test eax, eax
je 0x14007cafa
mov edx, 5
mov rcx, rdi
call fcn.14007d690
mov eax, Ordinal_46
jmp 0x14007cafc