joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4280b7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x004466e8]
jne 0x41c75a
rol rcx, 0x10
test cx, 0xffff
jne 0x41c756
repz ret
ror rcx, 0x10
jmp 0x428010
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x0044a740]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x0044a838]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x428095
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x0044a740]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x4280b7
mov rax, qword [rsp + 0x88]
mov qword [0x0044a838], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x0044a7d8], rax
mov rax, qword [0x0044a838]
mov qword [0x0044a6b0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x0044a7c0], rax
mov dword [0x0044a6a0], 0xc0000409
mov dword [0x0044a6a4], 1
mov rax, qword [0x004466e8]
mov qword [rsp + 0x68], rax
mov rax, qword [0x004466f0]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x0044a738], eax
mov ecx, 1
call fcn.00428890
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x0043a6f0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x0044a738], 0
jne 0x42813e
mov ecx, 1
call fcn.00428890
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x428160
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax - 8], r12
mov qword [rax - 0x10], r13
mov r13, rcx
mov edi, r8d
mov r12, rdx
call fcn.0041e5c0
xor ebx, ebx
cmp qword [0x0044ac10], rbx
mov rsi, rax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], ebx
jne 0x428291
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rbp, rax
jne 0x4281c3
xor eax, eax
jmp 0x428371
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x4281bc
mov rcx, rax
call fcn.0041e550
lea rdx, str.GetActiveWindow
mov rcx, rbp
mov qword [0x0044ac10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.0041e550
lea rdx, str.GetLastActivePopup
mov rcx, rbp
mov qword [0x0044ac18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.0041e550
lea rcx, [rsp + 0x30]
mov qword [0x0044ac20], rax
call fcn.004162f0
test eax, eax
je 0x428247
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.0041e390
cmp dword [rsp + 0x30], 2
jne 0x428291
lea rdx, str.GetUserObjectInformationA
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.0041e550
test rax, rax
mov qword [0x0044ac30], rax
je 0x428291
lea rdx, str.GetProcessWindowStation
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.0041e550
mov qword [0x0044ac28], rax
mov rcx, qword [0x0044ac28]
cmp rcx, rsi
je 0x428323
cmp qword [0x0044ac30], rsi
je 0x428323
call fcn.0041e620
call rax
test rax, rax
mov rbp, rax
je 0x4282ee
mov rcx, qword [0x0044ac30]
call fcn.0041e620
lea rcx, [rsp + 0x38]
mov r9d, 0xc
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
lea r8, [rsp + 0x40]
mov rcx, rbp
call rax
test eax, eax
je 0x4282ee
test byte [rsp + 0x48], 1
jne 0x428323
lea rcx, [rsp + 0x34]
call fcn.00416390
test eax, eax
je 0x428310
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.0041e390
cmp dword [rsp + 0x34], 4
jb 0x42831d
bts edi, 0x15
jmp 0x428357
bts edi, 0x12
jmp 0x428357
mov rcx, qword [0x0044ac18]
cmp rcx, rsi
je 0x428357
call fcn.0041e620
call rax
test rax, rax
mov rbx, rax
je 0x428357
mov rcx, qword [0x0044ac20]
cmp rcx, rsi
je 0x428357
call fcn.0041e620
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x0044ac10]
call fcn.0041e620
mov r9d, edi
mov r8, r12
mov rdx, r13
mov rcx, rbx
call rax
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
add rsp, 0x68
ret
Function at 0x140001870
Capabilities:
Encode data using xor
Get common file path

Disassembly:
push rbp
lea rbp, [rsp - 0x140]
sub rsp, 0x240
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x130], rax
mov edx, 0x200
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140001aa8
mov qword [rsp + 0x250], rbx
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x258], rsi
mov ebx, 0xf3f4
mov qword [rsp + 0x260], rdi
xor esi, esi
mov edi, 2
mov qword [rsp + 0x268], r14
mov r8d, edi
mov dword [rsp + 0x20], 0xf3b6f3a5
mov dword [rsp + 0x24], 0xf38ef39a
mov ecx, ebx
mov word [rsp + 0x28], si
mov byte [rsp + 0x2a], 1
nop word [rax + rax]
movd xmm1, dword [rdx]
lea rax, [rcx - 1]
movq xmm0, rcx
lea rdx, [rdx + 4]
movq xmm2, rax
add rcx, rdi
punpcklqdq xmm2, xmm0
xorps xmm0, xmm0
punpcklwd xmm1, xmm0
punpckldq xmm1, xmm0
xorps xmm2, xmm1
pshufd xmm0, xmm2, 0xd8
pshuflw xmm1, xmm0, 0xd8
movd dword [rdx - 4], xmm1
sub r8, 1
jne 0x140001900
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x2a], sil
lea rcx, [rsp + 0x30]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
jne 0x140001aa4
mov dword [rsp + 0x20], 0xf3b9f3a5
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x24], 0xf397f382
mov rcx, rbx
mov dword [rsp + 0x28], 0xf39df385
mov r8d, 3
mov word [rsp + 0x2c], si
mov byte [rsp + 0x2e], 1
nop
movd xmm1, dword [rdx]
lea rax, [rcx - 1]
movq xmm0, rcx
lea rdx, [rdx + 4]
movq xmm2, rax
add rcx, rdi
punpcklqdq xmm2, xmm0
xorps xmm0, xmm0
punpcklwd xmm1, xmm0
punpckldq xmm1, xmm0
xorps xmm2, xmm1
pshufd xmm0, xmm2, 0xd8
pshuflw xmm1, xmm0, 0xd8
movd dword [rdx - 4], xmm1
sub r8, 1
jne 0x140001990
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x2e], sil
lea rcx, [rsp + 0x30]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
jne 0x140001aa4
mov dword [rsp + 0x20], 0xf3b1f3a2
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x24], 0xf3a3f3b8
mov word [rsp + 0x28], si
mov byte [rsp + 0x2a], 1
nop dword [rax]
movd xmm1, dword [rcx]
lea rax, [rbx - 1]
movq xmm0, rbx
lea rcx, [rcx + 4]
movq xmm2, rax
add rbx, 2
punpcklqdq xmm2, xmm0
xorps xmm0, xmm0
punpcklwd xmm1, xmm0
punpckldq xmm1, xmm0
xorps xmm2, xmm1
pshufd xmm0, xmm2, 0xd8
pshuflw xmm1, xmm0, 0xd8
movd dword [rcx - 4], xmm1
sub rdi, 1
jne 0x140001a10
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x2a], sil
lea rcx, [rsp + 0x30]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
setne al
mov rdi, qword [rsp + 0x260]
mov rsi, qword [rsp + 0x258]
mov rbx, qword [rsp + 0x250]
mov r14, qword [rsp + 0x268]
mov rcx, qword [rbp + 0x130]
xor rcx, rsp
call fcn.140003160
add rsp, 0x240
pop rbp
ret
mov al, 1
jmp 0x140001a6c
xor al, al
jmp 0x140001a8c
Function at 0x140002630
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x28], 0
mov rdx, rcx
je 0x140002778
movdqa xmm3, xmmword [0x140005550]
lea r8, [rcx + 8]
movdqa xmm4, xmmword [0x140005570]
xor eax, eax
mov r9d, 0xf3fa
nop dword [rax]
movd xmm1, dword [r8 - 8]
lea rcx, [r9 - 5]
xorps xmm0, xmm0
lea r8, [r8 + 0x10]
punpcklwd xmm1, xmm0
movq xmm2, rax
punpckldq xmm1, xmm0
add rax, 8
punpcklqdq xmm2, xmm2
paddq xmm2, xmm4
xorps xmm2, xmm1
pshufd xmm0, xmm2, 0xd8
movq xmm2, rcx
pshuflw xmm1, xmm0, 0xd8
lea rcx, [r9 - 3]
movd dword [r8 - 0x18], xmm1
xorps xmm0, xmm0
movd xmm1, dword [r8 - 0x14]
punpcklwd xmm1, xmm0
punpckldq xmm1, xmm0
punpcklqdq xmm2, xmm2
paddq xmm2, xmm3
xorps xmm2, xmm1
pshufd xmm0, xmm2, 0xd8
movq xmm2, rcx
pshuflw xmm1, xmm0, 0xd8
lea rcx, [r9 - 1]
movd dword [r8 - 0x14], xmm1
xorps xmm0, xmm0
movd xmm1, dword [r8 - 0x10]
punpcklwd xmm1, xmm0
punpckldq xmm1, xmm0
punpcklqdq xmm2, xmm2
paddq xmm2, xmm3
xorps xmm2, xmm1
pshufd xmm0, xmm2, 0xd8
movq xmm2, rcx
pshuflw xmm1, xmm0, 0xd8
movq xmm0, r9
movd dword [r8 - 0x10], xmm1
add r9, 8
movd xmm1, dword [r8 - 0xc]
punpcklqdq xmm2, xmm0
xorps xmm0, xmm0
punpcklwd xmm1, xmm0
punpckldq xmm1, xmm0
xorps xmm2, xmm1
pshufd xmm0, xmm2, 0xd8
pshuflw xmm1, xmm0, 0xd8
movd dword [r8 - 0xc], xmm1
cmp r9, 0xf40a
jb 0x140002660
cmp rax, 0x13
jae 0x140002774
mov r8d, 0xc0d
nop word [rax + rax]
movzx ecx, ax
sub cx, r8w
xor word [rdx + rax*2], cx
inc rax
cmp rax, 0x13
jb 0x140002760
mov byte [rdx + 0x28], 0
ret

Function at 0x140003bb0
Capabilities:
Parse pe header

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

Disassembly:
call fcn.14123c237
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14123c0e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14123c0c7
add dl, dl
jne 0x14123c0ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14123c14e
xor eax, eax
add dl, dl
jne 0x14123c0fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14123c205
add dl, dl
jne 0x14123c10e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14123c11b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14123c128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14123c135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14123c142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14123c0d6
mov eax, 1
add dl, dl
jne 0x14123c15e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14123c16b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14123c153
sub eax, ebx
mov ebx, 1
jne 0x14123c1a4
mov ecx, 1
add dl, dl
jne 0x14123c186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14123c193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14123c17b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14123c0d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14123c1c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14123c1cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14123c1b5
cmp eax, 0x7d00
jae 0x14123c1f3
cmp eax, 0x500
jb 0x14123c1ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14123c0d6
cmp eax, 0x7f
ja 0x14123c1f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14123c0d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14123c22a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14123c0d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140003c50
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x13d0
call fcn.14000bd20
sub rsp, rax
mov rax, qword [0x140013040]
xor rax, rsp
mov qword [rsp + 0x13c0], rax
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor eax, eax
mov dword [rsp + 0x20], eax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], 0xf
mov byte [rcx], al
mov ebx, 1
mov dword [rsp + 0x20], ebx
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov ecx, eax
mov dword [rsp + 0x13b4], 0xffffffff
mov dword [rsp + 0x34], eax
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, ebx
mov dword [rsp + rbx*4 + 0x34], ecx
inc rbx
cmp rbx, 0x270
jb 0x140003cc1
mov dword [rsp + 0x30], 0x270
mov ebx, 0x10
mov esi, 0x80000000
lea rbp, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
nop dword [rax]
lea rcx, [rsp + 0x30]
call fcn.14000a300
mov ecx, eax
imul rax, rcx, 0x3e
cmp eax, 3
ja 0x140003d2a
lea rcx, [rsp + 0x30]
call fcn.14000a300
mov ecx, eax
imul rax, rcx, 0x3e
cmp eax, 4
jb 0x140003d15
shr rax, 0x20
sub rax, rsi
xor rax, 0xffffffff80000000
movzx r9d, byte [rax + rbp]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x140003d68
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x140003d5d
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140003d70
mov rcx, rdi
call fcn.1400090b0
sub rbx, 1
jne 0x140003d00
mov rax, rdi
mov rcx, qword [rsp + 0x13c0]
xor rcx, rsp
call fcn.14000adb0
lea r11, [rsp + 0x13d0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140004ec0
Capabilities:
Get common file path
Terminate process

Disassembly:
push rbx
sub rsp, 0x160
mov rax, qword [0x140013040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbx, rcx
mov qword [rsp + 0x38], rcx
lea rax, [rsp + 0x40]
xor ecx, ecx
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
je 0x140004f30
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_get_desktop_path.
call fcn.140008230
lea rdx, [0x140008410]
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]
int3
xorps xmm0, xmm0
lea rax, [rsp + 0x40]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov r8, 0xffffffffffffffff
mov qword [rbx + 0x18], 0
inc r8
cmp byte [rax + r8], 0
jne 0x140004f52
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140008e00
mov rax, rbx
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14000adb0
add rsp, 0x160
pop rbx
ret
Function at 0x140006c40
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 0x140006c68
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 0x140006c8e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140006c90
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140006ce9
test ecx, ecx
jle 0x140006cc9
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 0x140006ce9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140006ce9
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 0x140006d10
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 0x140006d32
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140006d48
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 0x140006d64
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140006d66
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140006da2
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 0x140006e3e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140006ddd
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 0x140006e1e
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 0x140006e3e
cmp rbx, rax
ja 0x140006df0
test rbx, rbx
je 0x140006e3e
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 0x1400072a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140013040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400072cd
xor eax, eax
jmp 0x140007439
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140007307
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140007307
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 0x140007439
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000742c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000734a
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 0x140007375
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 0x140007431
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 0x1400073e4
sub eax, 1
je 0x1400073e4
cmp eax, 2
jne 0x14000742c
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 0x140007431
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140007412
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 0x14000742c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140007431
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14000adb0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400078b0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140013040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140007983
cmp byte [rcx + 0x71], 0
je 0x140007983
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000797f
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 0x140007944
sub eax, 1
je 0x140007948
cmp eax, 2
jne 0x14000797f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000adb0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140007976
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 0x14000797f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000792c
xor al, al
jmp 0x14000792c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000adb0
add rsp, 0x60
pop rbx
ret