joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140020f20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x88
movdqa xmmword [rsp + 0x70], xmm6
mov rsi, rcx
lea rcx, [rsp + 0x40]
call fcn.140022d40
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x40]

Function at 0x140021e90
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x140021ed3
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, case.0x14000f66b.114
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.140033010
ud2
Function at 0x140030100
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14003017a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x140030170
cmp r11, r10
ja 0x140030213
cmp r10, rdx
ja 0x140030227
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140030172
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140030150
jmp 0x1400301e7
ja 0x14003017a
mov r11, r10
cmp rax, r8
jne 0x140030122
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x1400301eb
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x1400301c0
mov r8, r10
sub ecx, r9d
jns 0x1400301de
jmp 0x1400301ed
cmp r10, rdx
je 0x1400301f9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x1400301ed
xor al, 1
cmp r8, rdx
jne 0x1400301a0
jmp 0x1400301ed
xor eax, eax
jmp 0x1400301ed
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuefrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.1400330c0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140033590
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140033510
ud2

Function at 0x140031810
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003185a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003185a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003185a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003185a
cmp dword [rcx + 0x84], 0xe
jbe 0x14003185a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14003185c
xor al, al
add rsp, 0x28
ret
Function at 0x140008ef0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x90
mov qword [rax - 0x58], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x1400e07b8]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rbp, rdx
mov r14, rcx
mov ecx, 0x800
call fcn.140038120
mov rbx, rax
mov qword [rsp + 0x80], rax
mov eax, 0x400
mov dword [rsp + 0x78], eax
xor r15d, r15d
mov esi, r15d
or r12, 0xffffffffffffffff
mov dword [rsp + 0x7c], eax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x7c]
mov r8, rbx
mov edx, esi
mov rcx, qword [r14]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
cmp eax, 0xea
jne 0x140008fe9
mov eax, dword [rsp + 0x7c]
mov dword [rsp + 0x78], eax
lea ecx, [rax + 1]
mov eax, 2
mul rcx
cmovo rax, r12
mov rcx, rax
call fcn.140038120
mov rdi, rax
cmp rax, rbx
je 0x140008fb5
mov rcx, rbx
call fcn.14006119c
mov rbx, rdi
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x78]
mov r8, rdi
mov edx, esi
mov rcx, qword [r14]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
test edi, edi
jne 0x140009064
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], r15
mov word [rsp + 0x40], r15w
cmp word [rbx], di
jne 0x14000900b
mov r8, r15
jmp 0x14000901b
mov r8, r12
nop
inc r8
cmp word [rbx + r8*2], 0
jne 0x140009010
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.1400317d0
nop
movzx eax, byte [0x1400ee548]
mov byte [rsp + 0x20], al
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x68]
mov rcx, rbp
call fcn.140008ce0
nop
cmp qword [rsp + 0x58], 8
jb 0x140009059
mov rcx, qword [rsp + 0x40]
call fcn.14006119c
inc esi
mov eax, dword [rsp + 0x78]
jmp 0x140008f52
cmp edi, 0x103
cmove edi, r15d
mov rcx, rbx
call fcn.14006119c
mov eax, edi
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140060a70
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140016340
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x80
mov qword [r11 - 0x38], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
mov rax, qword [0x1400e07b8]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, rdx
mov rdi, rcx
mov qword [r11 - 0x30], rcx
xor esi, esi
mov qword [rcx + 8], rsi
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], rsi
mov qword [rcx + 0x20], rsi
mov dword [rcx + 0x28], esi
mov qword [rcx + 0x30], rsi
lea rax, vtable.Nvidia::Logging::XMLLogPrinter.0
mov qword [rcx], rax
mov qword [r11 - 0x40], 7
mov qword [r11 - 0x48], rsi
mov word [rsp + 0x30], si
lea r8d, [rsi + 0x10]
lea rdx, str.MaxPrintingDepth
lea rcx, [r11 - 0x58]
call fcn.1400317d0
nop
mov dword [rsp + 0x64], 4
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdx, qword [rsp + 0x30]
lea rax, [rsp + 0x64]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001640c
mov ecx, 0x3bc6
cmp dword [rsp + 0x68], 4
cmovne eax, ecx
lea rdx, str.RegQueryValueEx
mov ecx, eax
call fcn.140019d10
lea rax, vtable.Nvidia::Logging::XMLContentsPrinter.0
mov qword [rdi + 0x38], rax
mov qword [rdi + 0x40], rsi
mov qword [rdi + 0x48], rsi
mov qword [rdi + 0x50], rsi
mov ecx, dword [rsp + 0x60]
mov dword [rdi + 0x58], ecx
cmp qword [rsp + 0x48], 8
jb 0x14001644b
mov rcx, qword [rsp + 0x30]
call fcn.14006119c
nop
mov rax, rdi
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140060a70
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140016cf0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x48
lea rcx, [rsp + 0x20]
call fcn.140016c30
cmp qword [rax + 0x18], 8
jb 0x140016d08
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp qword [rsp + 0x38], 8
jb 0x140016d23
mov rcx, qword [rsp + 0x20]
call fcn.14006119c
add rsp, 0x48
ret

Function at 0x140016df0
Capabilities:
Get file size

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1400e07b8]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rcx, qword [rcx]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x40], 0
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140016e35
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140060a70
add rsp, 0x58
ret
lea rax, str.Cant_get_log_file_size
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x38], rax
call fcn.14006178c
lea rax, vtable.std::runtime_error.0
lea rdx, [0x1400dd900]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
call fcn.14006c648
int3
Function at 0x1400179b0
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x80
mov qword [r11 - 0x50], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
mov rax, qword [0x1400e07b8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rdi, rdx
mov r15, rcx
xor r12d, r12d
mov dword [r11 - 0x40], r12d
mov ebp, r12d
mov r14, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 8
jb 0x140017a01
mov r8, qword [rdx]
jmp 0x140017a04
mov r8, rdx
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
mov r9d, r14d
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rsi, eax
mov rbx, r12
mov qword [rsp + 0x70], rbx
test eax, eax
jle 0x140017a81
mov rcx, rsi
call fcn.140038120
mov rbp, rax
mov rbx, rax
mov qword [rsp + 0x70], rax
xor ecx, ecx
call fcn.140064078
cmp qword [rdi + 0x18], 8
jb 0x140017a5b
mov rdi, qword [rdi]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rbp
mov r9d, r14d
mov r8, rdi
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x68]
mov r8d, esi
mov rdx, rbp
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140017aae
cmp dword [rsp + 0x68], esi
jne 0x140017aae
mov rcx, rbx
call fcn.140064078
jmp 0x140017ae7
lea rax, str.Error_writing_to_log
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.14006178c
lea rax, vtable.std::runtime_error.0
mov qword [rsp + 0x40], rax
lea rdx, [0x1400dd900]
lea rcx, [rsp + 0x40]
call fcn.14006c648
nop
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140060a70
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140017d70
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov rax, qword [0x1400e07b8]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r15, r8
mov r14, rdx
mov r12, rcx
xor eax, eax
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
mov ecx, 0x800
call fcn.140038120
mov qword [rbp - 0x28], rax
xor ecx, ecx
mov byte [rbp - 0x4f], cl
movzx r8d, cl
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.140017ca0
nop
mov dword [rbp - 0x30], 0x800
cmp qword [r14 + 0x18], 8
jb 0x140017de5
mov rdx, qword [r14]
jmp 0x140017de8
mov rdx, r14
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
mov rbx, qword [rbp - 0x28]
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x18]
xor r8d, r8d
mov rcx, qword [r12]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
or rsi, 0xffffffffffffffff
cmp eax, 0xea
jne 0x140017ebb
mov ecx, dword [rbp - 0x30]
inc ecx
mov eax, 2
mul rcx
cmovo rax, rsi
mov rcx, rax
call fcn.140038120
mov qword [rbp - 0x48], rax
xor ecx, ecx
mov byte [rbp - 0x50], cl
movzx r8d, cl
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.140017ca0
mov rbx, qword [rbp - 0x48]
mov qword [rbp - 0x28], rbx
mov rdi, qword [rbp - 0x20]
mov rax, qword [rbp - 0x40]
mov qword [rbp - 0x20], rax
test rdi, rdi
je 0x140017e89
lock dec dword [rdi + 8]
jne 0x140017e85
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
lock dec dword [rdi + 0xc]
jne 0x140017e85
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
mov rbx, qword [rbp - 0x28]
cmp qword [r14 + 0x18], 8
jb 0x140017e93
mov r14, qword [r14]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp - 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x18]
xor r8d, r8d
mov rdx, r14
mov rcx, qword [r12]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x140017f2e
mov r8d, dword [rbp - 0x30]
shr r8, 1
mov eax, dword [rbp - 0x18]
dec eax
cmp eax, 1
jbe 0x140017ed7
mov edi, 0x3bc6
jmp 0x140017f2e
cmp word [rbx + r8*2 - 2], 0
jne 0x140017f0a
cmp word [rbx], 0
jne 0x140017eea
xor eax, eax
jmp 0x140017efa
mov rax, rsi
nop dword [rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x140017ef0
mov r8, rax
mov rdx, rbx
mov rcx, r15
call fcn.1400317d0
jmp 0x140017f2e
xor eax, eax
mov qword [r15 + 0x10], rax
cmp qword [r15 + 0x18], 8
jb 0x140017f1c
mov rcx, qword [r15]
jmp 0x140017f1f
mov rcx, r15
mov word [rcx], ax
mov rdx, rbx
mov rcx, r15
call fcn.14001ed30
nop
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140017f5a
lock dec dword [rcx + 8]
jne 0x140017f5a
mov rbx, qword [rbp - 0x20]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
lock dec dword [rbx + 0xc]
jne 0x140017f5a
mov rcx, qword [rbp - 0x20]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov eax, edi
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140060a70
add rsp, 0x80
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140017fe0
Capabilities:
Query environment variable

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov rax, qword [0x1400e07b8]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rdi, rcx
mov ecx, 0xfffe
call fcn.140038120
mov rbx, rax
mov qword [rsp + 0x28], rax
cmp qword [rdi + 0x18], 8
jb 0x140018024
mov rcx, qword [rdi]
jmp 0x140018027
mov rcx, rdi
mov r8d, 0x7fff
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp word [rbx], 0
jne 0x140018041
xor r8d, r8d
jmp 0x140018050
or r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], 0
jne 0x140018045
mov rdx, rbx
mov rcx, rdi
call fcn.1400317d0
nop
mov rcx, rbx
call fcn.14006119c
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140060a70
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x140019de0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1400e07b8]
xor rax, rsp
mov qword [rsp + 0x40], rax
cmp qword [rdx + 0x18], 8
mov dword [rsp + 0x34], 4
jb 0x140019e05
mov rdx, qword [rdx]
mov rcx, qword [rcx]
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140019e3b
cmp dword [rsp + 0x30], 4
mov ecx, 0x3bc6
cmovne eax, ecx
lea rdx, str.RegQueryValueEx
mov ecx, eax
call fcn.140019d10
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140060a70
add rsp, 0x58
ret
Function at 0x14005f570
Capabilities:
Create directory

Disassembly:
mov rax, rsp
push rsi
sub rsp, 0xd0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x1400e07b8]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, rdx
mov rsi, rcx
cmp qword [rcx + 0x18], 8
jb 0x14005f5ae
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14005f5d5
test rbx, rbx
je 0x14005f5ce
mov dword [rbx], 0
call fcn.14005d2c0
mov qword [rbx + 8], rax
mov al, 1
jmp 0x14005f6a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov dword [rsp + 0x20], 0
call fcn.14005d2c0
mov qword [rsp + 0x28], rax
cmp ebp, 0xb7
jne 0x14005f624
lea r8, [rsp + 0x20]
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.140060230
cmp dword [rax], 3
jne 0x14005f624
test rbx, rbx
je 0x14005f69e
mov dword [rbx], 0
call fcn.14005d2c0
jmp 0x14005f69a
test rbx, rbx
jne 0x14005f693
mov qword [rsp + 0x58], 0xf
mov qword [rsp + 0x50], rbx
mov byte [rsp + 0x40], bl
lea r8d, [rbx + 0x23]
lea rdx, str.boost::filesystem::create_directory
lea rcx, [rsp + 0x40]
call fcn.140001a20
nop
mov dword [rsp + 0x20], ebp
call fcn.14005d2c0
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
lea r9, [rsp + 0x20]
mov r8, rsi
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.14005f120
lea rdx, [0x1400dc890]
lea rcx, [rsp + 0x60]
call fcn.14006c648
nop
call fcn.14005d2c0
mov dword [rbx], ebp
mov qword [rbx + 8], rax
xor al, al
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140060a70
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rsi
ret

Function at 0x14005fdd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x18], 8
mov rsi, rdx
mov rdi, rcx
jb 0x14005fdef
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14005fe1e
lea rcx, [rsp + 0x30]
mov r8, rsi
mov rdx, rdi
call fcn.14005fc80
mov eax, dword [rax]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
test rsi, rsi
je 0x14005fe32
mov dword [rsi], 0
call fcn.14005d2c0
mov qword [rsi + 8], rax
bt ebx, 0xa
jae 0x14005fe79
mov rcx, rdi
call fcn.14005f8c0
test al, al
je 0x14005fe64
test bl, 0x10
mov eax, 4
mov ecx, 0xb
cmovne eax, ecx
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov eax, 9
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rsi, qword [rsp + 0x40]
and ebx, 0x10
or ebx, 0x20
shr ebx, 4
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14005ffd0
Capabilities:
Delete directory
Delete file

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov rax, qword [0x1400e07b8]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, r8
mov rbx, rcx
cmp edx, 1
jne 0x14006001a
test r8, r8
je 0x140060013
mov dword [r8], 0
call fcn.14005d2c0
mov qword [rdi + 8], rax
xor al, al
jmp 0x1400600e9
lea eax, [rdx - 3]
mov qword [rsp + 0x40], 0xf
mov qword [rsp + 0x38], 0
mov byte [rsp + 0x28], 0
mov r8d, 0x19
lea rdx, str.boost::filesystem::remove
lea rcx, [rsp + 0x28]
test eax, 0xfffffff7
je 0x14006009a
call fcn.140001a20
nop
cmp qword [rbx + 0x18], 8
jb 0x14006005f
mov rcx, qword [rbx]
jmp 0x140060062
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
sete cl
lea r9, [rsp + 0x28]
mov r8, rdi
mov rdx, rbx
call fcn.14005f7f0
movzx ebx, al
cmp qword [rsp + 0x40], 0x10
jb 0x140060092
mov rcx, qword [rsp + 0x28]
call fcn.14006119c
test bl, bl
je 0x1400600e7
xor al, al
jmp 0x1400600e9
call fcn.140001a20
nop
cmp qword [rbx + 0x18], 8
jb 0x1400600ac
mov rcx, qword [rbx]
jmp 0x1400600af
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
sete cl
lea r9, [rsp + 0x28]
mov r8, rdi
mov rdx, rbx
call fcn.14005f7f0
movzx ebx, al
cmp qword [rsp + 0x40], 0x10
jb 0x1400600df
mov rcx, qword [rsp + 0x28]
call fcn.14006119c
test bl, bl
jne 0x140060013
mov al, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140060a70
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x140060110
Capabilities:
Move file

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x1400e07b8]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x50], 0xf
mov qword [rsp + 0x48], 0
mov byte [rsp + 0x38], 0
mov r8d, 0x19
lea rdx, str.boost::filesystem::rename
lea rcx, [rsp + 0x38]
call fcn.140001a20
nop
cmp qword [rdi + 0x18], 8
jb 0x140060174
mov rdx, qword [rdi]
jmp 0x140060177
mov rdx, rdi
cmp qword [rbx + 0x18], 8
jb 0x140060183
mov rcx, qword [rbx]
jmp 0x140060186
mov rcx, rbx
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
sete cl
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9, rsi
mov r8, rdi
mov rdx, rbx
call fcn.14005f700
nop
cmp qword [rsp + 0x50], 0x10
jb 0x1400601c2
mov rcx, qword [rsp + 0x38]
call fcn.14006119c
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140060a70
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret
Function at 0x140060230
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0xc8], rbx
mov rax, qword [0x1400e07b8]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r14, r8
mov rdi, rdx
mov rsi, rcx
cmp qword [rdx + 0x18], 8
jb 0x140060274
mov rcx, qword [rdx]
jmp 0x140060277
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, eax
cmp eax, 0xffffffff
jne 0x140060297
mov r8, r14
mov rdx, rdi
mov rcx, rsi
call fcn.14005fc80
jmp 0x1400603d8
xor r15d, r15d
bt eax, 0xa
jae 0x140060398
cmp qword [rdi + 0x18], 8
jb 0x1400602b0
mov rdx, qword [rdi]
jmp 0x1400602b3
mov rdx, rdi
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], r15
mov word [rsp + 0x50], r15w
cmp word [rdx], r15w
jne 0x1400602d2
mov r8, r15
jmp 0x1400602e0
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], r15w
jne 0x1400602d6
lea rcx, [rsp + 0x50]
call fcn.1400317d0
nop
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x68], 8
jb 0x14006033a
mov rcx, qword [rsp + 0x50]
call fcn.14006119c
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], r15
mov word [rsp + 0x50], r15w
cmp rbx, 0xffffffffffffffff
jne 0x140060365
mov r8, r14
mov rdx, rdi
mov rcx, rsi
call fcn.14005fc80
nop
jmp 0x1400603d8
mov rcx, rdi
call fcn.14005f8c0
test al, al
jne 0x14006038f
mov edx, ebp
mov rcx, rdi
call fcn.14005f990
mov dword [rsi], 9
mov dword [rsi + 4], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400603d8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14, r14
je 0x1400603a9
mov dword [r14], r15d
call fcn.14005d2c0
mov qword [r14 + 8], rax
mov edx, ebp
mov rcx, rdi
test bpl, 0x10
mov dword [rsp + 0x40], 3
jne 0x1400603c4
mov dword [rsp + 0x40], 2
call fcn.14005f990
mov dword [rsp + 0x44], eax
lea rax, [rsp + 0x40]
mov rax, qword [rax]
mov qword [rsi], rax
mov rax, rsi
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140060a70
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x140069cdc
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140069cef
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x20]
movzx edx, ax
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.1400645e0
lea rdx, [0x1400dca68]
lea rcx, [rsp + 0x20]
call fcn.14006c648
int3

Function at 0x14006adbc
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x1400ed584]
xor edx, edx
jmp fcn.140069cdc

Function at 0x14006bd84
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x1400ed584]
jmp fcn.140069cdc