joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000e2a4
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 [0x14002ff88]
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 0x14000e3c0
test rdx, rdx
je 0x14000e3c0
and dword [rbp], 0
mov rcx, rdx
call qword [sym.imp.msvcrt.dll_wcslen]
mov rsi, rax
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_wcslen]
lea ecx, [rax + rax]
lea r8d, [rcx + 2]
movsxd rdx, ecx
add rdx, 2
lea rax, [rdx + 0xf]
cmp rax, rdx
ja 0x14000e32f
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14001adf0
sub rsp, rax
lea rdi, [rsp + 0x40]
test rdi, rdi
je 0x14000e379
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]
neg eax
sbb rdx, rdx
and rdx, rdi
jmp 0x14000e37b
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]
test eax, eax
jne 0x14000e3ac
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
jmp 0x14000e3b9
xor ecx, ecx
mov eax, 0x80004005
cmp esi, dword [rbp]
cmovne ecx, eax
jmp 0x14000e3c5
mov ecx, 0x80070057
mov eax, ecx
mov rcx, qword [rbp + 0x10]
xor rcx, rbp
call fcn.140019e50
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 0x14000e3f0
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 0x14000e47f
test rdx, rdx
je 0x14000e47f
and dword [rsp + 0x50], 0
mov rcx, rdx
call qword [sym.imp.msvcrt.dll_wcslen]
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]
test eax, eax
jne 0x14000e469
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
jmp 0x14000e477
xor ecx, ecx
mov eax, 0x80004005
cmp ebx, dword [rsp + 0x50]
cmovne ecx, eax
jmp 0x14000e484
mov ecx, 0x80070057
mov eax, ecx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14000e49c
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 0x14000e6a2
lea r15d, [rdi + 1]
mov ecx, r15d
call fcn.140009bcc
mov r14, rax
mov qword [rsp + 0xb8], rax
test rax, rax
je 0x14000e6a7
mov rcx, rax
call qword [sym.imp.msvcrt.dll_wcslen]
mov rsi, rax
mov qword [rsp + 0xb0], rax
mov rcx, r12
call qword [sym.imp.msvcrt.dll_wcslen]
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.140019114
mov rsi, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14000e5dc
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 0x14000e57f
mov r9, r14
mov rcx, rsi
call fcn.140009a9c
mov ebx, eax
mov dword [rsp + 0x44], eax
jmp 0x14000e587
test rdx, rdx
je 0x14000e587
mov word [rsi], di
mov dword [rsp + 0x40], ebx
test ebx, ebx
js 0x14000e5dc
lea r8, [rsp + 0xb0]
mov rdx, qword [rsp + 0xa8]
mov rcx, rsi
call fcn.140009a28
mov ebx, eax
test eax, eax
js 0x14000e5ce
mov rax, qword [rsp + 0xb0]
mov rdx, qword [rsp + 0xa8]
sub rdx, rax
lea rcx, [rsi + rax*2]
mov r9, r12
call fcn.140009a9c
mov ebx, eax
mov dword [rsp + 0x40], ebx
test ebx, ebx
cmovns ebx, r15d
mov dword [rsp + 0x40], ebx
jmp 0x14000e5fd
test ebx, ebx
js 0x14000e689
xor edx, edx
mov rcx, r14
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
test eax, eax
jne 0x14000e63a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0xb7
je 0x14000e637
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14000e63a
mov ebx, r15d
test ebx, ebx
js 0x14000e689
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]
mov qword [r13 + 0x68], rax
cmp rax, 0xffffffffffffffff
jne 0x14000e687
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14000e689
mov ebx, edi
test rsi, rsi
je 0x14000e697
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
jmp 0x14000e6a7
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 0x14000e6c0
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 0x14000e704
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rsi + 0x68], rdi
test r12, r12
je 0x14000e855
mov ecx, 1
call fcn.140009bcc
mov r14, rax
mov qword [rsp + 0x88], rax
test rax, rax
je 0x14000e85a
mov rcx, rax
call qword [sym.imp.msvcrt.dll_wcslen]
mov r13, rax
mov rcx, r12
call qword [sym.imp.msvcrt.dll_wcslen]
lea r15d, [rax + 1]
add r15d, r13d
mov eax, 2
mul r15
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140019114
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14000e7fe
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 0x14000e7a7
mov r9, r14
mov rcx, rsi
call fcn.140009a9c
mov ebx, eax
mov dword [rsp + 0x34], eax
jmp 0x14000e7af
test rdx, rdx
je 0x14000e7af
mov word [rsi], di
mov dword [rsp + 0x30], ebx
test ebx, ebx
js 0x14000e7fe
lea r8, [rsp + 0x80]
mov rdx, r15
mov rcx, rsi
call fcn.140009a28
mov ebx, eax
test eax, eax
js 0x14000e7ec
mov rax, qword [rsp + 0x80]
sub r15, rax
lea rcx, [rsi + rax*2]
mov r9, r12
mov rdx, r15
call fcn.140009a9c
mov ebx, eax
mov dword [rsp + 0x30], ebx
test ebx, ebx
mov eax, 1
cmovns ebx, eax
mov dword [rsp + 0x30], ebx
jmp 0x14000e813
test ebx, ebx
js 0x14000e83c
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
test eax, eax
jne 0x14000e83a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14000e83c
mov ebx, edi
test rsi, rsi
je 0x14000e84a
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
jmp 0x14000e85a
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 0x14000ff50
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 [0x14002ff88]
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]
and edi, 0x3ff
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll_wcslen]
lea esi, [rax + 7]
mov eax, 2
mul rsi
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140019114
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14001000b
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.140001cb8
nop
jmp 0x140010012
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140019e50
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400167e0
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 0x1400168b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
mov rax, qword [rsp + 0x68]
mov r10, r8
mov qword [rsp + 0x28], rax
mov rcx, rdx
mov qword [rsp + 0x20], r9
xor r8d, r8d
mov r9, qword [rsp + 0x60]
mov rdx, r10
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
add rsp, 0x38
ret
Function at 0x140016c20
Capabilities:
Query or enumerate registry value

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

Function at 0x140016c40
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push r15
sub rsp, 0x50
mov qword [rax - 0x18], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov r14, r9
mov rdi, r8
mov rsi, rdx
xor r15d, r15d
mov dword [rax - 0x28], r15d
or r8d, 0xffffffff
xor edx, edx
mov rcx, r9
call sym.WmiApSrv.exe_public:_void___cdecl_CHStringArray::SetSize_int__int____ptr64
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140016d83
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140016d83
cmp dword [rsp + 0x34], 7
jne 0x140016d83
add eax, 2
mov dword [rsp + 0x30], eax
mov ecx, eax
call fcn.140019114
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140016d83
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x140016d1c
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov qword [rsp + 0x38], r15
mov eax, 0x80040153
jmp 0x140016d88
cmp dword [rsp + 0x34], 7
je 0x140016d38
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov qword [rsp + 0x38], r15
mov eax, 0x80040153
jmp 0x140016d88
mov rsi, rbx
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rbx + rdi*2], r15w
jne 0x140016d3f
test edi, edi
je 0x140016d76
mov r8, rsi
mov edx, dword [r14 + 8]
mov rcx, r14
call sym.WmiApSrv.exe_public:_void___cdecl_CHStringArray::SetAtGrow_int__unsigned_short_int_const____ptr64____ptr64
lea eax, [rdi + 1]
movsxd rcx, eax
lea rsi, [rsi + rcx*2]
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rsi + rdi*2], r15w
jne 0x140016d6a
jmp 0x140016d49
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
xor eax, eax
jmp 0x140016d88
mov eax, 0x80040153
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
add rsp, 0x50
pop r15
ret

Function at 0x140016db0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r9, r8
mov r8, rdx
mov rdx, qword [rcx + 8]
jmp sym.WmiApSrv.exe_public:_unsigned_long_int___cdecl_CRegistry::GetCurrentKeyValue_struct_HKEY______ptr64__unsigned_short_int_const____ptr64__class_CHStringArray____ptr64____ptr64
Function at 0x140016dd0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
mov ecx, 0x100
mov rdi, r9
mov dword [rax - 0x18], ecx
mov rsi, r8
mov rbp, rdx
call fcn.140019114
mov rbx, rax
test rax, rax
je 0x140016e71
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
mov rdx, rsi
mov qword [rsp + 0x20], rbx
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
jne 0x140016e51
mov ecx, dword [rsp + 0x34]
sub ecx, 1
je 0x140016e46
cmp ecx, 3
je 0x140016e42
and dword [rdi], eax
mov esi, 0x80040153
jmp 0x140016e51
mov eax, dword [rbx]
jmp 0x140016e4f
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_atol]
mov dword [rdi], eax
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov rbx, qword [rsp + 0x50]
mov eax, esi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
lea rcx, [rsp + 0x38]
call fcn.140013d9c
lea rdx, [0x14002ad98]
lea rcx, [rsp + 0x38]
call sub.msvcrt.dll__CxxThrowException
int3

Function at 0x140016ea0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r9, r8
mov r8, rdx
mov rdx, qword [rcx + 8]
jmp sym.WmiApSrv.exe_public:_unsigned_long_int___cdecl_CRegistry::GetCurrentKeyValue_struct_HKEY______ptr64__unsigned_short_int_const____ptr64__unsigned_long_int____ptr64____ptr64
Function at 0x140016ec0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x580]
sub rsp, 0x680
mov rax, qword [0x14002ff88]
xor rax, rsp
mov qword [rbp + 0x570], rax
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rbp + 0x360]
mov dword [rsp + 0x34], 3
mov rsi, r8
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x30], 0x20c
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
xor r14d, r14d
test eax, eax
jne 0x14001703f
mov ebx, 0x106
lea r8, [0x140021a18]
lea rax, [rsp + 0x40]
mov edx, ebx
sub r8, rax
lea rcx, [rsp + 0x40]
lea rax, [rdx + 0x7ffffef8]
test rax, rax
je 0x140016f6b
movzx eax, word [r8 + rcx]
test ax, ax
je 0x140016f6b
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140016f48
test rdx, rdx
lea rax, [rcx - 2]
mov edi, r14d
cmovne rax, rcx
mov word [rax], r14w
cmp dword [rsp + 0x30], r14d
jbe 0x140016fe5
mov eax, edi
lea r8, str._02x
mov edx, 0x104
lea rcx, [rbp + 0x150]
movzx r9d, byte [rbp + rax + 0x360]
call fcn.140001cb8
lea r8, [rsp + 0x38]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140009a28
test eax, eax
js 0x140016fdd
mov rax, qword [rsp + 0x38]
lea rcx, [rsp + 0x40]
mov rdx, rbx
lea r9, [rbp + 0x150]
sub rdx, rax
lea rcx, [rcx + rax*2]
call fcn.140009a9c
inc edi
cmp edi, dword [rsp + 0x30]
jb 0x140016f84
lea r8, [rsp + 0x38]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140009a28
test eax, eax
js 0x14001701b
mov rax, qword [rsp + 0x38]
lea rcx, [rsp + 0x40]
sub rbx, rax
lea r9, [0x140021a18]
mov rdx, rbx
lea rcx, [rcx + rax*2]
call fcn.140009a9c
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r14w
jne 0x140017024
lea r8, [rsp + 0x40]
mov edx, eax
mov rcx, rsi
call sym.WmiApSrv.exe_protected:_void___cdecl_CHString::AssignCopy_int__unsigned_short_int_const____ptr64____ptr64
xor eax, eax
mov rcx, qword [rbp + 0x570]
xor rcx, rsp
call fcn.140019e50
add rsp, 0x680
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x140017070
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
sub rsp, 0x38
and dword [rax + 8], 0
mov rcx, qword [rcx + 8]
mov qword [rax - 0x10], r9
lea r9, [rax + 8]
mov qword [rax - 0x18], r8
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
add rsp, 0x38
ret

Function at 0x1400170a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x48
mov rax, qword [rsp + 0x70]
mov r10, r8
and dword [rsp + 0x30], 0
mov rcx, rdx
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], r9
mov rdx, r10
lea r9, [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
add rsp, 0x48
ret
Function at 0x140017380
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
call sym.WmiApSrv.exe_private:_unsigned_long_int___cdecl_CRegistry::OpenSubKey_void____ptr64
test eax, eax
jne 0x1400173cb
mov rax, qword [rsp + 0x60]
mov r9, rdi
mov rcx, qword [rbx + 0x10]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov qword [rsp + 0x20], rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1400175e0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx + 8]
mov r9d, 4
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x140017610
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 0x140017630
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov rcx, qword [r9]
lea rax, [0x14002ffa0]
cmp rcx, qword [0x14002f0f0]
mov r10, r8
mov r11, rdx
je 0x140017651
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]
add rsp, 0x38
ret

Function at 0x140017690
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]
add rsp, 0x38
ret
Function at 0x1400176d0
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 0x140017766
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 [0x14002f0f0]
jne 0x140017744
lea rax, [0x14002ffa0]
jmp 0x140017748
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 0x140017710
add edi, 2
mov ebx, edi
mov eax, 2
mul rbx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140019114
mov r14, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x1400178c1
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 0x14001786c
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 0x140017825
mov r9, rax
mov rcx, r10
call fcn.140009a9c
mov dword [rsp + 0x38], eax
jmp 0x14001782e
test rdx, rdx
je 0x14001782e
mov word [r10], r11w
mov rax, qword [rsp + 0xa8]
cmp rax, qword [0x14002f0f0]
jne 0x140017848
lea rax, [0x14002ffa0]
jmp 0x14001784c
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 0x1400177ad
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]
mov ebx, eax
mov dword [rsp + 0x40], eax
mov rcx, r14
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
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.140013d9c
lea rdx, [0x14002ad98]
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x1400178f0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov rcx, qword [r9]
lea rax, [0x14002ffa0]
cmp rcx, qword [0x14002f0f0]
mov r10, r8
mov r11, rdx
je 0x140017911
lea rax, [rcx - 0xc]
mov eax, dword [rax + 4]
mov r9d, 2
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]
add rsp, 0x38
ret

Function at 0x1400181d0
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [rsp + 0x70]
mov r10d, r9d
mov r9d, dword [rsp + 0x60]
mov r11, r8
mov dword [rsp + 0x28], eax
mov rcx, rdx
mov rax, qword [rsp + 0x68]
mov r8d, r10d
mov rdx, r11
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
add rsp, 0x30
pop rbx
ret

Function at 0x140018210
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [rsp + 0x70]
mov r10, r9
mov r9, qword [rsp + 0x60]
mov r11, r8
mov qword [rsp + 0x28], rax
mov rcx, rdx
mov rax, qword [rsp + 0x68]
mov r8, r10
mov rdx, r11
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
add rsp, 0x30
pop rbx
ret

Function at 0x140018250
Capabilities:
Query or enumerate registry key

Disassembly:
sub rsp, 0x48
xor ecx, ecx
mov rax, r9
mov qword [rsp + 0x38], rcx
lea r9, [rsp + 0x70]
mov qword [rsp + 0x30], rcx
mov r10d, r8d
mov qword [rsp + 0x28], rcx
mov r11, rdx
mov qword [rsp + 0x20], rcx
mov r8, rax
mov rcx, r11
mov edx, r10d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
add rsp, 0x48
ret

Function at 0x140018390
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [rsp + 0x90]
mov r10, r9
mov r9, qword [rsp + 0x70]
mov r11d, r8d
mov qword [rsp + 0x38], rax
mov rcx, rdx
mov rax, qword [rsp + 0x88]
mov r8, r10
mov qword [rsp + 0x30], rax
mov edx, r11d
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumValueW]
add rsp, 0x40
pop rbx
ret