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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140488480]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, rcx
mov qword [rsp + 0x30], rcx
xor esi, esi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], si
mov edx, 0x108
lea rcx, [rsp + 0x38]
call fcn.14002a870
mov rdx, rax
mov qword [rsp + 0x48], 0x104
mov qword [rsp + 0x50], 0x107
movzx eax, si
mov rdi, rdx
mov ecx, 0x104
rep stosw word [rdi], ax
mov word [rdx + 0x208], si
mov qword [rsp + 0x38], rdx
lea rax, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rax, rdx
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 5]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x58]
call fcn.1400f52f0
nop
mov rdx, rax
mov rcx, rbx
call fcn.1400f5110
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x1400e2a52
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400e2a4d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400e2a4d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14010464c
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], 0xf
mov byte [rsp + 0x58], 0
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x1400e2aaa
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400e2aa5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400e2aa5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14010464c
mov rax, rbx
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140104760
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400e2ad0
Capabilities:
Get common file path
Get startup folder

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140488480]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, rcx
mov qword [rsp + 0x30], rcx
xor esi, esi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], si
mov edx, 0x108
lea rcx, [rsp + 0x38]
call fcn.14002a870
mov rdx, rax
mov qword [rsp + 0x48], 0x104
mov qword [rsp + 0x50], 0x107
movzx eax, si
mov rdi, rdx
mov ecx, 0x104
rep stosw word [rdi], ax
mov word [rdx + 0x208], si
mov qword [rsp + 0x38], rdx
lea rax, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rax, rdx
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 0x27]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x58]
call fcn.1400f52f0
nop
mov rdx, rax
mov rcx, rbx
call fcn.1400f5110
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x1400e2bd2
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400e2bcd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400e2bcd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14010464c
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], 0xf
mov byte [rsp + 0x58], 0
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x1400e2c2a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400e2c25
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400e2c25
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14010464c
mov rax, rbx
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140104760
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x1400e50a0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x140488480]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x234
mov rdi, rax
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x20], 0x238
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov ebx, eax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1400e511a
nop
mov ecx, dword [rsp + 0x28]
cmp rcx, rbx
je 0x1400e5142
lea rdx, [rsp + 0x20]
mov rcx, rdi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1400e5100
mov rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140104760
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
mov eax, dword [rsp + 0x40]
jmp 0x1400e5121
Function at 0x1400f36e0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1038
call fcn.140105110
sub rsp, rax
mov rax, qword [0x140488480]
xor rax, rsp
mov qword [rsp + 0x1020], rax
xor edx, edx
lea rcx, [0x14048bc90]
mov r8d, 0x100
call sub.VCRUNTIME140.dll_memset
lea rcx, str.VBOX_APP_HOME
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1400f3747
xor edx, edx
mov rcx, rax
call fcn.1400f38f0
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.140104760
add rsp, 0x1038
ret
lea rcx, str.ProgramFiles
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1400f37e6
mov qword [rsp + 0x1040], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x1030], rdi
mov rdx, rax
mov edi, 0x1000
mov r8d, edi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
lea rcx, [rsp + 0x20]
mov byte [rsp + 0x101f], 0
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x1400f3797
sub rdi, rax
lea rbx, [rsp + 0x20]
add rbx, rax
lea rdx, str._Oracle_VirtualBox
mov rcx, rbx
mov r8, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov edx, 1
mov byte [rbx + rdi - 1], 0
lea rcx, [rsp + 0x20]
call fcn.1400f38f0
mov rdi, qword [rsp + 0x1030]
mov rbx, qword [rsp + 0x1040]
test eax, eax
je 0x1400f3828
mov edx, 1
lea rcx, str.C:_Program_Files_Oracle_VirtualBox
call fcn.1400f38f0
test eax, eax
je 0x1400f3828
mov edx, 1
xor ecx, ecx
call fcn.1400f38f0
test eax, eax
je 0x1400f3828
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.140104760
add rsp, 0x1038
ret
xor eax, eax
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.140104760
add rsp, 0x1038
ret
Function at 0x1400f3e60
Capabilities:
Check if file exists
Delete file

Disassembly:
jmp 0x1400ffae0
push rbx
sub rsp, 0x50
mov rax, qword [0x140488480]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.1400f5110
cmp qword [rax + 0x18], 8
jb 0x1400ffb0c
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, qword [rsp + 0x38]
test eax, eax
sete bl
cmp rdx, 8
jb 0x1400ffb5f
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400ffb5a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400ffb5a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14010464c
test bl, bl
je 0x1400ffb8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1400ffb8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400fe630
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140104760
add rsp, 0x50
pop rbx
ret
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140104760
add rsp, 0x50
pop rbx
ret
Function at 0x1400f42c0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, rdx
mov rbx, rcx
call fcn.1400ffbb0
mov edi, eax
test eax, eax
je 0x1400f4349
call fcn.1400f74d0
mov ecx, dword [0x140488440]
mov edx, 1
mov r8, qword [rax]
call r8
test eax, eax
je 0x1400f4349
call fcn.1400f74d0
cmp qword [rbx + 0x18], 0x10
mov r10, qword [rax + 8]
mov rax, rbx
jb 0x1400f4310
mov rax, qword [rbx]
mov edx, dword [0x140488440]
lea r9, str.xfileMove
mov dword [rsp + 0x38], edi
lea r8, str.C:code_app_playerhdSourcexplXfile.cpp
mov qword [rsp + 0x30], rax
mov ecx, 1
lea rax, str.Error_in_flushing_file__s_to_disk._Error___d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x9f
call r10
mov rdx, rsi
mov rcx, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
jmp 0x1400ffcf0
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x140488480]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rcx
lea rcx, [rsp + 0x40]
call fcn.1400f5110
mov rbx, rax
cmp qword [rax + 0x18], 8
jb 0x1400ffd23
mov rbx, qword [rax]
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.1400f5110
cmp qword [rax + 0x18], 8
jb 0x1400ffd3a
mov rax, qword [rax]
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
sete bl
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x1400ffd96
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400ffd91
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400ffd91
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14010464c
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], ax
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x1400ffdf0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400ffdeb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400ffdeb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14010464c
test bl, bl
je 0x1400ffe03
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400fe630
jmp 0x1400ffe05
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140104760
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
Function at 0x1400f4540
Capabilities:
Delete directory

Disassembly:
jmp 0x140100070
push rbx
sub rsp, 0x50
mov rax, qword [0x140488480]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.1400f5110
cmp qword [rax + 0x18], 8
jb 0x14010009c
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov rdx, qword [rsp + 0x38]
test eax, eax
sete bl
cmp rdx, 8
jb 0x1401000ef
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401000ea
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1401000ea
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14010464c
test bl, bl
je 0x140100113
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400fe630
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140104760
add rsp, 0x50
pop rbx
ret
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140104760
add rsp, 0x50
pop rbx
ret

Function at 0x1400f6f70
Capabilities:
Create thread

Disassembly:
sub rsp, 0x58
mov ecx, 1
call fcn.140104610
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x1400f5820]
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 0x1400f6fe0
cmp dword [rsp + 0x38], 0
je 0x1400f6ff3
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call sub.MSVCP140.dll__Thrd_detach
test eax, eax
jne 0x1400f6fd8
add rsp, 0x58
ret
mov ecx, eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
nop
mov dword [rsp + 0x38], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov ecx, 1
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x1400f89a0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140488480]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x1400f8a92
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400fe630
mov ebx, eax
call fcn.1400f74d0
mov r8, qword [rax]
xor edx, edx
mov ecx, dword [0x14048844c]
call r8
test eax, eax
je 0x1400f8a92
call fcn.1400f74d0
mov rdi, qword [rax + 8]
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.1400fef00
nop
cmp qword [rax + 0x18], 0x10
jb 0x1400f8a17
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], ebx
lea r9, str.xprocKill
mov qword [rsp + 0x30], r9
lea rax, str._s:_TerminateProcess_failed_err_d___s_
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xb4
lea r8, str.C:code_app_playerhdSourcexplXprocWinnt.cpp
mov edx, dword [0x14048844c]
xor ecx, ecx
call rdi
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x1400f8a92
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400f8a8d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400f8a8d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14010464c
xor eax, eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140104760
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
ret

Function at 0x1400f9470
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov esi, edx
mov rdi, rcx
mov dword [rcx + 0xc0], edx
xor ebp, ebp
mov dword [rcx + 0xc4], ebp
mov dword [rcx + 0xc8], edx
mov ebx, ebp
test edx, edx
jle 0x1400f951a
mov ecx, 8
call fcn.140104610
test rax, rax
je 0x1400f94b7
mov qword [rax], rdi
jmp 0x1400f94ba
mov rax, rbp
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebp
mov r9, rax
lea r8, [0x1400f8fa0]
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 0x1400f953c
cmp dword [rsp + 0x38], 0
je 0x1400f9531
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call sub.MSVCP140.dll__Thrd_detach
test eax, eax
jne 0x1400f954b
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x30], xmm0
inc ebx
cmp ebx, esi
jl 0x1400f94a3
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
mov ecx, 1
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov dword [rsp + 0x38], ebp
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov ecx, eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
int3
Function at 0x1400fdce0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rax, qword [0x140488480]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov ebx, r9d
mov rsi, r8
mov rdi, rcx
xor r14d, r14d
mov qword [rbp - 0x21], r14
lea rcx, [rbp + 0xf]
call fcn.1400f5110
cmp qword [rax + 0x18], 8
jb 0x1400fdd24
mov rax, qword [rax]
lea rcx, [rbp - 0x21]
mov qword [rsp + 0x20], rcx
mov r9d, 0x101
xor r8d, r8d
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
mov rdx, qword [rbp + 0x27]
cmp rdx, 8
jb 0x1400fdd87
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400fdd82
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400fdd82
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14010464c
test edi, edi
jne 0x1400fde5e
mov rdx, rsi
lea rcx, [rbp - 0x11]
call fcn.1400f5110
lea rdx, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rdx, qword [rbp - 0x11]
lea rax, [rbp - 0x19]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x29]
xor r8d, r8d
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400fde0a
cmp dword [rbp - 0x29], 4
jne 0x1400fde0a
lea rdx, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rdx, qword [rbp - 0x11]
lea rax, [rbp - 0x19]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x15]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x29]
xor r8d, r8d
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400fde0a
mov ebx, dword [rbp - 0x15]
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x1400fde4d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400fde48
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400fde48
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14010464c
mov qword [rbp - 1], r14
mov qword [rbp + 7], 7
mov word [rbp - 0x11], r14w
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x1400fde6e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov eax, ebx
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140104760
add rsp, 0x90
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400ffae0
Capabilities:
Check if file exists
Delete file

Disassembly:
jmp 0x1400ffae0
push rbx
sub rsp, 0x50
mov rax, qword [0x140488480]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.1400f5110
cmp qword [rax + 0x18], 8
jb 0x1400ffb0c
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, qword [rsp + 0x38]
test eax, eax
sete bl
cmp rdx, 8
jb 0x1400ffb5f
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400ffb5a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400ffb5a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14010464c
test bl, bl
je 0x1400ffb8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1400ffb8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400fe630
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140104760
add rsp, 0x50
pop rbx
ret
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140104760
add rsp, 0x50
pop rbx
ret

Function at 0x1400ffc20
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140488480]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.1400f5110
cmp qword [rax + 0x18], 8
jb 0x1400ffc4c
mov rax, qword [rax]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rdx, qword [rsp + 0x38]
test eax, eax
sete bl
cmp rdx, 8
jb 0x1400ffca1
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400ffc9c
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400ffc9c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14010464c
test bl, bl
je 0x1400ffcd2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1400ffcd2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400fe630
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140104760
add rsp, 0x50
pop rbx
ret
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140104760
add rsp, 0x50
pop rbx
ret
Function at 0x1400ffcf0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, rdx
mov rbx, rcx
call fcn.1400ffbb0
mov edi, eax
test eax, eax
je 0x1400f4349
call fcn.1400f74d0
mov ecx, dword [0x140488440]
mov edx, 1
mov r8, qword [rax]
call r8
test eax, eax
je 0x1400f4349
call fcn.1400f74d0
cmp qword [rbx + 0x18], 0x10
mov r10, qword [rax + 8]
mov rax, rbx
jb 0x1400f4310
mov rax, qword [rbx]
mov edx, dword [0x140488440]
lea r9, str.xfileMove
mov dword [rsp + 0x38], edi
lea r8, str.C:code_app_playerhdSourcexplXfile.cpp
mov qword [rsp + 0x30], rax
mov ecx, 1
lea rax, str.Error_in_flushing_file__s_to_disk._Error___d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x9f
call r10
mov rdx, rsi
mov rcx, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
jmp 0x1400ffcf0
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x140488480]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rcx
lea rcx, [rsp + 0x40]
call fcn.1400f5110
mov rbx, rax
cmp qword [rax + 0x18], 8
jb 0x1400ffd23
mov rbx, qword [rax]
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.1400f5110
cmp qword [rax + 0x18], 8
jb 0x1400ffd3a
mov rax, qword [rax]
mov r8d, 1
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
sete bl
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x1400ffd96
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400ffd91
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400ffd91
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14010464c
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], ax
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x1400ffdf0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400ffdeb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400ffdeb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14010464c
test bl, bl
je 0x1400ffe03
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400fe630
jmp 0x1400ffe05
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140104760
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret