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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140085040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x140085e80]
mov edi, ecx
cmp byte [rbx + 0x4dad], 0
jne 0x140019911
cmp byte [rbx + 0x4dae], 0
jne 0x140019911
movsx r9d, word [rbx + 0x5f20]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.140006dc0
test dil, 2
je 0x140019a3f
jmp 0x14001999a
movss xmm1, dword [rbx + 0x39d4]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x5f20]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x1400786b0]
mulss xmm1, dword [0x1400786a4]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0x108]
addss xmm1, dword [rbx + 0x10c]
mov qword [rbx + 0x4a90], rax
mov dword [rbx + 0x4a7c], 1
movss dword [rbx + 0x4a88], xmm0
movss dword [rbx + 0x4a8c], xmm1
movss xmm0, dword [rbx + 0x3a30]
mulss xmm0, dword [0x140078608]
or dword [rbx + 0x4a78], 0x41
movss dword [rbx + 0x4ad8], xmm0
call fcn.140006dc0
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x1400199f0
lea r11, [0x1400706f0]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x1400199d3
cmp byte [r8], r9b
jne 0x1400199d3
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x1400199c0
not ecx
call fcn.14000f250
test rax, rax
je 0x140019a3f
cmp byte [rax + 0xca], 0
je 0x140019a3f
mov byte [rax + 0xcf], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xd2], 1
lea rcx, [rsp + 0x20]
mov byte [rax + 0xec], 1
mov edx, 0x10
inc word [rbx + 0x5f20]
movsx r9d, word [rbx + 0x5f20]
call fcn.140006dc0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x2030347
call fcn.140012080
mov al, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140069f30
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14001ebf0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x6080], 0
lea rbx, [rcx + 0x6088]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x14001ec93
mov ecx, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test ecx, ecx
jns 0x14001ec46
mov eax, ecx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, ecx
mov rcx, rbx
test eax, eax
cmovg edx, eax
call fcn.140021360
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.1400079f0
mov eax, dword [rbx]
lea rcx, [0x140085e78]
mov r9, qword [rdi + 0x6080]
test eax, eax
lea edx, [rax - 1]
mov rax, qword [rdi + 0x6090]
cmove edx, r14d
test rax, rax
movsxd r8, edx
mov edx, 1
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14001ec9b
mov rcx, rbx
call fcn.1400079f0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x14001efc0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [0x140085e80]
xor ebp, ebp
cmp byte [rbx + 0x5fd0], bpl
jne 0x14001f09f
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14001f098
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
call fcn.140007230
mov rsi, rax
test rax, rax
je 0x14001f098
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x14001f024
mov rcx, rax
call fcn.14001f1f0
mov r8, qword [0x140085e80]
test r8, r8
je 0x14001f08f
movsx rdx, word [r8 + 0x6160]
lea rcx, [r8 + 0x6164]
mov r9d, dword [r8 + 0x3fb0]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x14001f084
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x6160], cx
movsx rax, cx
lea rcx, [r8 + 0x6164]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], ebp
inc word [rcx + 6]
inc dword [r8 + 0x615c]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [rbx + 0x5fd0], 1
movss xmm0, dword [rbx + 0x5fd4]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x14001f12e
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x5fd4], xmm0
jb 0x14001f12e
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x14001f121
mov rax, qword [0x140085e80]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
mov dword [rax + 0x5fd4], ebp
call fcn.14001f440
lea rdx, [0x1400701e4]
mov rcx, rdi
mov rsi, rax
call fcn.140007090
mov rdi, rax
test rax, rax
je 0x14001f128
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x14001f128
mov byte [rbx + 0xde], 1
mov dword [rbx + 0x5fd4], ebp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14001f150
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x140085e80]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x14001f1b3
mov qword [rsp], rbx
lea rbx, [0x1400706f0]
nop dword [rax]
cmp r9b, 0x23
jne 0x14001f193
cmp byte [r8], r9b
jne 0x14001f193
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 0x14001f180
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5fe8]
not eax
mov r8, qword [r10 + 0x5ff0]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x14001f1df
cmp dword [r8 + 8], eax
je 0x14001f1e6
add r8, 0x48
cmp r8, rcx
jne 0x14001f1d0
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x140044240
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x130]
sub rsp, 0x230
mov rax, qword [0x140085040]
xor rax, rsp
mov qword [rbp + 0x120], rax
mov rdi, rcx
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x10]
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov r8d, 0x18
lea rdx, str.HeAgXi_VQ7z4KD1FIdsi6Q
lea rcx, [rsp + 0x30]
call fcn.140066f80
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140043f60
nop
cmp qword [rax + 0x18], 0xf
jbe 0x1400442c2
mov rax, qword [rax]
mov r8d, 8
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.140064870
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x10], rax
mov rax, qword [rbp + 0x10]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0xc], edx
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x14004433a
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140044335
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140044335
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006a1b0
movdqa xmm0, xmmword [0x1400787e0]
movdqu xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x50], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x14004438d
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140044388
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140044388
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006a1b0
movdqa xmm0, xmmword [0x1400787e0]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
cmp qword [rbp + 0x98], 0
je 0x14004445c
lea rdx, str.sXdSryQF9bvxlRvsgyFImw
lea rcx, [rsp + 0x70]
call fcn.140065630
nop
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x10]
call fcn.140043f60
mov rbx, rax
lea rcx, [rbp - 0x30]
call fcn.1400440b0
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.140066a50
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.1400669e0
nop
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.140066690
mov rcx, rax
lea rdx, [0x140066a70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
lea rcx, [rbp - 0x70]
call fcn.1400655d0
nop
lea rcx, [rbp - 0x50]
call fcn.1400655d0
nop
lea rcx, [rbp - 0x30]
call fcn.1400655d0
nop
lea rcx, [rbp - 0x10]
call fcn.1400655d0
nop
lea rcx, [rsp + 0x70]
call fcn.1400655d0
lea rcx, [rbp + 0x10]
call fcn.140064830
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x140045800
Capabilities:
Check mutex on windows

Disassembly:
sub rsp, 0x68
lea r8, str.botgta
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14004582a
add rsp, 0x68
ret
lea rdx, str.fTjfwylO7RXXZHZoa7B9fZiLFNlpkH1ZUxQY_zN0TIn058ZEAiGBvrqefCFn9EE
lea rcx, [rsp + 0x20]
call fcn.140065630
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140043f60
nop
mov rcx, rax
call fcn.140044240
int3
Function at 0x14004f310
Capabilities:
Create process on windows
Self delete

Disassembly:
sub rsp, 0x578
mov rax, qword [0x140085040]
xor rax, rsp
mov qword [rsp + 0x560], rax
mov r8d, 0x104
lea rdx, [rsp + 0x120]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea r8, [rsp + 0x120]
lea rdx, str.cmd.exe__c_ping_1.1.1.1__n_1__w_3000___nul__del__f__q___s_
lea rcx, [rsp + 0x330]
call qword [sym.imp.USER32.dll_wsprintfW]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0xb4], xmm0
movups xmmword [rsp + 0xc4], xmm0
movups xmmword [rsp + 0xd4], xmm0
movups xmmword [rsp + 0xe4], xmm0
movups xmmword [rsp + 0xf4], xmm0
movups xmmword [rsp + 0x104], xmm0
mov dword [rsp + 0x114], eax
mov dword [rsp + 0xb0], 0x68
movups xmmword [rsp + 0x90], xmm0
mov qword [rsp + 0xa0], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x330]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14004f42f
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.140069f30
add rsp, 0x578
ret
lea rdx, str.Z9TGkm664614VV3Cg0Zw2Ta8NyX88W43jan5o48iOv1bWThUi2AjTTanf8E5Pqe
lea rcx, [rsp + 0x50]
call fcn.140065630
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.140043f60
nop
mov rcx, rax
call fcn.140044240
int3
Function at 0x140054b90
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140085040]
xor rax, rsp
mov qword [rsp + 0x50], rax
movsx ebx, cl
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov ecx, 0x409
cmp ax, cx
je 0x140054bd7
mov edx, pe_nt_image_headers64
lea rcx, str.0409
call qword [sym.imp.USER32.dll_LoadKeyboardLayoutW]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ActivateKeyboardLayout]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x28], xmm0
movzx ecx, bx
mov dword [rsp + 0x28], 1
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], rax
call qword [sym.imp.USER32.dll_VkKeyScanW]
movzx ecx, al
xor edx, edx
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov r8d, 0x28
lea rdx, [rsp + 0x28]
mov word [rsp + 0x32], ax
lea ecx, [r8 - 0x27]
call qword [sym.imp.USER32.dll_SendInput]
movsxd rbx, dword [0x140085104]
lea rcx, [rsp + 0x20]
call fcn.140043330
mov rdx, qword [rsp + 0x20]
mov qword [rsp + 0x20], rdx
test rbx, rbx
jle 0x140054c6d
imul rcx, rbx, 0x3b9aca00
movabs r8, 0x7fffffffffffffff
mov rax, r8
sub rax, rcx
cmp rdx, rax
jge 0x140054c68
lea rax, [rcx + rdx]
mov qword [rsp + 0x20], rax
jmp 0x140054c6d
mov qword [rsp + 0x20], r8
lea rcx, [rsp + 0x20]
call fcn.140067db0
mov r8d, 0x28
mov dword [rsp + 0x34], 0xa
lea rdx, [rsp + 0x28]
lea ecx, [r8 - 0x27]
call qword [sym.imp.USER32.dll_SendInput]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140069f30
add rsp, 0x60
pop rbx
ret
Function at 0x140058960
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140085040]
xor rax, rsp
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.140043330
lea rcx, [rsp + 0x30]
call fcn.140043330
mov rcx, qword [rsp + 0x30]
movabs rsi, 0x112e0be826d694b3
sub rcx, qword [rsp + 0x40]
mov rax, rsi
imul rcx
sar rdx, 0x1a
mov rax, rdx
shr rax, 0x3f
add rdx, rax
movzx eax, byte [0x140085f60]
test al, al
jne 0x140058a4d
movabs rdi, 0x7ffffffffd050f7f
movabs rbx, 0x7fffffffffffffff
nop dword [rax]
cmp rdx, 5
jge 0x140058ad5
lea rcx, [rsp + 0x48]
call fcn.140043330
mov rax, qword [rsp + 0x48]
cmp rax, rdi
jge 0x140058a0b
add rax, 0x2faf080
mov qword [rsp + 0x38], rax
jmp 0x140058a10
mov qword [rsp + 0x38], rbx
lea rcx, [rsp + 0x38]
call fcn.140067db0
lea rcx, [rsp + 0x30]
call fcn.140043330
mov rcx, qword [rsp + 0x30]
mov rax, rsi
sub rcx, qword [rsp + 0x40]
imul rcx
sar rdx, 0x1a
mov rax, rdx
shr rax, 0x3f
add rdx, rax
movzx eax, byte [0x140085f60]
test al, al
je 0x1400589e0
xor ebx, ebx
mov eax, ebx
xchg byte [0x140085f60], al
mov edx, dword [0x140085edc]
mov ecx, dword [0x140085f64]
call qword [sym.imp.USER32.dll_SetCursorPos]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x50]
sub rax, qword [rsp + 0x58]
imul rax, rax, 0x3e8
cqo
idiv qword [rsp + 0x60]
cmp rax, 0x5a
jl 0x140058a80
xor edx, edx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 2]
call qword [sym.imp.USER32.dll_mouse_event]
xor edx, edx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 4]
call qword [sym.imp.USER32.dll_mouse_event]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140069f30
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140063f60
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140063f88
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140063fae
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140063fb0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140064009
test ecx, ecx
jle 0x140063fe9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140064009
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140064009
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140064030
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140064052
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140064068
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140064084
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140064086
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400640c2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14006415e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400640fd
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14006413e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14006415e
cmp rbx, rax
ja 0x140064110
test rbx, rbx
je 0x14006415e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x1400645c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140085040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400645ed
xor eax, eax
jmp 0x140064759
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140064627
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140064627
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140064759
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14006474c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14006466a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140064695
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140064751
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140064704
sub eax, 1
je 0x140064704
cmp eax, 2
jne 0x14006474c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140064751
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140064732
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14006474c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140064751
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140069f30
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400660e0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140085040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400661b3
cmp byte [rcx + 0x71], 0
je 0x1400661b3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400661af
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140066174
sub eax, 1
je 0x140066178
cmp eax, 2
jne 0x1400661af
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140069f30
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400661a6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400661af
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14006615c
xor al, al
jmp 0x14006615c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140069f30
add rsp, 0x60
pop rbx
ret

Function at 0x140066c50
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140085040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rdx
mov rdi, rcx
mov ecx, 8
call fcn.14006a3f8
mov qword [rax], rbx
mov qword [rsp + 0x30], rax
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x1400689b0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
je 0x140066cc9
mov rax, rdi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140069f30
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov dword [rbx], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3