joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000654c
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x248
mov rax, qword [0x1400513c8]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rcx, str.Shcore.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x1400065d8
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, str.SHCore.dll
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
jne 0x1400065d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.LoadLibrary__T__Shcore.dll____failed__error_code_is__d.
mov edx, eax
call fcn.1400170e8
xor eax, eax
jmp 0x140006628
lea rdx, str.SetProcessDpiAwareness
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1400065fc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.GetProcAddress_hDLL___SetProcessDpiAwareness___failed__error_code_is__d.
jmp 0x1400065cd
mov ecx, 2
call rax
test eax, eax
je 0x140006610
lea rcx, str.SetProcessDpiAwareness_returns__08xh.
jmp 0x1400065cd
xor r8d, r8d
lea rcx, str.SetProcessDpiAwareness__d__returns__08xh.
lea edx, [r8 + 2]
call fcn.14001711c
mov eax, 1
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14002e470
add rsp, 0x248
ret

Function at 0x140006640
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
xor ebx, ebx
mov rdi, r8
mov rbp, rdx
mov r14, rcx
test r8, r8
jne 0x14000666e
lea eax, [rbx + 0xd]
jmp 0x1400066a4
mov rsi, rdi
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
inc eax
lea rsi, [rsi + rax*2]
lea ebx, [rbx + rax*2]
cmp eax, 1
jne 0x140006671
mov rcx, qword [r14]
lea r9d, [rax + 6]
mov dword [rsp + 0x28], ebx
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x1400066c0
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x1400513c8]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rsi, rdx
mov rdi, r8
mov rdx, rcx
xor ebx, ebx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x50], rbx
mov r8d, 0x100
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
test rsi, rsi
je 0x14000672b
lea r8, [0x14003ab38]
mov edx, 0x100
lea rcx, [rsp + 0x60]
call fcn.140015cb4
mov r8, rsi
lea rcx, [rsp + 0x60]
mov edx, 0x100
call fcn.140015cb4
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test rdi, rdi
je 0x1400067ad
test eax, eax
jne 0x1400067ad
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
xor edx, edx
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
mov edi, 1
mov r9d, edi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
test eax, eax
cmove ebx, edi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14002e470
add rsp, 0x270
pop rdi
pop rsi
pop rbx
ret

Function at 0x1400069cc
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, 0xffffffff80000000
lea rdx, str.Universal_Communication_Format_shellopencommand
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea rdx, str.Universal_Communication_Format_shellprintcommand
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea rdx, str..ucf
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0x8000000
add rsp, 0x20
pop rbx
jmp qword [sym.imp.SHELL32.dll_SHChangeNotify]
Function at 0x14000a1e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov r14, rcx
xor ebx, ebx
mov qword [rsp + 0x58], rbx
call fcn.140012300
mov rdi, rax
lea r8, [0x14003bc88]
mov edx, 0xb0fa
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x14000a334
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test eax, eax
je 0x14000a334
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000a334
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x14000a334
mov edx, ebp
lea ecx, [rbx + 2]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rsi, rax
test rax, rax
je 0x14000a334
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x14000a32b
mov r8d, ebp
mov rdx, rdi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea r8, [rsp + 0x58]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x14000a322
mov rbp, qword [rsp + 0x58]
lea ecx, [rbx + 0x18]
call sub.gdiplus.dll_GdipAlloc
mov rdi, rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x14000a2f7
lea rax, vtable.Gdiplus::Image.0
mov qword [rdi], rax
lea rax, vtable.Gdiplus::Bitmap.0
mov qword [rdi], rax
mov qword [rsp + 0x60], rbx
lea rdx, [rsp + 0x60]
mov rcx, rbp
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [rdi + 0x10], eax
mov rax, qword [rsp + 0x60]
mov qword [rdi + 8], rax
jmp 0x14000a2fa
mov rdi, rbx
mov qword [r14 + 0x70], rdi
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
call qword [rax + InitCommonControls]
mov rcx, qword [r14 + 0x70]
test rcx, rcx
je 0x14000a322
mov eax, dword [rcx + 0x10]
mov dword [rcx + 0x10], ebx
mov ecx, 1
test eax, eax
cmove ebx, ecx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, ebx
add rsp, 0x20
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000ab54
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x1400513c8]
xor rax, rsp
mov qword [rbp + reloc.atWbxUI15.DLL_Ordinal_352], rax
mov rdi, rcx
mov rsi, qword [rbp + 0x1b0]
mov rax, qword [0x140053710]
xor r14d, r14d
test rax, rax
je 0x14000aba2
mov qword [rcx + 0x180], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_GetClientRect]
mov edx, 2
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
lea rbx, [rdi + 0x1e0]
mov rdx, rax
mov rcx, rbx
call sub.atWbxUI15.DLL_Ordinal_6964
mov edx, 3
mov rcx, rbx
call sub.atWbxUI15.DLL_Ordinal_6657
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.14000c0a0
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140009220
mov rcx, rdi
call fcn.140008cb0
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
mov edx, 0xb0f7
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call fcn.140013b84
nop
lea rcx, [rdi + 0x1b0]
lea rdx, [rsp + 0x20]
call fcn.140013bdc
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14000ac88
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
call fcn.140002de0
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], r14w
mov dword [rsi], r14d
mov eax, 1
mov rcx, qword [rbp + reloc.atWbxUI15.DLL_Ordinal_352]
xor rcx, rsp
call fcn.14002e470
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14000d6cc
Capabilities:
Delete file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1400513c8]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r14d, r8d
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x30], rdx
mov r12d, 7
xor r15d, r15d
test rcx, rcx
jne 0x14000d735
mov rdx, qword [rdx + 0x18]
cmp rdx, 8
jb 0x14000d72d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
call fcn.140002de0
mov edi, r15d
jmp 0x14000d832
mov edi, r15d
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
mov r9, rbx
cmp qword [rbx + 0x18], 8
jb 0x14000d757
mov r9, qword [rbx]
lea eax, [r14 + 1]
mov dword [rsp + 0x20], eax
lea r8, str._s__d.jpg
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.140015c1c
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.140013b84
nop
mov rcx, rax
call fcn.140018dd0
mov r14b, al
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x14000d7ad
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
call fcn.140002de0
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], r12
mov word [rsp + 0x38], r15w
test r14b, r14b
je 0x14000d818
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.140013b84
nop
mov rdx, rax
mov rcx, rsi
call fcn.14000e7bc
mov edi, eax
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x14000d7fc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
call fcn.140002de0
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], r12
mov word [rsp + 0x38], r15w
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14000d832
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
call fcn.140002de0
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], r12
mov word [rbx], r15w
mov eax, edi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14002e470
add rsp, 0x280
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x14000dc28
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [0x140052b10]
test rcx, rcx
je 0x14000dc43
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140052b18]
test rcx, rcx
je 0x14000dc62
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [0x140052b18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140052b20]
test rcx, rcx
je 0x14000dc74
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140052b28]
test rcx, rcx
je 0x14000dc86
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 1
mov rcx, rbx
call fcn.14000eb08
add rsp, 0x20
pop rbx
jmp fcn.14000f720
Function at 0x14000ddbc
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
lea rax, [0x140052b38]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x14000f96c]
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x140052b30], rax
test rax, rax
je 0x14000de32
cmp dword [0x140052b38], 0
je 0x14000de32
lea rcx, str.The_converting_threads_information:
call fcn.14001711c
mov rdx, qword [0x140052b30]
lea rcx, str.____Thread_handle_is__08xh____d__
call fcn.14001711c
mov edx, dword [0x140052b38]
lea rcx, str.____Thread_ID_is__d
call fcn.14001711c
mov eax, 1
jmp 0x14000de48
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.When_save_document_to_PDF__create_thread_failed__error_code_is__d.
call fcn.1400170e8
xor eax, eax
add rsp, 0x38
ret
Function at 0x14000e248
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x7a0]
sub rsp, 0x8a0
mov rax, qword [0x1400513c8]
xor rax, rsp
mov qword [rbp + 0x790], rax
mov rdi, rdx
mov rbx, rcx
xor eax, eax
mov dword [rsp + 0x70], eax
mov word [rsp + 0x74], ax
mov esi, 0x200
mov r8d, esi
xor edx, edx
lea rcx, [rbp + 0x190]
call sub.VCRUNTIME140.dll_memset
mov r8d, esi
xor edx, edx
lea rcx, [rbp + 0x390]
call sub.VCRUNTIME140.dll_memset
mov r8d, esi
xor edx, edx
lea rcx, [rbp + 0x590]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea r8d, [rsi + 8]
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll_memset
cmp qword [rbx + 0x18], 8
jb 0x14000e2d2
mov rbx, qword [rbx]
lea rax, [rbp + 0x590]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x390]
lea r8, [rbp + 0x190]
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath]
lea rdx, [rbp + 0x190]
lea rcx, [rsp + 0x30]
call fcn.140013b84
nop
mov rax, qword [rsp + 0x40]
lea rcx, [rax - 1]
cmp rax, rcx
jbe 0x14000e48b
lea rax, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rax, qword [rsp + 0x30]
cmp word [rax + rcx*2], 0x5c
je 0x14000e347
lea rdx, [0x14003ab38]
lea rcx, [rsp + 0x30]
call fcn.140013de0
lea rdx, str.ucf_2_pdf_temp
lea rcx, [rsp + 0x30]
call fcn.140013de0
lea r8, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae r8, qword [rsp + 0x30]
xor esi, esi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x80]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmakepath]
lea rcx, [rbp - 0x80]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmkdir]
cmp eax, 0xffffffff
jne 0x14000e3b9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 0x11
je 0x14000e3b9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r8d, dword [rax]
lea rdx, [rbp - 0x80]
lea rcx, str._tmkdir_of___s__failed__error_code_is__d.
call fcn.1400170e8
mov ebx, esi
jmp 0x14000e437
lea r8, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae r8, qword [rsp + 0x30]
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0x390]
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x80]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmakepath]
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x50]
call fcn.140013b84
nop
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.140013bdc
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x14000e41f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
call fcn.140002de0
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], si
mov ebx, 1
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14000e454
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
call fcn.140002de0
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], si
mov eax, ebx
mov rcx, qword [rbp + 0x790]
xor rcx, rsp
call fcn.14002e470
mov rbx, qword [rsp + 0x8d0]
add rsp, 0x8a0
pop rdi
pop rsi
pop rbp
ret
call fcn.14000c828
nop
int3
Function at 0x14000f720
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov r8, qword [0x140052bc0]
lea rcx, str.In__RemoveAllJobs___Working_Queue_size_is__d__Finished_Queue_size_is__d.
mov rdx, qword [0x140052b90]
sub r8, qword [0x140052bb8]
sub rdx, qword [0x140052b88]
sar r8, 3
sar rdx, 3
call fcn.14001711c
mov rax, qword [0x140052b90]
mov rbx, qword [0x140052b88]
jmp 0x14000f7d4
mov rsi, qword [rbx]
test rsi, rsi
je 0x14000f7d4
lea rdi, [rsi + 8]
mov rcx, rdi
call fcn.140018dd0
test al, al
je 0x14000f79a
cmp qword [rdi + 0x18], 8
jb 0x14000f791
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, rsi
call fcn.14000d448
mov edx, 0x48
mov rcx, rsi
call fcn.14002df88
mov rdx, qword [0x140052b90]
lea rcx, [rbx + 8]
mov r8, rbx
call fcn.14000cabc
mov rax, qword [0x140052b90]
sub rax, 8
mov qword [0x140052b90], rax
cmp rbx, rax
jne 0x14000f76f
mov rbx, qword [0x140052bb8]
mov rax, qword [0x140052bc0]
jmp 0x14000f84e
mov rsi, qword [rbx]
test rsi, rsi
je 0x14000f84e
lea rdi, [rsi + 8]
mov rcx, rdi
call fcn.140018dd0
test al, al
je 0x14000f814
cmp qword [rdi + 0x18], 8
jb 0x14000f80b
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, rsi
call fcn.14000d448
mov edx, 0x48
mov rcx, rsi
call fcn.14002df88
mov rdx, qword [0x140052bc0]
lea rcx, [rbx + 8]
mov r8, rbx
call fcn.14000cabc
mov rax, qword [0x140052bc0]
sub rax, 8
mov qword [0x140052bc0], rax
cmp rbx, rax
jne 0x14000f7e9
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400105bc
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1400513c8]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14001062b
cmp byte [rcx + 0x71], 0
je 0x14001062b
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140010680
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 0x140010645
sub eax, 1
je 0x140010649
cmp eax, 2
jne 0x140010680
mov byte [rbx + 0x71], 0
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002e470
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140010677
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 0x140010680
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14001062d
xor al, al
jmp 0x14001062d
Function at 0x1400109a8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400513c8]
xor rax, rsp
mov qword [rbp - 8], rax
or edi, 0xffffffff
mov esi, edx
mov rbx, rcx
cmp edx, edi
jne 0x1400109e1
xor eax, eax
jmp 0x140010af4
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x140010a0a
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, qword [rax]
cmp qword [rax], r8
jae 0x140010a0a
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], sil
mov eax, esi
jmp 0x140010af4
cmp qword [rcx + 0x80], 0
je 0x140010af2
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140010a45
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
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 0x140010a69
movsx ecx, sil
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, edi
cmovne edi, esi
jmp 0x140010af2
lea rax, [rbp - 0x38]
mov byte [rbp - 0x40], sil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x3f]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x40]
lea rax, [rbp - 0x30]
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
js 0x140010af2
cmp eax, 1
jle 0x140010ab7
cmp eax, 3
jne 0x140010af2
movsx ecx, byte [rbp - 0x40]
jmp 0x140010a52
mov r14, qword [rbp - 0x38]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x140010ae2
mov r9, qword [rbx + 0x80]
lea rcx, [rbp - 0x28]
mov r8, r14
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp r14, rax
jne 0x140010af2
lea rax, [rbp - 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rbp - 0x30], rax
mov eax, esi
jne 0x140010af4
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14002e470
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140011114
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140011141
xor eax, eax
jmp 0x140011230
cmp qword [rcx + 0x68], 0
je 0x140011153
call 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]
jmp 0x140011230
mov rax, qword [rcx + 0x38]
mov rbp, rdi
mov rdx, qword [rax]
test rdx, rdx
je 0x14001116a
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14001116c
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140011199
cmp rax, rdi
mov rbx, rdi
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebx
mov rcx, rsi
add r14, rbx
sub rbp, rbx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
cmp qword [rsi + 0x80], 0
mov rbx, rbp
je 0x14001122a
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400111d7
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
mov r15d, 0xfff
jmp 0x140011205
mov r9, qword [rsi + 0x80]
mov r8, r15
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbp, rax
add r14, rax
mov rbx, rbp
cmp rax, r15
jne 0x140011249
cmp rbp, r15
ja 0x1400111df
test rbx, rbx
je 0x14001122a
mov r9, qword [rsi + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rdi, rbx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
sub rdi, rbp
jmp 0x14001122d
Function at 0x140011250
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x140011281
call 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]
jmp 0x1400112f4
mov rax, qword [rcx + 0x40]
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x140011298
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14001129a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400112ee
test ecx, ecx
jle 0x1400112ce
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebp
mov rcx, rdi
sub rbx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
add r14, rbp
test rbx, rbx
jle 0x1400112ee
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400112ee
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
sub rsi, rbx
mov rax, rsi
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

Function at 0x140012bc8
Capabilities:
Print debug messages

Disassembly:
test rcx, rcx
je 0x140012c7e
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
push rsi
push rdi
mov eax, 0x1050
call fcn.14002e920
sub rsp, rax
mov rax, qword [0x1400513c8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x1000
xor esi, esi
call sub.VCRUNTIME140.dll_memset
lea rdi, [rsp + 0x1078]
call fcn.140002b4c
mov qword [rsp + 0x30], rdi
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], rsi
or r9, 0xffffffffffffffff
mov r8d, 0x7ff
mov qword [rsp + 0x20], rbx
mov rcx, qword [rax]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsnwprintf_s]
lea rcx, [rsp + 0x40]
mov word [rsp + 0x103e], si
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14002e470
add rsp, 0x1050
pop rdi
pop rsi
pop rbx
ret