joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800520e0
Capabilities:
Set current directory

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x90
mov qword [rax - 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rbx, rcx
mov dword [rax - 0x78], 0
mov rax, qword [rcx + 0x28]
cmp dword [rax - 0x10], 0
je 0x1800521df
lea rcx, [rsp + 0x30]
call fcn.18000cb50
nop
mov r8, rax
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.18004e520
mov rdi, rax
mov esi, 1
mov dword [rsp + 0x20], esi
lea rax, [rsp + 0x58]
mov qword [rsp + 0xa0], rax
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, esi
jg 0x180052168
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
sete dil
and esi, 0xfffffffe
mov dword [rsp + 0x20], esi
lea rax, [rsp + 0x88]
mov qword [rsp + 0xa0], rax
mov rdx, qword [rsp + 0x88]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x1800521ba
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
test dil, dil
jne 0x1800521fa
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
xor r9d, r9d
mov r8d, 0x95b
lea rdx, str.FilePath.cpp
mov ecx, 0x80070057
call fcn.18003abe0
int3
call fcn.180039260
int3
Function at 0x18005b710
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x57]
sub rsp, 0xc0
mov qword [rbp - 0x51], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov r15, r9
mov rdi, r8
mov rbx, rdx
mov r14, rcx
xor r12d, r12d
mov dword [rbp - 0x71], r12d
mov rax, qword [rdx + 0x28]
cmp dword [rax - 0x10], r12d
je 0x18005b76c
mov rcx, rdx
call fcn.18004d7f0
shr eax, 4
not al
test al, 1
je 0x18005b902
mov rcx, rdi
call fcn.18000b370
mov rcx, qword [rax]
sub rcx, 0x18
call fcn.18003a990
lea rdi, [rax + 0x18]
mov qword [rbp - 0x61], rdi
mov rcx, qword [rbx + 0x28]
sub rcx, 0x18
call fcn.18003a990
lea rsi, [rax + 0x18]
mov qword [rbp - 0x69], rsi
mov rcx, qword [r15 + 0x28]
sub rcx, 0x18
call fcn.18003a990
lea rbx, [rax + 0x18]
mov qword [rbp - 0x59], rbx
xor edx, edx
lea r8d, [rdx + 0x70]
lea rcx, [rbp - 0x41]
call fcn.1800b2150
mov dword [rbp - 0x41], 0x70
mov dword [rbp - 0x3d], 0x40
mov qword [rbp - 0x39], r12
lea rax, str.runas
mov qword [rbp - 0x31], rax
cmp dword [rsi - 8], 1
jle 0x18005b7f4
mov edx, dword [rsi - 0x10]
lea rcx, [rbp - 0x69]
call fcn.18003a180
mov rsi, qword [rbp - 0x69]
mov qword [rbp - 0x29], rsi
cmp dword [rdi - 8], 1
jle 0x18005b80e
mov edx, dword [rdi - 0x10]
lea rcx, [rbp - 0x61]
call fcn.18003a180
mov rdi, qword [rbp - 0x61]
mov qword [rbp - 0x21], rdi
cmp dword [rbx - 0x10], 0
jne 0x18005b81d
mov rax, r12
jmp 0x18005b836
cmp dword [rbx - 8], 1
jle 0x18005b833
mov edx, dword [rbx - 0x10]
lea rcx, [rbp - 0x59]
call fcn.18003a180
mov rbx, qword [rbp - 0x59]
mov rax, rbx
mov qword [rbp - 0x19], rax
mov eax, dword [rbp + 0x7f]
mov dword [rbp - 0x11], eax
mov qword [rbp - 9], r12
mov qword [r14], r12
mov dword [rbp - 0x71], 1
lea rcx, [rbp - 0x41]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x18005b88d
mov rdi, qword [rbp + 0x27]
test rdi, rdi
je 0x18005b88d
mov qword [rbp + 0x67], r12
lea rcx, [rbp + 0x67]
call fcn.18003e6e0
mov qword [rbp + 0x67], rdi
lea rdx, [rbp + 0x67]
mov rcx, r14
call fcn.18005af50
nop
lea rcx, [rbp + 0x67]
call fcn.18003e6e0
nop
lea rdx, [rbx - 0x18]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x18005b8aa
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x69]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x18005b8c8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x61]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x18005b8e3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, r14
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
xor r9d, r9d
mov r8d, 0x172
lea rdx, str.NVProcess.cpp
mov ecx, 0x80070057
call fcn.18003abe0
int3
Function at 0x18005fc90
Capabilities:
Delete registry value

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov rsi, rdx
xor edi, edi
mov qword [rsp + 0x20], rdi
mov ebx, edi
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8d, [rdi + 2]
lea rdx, [rsp + 0x60]
call fcn.180063ce0
mov qword [rsp + 0x68], rax
mov rcx, qword [rax]
test rcx, rcx
je 0x18005fcfc
mov qword [rsp + 0x30], rcx
mov eax, 1
lock xadd dword [rcx + 0x10], eax
inc eax
cmp eax, 1
jle 0x18005fd9d
mov rbx, qword [rsp + 0x20]
mov rax, qword [rsp + 0x68]
mov rax, qword [rax]
test rax, rax
cmovne rbx, rax
mov qword [rsp + 0x20], rbx
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x18005fd20
mov qword [rsp + 0x60], rdi
call fcn.180049c40
nop
test rbx, rbx
je 0x18005fdb6
mov rdx, qword [rsi]
mov rcx, qword [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, eax
test eax, eax
je 0x18005fd56
add eax, 0xfffffffe
cmp eax, 1
ja 0x18005fd49
mov rcx, rbx
jmp 0x18005fd81
test ecx, ecx
jg 0x18005fdd1
jmp 0x18005fdda
mov qword [rsp + 0x20], rdi
mov rcx, rbx
call fcn.180049c40
mov al, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov qword [rsp + 0x20], rdi
call fcn.180049c40
xor al, al
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
xor r9d, r9d
lea r8d, [r9 + 0x63]
lea rdx, str.c:dvsp4_build_sw_relgpu_drvinstaller_coreinstaller_core_vs2017incRefCounted.h
mov ecx, 0xe0e00000
call fcn.18003abe0
nop
xor r9d, r9d
mov r8d, 0x181
lea rdx, str.c:dvsp4_build_sw_relgpu_drvinstaller_coreinstaller_core_vs2017incRefCounted.h
mov ecx, 0x80004003
call fcn.18003abe0
int3
movzx ecx, cx
or ecx, 0x80070000
xor r9d, r9d
mov r8d, 0x809
lea rdx, str.Registry.cpp
call fcn.18003abe0
int3
Function at 0x180061c70
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
push rsi
push rdi
push r14
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov r14, rdx
mov rsi, rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
cmp dword [rcx + 8], 2
jne 0x180061da1
cmp byte [rcx + 0x18], bpl
je 0x180061da1
call fcn.180039cb0
mov rcx, rax
test rax, rax
je 0x180061dd3
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
mov edi, 0x104
nop word [rax + rax]
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x180061d02
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.18003a2f0
mov rbx, qword [rsp + 0x50]
test edi, edi
js 0x180061e2a
cmp edi, dword [rbx - 0xc]
jg 0x180061e2a
mov dword [rbx - 0x10], edi
movsxd rax, edi
mov word [rbx + rax*2], bp
mov r8d, edi
mov rdx, rbx
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x180061e24
cmp eax, edi
jbe 0x180061d46
lea edi, [rax + 1]
test edi, edi
js 0x180061dee
jmp 0x180061ce0
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.1800c1660
test eax, eax
js 0x180061e09
cmp eax, dword [rbx - 0xc]
jg 0x180061e09
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], bp
lea rcx, [rbx - 0x18]
call fcn.18003a990
add rax, 0x18
mov qword [r14], rax
mov dword [rsp + 0x20], 1
or eax, 0xffffffff
lock xadd dword [rbx - 8], eax
sub eax, 1
jg 0x180061dbd
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x180061dbd
mov rcx, qword [rcx + 0x10]
sub rcx, 0x18
call fcn.18003a990
add rax, 0x18
mov qword [r14], rax
mov dword [rsp + 0x20], 1
mov rax, r14
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
xor r9d, r9d
mov r8d, 0xcd
lea rdx, str.C:dvsp4_build_sw_toolswin32msvc141u5VC_atlmfcinclude_atlsimpstr.h
mov ecx, 0x80004005
call fcn.18003abe0
nop
xor r9d, r9d
mov r8d, 0x325
lea rdx, str.C:dvsp4_build_sw_toolswin32msvc141u5VC_atlmfcinclude_atlsimpstr.h
mov ecx, 0x80070057
call fcn.18003abe0
int3
xor r9d, r9d
mov r8d, 0x368
lea rdx, str.C:dvsp4_build_sw_toolswin32msvc141u5VC_atlmfcinclude_atlsimpstr.h
mov ecx, 0x80070057
call fcn.18003abe0
int3
call fcn.180039260
int3
xor r9d, r9d
mov r8d, 0x368
lea rdx, str.C:dvsp4_build_sw_toolswin32msvc141u5VC_atlmfcinclude_atlsimpstr.h
mov ecx, 0x80070057
call fcn.18003abe0
int3
Function at 0x1800637f0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov ebx, 0x20
mov rdi, r8
mov dword [rsp + 0x98], ebx
mov ebp, edx
mov rsi, rcx
xor r14d, r14d
nop dword [rax]
mov r10, qword [rdi]
mov r8d, 1
mov eax, dword [r10 - 0xc]
sub r8d, dword [r10 - 8]
sub eax, ebx
or r8d, eax
jge 0x180063845
mov edx, ebx
mov rcx, rdi
call fcn.18003a2f0
mov r10, qword [rdi]
test ebx, ebx
js 0x1800639c9
cmp ebx, dword [r10 - 0xc]
jg 0x1800639c9
mov dword [r10 - 0x10], ebx
mov rax, qword [rdi]
movsxd rcx, ebx
mov word [rax + rcx*2], r14w
mov rcx, qword [rsi]
test rcx, rcx
je 0x1800639ae
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x98]
mov qword [rsp + 0x38], r14
mov r8, r10
mov qword [rsp + 0x30], r14
mov edx, ebp
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov rcx, qword [rdi]
mov ebx, eax
test rcx, rcx
jne 0x1800638ac
mov eax, r14d
jmp 0x1800638bd
movsxd rdx, dword [rcx - 0xc]
call fcn.1800c1660
test eax, eax
js 0x180063993
mov rcx, qword [rdi]
cmp eax, dword [rcx - 0xc]
jg 0x180063993
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rdi]
mov word [rax + rcx*2], r14w
cmp ebx, 0xea
jne 0x180063949
mov rcx, qword [rsi]
xor r9d, r9d
test rcx, rcx
je 0x18006397b
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x98]
mov qword [rsp + 0x58], r14
xor r8d, r8d
mov qword [rsp + 0x50], r14
xor edx, edx
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x18006394b
mov ebx, dword [rsp + 0x98]
add ebx, 1
mov dword [rsp + 0x98], ebx
js 0x180063960
jmp 0x180063820
mov eax, ebx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
xor r9d, r9d
lea rdx, str.C:dvsp4_build_sw_toolswin32msvc141u5VC_atlmfcinclude_atlsimpstr.h
mov r8d, 0x325
mov ecx, 0x80070057
call fcn.18003abe0
int3
mov r8d, 0x187
lea rdx, str.c:dvsp4_build_sw_relgpu_drvinstaller_coreinstaller_core_vs2017incRefCounted.h
mov ecx, 0x80004003
call fcn.18003abe0
int3
xor r9d, r9d
lea rdx, str.C:dvsp4_build_sw_toolswin32msvc141u5VC_atlmfcinclude_atlsimpstr.h
mov r8d, 0x368
mov ecx, 0x80070057
call fcn.18003abe0
int3
xor r9d, r9d
lea rdx, str.c:dvsp4_build_sw_relgpu_drvinstaller_coreinstaller_core_vs2017incRefCounted.h
mov r8d, 0x187
mov ecx, 0x80004003
call fcn.18003abe0
int3
xor r9d, r9d
lea rdx, str.C:dvsp4_build_sw_toolswin32msvc141u5VC_atlmfcinclude_atlsimpstr.h
mov r8d, 0x368
mov ecx, 0x80070057
call fcn.18003abe0
int3
Function at 0x180063a70
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x70
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov r15, r8
mov r14, rdx
xor edi, edi
mov dword [r8], edi
mov qword [rax - 0x68], rdi
mov esi, edi
mov qword [rax - 0x68], rdi
xor r9d, r9d
mov ebx, 1
mov r8d, ebx
lea rdx, [rax - 0x58]
call fcn.180063ce0
mov qword [rsp + 0x48], rax
mov rcx, qword [rax]
test rcx, rcx
je 0x180063ae0
mov qword [rsp + 0x58], rcx
lock xadd dword [rcx + 0x10], ebx
inc ebx
cmp ebx, 1
jle 0x180063c70
mov rsi, qword [rsp + 0x30]
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
test rax, rax
cmovne rsi, rax
mov qword [rsp + 0x30], rsi
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180063b04
mov qword [rsp + 0x40], rdi
call fcn.180049c40
nop
mov ecx, 0x20
call fcn.180091eb0
mov rbx, rax
test rax, rax
je 0x180063b26
mov qword [rax], rdi
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rdi
mov dword [rax + 0x18], edi
jmp 0x180063b29
mov rbx, rdi
mov qword [rsp + 0x38], rbx
or r8d, 0xffffffff
mov edx, 0x400
mov rcx, rbx
call fcn.18004a550
mov dword [rsp + 0xb8], edi
mov rax, qword [rbx + 8]
mov r12d, 0xffffffff
cmp rax, r12
ja 0x180063c89
nop dword [rax]
mov dword [rsp + 0xb0], eax
mov rax, qword [rbx]
test rsi, rsi
je 0x180063cc4
lea rcx, [rsp + 0xb0]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xb8]
xor r8d, r8d
mov rdx, qword [r14]
mov rcx, qword [rsi + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x180063c0a
cmp eax, 2
je 0x180063be6
cmp eax, 0xea
jne 0x180063bd9
mov edx, dword [rsp + 0xb0]
add edx, 4
or r8d, 0xffffffff
mov rcx, rbx
call fcn.18004a550
mov dword [rsp + 0xb8], edi
mov rax, qword [rbx + 8]
cmp rax, r12
ja 0x180063c89
jmp 0x180063b60
test eax, eax
jg 0x180063ca4
jmp 0x180063cac
mov rcx, qword [rbx]
test rcx, rcx
je 0x180063bf3
call fcn.1800badb0
mov edx, 0x20
mov rcx, rbx
call fcn.180091f20
mov qword [rsp + 0x38], rdi
mov rcx, rsi
jmp 0x180063c4f
mov edx, dword [rsp + 0xb0]
or r8d, 0xffffffff
mov rcx, rbx
call fcn.18004a550
mov eax, dword [rsp + 0xb8]
mov dword [r15], eax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov rcx, rsi
call fcn.180049c40
mov rax, rbx
jmp 0x180063c5b
mov qword [rsp + 0x30], rdi
call fcn.180049c40
xor eax, eax
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
xor r9d, r9d
lea r8d, [r9 + 0x63]
lea rdx, str.c:dvsp4_build_sw_relgpu_drvinstaller_coreinstaller_core_vs2017incRefCounted.h
mov ecx, 0xe0e00000
call fcn.18003abe0
nop
xor r9d, r9d
mov r8d, 0x299
lea rdx, str.c:dvsp4_build_sw_relgpu_drvinstaller_coreinstaller_core_vs2017incNVI2Defns.h
mov ecx, 0x80070057
call fcn.18003abe0
int3
movzx eax, ax
or eax, 0x80070000
xor r9d, r9d
mov r8d, 0x689
lea rdx, str.Registry.cpp
mov ecx, eax
call fcn.18003abe0
int3
xor r9d, r9d
mov r8d, 0x181
lea rdx, str.c:dvsp4_build_sw_relgpu_drvinstaller_coreinstaller_core_vs2017incRefCounted.h
mov ecx, 0x80004003
call fcn.18003abe0
int3
Function at 0x180065ad0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
mov esi, edi
test rcx, rcx
je 0x180065b93
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebp, eax
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rbx + rdx*2], si
jne 0x180065b04
lea ecx, [rax + 1]
add rdx, rcx
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x180065b96
mov edx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r8d, eax
lea ecx, [r8 - 1]
cmp word [rsi + rcx*2], 0x5c
je 0x180065b4f
mov eax, 0x5c
mov word [rsi + r8*2], ax
inc r8d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], di
jne 0x180065b53
test rax, rax
je 0x180065b93
mov rdx, rdi
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rbx + rdx*2]
lea ecx, [rdi + r8]
inc edi
mov word [rsi + rcx*2], ax
mov edx, edi
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], 0
jne 0x180065b84
cmp rdx, rax
jb 0x180065b70
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180067fa0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x40
mov rbx, rcx
mov r14d, r8d
xor ecx, ecx
mov ebp, edx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x180068108
movzx eax, word [rbx]
cmp ax, 0x5c
je 0x180068006
cmp ax, 0x2f
je 0x180068006
movzx ecx, ax
call fcn.1800c6240
test eax, eax
je 0x180068108
cmp word [rbx + 2], 0x3a
jne 0x180068108
movzx eax, word [rbx + 4]
cmp ax, 0x5c
je 0x180068006
cmp ax, 0x2f
jne 0x180068108
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1800680ec
test al, 0x50
jne 0x1800680ec
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov edx, 0x80000000
mov rcx, rbx
mov qword [rsp + 0x68], rsi
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x180068073
lea ecx, [rax + 0x21]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [rsp + 0x68]
mov rax, rdi
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
test r14d, r14d
mov dword [rsp + 0x60], edi
lea rdx, [rsp + 0x60]
mov rcx, rbx
cmove rdx, rdi
call fcn.180068130
test eax, eax
je 0x1800680be
test r14d, r14d
je 0x1800680a7
cmp dword [rsp + 0x60], edi
jne 0x1800680a7
mov ecx, 0x80092009
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1800680be
and ebp, 0xffffe8f7
xor edx, edx
mov r8d, ebp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rsi, rsi
je 0x1800680dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x18006805d
xor ecx, ecx
jmp 0x180068057
mov ecx, 0x7e
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x70]
mov rax, rdi
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
Function at 0x18006f5c4
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
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 [0x1801610c0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r12, rcx
xor r15d, r15d
cmp qword [rcx + 0x68], r15
je 0x18006f73d
cmp byte [rcx + 0x72], r15b
je 0x18006f73d
mov rax, qword [rcx]
mov edi, 0xffff
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call fcn.180092814
movzx edx, di
mov rcx, r12
call rbx
cmp di, ax
jne 0x18006f63b
xor al, al
jmp 0x18006f742
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp - 0x30]
call fcn.18001a3d0
nop
mov r13d, 1
mov r8, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
lea rcx, [rbp - 0x30]
cmp rdx, 0x10
cmovae rcx, r8
lea r14, [rbp - 0x30]
cmovae r14, r8
mov rsi, qword [r12 + 0x68]
mov rdx, qword [rsi]
mov rbx, qword [rbp - 0x20]
add rbx, rcx
mov rdi, qword [rdx + 0x40]
mov rcx, rdi
call fcn.180092814
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov r9, rbx
mov r8, r14
lea rdx, [r12 + 0x74]
mov rcx, rsi
call rdi
mov ecx, eax
test eax, eax
je 0x18006f6b4
sub ecx, r13d
je 0x18006f6b9
cmp ecx, 2
jne 0x18006f72f
jmp 0x18006f72c
mov byte [r12 + 0x72], r15b
lea rax, [rbp - 0x30]
mov r8, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
cmovae rax, r8
mov rbx, qword [rbp - 0x40]
sub rbx, rax
je 0x18006f702
lea rcx, [rbp - 0x30]
cmp rdx, 0x10
cmovae rcx, r8
mov r9, qword [r12 + 0x80]
mov r8, rbx
mov rdx, r13
call fcn.1800cb8c8
cmp rbx, rax
jne 0x18006f729
mov rdx, qword [rbp - 0x18]
mov r8, qword [rbp - 0x30]
cmp byte [r12 + 0x72], r15b
je 0x18006f726
test rbx, rbx
jne 0x18006f65a
xor r8d, r8d
lea edx, [rbx + 8]
lea rcx, [rbp - 0x30]
call fcn.180026dc0
jmp 0x18006f652
mov r15b, r13b
mov r13b, r15b
mov r15b, r13b
lea rcx, [rbp - 0x30]
call fcn.180037190
mov al, r15b
jmp 0x18006f742
mov eax, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1800916f0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x18008fa40
Capabilities:
Check if file exists

Disassembly:
sub rsp, 0x48
test rdx, rdx
je 0x18008fa6d
xor eax, eax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x20]
mov qword [rsp + 0x30], rax
movsd xmm1, qword [rsp + 0x30]
movups xmmword [rdx], xmm0
movsd qword [rdx + 0x10], xmm1
add rsp, 0x48
jmp 0x18008fa80
push rdi
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x78], rsi
mov rbp, rdx
mov rdi, rcx
mov esi, dword [0x18016a8d8]
mov rax, qword [rcx + 0x18]
test esi, esi
je 0x18008fb84
cmp rax, 8
jb 0x18008fabf
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2200000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x10180
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rsp + 0x70], rax
cmp rax, 0xffffffffffffffff
jne 0x18008fb02
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
jmp 0x18008fb12
mov edx, esi
mov rcx, rbx
call fcn.18008fd90
mov ecx, eax
test eax, eax
je 0x18008fb76
cmp ecx, 0x35
ja 0x18008fb2a
movsxd rax, ecx
movabs rdx, 0x2000000020800c
bt rdx, rax
jb 0x18008fb5f
lea eax, [rcx - 0x43]
cmp eax, 0x38
ja 0x18008fb44
cdqe
movabs rdx, 0x100000000100001
bt rdx, rax
jb 0x18008fb5f
cmp ecx, 0xa1
je 0x18008fb5f
lea r9, str.boost::filesystem::remove
mov r8, rbp
mov rdx, rdi
call fcn.180090c70
nop
cmp rbx, 0xffffffffffffffff
je 0x18008fb6f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor al, al
jmp 0x18008fc01
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov al, 1
jmp 0x18008fc01
cmp rax, 8
jb 0x18008fb8d
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x18008fbf4
call qword [sym.imp.KERNEL32.dll_GetLastError]
movsxd r10, eax
cmp r10d, 0x35
ja 0x18008fbb7
movabs rdx, 0x2000000020800c
bt rdx, r10
jb 0x18008fbf0
lea eax, [r10 - 0x43]
cmp eax, 0x38
ja 0x18008fbd2
cdqe
movabs rdx, 0x100000000100001
bt rdx, rax
jb 0x18008fbf0
cmp r10d, 0xa1
je 0x18008fbf0
lea r9, str.boost::filesystem::remove
mov r8, rbp
mov rdx, rdi
mov ecx, r10d
call fcn.180090c70
xor al, al
jmp 0x18008fc01
mov r8, rbp
mov edx, eax
mov rcx, rdi
call fcn.18008fc20
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret