joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000aaf8
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]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14000ac11
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]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14000ac00
mov eax, dword [rsp + 0x58]
test eax, eax
je 0x14000ac00
mov ecx, eax
call fcn.14001a244
mov qword [rdi], rax
test rax, rax
je 0x14000abf5
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]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x14000abfa
mov rcx, qword [rdi]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
mov qword [rdi], 0
jmp 0x14000abfa
mov ebx, 0xe
jmp 0x14000ac00
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
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 0x14000ac30
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 0x14000ace6
test rdx, rdx
je 0x14000ace6
test rbx, rbx
je 0x14000ace1
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]
nop dword [rax + rax]
test eax, eax
jne 0x14000ace6
mov rdi, qword [rsp + 0x30]
test eax, eax
jne 0x14000ace6
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]
nop dword [rax + rax]
cmp dword [rsp + 0x50], 4
mov ecx, 0xd
cmovne eax, ecx
jmp 0x14000ace6
mov eax, 0x80004003
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test rdi, rdi
je 0x14000ad08
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14000ad24
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x20
lea r8, [rcx + 8]
mov rbx, rcx
lea rdx, [0x140021c48]
call 0x14000ad24
lea r8, [rbx + 0xc]
lea rdx, str.First_Help
call 0x14000ad24
lea r8, [rbx + 0x10]
lea rdx, str.Last_Counter
call 0x14000ad24
lea r8, [rbx + 0x14]
lea rdx, str.Last_Help
add rsp, 0x20
pop rbx
jmp 0x14000ad24
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword gs:[0x58]
mov rdi, rdx
mov edx, 4
mov rbx, r8
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140032718], eax
jg 0x14000ae3d
test rbx, rbx
je 0x14000ae1f
and dword [rbx], 0
mov rax, qword [0x140032720]
test rax, rax
jne 0x14000add8
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]
nop dword [rax + rax]
mov ecx, eax
test eax, eax
mov rax, qword [0x140032720]
jne 0x14000add4
xor ecx, ecx
test rax, rax
je 0x14000adc8
mov rcx, rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov ecx, eax
mov rax, qword [rsp + 0x40]
mov qword [0x140032720], rax
test ecx, ecx
jne 0x14000ae24
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]
nop dword [rax + rax]
cmp dword [rsp + 0x40], 4
mov ecx, eax
mov eax, 0xd
cmovne ecx, eax
jmp 0x14000ae24
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
lea rcx, [0x140032718]
call fcn.14001b064
cmp dword [0x140032718], 0xffffffff
jne 0x14000ad59
lea rcx, [0x14001eb20]
call fcn.14001b178
lea rcx, [0x140032718]
call fcn.14001aff4
jmp 0x14000ad59
Function at 0x14000c2a8
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x378]
sub rsp, 0x470
mov rax, qword [0x140031f88]
xor rax, rsp
mov qword [rbp + 0x360], rax
cmp qword [rcx + 0x50], 0
mov rsi, rcx
mov ebx, 1
jne 0x14000c466
xor edx, edx
lea rcx, [rbp + 0x150]
mov r8d, 0x20a
call sub.msvcrt.dll_memset
mov edi, 0x105
lea rcx, [rbp + 0x150]
mov edx, edi
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
nop dword [rax + rax]
mov r11d, eax
cmp eax, edi
jb 0x14000c329
mov ebx, 0x8000ffff
jmp 0x14000c466
lea r9, [rbp + 0x150]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.14000a170
mov ebx, eax
test eax, eax
js 0x14000c466
cmp word [rsp + r11*2 + 0x40], 0x5c
je 0x14000c38a
lea r8, [rsp + 0x30]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.14000a0fc
mov ebx, eax
test eax, eax
js 0x14000c38a
mov rax, qword [rsp + 0x30]
lea rcx, [rsp + 0x40]
mov rdx, rdi
lea r9, [0x140021b58]
sub rdx, rax
lea rcx, [rcx + rax*2]
call fcn.14000a170
mov ebx, eax
test ebx, ebx
js 0x14000c466
lea r8, [rsp + 0x30]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.14000a0fc
mov ebx, eax
test eax, eax
js 0x14000c3cc
mov rax, qword [rsp + 0x30]
lea rcx, [rsp + 0x40]
sub rdi, rax
lea r9, str.PSAPI.DLL
mov rdx, rdi
lea rcx, [rcx + rax*2]
call fcn.14000a170
mov ebx, eax
test ebx, ebx
js 0x14000c466
xor r8d, r8d
lea rcx, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
nop dword [rax + rax]
mov qword [rsi + 0x50], rax
test rax, rax
jne 0x14000c3fa
mov ebx, 0x80070485
jmp 0x14000c466
lea rdx, str.EnumProcesses
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
mov rcx, qword [rsi + 0x50]
lea rdx, str.EnumProcessModules
mov qword [rsi + 0x58], rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
mov rcx, qword [rsi + 0x50]
lea rdx, str.GetModuleBaseNameW
mov qword [rsi + 0x60], rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
cmp qword [rsi + 0x58], 0
mov qword [rsi + 0x68], rax
je 0x14000c461
cmp qword [rsi + 0x60], 0
je 0x14000c461
test rax, rax
je 0x14000c461
xor ebx, ebx
jmp 0x14000c466
mov ebx, 0x8007007f
cmp qword [rsi + 0x78], 0
jne 0x14000c48c
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]
nop dword [rax + rax]
mov qword [rsi + 0x78], rax
mov eax, ebx
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.14001af60
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14000ec74
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 [0x140031f88]
xor rax, rbp
mov qword [rbp + 0x10], rax
mov rbx, rdx
mov r14, rcx
mov rax, qword [rcx + 0x68]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14000edae
test rdx, rdx
je 0x14000edae
and dword [rbp], 0
mov rcx, rdx
call qword [sym.imp.msvcrt.dll_wcslen]
nop dword [rax + rax]
mov rsi, rax
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_wcslen]
nop dword [rax + rax]
lea ecx, [rax + rax]
lea r8d, [rcx + 2]
movsxd rdx, ecx
add rdx, 2
lea rax, [rdx + 0xf]
cmp rax, rdx
ja 0x14000ed0b
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14001bf20
sub rsp, rax
lea rdi, [rsp + 0x40]
test rdi, rdi
je 0x14000ed5b
mov byte [rdi], 0
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], r8d
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]
nop dword [rax + rax]
neg eax
sbb rdx, rdx
and rdx, rdi
jmp 0x14000ed5d
xor edx, edx
and qword [rsp + 0x20], 0
lea r9, [rbp]
mov r8d, esi
mov rcx, qword [r14 + 0x68]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x14000ed9a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
jmp 0x14000eda7
xor ecx, ecx
mov eax, 0x80004005
cmp esi, dword [rbp]
cmovne ecx, eax
jmp 0x14000edb3
mov ecx, 0x80070057
mov eax, ecx
mov rcx, qword [rbp + 0x10]
xor rcx, rbp
call fcn.14001af60
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 0x14000ede0
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
mov rdi, rdx
mov rsi, rcx
mov rax, qword [rcx + 0x68]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14000ee81
test rdx, rdx
je 0x14000ee81
and dword [rsp + 0x50], 0
mov rcx, rdx
call qword [sym.imp.msvcrt.dll_wcslen]
nop dword [rax + rax]
mov rbx, rax
add ebx, ebx
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8d, ebx
mov rdx, rdi
mov rcx, qword [rsi + 0x68]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x14000ee6b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
jmp 0x14000ee79
xor ecx, ecx
mov eax, 0x80004005
cmp ebx, dword [rsp + 0x50]
cmovne ecx, eax
jmp 0x14000ee86
mov ecx, 0x80070057
mov eax, ecx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14000eea0
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, 0x60
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov r12, rdx
mov r13, rcx
mov ebx, 0x8007000e
xor edi, edi
mov qword [rsp + 0x48], rdi
test rdx, rdx
je 0x14000f0dc
lea r15d, [rdi + 1]
mov ecx, r15d
call fcn.14000a2b4
mov r14, rax
mov qword [rsp + 0xb8], rax
test rax, rax
je 0x14000f0e1
mov rcx, rax
call qword [sym.imp.msvcrt.dll_wcslen]
nop dword [rax + rax]
mov rsi, rax
mov qword [rsp + 0xb0], rax
mov rcx, r12
call qword [sym.imp.msvcrt.dll_wcslen]
nop dword [rax + rax]
lea ecx, [rsi + 1]
add ecx, eax
mov qword [rsp + 0xa8], rcx
lea eax, [rdi + 2]
mul rcx
lea rcx, [rdi - 1]
cmovo rax, rcx
mov rcx, rax
call fcn.14001a244
mov rsi, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14000efec
mov rax, qword [rsp + 0xb0]
inc eax
mov edx, eax
mov ebx, edi
dec rax
mov ecx, 0x80070057
cmp rax, 0x7ffffffe
cmova ebx, ecx
mov dword [rsp + 0x44], ebx
test ebx, ebx
js 0x14000ef8f
mov r9, r14
mov rcx, rsi
call fcn.14000a170
mov ebx, eax
mov dword [rsp + 0x44], eax
jmp 0x14000ef97
test rdx, rdx
je 0x14000ef97
mov word [rsi], di
mov dword [rsp + 0x40], ebx
test ebx, ebx
js 0x14000efec
lea r8, [rsp + 0xb0]
mov rdx, qword [rsp + 0xa8]
mov rcx, rsi
call fcn.14000a0fc
mov ebx, eax
test eax, eax
js 0x14000efde
mov rax, qword [rsp + 0xb0]
mov rdx, qword [rsp + 0xa8]
sub rdx, rax
lea rcx, [rsi + rax*2]
mov r9, r12
call fcn.14000a170
mov ebx, eax
mov dword [rsp + 0x40], ebx
test ebx, ebx
cmovns ebx, r15d
mov dword [rsp + 0x40], ebx
jmp 0x14000f00d
test ebx, ebx
js 0x14000f0b7
xor edx, edx
mov rcx, r14
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x14000f05c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xb7
je 0x14000f059
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14000f05c
mov ebx, r15d
test ebx, ebx
js 0x14000f0b7
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, r15d
mov edx, 0x40000000
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
nop dword [rax + rax]
mov qword [r13 + 0x68], rax
cmp rax, 0xffffffffffffffff
jne 0x14000f0b5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14000f0b7
mov ebx, edi
test rsi, rsi
je 0x14000f0cb
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
jmp 0x14000f0e1
mov ebx, 0x80070057
mov eax, ebx
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x14000f0fc
Capabilities:
Delete file

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov r12, rdx
mov rsi, rcx
mov ebx, 0x8007000e
xor edi, edi
mov qword [rax - 0x40], rdi
mov rcx, qword [rcx + 0x68]
test rcx, rcx
je 0x14000f146
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov qword [rsi + 0x68], rdi
test r12, r12
je 0x14000f2bb
mov ecx, 1
call fcn.14000a2b4
mov r14, rax
mov qword [rsp + 0x88], rax
test rax, rax
je 0x14000f2c0
mov rcx, rax
call qword [sym.imp.msvcrt.dll_wcslen]
nop dword [rax + rax]
mov r13, rax
mov rcx, r12
call qword [sym.imp.msvcrt.dll_wcslen]
nop dword [rax + rax]
lea r15d, [rax + 1]
add r15d, r13d
mov eax, 2
mul r15
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14001a244
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14000f24c
lea eax, [r13 + 1]
mov edx, eax
mov ebx, edi
dec rax
mov ecx, 0x80070057
cmp rax, 0x7ffffffe
cmova ebx, ecx
mov dword [rsp + 0x34], ebx
test ebx, ebx
js 0x14000f1f5
mov r9, r14
mov rcx, rsi
call fcn.14000a170
mov ebx, eax
mov dword [rsp + 0x34], eax
jmp 0x14000f1fd
test rdx, rdx
je 0x14000f1fd
mov word [rsi], di
mov dword [rsp + 0x30], ebx
test ebx, ebx
js 0x14000f24c
lea r8, [rsp + 0x80]
mov rdx, r15
mov rcx, rsi
call fcn.14000a0fc
mov ebx, eax
test eax, eax
js 0x14000f23a
mov rax, qword [rsp + 0x80]
sub r15, rax
lea rcx, [rsi + rax*2]
mov r9, r12
mov rdx, r15
call fcn.14000a170
mov ebx, eax
mov dword [rsp + 0x30], ebx
test ebx, ebx
mov eax, 1
cmovns ebx, eax
mov dword [rsp + 0x30], ebx
jmp 0x14000f261
test ebx, ebx
js 0x14000f296
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14000f294
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14000f296
mov ebx, edi
test rsi, rsi
je 0x14000f2aa
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
jmp 0x14000f2c0
mov ebx, 0x80070057
mov eax, ebx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140010a9c
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 [0x140031f88]
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, pe_nt_image_headers64
lea r8, [rsp + 0x40]
mov edx, 0x1001
mov ecx, edi
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoW]
nop dword [rax + rax]
and edi, 0x3ff
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll_wcslen]
nop dword [rax + rax]
lea esi, [rax + 7]
mov eax, 2
mul rsi
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14001a244
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140010b63
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.140001d08
nop
jmp 0x140010b6a
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14001af60
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140017800
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
add rcx, 0x18
test rdx, rdx
cmovne rcx, rdx
xor edx, edx
call sym.WmiApSrv.exe_public:_unsigned_short_int____ptr64___cdecl_CHString::GetBuffer_int____ptr64
mov rcx, qword [rbx + 8]
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteKeyExW]

Function at 0x140018660
Capabilities:
Set registry value

Disassembly:
mov r9, r8
mov r8, rdx
mov rdx, qword [rcx + 8]
jmp sym.WmiApSrv.exe_public:_unsigned_long_int___cdecl_CRegistry::SetCurrentKeyValue_struct_HKEY______ptr64__unsigned_short_int_const____ptr64__unsigned_long_int____ptr64____ptr64

Function at 0x140018680
Capabilities:
Set registry value

Disassembly:
mov r9, r8
mov r8, rdx
mov rdx, qword [rcx + 8]
jmp sym.WmiApSrv.exe_public:_unsigned_long_int___cdecl_CRegistry::SetCurrentKeyValue_struct_HKEY______ptr64__unsigned_short_int_const____ptr64__class_CHStringArray____ptr64____ptr64

Function at 0x1400186a0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov rcx, qword [r9]
lea rax, [0x140031fa0]
cmp rcx, qword [0x1400310f0]
mov r10, r8
mov r11, rdx
je 0x1400186c1
lea rax, [rcx - 0xc]
mov eax, dword [rax + 4]
mov r9d, 1
xor r8d, r8d
mov rdx, r10
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, r11
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
add rsp, 0x38
ret

Function at 0x140018700
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov ecx, 4
mov rax, r8
mov dword [rsp + 0x28], ecx
mov r10, rdx
mov qword [rsp + 0x20], r9
xor r8d, r8d
mov r9d, ecx
mov rdx, rax
mov rcx, r10
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
add rsp, 0x38
ret
Function at 0x140018740
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov r15, r9
mov r13, r8
xor r12d, r12d
mov esi, r12d
mov dword [rax - 0x54], r12d
mov edi, r12d
mov ebx, r12d
cmp dword [r9 + 8], r12d
jle 0x1400187d6
movsxd rcx, ebx
mov rax, qword [r15]
lea rdx, [rax + rcx*8]
lea rcx, [rsp + 0xa8]
call sym.WmiApSrv.exe_public:_void___cdecl_CHString::constructor_class_CHString_const____ptr64____ptr64
or esi, 1
mov rax, qword [rsp + 0xa8]
cmp rax, qword [0x1400310f0]
jne 0x1400187b4
lea rax, [0x140031fa0]
jmp 0x1400187b8
add rax, 0xfffffffffffffff4
mov eax, dword [rax + 4]
lea edi, [rdi + rax*2]
add edi, 2
lea rcx, [rsp + 0xa8]
call sym.WmiApSrv.exe_public:_void___cdecl_CHString::destructor_void____ptr64
inc ebx
cmp ebx, dword [r15 + 8]
jl 0x140018780
add edi, 2
mov ebx, edi
mov eax, 2
mul rbx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14001a244
mov r14, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14001893e
lea r8, [rdi + rdi]
xor edx, edx
mov rcx, r14
call sub.msvcrt.dll_memset
xor eax, eax
mov ebx, eax
mov dword [rsp + 0x3c], eax
cmp ebx, dword [r15 + 8]
jge 0x1400188dc
movsxd rcx, ebx
mov rax, qword [r15]
lea rdx, [rax + rcx*8]
lea rcx, [rsp + 0xa8]
call sym.WmiApSrv.exe_public:_void___cdecl_CHString::constructor_class_CHString_const____ptr64____ptr64
or esi, 2
mov dword [rsp + 0x34], esi
xor edx, edx
lea rcx, [rsp + 0xa8]
call sym.WmiApSrv.exe_public:_unsigned_short_int____ptr64___cdecl_CHString::GetBuffer_int____ptr64
mov edx, edi
sub edx, r12d
mov ecx, r12d
lea r10, [r14 + rcx*2]
lea r8, [rdx - 1]
xor r11d, r11d
mov r9d, r11d
mov ecx, 0x80070057
cmp r8, 0x7ffffffe
cmova r9d, ecx
mov dword [rsp + 0x38], r9d
test r9d, r9d
js 0x140018895
mov r9, rax
mov rcx, r10
call fcn.14000a170
mov dword [rsp + 0x38], eax
jmp 0x14001889e
test rdx, rdx
je 0x14001889e
mov word [r10], r11w
mov rax, qword [rsp + 0xa8]
cmp rax, qword [0x1400310f0]
jne 0x1400188b8
lea rax, [0x140031fa0]
jmp 0x1400188bc
add rax, 0xfffffffffffffff4
mov eax, dword [rax + 4]
inc eax
add r12d, eax
lea rcx, [rsp + 0xa8]
call sym.WmiApSrv.exe_public:_void___cdecl_CHString::destructor_void____ptr64
inc ebx
mov dword [rsp + 0x3c], ebx
jmp 0x14001881d
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r14
mov r9d, 7
xor r8d, r8d
mov rdx, r13
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
mov dword [rsp + 0x40], eax
mov rcx, r14
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
xor eax, eax
mov qword [rsp + 0x48], rax
mov eax, ebx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea rcx, [rsp + 0x30]
call fcn.140014c64
lea rdx, [0x14002c108]
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll__CxxThrowException
int3