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

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x1400024dd
lea rbx, [0x140048930]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1400024c4
cmp r10, 2
jb 0x1400024c4
cmp byte [r9], r8b
jne 0x1400024c4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x1400024a0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000251f
lea rbx, [0x140048930]
cmp r8b, 0x23
jne 0x140002503
cmp byte [r9], r8b
jne 0x140002503
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x1400024f0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x1400026e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbx, rcx
test rcx, rcx
jne 0x14000270f
mov r8d, 0x600
lea rdx, str.D:DAMAGE_ONLYDAMAGE_ONLYDAMAGE_ONLYimguiimgui.cpp
lea rcx, str.filename__mode
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
test rdi, rdi
je 0x14000271b
mov qword [rdi], 0
lea rdx, [0x140048530]
mov rcx, rbx
call fcn.140002530
mov rbx, rax
test rax, rax
jne 0x14000273d
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x38], rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x140002816
xor edx, edx
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140002816
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x140002816
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140002816
cmp rsi, 0xffffffffffffffff
je 0x140002816
mov rax, qword [0x1400d1440]
test rax, rax
je 0x1400027b3
inc dword [rax + 0x3b4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbp, rax
test rax, rax
je 0x140002816
mov r9, rbx
mov r8, rsi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rsi
je 0x140002803
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1400d1440]
test rax, rax
je 0x1400027f8
dec dword [rax + 0x3b4]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000281f
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rdi, rdi
je 0x140002811
mov qword [rdi], rsi
mov rax, rbp
jmp 0x140002821
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140004b90
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x20
cmp dword [rcx + 0xc8], 0
mov rbx, rcx
mov edi, edx
jg 0x140004bc6
mov r8d, 0x67f
lea rdx, str.D:DAMAGE_ONLYDAMAGE_ONLYDAMAGE_ONLYimguiimgui.h
lea rcx, str.Size___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
movsxd r8, dword [rbx + 0xc8]
mov rax, qword [rbx + 0xd0]
mov edx, dword [rax + r8*4 - 4]
lea r8, [0x140048930]
not edx
movzx eax, dil
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsp + 0x39]
xor edx, dword [r8 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsp + 0x3a]
xor edx, dword [r8 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsp + 0x3b]
xor edx, dword [r8 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
mov rax, qword [0x1400d1440]
xor edx, dword [r8 + rcx*4]
not edx
cmp dword [rax + 0x1b30], edx
jne 0x140004c40
mov dword [rax + 0x1b34], edx
cmp dword [rax + 0x1b70], edx
jne 0x140004c4f
mov byte [rax + 0x1b74], 1
mov rbx, qword [rsp + 0x30]
mov eax, edx
add rsp, 0x20
pop rdi
ret
Function at 0x14000f880
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rax, qword [0x1400d1440]
mov rbp, rcx
mov r14, rcx
shr rbp, 0x38
mov r15, rcx
shr r14, 0x30
mov r12, rcx
shr r15, 0x28
mov rbx, qword [rax + 0x1ae0]
mov r13, rcx
mov rax, rcx
shr r12, 0x20
shr rax, 0x10
add rbx, 0xc8
mov qword [rsp + 0x68], rax
mov rdi, rcx
mov rax, rcx
shr r13, 0x18
shr rax, 8
cmp dword [rbx], 0
mov qword [rsp + 0x60], rax
jg 0x14000f906
mov r8d, 0x67f
lea rdx, str.D:DAMAGE_ONLYDAMAGE_ONLYDAMAGE_ONLYimguiimgui.h
lea rcx, str.Size___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
movsxd rdx, dword [rbx]
lea r8, [0x140048930]
mov rax, qword [rbx + 8]
mov esi, dword [rax + rdx*4 - 4]
not esi
movzx eax, dil
movzx ecx, sil
xor rcx, rax
shr esi, 8
movzx eax, byte [rsp + 0x60]
xor esi, dword [r8 + rcx*4]
movzx ecx, sil
xor rcx, rax
shr esi, 8
movzx eax, byte [rsp + 0x68]
xor esi, dword [r8 + rcx*4]
movzx ecx, sil
xor rcx, rax
shr esi, 8
movzx eax, r13b
xor esi, dword [r8 + rcx*4]
movzx ecx, sil
xor rcx, rax
shr esi, 8
movzx eax, r12b
xor esi, dword [r8 + rcx*4]
movzx ecx, sil
xor rcx, rax
shr esi, 8
movzx eax, r15b
xor esi, dword [r8 + rcx*4]
movzx ecx, sil
xor rcx, rax
shr esi, 8
movzx eax, r14b
xor esi, dword [r8 + rcx*4]
movzx ecx, sil
shr esi, 8
xor rcx, rax
xor esi, dword [r8 + rcx*4]
movzx ecx, sil
shr esi, 8
xor rcx, rbp
xor esi, dword [r8 + rcx*4]
mov r8d, dword [rbx + 4]
not esi
cmp edx, r8d
jne 0x14000f9dc
lea ecx, [rdx + 1]
test r8d, r8d
je 0x14000f9c8
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x14000f9cd
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
mov rcx, rbx
call fcn.140017ee0
movsxd rcx, dword [rbx]
mov rax, qword [rbx + 8]
mov dword [rax + rcx*4], esi
inc dword [rbx]
mov rbx, qword [rsp + 0x70]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140010860
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [0x1400d1440]
mov edi, edx
cmp byte [rbx + 0x1e25], 0
jne 0x1400108b1
cmp byte [rbx + 0x1e26], 0
jne 0x1400108b1
mov r9d, dword [rbx + 0x2ec8]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.140002400
test dil, 1
je 0x1400109d6
jmp 0x14001093b
movss xmm1, dword [rbx + 0x1614]
lea r8, str.Tooltip__02d
movaps xmm0, xmm1
lea rcx, [rsp + 0x20]
mulss xmm0, dword [0x140080874]
xor eax, eax
mov edx, 0x10
mulss xmm1, dword [0x14008085c]
addss xmm0, dword [rbx + 0x128]
addss xmm1, dword [rbx + 0x12c]
mov qword [rbx + 0x1ba0], rax
mov dword [rbx + 0x1b8c], 1
movss dword [rbx + 0x1b98], xmm0
movss dword [rbx + 0x1b9c], xmm1
movss xmm0, dword [rbx + 0x1670]
mulss xmm0, dword [0x1400807f4]
or dword [rbx + 0x1b88], 0x41
movss dword [rbx + 0x1be8], xmm0
mov r9d, dword [rbx + 0x2ec8]
call fcn.140002400
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x140010990
lea r11, [0x140048930]
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x140010973
cmp byte [r8], r9b
jne 0x140010973
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 0x140010960
not ecx
call fcn.140009e20
test rax, rax
je 0x1400109d6
cmp byte [rax + 0x8e], 0
je 0x1400109d6
mov byte [rax + 0x95], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xac], 1
lea rcx, [rsp + 0x20]
inc dword [rbx + 0x2ec8]
mov edx, 0x10
mov r9d, dword [rbx + 0x2ec8]
call fcn.140002400
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.14000c410
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140015a50
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
sub rsp, 0x40
mov rbx, qword [0x1400d1440]
cmp byte [rbx + 0x2f5c], 0
je 0x140015b3c
cmp qword [rbx + 0x2f68], 0
mov qword [rax - 0x18], rsi
lea rsi, [rax + 0x10]
mov qword [rax - 0x20], rdi
lea rdi, [rbx + 0x2f70]
je 0x140015b24
mov r9d, dword [rdi + 4]
mov qword [rax - 0x10], rbp
xor ebp, ebp
test r9d, r9d
jns 0x140015acb
mov eax, r9d
mov rcx, rdi
cdq
sub eax, edx
mov edx, ebp
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.140017c60
mov rcx, qword [rsp + 0x50]
mov rdx, rcx
mov dword [rdi], ebp
mov rcx, rdi
mov r8, rsi
call fcn.140002c50
mov eax, dword [rdi]
mov edx, 1
mov r9, qword [rbx + 0x2f68]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rbx + 0x2f78]
cmove ecx, ebp
test rax, rax
movsxd r8, ecx
lea rcx, [0x1400d1438]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
ret
mov rdx, rcx
mov r8, rsi
mov rcx, rdi
call fcn.140002c50
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
ret
Function at 0x1400351e0
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x460
mov rdi, rdx
xor esi, esi
mov edx, ecx
mov ecx, 0x18
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14003525b
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x438
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x14003525b
nop word [rax + rax]
mov rdx, rdi
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x140035256
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x140035230
jmp 0x14003525b
mov rsi, qword [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x460]
mov rax, rsi
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14004342c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140043476
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140043476
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140043476
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140043476
cmp dword [rcx + 0x84], 0xe
jbe 0x140043476
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140043478
xor al, al
add rsp, 0x28
ret
Function at 0x140008890
Capabilities:
Encode data using base64

Disassembly:
push rdi
sub rsp, 0x10
xor edi, edi
mov r10, rdx
mov r11, rcx
cmp byte [rcx], dil
je 0x1400089f7
mov qword [rsp + 0x20], rbx
xor eax, eax
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x30], rsi
mov qword [rsp + 8], r14
mov qword [rsp], r15
lea r15, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
nop dword [rax + rax]
movzx edx, byte [rax + r11]
test dl, dl
je 0x1400088e1
movzx ebp, dl
inc rax
jmp 0x1400088e4
xor bpl, bpl
movzx r9d, byte [rax + r11]
xor ecx, ecx
test dl, dl
setne cl
test r9b, r9b
je 0x1400088fc
inc rax
inc ecx
jmp 0x1400088ff
xor r9b, r9b
movzx edx, byte [rax + r11]
test dl, dl
je 0x140008910
inc rax
movzx ebx, dl
jmp 0x140008912
xor bl, bl
test dl, dl
lea esi, [rcx + 1]
lea r8d, [rdi + 1]
movzx edx, bpl
cmove esi, ecx
movzx r14d, bpl
movzx ecx, r9b
shr rdx, 2
shr cl, 4
and r14b, 3
and r9b, 0xf
shl r14b, 4
add r14b, cl
shl r9b, 2
movzx edx, byte [rdx + r15]
movzx ecx, bl
shr cl, 6
and bl, 0x3f
add r9b, cl
movsxd rcx, edi
mov byte [rcx + r10], dl
movsxd rdx, r8d
inc r8d
test esi, esi
je 0x1400089a5
movzx ecx, r14b
movzx ecx, byte [rcx + r15]
mov byte [rdx + r10], cl
movsxd rdx, r8d
add rdx, r10
inc r8d
cmp esi, 2
jb 0x1400089b3
movzx ecx, r9b
lea edi, [r8 + 1]
movzx ecx, byte [rcx + r15]
mov byte [rdx], cl
movsxd rdx, r8d
add rdx, r10
cmp esi, 3
jb 0x1400089c0
movzx ecx, bl
movzx r8d, byte [rcx + r15]
jmp 0x1400089c3
mov byte [rdx + r10], 0x3d
movsxd rdx, r8d
add rdx, r10
inc r8d
mov byte [rdx], 0x3d
lea edi, [r8 + 1]
movsxd rdx, r8d
add rdx, r10
mov r8b, 0x3d
mov byte [rdx], r8b
cmp byte [rax + r11], 0
jne 0x1400088d0
mov r15, qword [rsp]
mov r14, qword [rsp + 8]
mov rsi, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
movsxd rax, edi
mov byte [rax + r10], 0
add rsp, 0x10
pop rdi
ret
movsxd rax, edi
mov byte [rax + rdx], dil
add rsp, 0x10
pop rdi
ret
Function at 0x14000a474
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000a4be
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000a4be
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000a4be
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000a4be
cmp dword [rcx + 0x84], 0xe
jbe 0x14000a4be
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000a4c0
xor al, al
add rsp, 0x28
ret
Function at 0x140004c50
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x508
mov rax, qword [0x1401a90c0]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
xor edx, edx
mov r8d, 0x4d0
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x50], 0x100010
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x140004ced
cmp qword [rsp + 0x68], 0
jne 0x140004cbe
cmp qword [rsp + 0x70], 0
jne 0x140004cbe
cmp qword [rsp + 0x78], 0
jne 0x140004cbe
cmp qword [rsp + 0x80], 0
je 0x140004ced
lea rdx, str.Hardware_breakpoints_detected__closing_program_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140006540
lea rdx, [0x140006720]
mov rcx, rax
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]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
call qword [sym.imp.KERNEL32.dll_DebugBreak]
nop
lea rdx, str.Debugger_detected__INT_3___closing_program_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140006540
lea rdx, [0x140006720]
mov rcx, rax
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]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.140148580
add rsp, 0x508
ret
Function at 0x140005f90
Capabilities:
Create thread

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1401a90c0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov ecx, 8
call fcn.140148840
lea rcx, [0x140005f30]
mov qword [rax], rcx
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140006cd0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140006035
call fcn.140013b90
cmp dword [rsp + 0x38], 0
je 0x140006029
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140006029
mov eax, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140148580
add rsp, 0x68
ret
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x38], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3

Function at 0x140007230
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 case.default.0x140007251
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 0x14000727e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140007280
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400072d9
test ecx, ecx
jle 0x1400072b9
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 0x1400072d9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400072d9
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 0x140007300
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 0x140007322
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140007331
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 0x140007354
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140007356
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140007392
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 0x14000742e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400073cd
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 0x14000740e
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 0x14000742e
cmp rbx, rax
ja 0x1400073e0
test rbx, rbx
je 0x14000742e
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 0x1400078a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1401a90c0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400078cd
xor eax, eax
jmp 0x140007a39
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140007907
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140007907
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 0x140007a39
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140007a2c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000794a
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 0x140007975
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 0x140007a31
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 0x1400079e4
sub eax, 1
je 0x1400079e4
cmp eax, 2
jne 0x140007a2c
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 0x140007a31
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140007a12
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 0x140007a2c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140007a31
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140148580
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140007c60
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1401a90c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140007d33
cmp byte [rcx + 0x71], 0
je 0x140007d33
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x140007d2f
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 0x140007cf4
sub eax, 1
je 0x140007cf8
cmp eax, 2
jne 0x140007d2f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140148580
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140007d26
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 0x140007d2f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140007cdc
xor al, al
jmp 0x140007cdc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140148580
add rsp, 0x60
pop rbx
ret