joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000c3c0
Capabilities:
Query environment variable

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov r13d, ecx
xor ebx, ebx
mov r15d, ebx
mov qword [r11 - 0x48], rbx
mov qword [r11 - 0x40], rbx
mov edi, ebx
mov qword [rsp + 0xa0], rbx
mov qword [r11 + 0x10], rbx
lea rax, [r11 + 0x10]
mov qword [r11 - 0x68], 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]
nop dword [rax + rax]
test eax, eax
jne 0x14000c628
mov r15, qword [rsp + 0x98]
mov qword [rsp + 0x38], r15
mov qword [rsp + 0xa8], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x98], ebx
lea r9, [rsp + 0x98]
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.14000c658
test eax, eax
jne 0x14000c628
mov ecx, dword [rsp + 0x98]
add rcx, rcx
lea esi, [rbx + 2]
mov eax, esi
mul rcx
lea rcx, [rbx - 1]
cmovo rax, rcx
mov rcx, rax
call fcn.140001284
mov r12, rax
mov qword [rsp + 0xa8], rax
test rax, rax
je 0x14000c619
lea r9, [rsp + 0x98]
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.14000c658
test eax, eax
jne 0x14000c602
xor r8d, r8d
xor edx, edx
mov rcx, r12
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
mov r14d, eax
test eax, eax
je 0x14000c602
mov eax, esi
mul r14
lea rcx, [rbx - 1]
cmovo rax, rcx
mov rcx, rax
call fcn.140001284
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14000c602
mov r8d, r14d
mov rdx, rax
mov rcx, r12
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
mov r14d, eax
test eax, eax
je 0x14000c5ee
test r13d, r13d
je 0x14000c589
lea rcx, str.Performance_
call qword [sym.imp.msvcrt.dll_wcslen]
nop dword [rax + rax]
lea r13d, [rax + 1]
add r13d, r14d
lea eax, [rbx + 2]
mul r13
lea rcx, [rbx - 1]
cmovo rax, rcx
mov rcx, rax
call fcn.140001284
mov rdi, rax
mov qword [rsp + 0xa0], rax
test rax, rax
je 0x14000c5ee
mov edx, r14d
cmp r14, 0x7fffffff
ja 0x14000c57a
mov r9, rsi
mov rcx, rax
call fcn.14000bec8
jmp 0x14000c57d
mov word [rax], bx
lea r8, str.Performance_
mov rdx, r13
jmp 0x14000c5e6
add r14d, 2
mov eax, 2
mul r14
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140001284
mov rdi, rax
mov qword [rsp + 0xa0], rax
test rax, rax
je 0x14000c5ee
lea rax, [r14 - 1]
cmp rax, 0x7ffffffe
ja 0x14000c5d4
mov r9, rsi
mov edx, r14d
mov rcx, rdi
call fcn.14000bec8
jmp 0x14000c5dc
test r14, r14
je 0x14000c5dc
mov word [rdi], bx
lea r8, [0x140020c98]
mov rdx, r14
mov rcx, rdi
call fcn.14000520c
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
mov qword [rsp + 0x30], rbx
mov rcx, r12
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
mov qword [rsp + 0xa8], rbx
jmp 0x14000c628
test r15, r15
je 0x14000c63c
mov rcx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rax, rdi
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x14000c658
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]
nop dword [rax + rax]
mov ecx, dword [rsp + 0x50]
mov edx, eax
test ecx, ecx
je 0x14000c6f1
cmp ecx, 2
jbe 0x14000c6d7
cmp ecx, 7
jne 0x14000c6f1
test byte [rdi], 1
jne 0x14000c6f1
mov eax, dword [rdi]
and eax, 0xfffffffe
cmp eax, 4
jb 0x14000c6f1
test rbx, rbx
je 0x14000c6ed
mov eax, dword [rdi]
shr rax, 1
cmp word [rbx + rax*2 - 2], si
jne 0x14000c6f1
cmp word [rbx + rax*2 - 4], si
jmp 0x14000c6eb
test byte [rdi], 1
jne 0x14000c6f1
test rbx, rbx
je 0x14000c6ed
mov eax, dword [rdi]
shr rax, 1
cmp word [rbx + rax*2 - 2], si
jne 0x14000c6f1
mov eax, edx
jmp 0x14000c6f6
mov eax, 0xd
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14000c710
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x20], r9
mov dword [r11 + 0x18], r8d
push rdi
sub rsp, 0x50
mov rbx, rdx
xor edi, edi
mov qword [r11 - 0x28], rdi
and qword [r11 - 0x20], rdi
and qword [r11 - 0x18], rdi
and qword [r11 + 0x20], rdi
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]
nop dword [rax + rax]
test eax, eax
jne 0x14000c76f
mov rdi, qword [rsp + 0x78]
jmp 0x14000c785
cmp eax, 5
je 0x14000c785
lea r8, [rsp + 0x30]
xor edx, edx
call fcn.14000c8dc
mov rdi, qword [rsp + 0x30]
mov r9d, 4
mov dword [rsp + 0x28], r9d
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14000c7be
movzx ebx, ax
or ebx, 0x80070000
test rdi, rdi
je 0x14000c7d2
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x14000c7e8
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov qword [r11 + 0x10], rdx
push rdi
sub rsp, 0x50
mov esi, r9d
mov rbp, r8
xor edi, edi
mov qword [r11 - 0x28], rdi
and qword [r11 - 0x20], rdi
and qword [r11 - 0x18], rdi
and qword [r11 + 0x10], rdi
lea rax, [r11 + 0x10]
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]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14000c850
mov rdi, qword [rsp + 0x68]
jmp 0x14000c870
cmp eax, 5
je 0x14000c89a
lea r8, [rsp + 0x30]
mov rdx, qword [rsp + 0x80]
call fcn.14000c8dc
mov rdi, qword [rsp + 0x30]
test eax, eax
js 0x14000c89a
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]
nop dword [rax + rax]
mov ebx, eax
test ebx, ebx
jle 0x14000c8a7
movzx ebx, bx
or ebx, 0x80070000
test rdi, rdi
je 0x14000c8bb
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x14000df78
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x460
mov rax, qword [0x14002cf88]
xor rax, rsp
mov qword [rsp + 0x450], rax
cmp qword [rcx + 0x50], 0
mov rdi, rcx
mov ebx, 1
jne 0x14000e0e6
xor edx, edx
lea rcx, [rsp + 0x240]
mov r8d, 0x20a
call sub.msvcrt.dll_memset
mov ebp, 0x105
lea rcx, [rsp + 0x240]
mov edx, ebp
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
nop dword [rax + rax]
mov r11d, eax
cmp eax, ebp
jb 0x14000dff0
mov ebx, 0x8000ffff
jmp 0x14000e0e6
lea r9, [rsp + 0x240]
mov rdx, rbp
lea rcx, [rsp + 0x30]
call fcn.14000bec8
mov ebx, eax
test eax, eax
js 0x14000e0e6
cmp word [rsp + r11*2 + 0x30], 0x5c
je 0x14000e036
lea r8, [0x140020c98]
mov rdx, rbp
lea rcx, [rsp + 0x30]
call fcn.14000520c
mov ebx, eax
test eax, eax
js 0x14000e0e6
lea r8, str.PSAPI.DLL
mov rdx, rbp
lea rcx, [rsp + 0x30]
call fcn.14000520c
mov ebx, eax
test eax, eax
js 0x14000e0e6
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
nop dword [rax + rax]
mov qword [rdi + 0x50], rax
test rax, rax
jne 0x14000e07a
mov ebx, 0x80070485
jmp 0x14000e0e6
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 [rdi + 0x50]
lea rdx, str.EnumProcessModules
mov qword [rdi + 0x58], rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
mov rcx, qword [rdi + 0x50]
lea rdx, str.GetModuleBaseNameW
mov qword [rdi + 0x60], rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
cmp qword [rdi + 0x58], 0
mov qword [rdi + 0x68], rax
je 0x14000e0e1
cmp qword [rdi + 0x60], 0
je 0x14000e0e1
test rax, rax
je 0x14000e0e1
xor ebx, ebx
jmp 0x14000e0e6
mov ebx, 0x8007007f
cmp qword [rdi + 0x78], 0
jne 0x14000e10c
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 [rdi + 0x78], rax
mov eax, ebx
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140001fe0
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400102ec
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, 0x40
mov r15, rdx
mov ebx, 0x8007000e
xor edi, edi
mov qword [rsp + 0x90], rdi
test rdx, rdx
je 0x1400104e1
lea ecx, [rdi + 1]
call fcn.14000c3c0
mov r14, rax
mov qword [rsp + 0x98], rax
test rax, rax
je 0x1400104e6
mov rcx, rax
call qword [sym.imp.msvcrt.dll_wcslen]
nop dword [rax + rax]
mov r12, rax
mov rcx, r15
call qword [sym.imp.msvcrt.dll_wcslen]
nop dword [rax + rax]
lea r13d, [rax + 1]
add r13d, r12d
lea eax, [rdi + 2]
mul r13
lea rcx, [rdi - 1]
cmovo rax, rcx
mov rcx, rax
call fcn.140001284
mov rsi, rax
mov qword [rsp + 0x90], rax
test rax, rax
je 0x1400103ae
lea eax, [r12 + 1]
mov edx, eax
dec rax
cmp rax, 0x7ffffffe
jbe 0x14001046e
mov ebx, 0x80070057
mov eax, ebx
test rdx, rdx
je 0x140010479
mov word [rsi], di
mov r15d, 1
mov rcx, rsi
test ebx, ebx
js 0x1400104bf
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 0x14001040d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xb7
je 0x14001040d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140010402
movzx ebx, ax
or ebx, 0x80070000
mov rcx, rsi
test ebx, ebx
js 0x1400104bf
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 rcx, qword [rsp + 0x80]
mov qword [rcx + 0x68], rax
cmp rax, 0xffffffffffffffff
jne 0x1400104a4
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140010469
movzx ebx, ax
or ebx, 0x80070000
mov rcx, rsi
jmp 0x1400104bf
mov r9, r14
mov rcx, rsi
call fcn.14000bec8
mov ebx, eax
test eax, eax
js 0x1400103ae
mov r8, r15
mov rdx, r13
mov rcx, rsi
call fcn.14000520c
mov ebx, eax
test eax, eax
mov r15d, 1
cmovns ebx, r15d
jmp 0x1400103b4
mov ebx, edi
jmp 0x140010469
test rcx, rcx
je 0x1400104d0
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 0x1400104e6
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 0x140010500
Capabilities:
Delete file

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r15, rdx
mov rsi, rcx
mov ebx, 0x8007000e
xor edi, edi
mov qword [rsp + 0x78], rdi
mov rcx, qword [rcx + 0x68]
test rcx, rcx
je 0x14001053b
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov qword [rsi + 0x68], rdi
test r15, r15
je 0x14001066e
mov ecx, 1
call fcn.14000c3c0
mov r14, rax
mov qword [rsp + 0x80], rax
test rax, rax
je 0x140010673
mov rcx, rax
call qword [sym.imp.msvcrt.dll_wcslen]
nop dword [rax + rax]
mov r12, rax
mov rcx, r15
call qword [sym.imp.msvcrt.dll_wcslen]
nop dword [rax + rax]
lea r13d, [rax + 1]
add r13d, r12d
mov eax, 2
mul r13
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140001284
mov rsi, rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x140010600
lea eax, [r12 + 1]
mov edx, eax
dec rax
cmp rax, 0x7ffffffe
jbe 0x1400105d5
mov ebx, 0x80070057
mov eax, ebx
test rdx, rdx
je 0x1400105e0
mov word [rsi], di
jmp 0x140010600
mov r9, r14
mov rcx, rsi
call fcn.14000bec8
mov ebx, eax
test eax, eax
js 0x140010600
mov r8, r15
mov rdx, r13
mov rcx, rsi
call fcn.14000520c
mov ebx, eax
test eax, eax
mov eax, 1
cmovns ebx, eax
test ebx, ebx
js 0x140010649
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 0x140010634
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140010649
movzx ebx, ax
or ebx, 0x80070000
jmp 0x140010649
mov ebx, edi
jmp 0x140010649
test rsi, rsi
je 0x14001065d
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 0x140010673
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 0x140010b78
Capabilities:
Write file on windows

Disassembly:
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x20], rbx
mov qword [rbp + 0x28], rsi
mov qword [rbp + 0x30], rdi
mov qword [rbp + 0x38], r14
mov rax, qword [0x14002cf88]
xor rax, rbp
mov qword [rbp + 8], rax
mov rbx, rdx
mov r14, rcx
mov rax, qword [rcx + 0x68]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140010ca8
test rdx, rdx
je 0x140010ca8
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 0x140010c07
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14001bab0
sub rsp, rax
lea rdi, [rsp + 0x40]
test rdi, rdi
je 0x140010c57
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 0x140010c59
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 0x140010c94
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x140010ca1
movzx eax, ax
or eax, 0x80070000
jmp 0x140010ca1
xor eax, eax
mov ecx, 0x80004005
cmp esi, dword [rbp]
cmovne eax, ecx
jmp 0x140010cad
mov eax, 0x80070057
mov rcx, qword [rbp + 8]
xor rcx, rbp
call fcn.140001fe0
mov rbx, qword [rbp + 0x20]
mov rsi, qword [rbp + 0x28]
mov rdi, qword [rbp + 0x30]
mov r14, qword [rbp + 0x38]
lea rsp, [rbp + 0x10]
pop rbp
ret

Function at 0x140010cd8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rsi, rcx
mov rax, qword [rcx + 0x68]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140010d6d
test rdx, rdx
je 0x140010d6d
and dword [rsp + 0x40], 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 + 0x40]
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 0x140010d57
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x140010d65
movzx eax, ax
or eax, 0x80070000
jmp 0x140010d65
xor eax, eax
mov ecx, 0x80004005
cmp ebx, dword [rsp + 0x40]
cmovne eax, ecx
jmp 0x140010d72
mov eax, 0x80070057
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14001392c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x14002cf88]
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_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.140001284
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400139e9
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.14000390c
nop
jmp 0x1400139f0
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140001fe0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140018cc0
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x20
mov rax, rdx
mov rbx, rcx
test rdx, rdx
jne 0x140018cd5
lea rax, [rcx + 0x18]
xor edx, edx
mov rcx, rax
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 0x14001a430
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 0x14001a470
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov rcx, qword [r9]
lea rax, [0x14002cfa0]
cmp rcx, qword [0x14002c0f0]
mov r10, r8
mov r11, rdx
je 0x14001a491
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 0x14001a4d0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x10], rdx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r14, r9
mov r13, r8
xor r12d, r12d
mov r15d, r12d
mov dword [rsp + 0x88], r12d
mov edi, r12d
mov ebx, r12d
cmp dword [r9 + 8], r12d
jle 0x14001a563
movsxd rcx, ebx
mov rax, qword [r14]
lea rdx, [rax + rcx*8]
lea rcx, [rsp + 0x88]
call sym.WmiApSrv.exe_public:_void___cdecl_CHString::constructor_class_CHString_const____ptr64____ptr64
or r15d, 1
mov rax, qword [rsp + 0x88]
cmp rax, qword [0x14002c0f0]
jne 0x14001a541
lea rax, [0x14002cfa0]
jmp 0x14001a545
add rax, 0xfffffffffffffff4
mov eax, dword [rax + 4]
lea edi, [rdi + rax*2]
add edi, 2
lea rcx, [rsp + 0x88]
call sym.WmiApSrv.exe_public:_void___cdecl_CHString::destructor_void____ptr64
inc ebx
cmp ebx, dword [r14 + 8]
jl 0x14001a50c
add edi, 2
mov ebx, edi
mov eax, 2
mul rbx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140001284
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14001a69b
lea r8, [rdi + rdi]
xor edx, edx
mov rcx, rsi
call sub.msvcrt.dll_memset
xor eax, eax
mov ebx, eax
cmp ebx, dword [r14 + 8]
jge 0x14001a640
movsxd rcx, ebx
mov rax, qword [r14]
lea rdx, [rax + rcx*8]
lea rcx, [rsp + 0x88]
call sym.WmiApSrv.exe_public:_void___cdecl_CHString::constructor_class_CHString_const____ptr64____ptr64
or r15d, 2
xor edx, edx
lea rcx, [rsp + 0x88]
call sym.WmiApSrv.exe_public:_unsigned_short_int____ptr64___cdecl_CHString::GetBuffer_int____ptr64
mov r9, rax
mov edx, edi
sub edx, r12d
mov eax, r12d
lea rcx, [rsi + rax*2]
lea rax, [rdx - 1]
cmp rax, 0x7ffffffe
ja 0x14001a5fc
call fcn.14000bec8
jmp 0x14001a606
xor eax, eax
test rdx, rdx
je 0x14001a606
mov word [rcx], ax
mov rax, qword [rsp + 0x88]
cmp rax, qword [0x14002c0f0]
jne 0x14001a620
lea rax, [0x14002cfa0]
jmp 0x14001a624
add rax, 0xfffffffffffffff4
mov eax, dword [rax + 4]
inc eax
add r12d, eax
lea rcx, [rsp + 0x88]
call sym.WmiApSrv.exe_public:_void___cdecl_CHString::destructor_void____ptr64
inc ebx
jmp 0x14001a5a6
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rsi
mov r9d, 7
xor r8d, r8d
mov rdx, r13
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
xor eax, eax
mov qword [rsp + 0x38], rax
mov eax, ebx
lea r11, [rsp + 0x40]
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.1400165a8
lea rdx, [0x140026f78]
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll__CxxThrowException
int3

Function at 0x14001a6c0
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