joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140044580
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov rax, qword [0x140057040]
xor rax, rsp
mov qword [rsp + 0x88], rax
lea rdx, str.SystemCurrentControlSetServices_
lea rcx, [rsp + 0x68]
call fcn.14003b210
nop
mov rdx, qword [rsp + 0xa8]
lea rcx, [rsp + 0x68]
call fcn.140046f60
lea rcx, [rsp + 0x68]
call fcn.14003b050
lea r8, [rsp + 0x58]
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x14004460a
mov byte [rsp + 0x34], 0
lea rcx, [rsp + 0x68]
call fcn.14003b1e0
movzx eax, byte [rsp + 0x34]
jmp 0x1400447c0
mov byte [rsp + 0x60], 1
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Type
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140044660
mov byte [rsp + 0x35], 0
lea rcx, [rsp + 0x68]
call fcn.14003b1e0
movzx eax, byte [rsp + 0x35]
jmp 0x1400447c0
mov byte [rsp + 0x61], 3
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x61]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.ErrorControl
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1400446b6
mov byte [rsp + 0x36], 0
lea rcx, [rsp + 0x68]
call fcn.14003b1e0
movzx eax, byte [rsp + 0x36]
jmp 0x1400447c0
mov byte [rsp + 0x62], 3
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x62]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Start
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x14004470c
mov byte [rsp + 0x37], 0
lea rcx, [rsp + 0x68]
call fcn.14003b1e0
movzx eax, byte [rsp + 0x37]
jmp 0x1400447c0
mov rcx, qword [rsp + 0xa0]
call fcn.140046bd0
mov dword [rsp + 0x40], eax
mov rcx, qword [rsp + 0xa0]
call fcn.14003b050
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.ImagePath
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140044787
mov byte [rsp + 0x38], 0
lea rcx, [rsp + 0x68]
call fcn.14003b1e0
movzx eax, byte [rsp + 0x38]
jmp 0x1400447c0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x1400447a0
mov dword [rsp + 0x3c], 1
jmp 0x1400447a8
mov dword [rsp + 0x3c], 0
movzx eax, byte [rsp + 0x3c]
mov byte [rsp + 0x39], al
lea rcx, [rsp + 0x68]
call fcn.14003b1e0
movzx eax, byte [rsp + 0x39]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14004b470
add rsp, 0x98
ret
Function at 0x140045e50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x68], 0
je 0x140045e89
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
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 0x140045f77
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x50], 0
jle 0x140045f1f
cmp qword [rsp + 0x20], 0
jle 0x140045f1f
mov rax, qword [rsp + 0x20]
cmp qword [rsp + 0x50], rax
jge 0x140045ec9
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call fcn.14003bfb0
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rsp + 0x50], 0
jle 0x140045f67
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x80], 0
je 0x140045f67
mov rax, qword [rsp + 0x40]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
add rsp, 0x38
ret
Function at 0x140045f80
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x140057040]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x90], 0
jg 0x140045fb4
xor eax, eax
jmp 0x1400461b0
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x68], 0
je 0x140045fe6
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
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 0x1400461b0
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jbe 0x140046097
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call fcn.1400383d0
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov rcx, qword [rsp + 0x88]
call fcn.14003bfb0
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x80], 0
je 0x1400461a0
mov rcx, qword [rsp + 0x80]
call fcn.140047470
mov qword [rsp + 0x48], 0xfff
cmp qword [rsp + 0x50], 0xfff
jbe 0x14004614d
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x28], 0xfff
je 0x140046148
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
jmp 0x1400461b0
jmp 0x1400460c3
cmp qword [rsp + 0x50], 0
jbe 0x1400461a0
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14004b470
add rsp, 0x78
ret
Function at 0x140047530
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x140057040]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x68], 0
je 0x14004756d
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140047574
mov al, 1
jmp 0x1400476cc
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
call fcn.1400482d0
mov dword [rsp + 0x38], eax
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xb0]
call qword [rsp + 0x50]
mov dword [rsp + 0x3c], eax
call fcn.1400482d0
mov dword [rsp + 0x40], eax
mov edx, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x40]
call fcn.140048330
movzx eax, al
test eax, eax
je 0x1400475c9
xor al, al
jmp 0x1400476cc
mov qword [rsp + 0x60], 0x20
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x90]
mov rcx, qword [rsp + 0xb0]
add rcx, 0x74
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x70]
mov rdx, rcx
mov rcx, qword [rsp + 0x58]
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]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140047639
cmp dword [rsp + 0x30], 1
je 0x140047645
cmp dword [rsp + 0x30], 3
je 0x1400476ba
jmp 0x1400476ca
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x140047691
mov rax, qword [rsp + 0xb0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x48]
mov edx, 1
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [rsp + 0x48], rax
je 0x140047691
xor al, al
jmp 0x1400476cc
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400476ab
mov dword [rsp + 0x34], 1
jmp 0x1400476b3
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
jmp 0x1400476cc
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x1400476cc
xor al, al
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14004b470
add rsp, 0xa8
ret

Function at 0x14004ad00
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14004ad3a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14004ad3f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14004ad88
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14004e690]
cmp byte [rcx + rax], 0
je 0x14004ad88
dec r8
sub rdx, 1
jne 0x14004ad6e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14004b0f8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.14004ae18
mov ebx, eax
test eax, eax
jne 0x14004b128
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x14004b18b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14004b182
test al, 0x10
je 0x14004b182
bt eax, 0xa
jae 0x14004b17b
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.14004b19c
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x14004b177
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x14004b177
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x14004b182
and dword [rsp + 0x3c], 0
jmp 0x14004b187
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14004c05c
Capabilities:
Parse pe header

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor r13d, r13d
mov dword [rax + 0x18], r13d
mov rbp, r13
mov r15, r13
mov ebx, r13d
mov r14d, r13d
lea esi, [r13 + 0x18]
cmp r8, r13
je 0x1000038f8
cmp word [r8], r13w
je 0x1000038f8
lea rdx, [rax + 0x18]
mov rcx, r8
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rbp, rax
cmp rax, r13
jne 0x1000038f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x100003a86
cmp dword [rsp + 0x90], r13d
mov edi, r13d
jle 0x100003a81
mov r13, rbp
mov r12d, 1
mov rax, qword [r13]
cmp word [rax], 0x2d
je 0x100003930
cmp word [rax], 0x2f
je 0x100003930
test r15, r15
jne 0x100003a81
mov r15, rax
jmp 0x1000039a9
lea r12, [rax + 2]
lea rdx, [0x1000015a0]
mov rcx, r12
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x10000395a
lea r12d, [rax + 1]
cmp r14d, r12d
je 0x100003a81
mov r14d, r12d
jmp 0x1000039a9
lea rdx, [0x1000015c0]
mov rcx, r12
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x100003981
test sil, 8
je 0x100003a81
and esi, 0xfffffff7
lea r12d, [rax + 1]
jmp 0x1000039a9
lea rdx, [0x1000015d0]
mov rcx, r12
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x100003a81
lea r12d, [rax + 1]
test r12b, sil
jne 0x100003a81
or esi, r12d
add edi, r12d
add r13, 8
cmp edi, dword [rsp + 0x90]
jl 0x100003912
xor r13d, r13d
cmp r15, r13
je 0x100003a81
cmp r14d, r13d
jne 0x100003a6d
lea rax, [rsp + 0x40]
lea rdx, [0x1000015d8]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x20], rax
mov edi, r13d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, r13d
jne 0x100003a58
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
lea rdx, [0x1000015f8]
xor r8d, r8d
mov dword [rsp + 0x30], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, r13d
jne 0x100003a58
cmp dword [rsp + 0x34], 4
jne 0x100003a58
cmp dword [rsp + 0x30], 4
jne 0x100003a58
cmp dword [rsp + 0x38], r13d
cmovne edi, r12d
mov rcx, qword [rsp + 0x40]
cmp rcx, r13
je 0x100003a68
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, r13d
jne 0x100003a86
mov edx, esi
mov rcx, r15
call fcn.100003ba0
cmp eax, r13d
jne 0x100003a86
jmp 0x1000038eb
mov ebx, 0x57
test rbp, rbp
je 0x100003a94
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x100004fa8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
xor ebx, ebx
mov esi, r8d
mov rbp, rdx
mov rdi, rcx
cmp rcx, rbx
je 0x10000506d
cmp rdx, rbx
je 0x10000506d
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10000506d
test al, 0x50
jne 0x10000506d
lea edx, [rbx + 0x5c]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_wcsrchr]
cmp rax, rbx
je 0x100005007
add rax, 2
jmp 0x10000500a
mov rax, rdi
lea rdx, [0x1000023a8]
mov rcx, rax
call qword [sym.imp.msvcrt.dll__wcsicmp]
mov r12d, ebx
mov r13d, 1
cmp eax, ebx
mov rcx, rbp
cmove r12d, r13d
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10000503b
test al, 0x50
je 0x10000503e
mov esi, r13d
mov edx, r12d
mov rcx, rdi
call fcn.100006b74
mov rdi, rax
cmp rax, rbx
jne 0x100005055
mov ebx, esi
jmp 0x10000506d
mov edx, r12d
mov rcx, rbp
call fcn.100006b74
cmp rax, rbx
je 0x10000506a
cmp rdi, rax
jb 0x10000506d
mov ebx, r13d
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x100005454
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, 0x80
mov ebx, edx
mov rdi, rcx
cmp edx, esi
je 0x100005498
test edx, 0xffffff78
je 0x100005498
xor esi, esi
mov r9, rcx
mov r8d, edx
lea ecx, [rsi + 4]
lea rdx, [0x1000025b0]
call fcn.100006a9c
lea ecx, [rsi + 0x57]
jmp 0x100005548
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1000054ec
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 5
je 0x1000054bc
cmp eax, 0x20
je 0x1000054bc
cmp eax, 0x21
jne 0x1000054c4
mov rcx, rdi
call fcn.100005ca4
mov ecx, 2
mov r8, rdi
cmp ebx, ecx
je 0x1000054de
lea rdx, [0x100002610]
mov ecx, 3
jmp 0x10000553e
lea rdx, [0x100002670]
call fcn.100006a9c
jmp 0x100005546
and eax, 0x3120
or eax, ebx
bts eax, 7
cmp eax, esi
je 0x1000054ff
btr eax, 7
mov edx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, eax
test eax, eax
jne 0x10000554e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 5
je 0x100005527
cmp eax, 0x20
je 0x100005527
cmp eax, 0x21
jne 0x10000552f
mov rcx, rdi
call fcn.100005ca4
mov r8, rdi
lea rdx, [0x1000026d0]
mov ecx, 4
mov r9d, ebx
call fcn.100006a9c
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x100005a64
Capabilities:
Check if file exists
Get file size
Read file via mapping

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov rbp, r8
xor ebx, ebx
mov r14, rdx
and qword [rax - 0x38], rbx
and dword [rax - 0x40], ebx
xor r12d, r12d
lea r8d, [r12 + 1]
xor r9d, r9d
mov edx, 0x80000000
mov rdi, rcx
mov dword [rax - 0x48], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
jne 0x100005b11
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 2
je 0x100005af8
cmp eax, 3
je 0x100005af8
cmp eax, 5
je 0x100005ad4
cmp eax, 0x20
je 0x100005ad4
cmp eax, 0x21
jne 0x100005adc
mov rcx, rdi
call fcn.100005ca4
lea rdx, [0x100002740]
mov r9d, ebx
mov r8, rdi
mov ecx, 4
call fcn.100006a9c
jmp 0x100005c79
lea rdx, [0x1000027b0]
mov r8, rdi
mov ecx, 2
call fcn.100006a9c
jmp 0x100005c79
lea rdx, [rsp + 0x88]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x100005b61
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 5
je 0x100005b3d
cmp eax, 0x20
je 0x100005b3d
cmp eax, 0x21
jne 0x100005b45
mov rcx, rdi
call fcn.100005ca4
lea rdx, [0x100002840]
mov r9d, ebx
mov r8, rdi
mov ecx, 4
call fcn.100006a9c
jmp 0x100005c70
cmp dword [rsp + 0x8c], ebx
je 0x100005b86
mov ebx, 0x57
lea rdx, [0x1000028a8]
mov r8, rdi
lea ecx, [rbx - 0x53]
call fcn.100006a9c
jmp 0x100005c70
mov eax, dword [rsp + 0x88]
and qword [rsp + 0x28], rbx
xor r9d, r9d
lea r8d, [r9 + 2]
xor edx, edx
mov rcx, r13
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rsi, rax
test rax, rax
jne 0x100005be8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 5
je 0x100005bc7
cmp eax, 0x20
je 0x100005bc7
cmp eax, 0x21
jne 0x100005bcf
mov rcx, rdi
call fcn.100005ca4
lea rdx, [0x1000028e0]
mov r9d, ebx
mov r8, rdi
mov ecx, 4
call fcn.100006a9c
jmp 0x100005c62
mov eax, dword [rsp + 0x88]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r12, rax
test rax, rax
jne 0x100005c47
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 5
je 0x100005c26
cmp eax, 0x20
je 0x100005c26
cmp eax, 0x21
jne 0x100005c2e
mov rcx, rdi
call fcn.100005ca4
lea rdx, [0x100002940]
mov r9d, ebx
mov r8, rdi
mov ecx, 4
call fcn.100006a9c
jmp 0x100005c5d
mov eax, dword [rsp + 0x88]
mov dword [r14], eax
mov qword [rbp], r13
mov qword [rbp + 8], rsi
mov qword [rbp + 0x10], r12
test r12, r12
jne 0x100005c81
test rsi, rsi
je 0x100005c70
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rax, r12
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x10000607c
Capabilities:
Acquire debug privileges

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rsi
push rdi
sub rsp, 0x20
and qword [r11 + 0x18], 0
lea rax, [0x100002e40]
mov r8d, ecx
mov rsi, rdx
lea rcx, [r11 + 0x20]
lea r9, [r11 + 0x18]
mov edx, 1
mov qword [r11 + 0x20], rax
call fcn.100006424
mov edi, eax
test eax, eax
je 0x1000060c5
mov rcx, qword [rsp + 0x40]
mov rdx, rsi
call fcn.100006258
mov edi, eax
cmp qword [rsp + 0x40], 0
je 0x1000060e3
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x40]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rsi, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x10000653c
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
xor ebx, ebx
mov r12, r8
mov edi, edx
and qword [rsp + 0x68], rbx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea edx, [rbx + 8]
mov r8d, 0x400
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
jne 0x100006587
xor edi, edi
lea ebx, [rax + 8]
jmp 0x100006630
test edi, edi
jne 0x1000065af
lea rcx, [rsp + 0x68]
call fcn.100006668
mov edi, eax
test eax, eax
jne 0x1000065a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x10000661c
mov r9, qword [rsp + 0x68]
mov rcx, rsi
jmp 0x1000065b9
lea r9, [0x100002fc0]
mov rcx, rax
mov qword [rsp + 0x28], r9
mov r8, r12
mov edx, 0x200
mov qword [rsp + 0x20], r9
call fcn.10000a5fc
mov rdx, rsi
mov rcx, rbp
call fcn.10000682c
mov edi, eax
test eax, eax
jne 0x10000661c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 2
je 0x10000661c
cmp eax, 5
je 0x1000065fd
cmp eax, 0x20
je 0x1000065fd
cmp eax, 0x21
jne 0x100006605
mov rcx, rbp
call fcn.100005ca4
lea rdx, [0x100003040]
mov r9d, ebx
mov r8, rbp
mov ecx, 4
call fcn.100006a9c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x100006640
call qword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
jne 0x10000664c
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov eax, edi
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret