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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], r8
push rdi
sub rsp, 0x30
mov rcx, qword [rcx]
mov rdi, r9
mov qword [rax - 0x10], r9
mov rbx, rdx
mov qword [rax - 0x18], rdx
lea r9, [rax + 0x18]
xor esi, esi
lea rdx, str.Working_Directory
xor r8d, r8d
mov dword [rax + 0x18], esi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ecx, dword [rsp + 0x50]
mov edx, eax
test ecx, ecx
je 0x140009599
cmp ecx, 2
jbe 0x1400095ae
cmp ecx, 7
jne 0x140009599
test byte [rdi], 1
jne 0x140009599
mov eax, dword [rdi]
and eax, 0xfffffffe
cmp eax, 4
jb 0x140009599
test rbx, rbx
je 0x1400095c4
mov eax, dword [rdi]
shr rax, 1
cmp word [rbx + rax*2 - 2], si
jne 0x140009599
cmp word [rbx + rax*2 - 4], si
je 0x1400095c4
mov eax, 0xd
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
test byte [rdi], 1
jne 0x140009599
test rbx, rbx
je 0x1400095c4
mov eax, dword [rdi]
shr rax, 1
cmp word [rbx + rax*2 - 2], si
jne 0x140009599
mov eax, edx
jmp 0x14000959e
Function at 0x1400095c8
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov dword [rax + 8], ecx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov qword [rax - 0x60], 0xfffffffffffffffe
xor esi, esi
and qword [rax - 0x50], rsi
and qword [rax - 0x48], rsi
xor edi, edi
mov qword [rsp + 0xb0], rdi
and qword [rax + 0x10], rdi
lea rax, [rax + 0x10]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWbemCIMOM
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400097e9
mov rsi, qword [rsp + 0xa8]
mov qword [rsp + 0x40], rsi
and qword [rsp + 0xb8], rdi
and qword [rsp + 0x30], rdi
and dword [rsp + 0xa8], edi
lea r9, [rsp + 0xa8]
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.140009520
test eax, eax
jne 0x1400097e9
mov ecx, dword [rsp + 0xa8]
add rcx, rcx
lea r15d, [rdi + 2]
mov eax, r15d
mul rcx
lea r13, [rdi - 1]
cmovo rax, r13
mov rcx, rax
call fcn.140018538
mov r14, rax
mov qword [rsp + 0xb8], rax
test rax, rax
je 0x1400097da
lea r9, [rsp + 0xa8]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140009520
test eax, eax
jne 0x1400097c9
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.api_ms_win_core_processenvironment_l1_2_0.dll_ExpandEnvironmentStringsW]
mov r12d, eax
test eax, eax
je 0x1400097c9
mov eax, r15d
mul r12
cmovo rax, r13
mov rcx, rax
call fcn.140018538
mov r15, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400097c9
mov r8d, r12d
mov rdx, rax
mov rcx, r14
call qword [sym.imp.api_ms_win_core_processenvironment_l1_2_0.dll_ExpandEnvironmentStringsW]
mov r13d, eax
test eax, eax
je 0x1400097bb
cmp dword [rsp + 0xa0], edi
je 0x14000976c
lea rcx, str.Performance_
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrlenW]
lea r12d, [rax + 1]
add r12d, r13d
lea eax, [rdi + 2]
mul r12
lea rcx, [rdi - 1]
cmovo rax, rcx
mov rcx, rax
call fcn.140018538
mov rdi, rax
mov qword [rsp + 0xb0], rax
test rax, rax
je 0x1400097bb
mov edx, r13d
mov r8, r15
mov rcx, rax
call fcn.1400036d4
lea r8, str.Performance_
jmp 0x1400097b0
lea r12d, [r13 + 2]
mov eax, 2
mul r12
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140018538
mov rdi, rax
mov qword [rsp + 0xb0], rax
test rax, rax
je 0x1400097bb
mov r8, r15
mov edx, r12d
mov rcx, rax
call fcn.1400036d4
lea r8, [0x14001e3c8]
mov rdx, r12
mov rcx, rdi
call fcn.14000363c
mov rcx, r15
call sub.msvcrt.dll_free
and qword [rsp + 0x30], 0
mov rcx, r14
call sub.msvcrt.dll_free
and qword [rsp + 0xb8], 0
jmp 0x1400097e9
test rsi, rsi
je 0x1400097f7
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rax, rdi
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140009ac8
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
push rsi
push rdi
push r14
sub rsp, 0x50
mov qword [r11 - 0x38], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov esi, r9d
mov rbp, r8
xor r14d, r14d
mov edi, r14d
mov qword [r11 - 0x30], r14
mov qword [r11 - 0x28], r14
mov qword [r11 - 0x20], r14
mov qword [r11 + 0x10], r14
lea rax, [r11 + 0x10]
mov qword [r11 - 0x48], rax
mov r9d, 0x20006
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWBEMPROVIDERSPerformance
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x140009b3b
mov ebx, r14d
mov rdi, qword [rsp + 0x78]
mov qword [rsp + 0x38], rdi
test ebx, ebx
je 0x140009b65
cmp ebx, 5
je 0x140009b61
lea r8, [rsp + 0x38]
mov rdx, qword [rsp + 0x90]
call fcn.1400098d0
test eax, eax
cmovns ebx, r14d
mov rdi, qword [rsp + 0x38]
test ebx, ebx
jne 0x140009b89
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rbp
mov r9d, 3
xor r8d, r8d
lea rdx, str.Performance_Data
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov ebx, eax
movzx esi, bx
or esi, 0x80070000
test ebx, ebx
cmovle esi, ebx
test rdi, rdi
je 0x140009ba5
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, esi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140009bbc
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], r9
mov dword [r11 + 0x18], r8d
push rdi
sub rsp, 0x50
mov qword [r11 - 0x28], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov rdi, rdx
xor ebx, ebx
mov qword [r11 - 0x20], rbx
and qword [r11 - 0x18], rbx
and qword [r11 - 0x10], rbx
and qword [r11 + 0x20], rbx
lea rax, [r11 + 0x20]
mov qword [r11 - 0x38], rax
mov r9d, 0x20006
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWBEMPROVIDERSPerformance
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x140009c1d
mov rbx, qword [rsp + 0x78]
jmp 0x140009c33
cmp eax, 5
je 0x140009c33
lea r8, [rsp + 0x38]
xor edx, edx
call fcn.1400098d0
mov rbx, qword [rsp + 0x38]
mov r9d, 4
mov dword [rsp + 0x28], r9d
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test rbx, rbx
je 0x140009c73
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, edi
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x140009c80
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x40
mov qword [r11 - 0x18], 0xfffffffffffffffe
mov qword [r11 + 0x20], rbx
mov rdi, r8
and qword [r8], 0
and qword [r11 + 8], 0
lea rax, [r11 + 8]
mov qword [r11 - 0x28], rax
mov r9d, 0x2000000
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWBEMPROVIDERSPerformance
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x140009d77
and dword [rsp + 0x58], eax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov rax, qword [rdi]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Performance_Data
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x140009d6c
mov eax, dword [rsp + 0x58]
test eax, eax
je 0x140009d6c
mov ecx, eax
call fcn.140018538
mov qword [rdi], rax
test rax, rax
je 0x140009d61
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Performance_Data
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
je 0x140009d66
mov rcx, qword [rdi]
call sub.msvcrt.dll_free
and qword [rdi], 0
jmp 0x140009d66
mov ebx, 0xe
jmp 0x140009d6c
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x140009d90
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x40
xor edi, edi
mov rbx, r8
mov rsi, rdx
lea eax, [rdi + 0x57]
test rcx, rcx
je 0x140009e36
test rdx, rdx
je 0x140009e36
test rbx, rbx
je 0x140009e31
and dword [r8], edi
lea rax, [r11 - 0x18]
and qword [r11 - 0x18], rdi
mov rdx, rcx
xor r8d, r8d
mov qword [r11 - 0x28], rax
mov rcx, 0xffffffff80000002
mov r9d, 0xf003f
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x140009e36
mov rdi, qword [rsp + 0x30]
test eax, eax
jne 0x140009e36
and dword [rsp + 0x50], eax
lea r9, [rsp + 0x50]
lea rax, [rsp + 0x68]
mov dword [rsp + 0x68], 4
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rbx
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
cmp dword [rsp + 0x50], 4
mov ecx, 0xd
cmovne eax, ecx
jmp 0x140009e36
mov eax, 0x80004003
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test rdi, rdi
je 0x140009e52
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140009e64
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x20
lea r8, [rcx + 8]
mov rbx, rcx
lea rdx, [0x14001e4c8]
call 0x140009e64
lea r8, [rbx + 0xc]
lea rdx, str.First_Help
call 0x140009e64
lea r8, [rbx + 0x10]
lea rdx, str.Last_Counter
call 0x140009e64
lea r8, [rbx + 0x14]
lea rdx, str.Last_Help
add rsp, 0x20
pop rbx
jmp 0x140009e64
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov eax, dword [0x1400306f8]
mov rbx, r8
mov rdi, rdx
test al, 1
jne 0x140009eb0
and qword [0x140030700], 0
lea rcx, [0x14001c1e0]
and qword [0x140030708], 0
or eax, 1
and qword [0x140030710], 0
mov dword [0x1400306f8], eax
call fcn.140018a5c
test rbx, rbx
je 0x140009f64
and dword [rbx], 0
mov rax, qword [0x140030700]
test rax, rax
jne 0x140009f23
and qword [rsp + 0x40], rax
lea rdx, str.SYSTEMCurrentControlSetServicesWmiApRplPerformance
lea rax, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ecx, eax
test eax, eax
mov rax, qword [0x140030700]
jne 0x140009f1f
xor ecx, ecx
test rax, rax
je 0x140009f13
mov rcx, rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ecx, eax
mov rax, qword [rsp + 0x40]
mov qword [0x140030700], rax
test ecx, ecx
jne 0x140009f69
and dword [rsp + 0x40], 0
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea r9, [rsp + 0x40]
mov rcx, rax
mov dword [rsp + 0x50], 4
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
cmp dword [rsp + 0x40], 4
mov ecx, eax
mov eax, 0xd
cmovne ecx, eax
jmp 0x140009f69
mov ecx, 0x80004003
mov rbx, qword [rsp + 0x48]
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
add rsp, 0x30
pop rdi
ret
Function at 0x14000a604
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x450
mov rax, qword [0x14002ff78]
xor rax, rsp
mov qword [rsp + 0x440], rax
and dword [rcx], 0
mov rbx, rcx
add rcx, 8
call qword [sym.imp.wbemcomn.dll_public:_void___cdecl_CStaticCritSec::constructor_void____ptr64]
and qword [rbx + 0x38], 0
lea rcx, [rsp + 0x230]
and qword [rbx + 0x40], 0
xor edx, edx
and qword [rbx + 0x48], 0
mov r8d, 0x20a
and qword [rbx + 0x50], 0
and qword [rbx + 0x70], 0
and qword [rbx + 0x78], 0
call sub.msvcrt.dll_memset
mov ebp, 0x105
lea rcx, [rsp + 0x230]
mov edx, ebp
call qword [sym.imp.api_ms_win_core_sysinfo_l1_2_1.dll_GetSystemDirectoryW]
mov edi, eax
cmp eax, ebp
jae 0x14000a738
lea r8, [rsp + 0x230]
mov edx, ebp
lea rcx, [rsp + 0x20]
call fcn.1400036d4
mov ecx, eax
test eax, eax
js 0x14000a738
cmp word [rsp + rdi*2 + 0x20], 0x5c
je 0x14000a6c5
lea r8, [0x14001e3c8]
mov edx, ebp
lea rcx, [rsp + 0x20]
call fcn.14000363c
mov ecx, eax
test ecx, ecx
js 0x14000a738
lea r8, str.PSAPI.DLL
mov rdx, rbp
lea rcx, [rsp + 0x20]
call fcn.14000363c
test eax, eax
js 0x14000a738
xor r8d, r8d
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
mov qword [rbx + 0x50], rax
test rax, rax
je 0x14000a738
lea rdx, str.EnumProcesses
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov rcx, qword [rbx + 0x50]
lea rdx, str.EnumProcessModules
mov qword [rbx + 0x58], rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov rcx, qword [rbx + 0x50]
lea rdx, str.GetModuleBaseNameW
mov qword [rbx + 0x60], rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov qword [rbx + 0x68], rax
cmp qword [rbx + 0x78], 0
jne 0x14000a758
xor edx, edx
lea rcx, str.loadperf.dll
mov r8d, 0x800
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
mov qword [rbx + 0x78], rax
mov rax, rbx
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140018970
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14000dfd0
Capabilities:
Write file on windows

Disassembly:
push rbp
sub rsp, 0x60
lea rbp, [rsp + 0x40]
mov qword [rbp + 8], 0xfffffffffffffffe
mov qword [rbp + 0x30], rbx
mov qword [rbp + 0x38], rsi
mov qword [rbp + 0x40], rdi
mov qword [rbp + 0x48], r14
mov rax, qword [0x14002ff78]
xor rax, rbp
mov qword [rbp + 0x10], rax
mov rbx, rdx
mov r14, rcx
cmp qword [rcx + 0x78], 0
je 0x14000e0eb
cmp qword [rcx + 0x78], 0xffffffffffffffff
je 0x14000e0eb
test rdx, rdx
je 0x14000e0eb
and dword [rbp], 0
mov rcx, rdx
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrlenW]
mov esi, eax
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_wcslen]
lea edx, [rax*2 + 2]
movsxd rcx, edx
lea rax, [rcx + 0xf]
cmp rax, rcx
ja 0x14000e05b
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.140019870
sub rsp, rax
lea rdi, [rsp + 0x40]
test rdi, rdi
je 0x14000e0a4
mov byte [rdi], 0
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], rdi
or r9d, 0xffffffff
mov r8, rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_WideCharToMultiByte]
neg eax
sbb rdx, rdx
and rdx, rdi
jmp 0x14000e0a6
xor edx, edx
and qword [rsp + 0x20], 0
lea r9, [rbp]
mov r8d, esi
mov rcx, qword [r14 + 0x78]
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_WriteFile]
test eax, eax
jne 0x14000e0d7
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
jmp 0x14000e0e4
xor ecx, ecx
mov eax, 0x80004005
cmp esi, dword [rbp]
cmovne ecx, eax
jmp 0x14000e0f0
mov ecx, 0x80070057
mov eax, ecx
mov rcx, qword [rbp + 0x10]
xor rcx, rbp
call fcn.140018970
mov rbx, qword [rbp + 0x30]
mov rsi, qword [rbp + 0x38]
mov rdi, qword [rbp + 0x40]
mov r14, qword [rbp + 0x48]
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x14000e114
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x40
mov qword [rax - 0x18], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rdi, rdx
mov rsi, rcx
cmp qword [rcx + 0x78], 0
je 0x14000e1a1
cmp qword [rcx + 0x78], 0xffffffffffffffff
je 0x14000e1a1
test rdx, rdx
je 0x14000e1a1
and dword [rax + 8], 0
mov rcx, rdx
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrlenW]
mov ebx, eax
add ebx, ebx
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8d, ebx
mov rdx, rdi
mov rcx, qword [rsi + 0x78]
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_WriteFile]
test eax, eax
jne 0x14000e18b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
jmp 0x14000e199
xor ecx, ecx
mov eax, 0x80004005
cmp ebx, dword [rsp + 0x50]
cmovne ecx, eax
jmp 0x14000e1a6
mov ecx, 0x80070057
mov eax, ecx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14000e1b8
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov r15, rdx
mov r13, rcx
mov ebx, 0x8007000e
and qword [rsp + 0xa0], 0
test rdx, rdx
je 0x14000e363
mov r14d, 1
mov ecx, r14d
call fcn.1400095c8
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14000e368
mov rcx, rax
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrlenW]
mov edi, eax
mov dword [rsp + 0x98], eax
mov rcx, r15
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrlenW]
lea ecx, [rdi + 1]
add ecx, eax
mov qword [rsp + 0xa8], rcx
lea eax, [r14 + 1]
mul rcx
mov r12, 0xffffffffffffffff
cmovo rax, r12
mov rcx, rax
call fcn.140018538
mov rdi, rax
mov qword [rsp + 0xa0], rax
test rax, rax
je 0x14000e298
mov edx, dword [rsp + 0x98]
inc edx
mov r8, rsi
mov rcx, rax
call fcn.1400036d4
mov ebx, eax
test eax, eax
js 0x14000e298
mov r8, r15
mov rdx, qword [rsp + 0xa8]
mov rcx, rdi
call fcn.14000363c
mov ebx, eax
test eax, eax
cmovns ebx, r14d
jmp 0x14000e2c0
test ebx, ebx
js 0x14000e34c
xor edx, edx
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_CreateDirectoryW]
test eax, eax
jne 0x14000e2fd
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
cmp eax, 0xb7
je 0x14000e2fa
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14000e2fd
mov ebx, r14d
test ebx, ebx
js 0x14000e34c
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, r14d
mov edx, 0x40000000
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_CreateFileW]
mov qword [r13 + 0x78], rax
cmp rax, r12
jne 0x14000e34a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14000e34c
xor ebx, ebx
test rdi, rdi
je 0x14000e359
mov rcx, rdi
call sub.msvcrt.dll_free
mov rcx, rsi
call sub.msvcrt.dll_free
jmp 0x14000e368
mov ebx, 0x80070057
mov eax, ebx
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x14000e37c
Capabilities:
Delete file

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov r14, rdx
mov rdi, rcx
mov ebx, 0x8007000e
and qword [rsp + 0x78], 0
mov rcx, qword [rcx + 0x78]
test rcx, rcx
je 0x14000e3ba
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
and qword [rdi + 0x78], 0
test r14, r14
je 0x14000e4a6
mov r13d, 1
mov ecx, r13d
call fcn.1400095c8
mov rsi, rax
mov qword [rsp + 0x80], rax
test rax, rax
je 0x14000e4ab
mov rcx, rax
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrlenW]
mov r15d, eax
mov rcx, r14
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrlenW]
lea r12d, [rax + 1]
add r12d, r15d
lea eax, [r13 + 1]
mul r12
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140018538
mov rdi, rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x14000e453
lea edx, [r15 + 1]
mov r8, rsi
mov rcx, rax
call fcn.1400036d4
mov ebx, eax
test eax, eax
js 0x14000e453
mov r8, r14
mov edx, r12d
mov rcx, rdi
call fcn.14000363c
mov ebx, eax
test eax, eax
cmovns ebx, r13d
jmp 0x14000e466
test ebx, ebx
js 0x14000e48f
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_DeleteFileW]
test eax, eax
jne 0x14000e48d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14000e48f
xor ebx, ebx
test rdi, rdi
je 0x14000e49c
mov rcx, rdi
call sub.msvcrt.dll_free
mov rcx, rsi
call sub.msvcrt.dll_free
jmp 0x14000e4ab
mov ebx, 0x80070057
mov eax, ebx
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x14000e4c0
Capabilities:
Delete file
Move file

Disassembly:
mov qword [rsp + 0x18], r8
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov r12, r8
mov r13, rdx
mov rdi, rcx
mov ebx, 0x8007000e
and qword [rsp + 0x88], 0
and qword [rsp + 0x98], 0
mov rcx, qword [rcx + 0x78]
test rcx, rcx
je 0x14000e511
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
and qword [rdi + 0x78], 0
test r13, r13
je 0x14000e6e4
test r12, r12
je 0x14000e6e4
mov r15d, 1
mov ecx, r15d
call fcn.1400095c8
mov r14, rax
mov qword [rsp + 0x20], rax
test rax, rax
je 0x14000e6e9
mov rcx, rax
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrlenW]
mov edi, eax
mov dword [rsp + 0x80], eax
mov rcx, r13
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrlenW]
lea ecx, [rdi + 1]
add ecx, eax
mov qword [rsp + 0x28], rcx
lea eax, [r15 + 1]
mul rcx
mov rdi, 0xffffffffffffffff
cmovo rax, rdi
mov rcx, rax
call fcn.140018538
mov rsi, rax
mov qword [rsp + 0x88], rax
test rax, rax
je 0x14000e5c3
mov edx, dword [rsp + 0x80]
inc edx
mov r8, r14
mov rcx, rax
call fcn.1400036d4
mov ebx, eax
test eax, eax
js 0x14000e5c3
mov r8, r13
mov rdx, qword [rsp + 0x28]
mov rcx, rsi
call fcn.14000363c
mov ebx, eax
test eax, eax
cmovns ebx, r15d
jmp 0x14000e5eb
test ebx, ebx
js 0x14000e6cd
mov rcx, r14
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrlenW]
mov ebx, eax
mov rcx, r12
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrlenW]
lea r13d, [rax + 1]
add r13d, ebx
mov eax, 2
mul r13
cmovo rax, rdi
mov rcx, rax
call fcn.140018538
mov rdi, rax
mov qword [rsp + 0x98], rax
test rax, rax
je 0x14000e65f
lea edx, [rbx + 1]
mov r8, r14
mov rcx, rax
call fcn.1400036d4
mov ebx, eax
test eax, eax
js 0x14000e664
mov r8, r12
mov edx, r13d
mov rcx, rdi
call fcn.14000363c
mov ebx, eax
test eax, eax
js 0x14000e664
mov ebx, r15d
jmp 0x14000e664
mov ebx, 0x8007000e
jmp 0x14000e688
test ebx, ebx
js 0x14000e6c0
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_DeleteFileW]
mov r8d, r15d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l2_1_1.dll_MoveFileExW]
test eax, eax
jne 0x14000e6be
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14000e6c0
xor ebx, ebx
test rdi, rdi
je 0x14000e6cd
mov rcx, rdi
call sub.msvcrt.dll_free
test rsi, rsi
je 0x14000e6da
mov rcx, rsi
call sub.msvcrt.dll_free
mov rcx, r14
call sub.msvcrt.dll_free
jmp 0x14000e6e9
mov ebx, 0x80070057
mov eax, ebx
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x14000f8b8
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x250
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14002ff78]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov edi, edx
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0x40]
call sub.msvcrt.dll_memset
mov r9d, 0x100
lea r8, [rsp + 0x40]
mov edx, 0x1001
mov ecx, edi
call qword [sym.imp.api_ms_win_core_localization_l1_2_1.dll_GetLocaleInfoW]
and edi, 0x3ff
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrlenW]
lea esi, [rax + 7]
mov eax, 2
mul rsi
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140018538
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14000f973
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, edi
lea r8, str._03x_s_r_n
mov edx, esi
mov rcx, rbx
call fcn.140001b38
nop
jmp 0x14000f97a
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140018970
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret