joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007e60
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rsi, qword [rsp + 0x80]
xor ebx, ebx
mov r14, r9
mov rbp, r8
mov r15, rdx
mov r12, rcx
movsxd rax, dword [rsi]
test eax, eax
je 0x140007eb3
mov rcx, rax
add rcx, rcx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x140007f91
mov rdx, rbp
xor ecx, ecx
call fcn.140008630
movsxd rcx, eax
add rcx, rcx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x140007f08
mov rdx, rbp
mov rcx, rax
call fcn.140008630
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, r15
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140007f16
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x140007f91
mov rcx, rbx
jmp 0x140007f8b
mov eax, dword [rsi]
lea rcx, [rsp + 0x34]
add eax, eax
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x34], eax
test rbx, rbx
lea rax, [rsp + 0x80]
mov dword [rsp + 0x30], 1
cmovne rax, rbx
mov rdx, rdi
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
mov ebp, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x30], 1
jne 0x140007f7a
test ebp, ebp
je 0x140007fb5
cmp ebp, 0xea
je 0x140007ff3
test rbx, rbx
je 0x140007f88
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 1
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
test rbx, rbx
je 0x140007ff3
mov rdx, rbx
xor ecx, ecx
call fcn.140008440
cmp eax, dword [rsi]
jg 0x140007feb
mov rdx, rbx
mov rcx, r14
call fcn.140008440
mov rcx, rbx
mov dword [rsi], eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
jmp 0x140007f96
test eax, eax
js 0x140007ff3
mov dword [rsi], eax
jmp 0x140008009
mov eax, dword [rsp + 0x34]
lea ecx, [rax*2 + 1]
add ecx, eax
shr ecx, 1
mov dword [rsi], ecx
test rbx, rbx
je 0x140008012
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 0xffffffff
jmp 0x140007f96
Function at 0x140008030
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x14000e0b8]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov r9, qword [0x14000b0e0]
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov rax, 0xffffffffffffffff
inc rax
cmp byte [r9 + rax], 0
jne 0x140008064
add rax, 9
cmp rax, 0x100
jae 0x1400080f0
xor ecx, ecx
lea rdx, str.Software
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx + rdx]
mov byte [rsp + rcx + 0x50], al
lea rcx, [rcx + 1]
test al, al
jne 0x140008090
lea rcx, [rsp + 0x50]
dec rcx
nop dword [rax + rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x1400080b0
movzx eax, word [0x14000b234]
mov word [rcx], ax
lea rcx, [rsp + 0x50]
dec rcx
nop dword [rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x1400080d0
xor edx, edx
nop dword [rax]
movzx eax, byte [r9 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1400080e0
lea rax, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140008188
mov eax, dword [rdi]
lea rcx, [rsp + 0x34]
mov dword [rsp + 0x34], eax
lea r9, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
lea rax, [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
test rbx, rbx
mov rdx, rsi
mov dword [rsp + 0x38], 1
cmovne rax, rbx
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x40]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140008173
mov eax, dword [rsp + 0x34]
mov dword [rdi], eax
xor eax, eax
jmp 0x14000818d
cmp ebx, 0xea
jne 0x140008188
mov ecx, dword [rsp + 0x34]
mov eax, 0xffffffff
mov dword [rdi], ecx
jmp 0x14000818d
mov eax, 1
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400088e0
add rsp, 0x160
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400081b0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x170
mov rax, qword [0x14000e0b8]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov r8, qword [0x14000b0e0]
mov rbx, 0xffffffffffffffff
mov rax, rbx
mov rsi, rdx
mov rbp, rcx
nop dword [rax + rax]
inc rax
cmp byte [r8 + rax], 0
jne 0x1400081f0
add rax, 9
xor edi, edi
cmp rax, 0x100
jae 0x140008280
mov ecx, edi
lea rdx, str.Software
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx + rdx]
mov byte [rsp + rcx + 0x60], al
lea rcx, [rcx + 1]
test al, al
jne 0x140008220
lea rcx, [rsp + 0x60]
dec rcx
nop dword [rax + rax]
cmp byte [rcx + 1], dil
lea rcx, [rcx + 1]
jne 0x140008240
movzx eax, word [0x14000b234]
mov word [rcx], ax
lea rcx, [rsp + 0x60]
dec rcx
nop dword [rax]
cmp byte [rcx + 1], dil
lea rcx, [rcx + 1]
jne 0x140008260
xor edx, edx
nop dword [rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140008270
lea rax, [rsp + 0x50]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x60]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1400082f0
lea rax, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea r9, [0x14000b1eb]
lea rax, [rsp + 0x50]
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, eax
test eax, eax
jne 0x140008328
inc rbx
cmp byte [rsi + rbx], 0
jne 0x1400082f0
mov rcx, qword [rsp + 0x50]
inc ebx
mov dword [rsp + 0x28], ebx
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x50]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg edi
sbb eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400088e0
mov rbx, qword [rsp + 0x1a0]
add rsp, 0x170
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002f010
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x260
mov rax, qword [0x1400b8518]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor esi, esi
mov r14, rdx
cmp qword [rcx + 0x18], 8
mov rbx, rcx
mov qword [rsp + 0x30], rsi
jb 0x14002f04b
mov rdx, qword [rcx]
jmp 0x14002f04e
mov rdx, rcx
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
xor eax, eax
lea rdi, [rsp + 0x40]
mov ecx, 0x208
lea rdx, [rsp + 0x40]
rep stosb byte [rdi], al
xor ecx, ecx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rcx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x14002f090
mov rcx, qword [rsp + 0x30]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, [0x1400a0a28]
lea rax, [rsp + 0x40]
mov r9d, 2
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x28], 4
lea rdx, [0x1400a0a50]
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x38], 7
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8, qword [rbx + 0x18]
cmp r8, 8
jb 0x14002f120
mov rdx, qword [rbx]
inc r8
call fcn.14002cf50
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rsi
cmp qword [rbx + 0x18], 8
jb 0x14002f136
mov rbx, qword [rbx]
mov word [rbx], si
mov r8, qword [r14 + 0x18]
cmp r8, 8
jb 0x14002f14e
mov rdx, qword [r14]
inc r8
call fcn.14002cf50
mov qword [r14 + 0x18], 7
mov qword [r14 + 0x10], rsi
cmp qword [r14 + 0x18], 8
jb 0x14002f169
mov rax, qword [r14]
mov word [rax], si
jmp 0x14002f16d
mov word [r14], si
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14005ac10
mov rbx, qword [rsp + 0x290]
add rsp, 0x260
pop r14
pop rdi
pop rsi
ret

Function at 0x1400340a0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ecx, ecx
mov rsi, rdx
call fcn.140057cfc
mov rcx, rax
mov rdi, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
jne 0x1400340d7
lea ecx, [rax + 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea r9, [0x1400b8590]
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call fcn.140057d18
test eax, eax
jne 0x140034103
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140034120
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp + 0x37], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rdi, rdx
mov rbx, rcx
cmp byte [rcx + 0x14], 0
je 0x140034155
mov al, 1
jmp 0x140034300
lea r14, vtable.LogItem.0
mov qword [rbp - 0x19], r14
mov qword [rbp + 7], 7
xor esi, esi
mov qword [rbp - 1], rsi
mov word [rbp - 0x11], si
mov qword [rbp + 0x27], 7
mov qword [rbp + 0x1f], rsi
mov word [rbp + 0xf], si
mov dword [rbp + 0x2f], 1
mov dword [rbp + 0x33], 1
lea rdx, str._DBG___N_A_
lea rcx, [rbp - 0x19]
call fcn.140028450
mov rcx, rax
lea rdx, str.Initialization_of_TPM_communication_channel_procedure
call fcn.140028450
nop
lea rcx, [rbp - 0x19]
call fcn.140027f10
mov ecx, 0x1090
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [0x1400bbbd0], rax
test rax, rax
jne 0x1400341da
lea ecx, [rsi + 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rdx, rax
mov rcx, rdi
call fcn.14002e750
mov edi, eax
test eax, eax
je 0x140034204
mov rcx, qword [0x1400bbbd0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, rsi
mov qword [0x1400bbbd0], rax
jmp 0x14003420d
mov rax, qword [0x1400bbbd0]
mov edi, esi
mov dword [rbp - 0x29], edi
test edi, edi
je 0x140034283
mov qword [rbp - 0x19], r14
mov qword [rbp + 7], 7
mov qword [rbp - 1], rsi
mov word [rbp - 0x11], si
mov qword [rbp + 0x27], 7
mov qword [rbp + 0x1f], rsi
mov word [rbp + 0xf], si
mov dword [rbp + 0x2f], 1
mov dword [rbp + 0x33], 1
lea rdx, str._DBG___N_A_
lea rcx, [rbp - 0x19]
call fcn.140028450
mov rcx, rax
lea rdx, str.TSS2_error:
call fcn.140028450
mov rcx, rax
lea rdx, [rbp - 0x29]
call fcn.1400334b0
nop
lea rcx, [rbp - 0x19]
call fcn.140027f10
mov byte [rbx + 0x14], 0
xor al, al
jmp 0x140034300
mov rdx, rax
call fcn.1400340a0
mov qword [0x1400bbbd8], rax
test rax, rax
jne 0x1400342f8
mov qword [rbp - 0x19], r14
mov qword [rbp + 7], 7
mov qword [rbp - 1], rsi
mov word [rbp - 0x11], si
mov qword [rbp + 0x27], 7
mov qword [rbp + 0x1f], rsi
mov word [rbp + 0xf], si
mov dword [rbp + 0x2f], 1
mov dword [rbp + 0x33], 3
lea rdx, str._ERR___N_A_
lea rcx, [rbp - 0x19]
call fcn.140028450
mov rcx, rax
lea rdx, str.TSS2_initialization_of_SysContext_failed
call fcn.140028450
nop
lea rcx, [rbp - 0x19]
call fcn.140027f10
mov byte [rbx + 0x14], 0
jmp 0x1400342fc
mov byte [rbx + 0x14], 1
movzx eax, byte [rbx + 0x14]
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14003dcb0
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x48]
sub rsp, 0x140
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400b8518]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rbx, rcx
mov rcx, qword [rcx + 0x20]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea rax, [rbx + 0x2c]
mov qword [rsp + 0x28], rax
xor esi, esi
mov dword [rsp + 0x20], esi
mov r9, rbx
lea r8, [0x14003de80]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 8], rax
test rax, rax
jne 0x14003de4c
mov qword [rsp + 0x38], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov qword [rbp - 0x38], 0xf
mov qword [rbp - 0x40], rsi
mov byte [rbp - 0x50], sil
lea r8d, [rsi + 0xd]
lea rdx, str.Thread::Start
lea rcx, [rbp - 0x50]
call fcn.140025550
nop
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x30]
call fcn.140032090
lea rdi, vtable.Exception.0
mov qword [rbp - 0x30], rdi
lea rdx, str.CreateThreadfailed__error
lea rcx, [rbp - 0x30]
call fcn.14003e3d0
mov rcx, rax
lea rdx, [rsp + 0x30]
call fcn.14003e660
mov rcx, rax
call fcn.14003e900
mov rcx, rax
call fcn.14003e520
mov rcx, rax
lea rdx, [rsp + 0x38]
call fcn.14003e7b0
mov rbx, rax
lea rax, vtable.std::exception.0
mov qword [rsp + 0x50], rax
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
lea rcx, [rbx + 8]
lea rdx, [rsp + 0x58]
call qword [sym.imp.VCRUNTIME140.dll___std_exception_copy]
nop
lea rax, vtable.BaseException.0
mov qword [rsp + 0x50], rax
lea rdx, [rbx + 0x18]
mov qword [rbp - 0x80], 0xf
mov qword [rsp + 0x78], rsi
mov byte [rsp + 0x68], sil
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rsp + 0x68]
call fcn.140025680
nop
lea rax, vtable.ExceptionStream_class_Exception__class_BaseException_.0
mov qword [rsp + 0x50], rax
lea rdx, [rbx + 0x38]
mov qword [rbp - 0x60], 0xf
mov qword [rbp - 0x68], rsi
mov byte [rbp - 0x78], sil
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x78]
call fcn.140025680
nop
mov qword [rsp + 0x50], rdi
lea rdx, [0x1400b4478]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, rbx
call fcn.14003e1d0
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.14005ac10
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x140043bd0
Capabilities:
Identify system language via api

Disassembly:
sub rsp, 0x28
cmp byte [0x1400b9ba3], 0
je 0x140043be8
mov eax, dword [0x1400bbbe8]
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx r8d, ax
mov edx, r8d
and edx, 0x3ff
sub edx, 7
je 0x140043c4e
sub edx, 3
je 0x140043c2a
sub edx, 0xb
je 0x140043c20
cmp edx, 1
je 0x140043c16
xor eax, eax
add rsp, 0x28
ret
mov eax, 2
add rsp, 0x28
ret
mov eax, 5
add rsp, 0x28
ret
mov eax, 0xfc00
mov ecx, 0x800
and r8w, ax
mov edx, 1
cmp r8w, cx
mov eax, 3
cmovne eax, edx
add rsp, 0x28
ret
mov eax, 4
add rsp, 0x28
ret
Function at 0x140049ad0
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x260]
sub rsp, 0x360
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x390], rbx
mov rax, qword [0x1400b8518]
xor rax, rsp
mov qword [rbp + 0x250], rax
mov r10, rdx
mov rsi, rcx
xor ebx, ebx
mov dword [rsp + 0x28], ebx
lea rdi, [rbp + 0x40]
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
mov rcx, r10
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jns 0x140049bf1
lea rcx, [rbp - 0x20]
call fcn.140030200
nop
mov rcx, rax
call fcn.14004a240
mov rdi, rax
lea rax, vtable.std::exception.0
mov qword [rbp - 0x80], rax
xor eax, eax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
lea rcx, [rdi + 8]
lea rdx, [rbp - 0x78]
call qword [sym.imp.VCRUNTIME140.dll___std_exception_copy]
nop
lea rax, vtable.BaseException.0
mov qword [rbp - 0x80], rax
lea rdx, [rdi + 0x18]
mov qword [rbp - 0x50], 0xf
mov qword [rbp - 0x58], rbx
mov byte [rbp - 0x68], bl
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x68]
call fcn.140025680
nop
lea rax, vtable.ExceptionStream_class_Exception__class_BaseException_.0
mov qword [rbp - 0x80], rax
lea rdx, [rdi + 0x38]
mov qword [rbp - 0x30], 0xf
mov qword [rbp - 0x38], rbx
mov byte [rbp - 0x48], bl
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x48]
call fcn.140025680
nop
lea rax, vtable.Exception.0
mov qword [rbp - 0x80], rax
lea rdx, [0x1400b4478]
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rbx
mov word [rsp + 0x60], bx
mov rdx, qword [rsp + 0x20]
cmp word [rdx], bx
jne 0x140049c13
mov r8, rbx
jmp 0x140049c2a
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], bx
jne 0x140049c20
lea rcx, [rsp + 0x60]
call fcn.14002c600
nop
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
lea rcx, [rbp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x30], bx
cmp word [rbp + 0x40], 0
je 0x140049c7c
lea rax, [rbp + 0x40]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140049c72
mov r8, rbx
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.14002c600
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14002ed10
nop
mov r8, qword [rsp + 0x78]
cmp r8, 8
jb 0x140049cb3
inc r8
mov rdx, qword [rsp + 0x60]
call fcn.14002cf50
mov rax, rsi
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.14005ac10
mov rbx, qword [rsp + 0x390]
add rsp, 0x360
pop rdi
pop rsi
pop rbp
ret
Function at 0x140051080
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400b8518]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
cmp qword [rcx + 0x68], 0
je 0x14005123b
cmp byte [rcx + 0x71], 0
je 0x14005123b
or edx, 0xffffffff
call fcn.1400507e0
cmp eax, 0xffffffff
jne 0x1400510d9
xor al, al
jmp 0x14005123d
mov edx, 0xf
mov qword [rbp - 0x18], rdx
mov byte [rbp - 0x30], 0
xor ecx, ecx
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x20], 8
lea rax, [rbp - 0x30]
cmp rdx, 0x10
cmovae rax, rcx
mov byte [rax + 8], cl
mov rcx, qword [rbp - 0x30]
mov r9, qword [rbp - 0x18]
nop dword [rax + rax]
lea rdx, [rbp - 0x30]
cmp r9, 0x10
cmovae rdx, rcx
lea r8, [rbp - 0x30]
cmovae r8, rcx
mov r9, qword [rbp - 0x20]
add r9, rdx
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x74]
mov rcx, qword [rdi + 0x68]
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 0x14005114d
sub eax, 1
jne 0x1400511c2
jmp 0x140051151
mov byte [rdi + 0x71], 0
lea rax, [rbp - 0x30]
mov rcx, qword [rbp - 0x30]
mov r9, qword [rbp - 0x18]
cmp r9, 0x10
cmovae rax, rcx
mov rbx, qword [rbp - 0x40]
sub rbx, rax
je 0x14005119f
lea rax, [rbp - 0x30]
cmp r9, 0x10
cmovae rax, rcx
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
cmp rbx, rax
jne 0x1400511cf
cmp byte [rdi + 0x71], 0
je 0x1400511d3
test rbx, rbx
jne 0x140051110
xor r8d, r8d
lea edx, [rbx + 8]
lea rcx, [rbp - 0x30]
call fcn.140032500
jmp 0x140051103
sub eax, 2
mov r9, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
je 0x1400511d3
xor bl, bl
jmp 0x1400511d5
mov bl, 1
cmp r9, 0x10
jb 0x140051236
inc r9
cmp r9, 0xffffffffffffffff
jbe 0x1400511eb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp r9, 0x1000
jb 0x140051231
test byte [rbp - 0x30], 0x1f
je 0x140051201
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140051211
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x140051221
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x14005122e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.14005afe8
movzx eax, bl
jmp 0x14005123d
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14005ac10
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140054a50
Capabilities:
Delete file

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x58]
sub rsp, 0x150
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x1400b8518]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov rbx, rcx
call fcn.1400548a0
cmp qword [rbx + 0x20], 8
jb 0x140054a93
mov rcx, qword [rbx + 8]
jmp 0x140054a97
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140054bd7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x40], 7
xor edi, edi
mov qword [rsp + 0x38], rdi
mov word [rsp + 0x28], di
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x28]
call fcn.14002c750
lea rdx, [rsp + 0x28]
lea rcx, [rbp - 0x40]
call fcn.14002ed10
mov rbx, rax
lea rcx, [rbp - 0x20]
call fcn.140030200
nop
lea rdx, str.Error_when_deleting_file:
mov rcx, rax
call fcn.14003e3d0
mov rcx, rax
mov rdx, rbx
call fcn.140051980
mov rcx, rax
lea rdx, str.Last_error:
call fcn.14003e3d0
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.14003e660
mov rbx, rax
lea rax, vtable.std::exception.0
mov qword [rsp + 0x60], rax
xor eax, eax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
lea rcx, [rbx + 8]
lea rdx, [rsp + 0x68]
call qword [sym.imp.VCRUNTIME140.dll___std_exception_copy]
nop
lea rax, vtable.BaseException.0
mov qword [rsp + 0x60], rax
lea rdx, [rbx + 0x18]
mov qword [rbp - 0x70], 0xf
mov qword [rbp - 0x78], rdi
mov byte [rsp + 0x78], dil
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rsp + 0x78]
call fcn.140025680
nop
lea rax, vtable.ExceptionStream_class_Exception__class_BaseException_.0
mov qword [rsp + 0x60], rax
lea rdx, [rbx + 0x38]
mov qword [rbp - 0x50], 0xf
mov qword [rbp - 0x58], rdi
mov byte [rbp - 0x68], dil
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x68]
call fcn.140025680
nop
lea rax, vtable.Exception.0
mov qword [rsp + 0x60], rax
lea rdx, [0x1400b4478]
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.14005ac10
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret