joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000e594
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
mov rax, qword [rcx + 0x78]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14000e6ab
test rdx, rdx
je 0x14000e6ab
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 edx, [rax*2 + 2]
movsxd rcx, edx
lea rax, [rcx + 0xf]
cmp rax, rcx
ja 0x14000e61b
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14001a620
sub rsp, rax
lea rdi, [rsp + 0x40]
test rdi, rdi
je 0x14000e664
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 0x14000e666
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_1_0.dll_WriteFile]
test eax, eax
jne 0x14000e697
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 0x14000e6a4
xor ecx, ecx
mov eax, 0x80004005
cmp esi, dword [rbp]
cmovne ecx, eax
jmp 0x14000e6b0
mov ecx, 0x80070057
mov eax, ecx
mov rcx, qword [rbp + 0x10]
xor rcx, rbp
call fcn.1400196d0
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 0x14000e6d4
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 + 0x78]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14000e763
test rdx, rdx
je 0x14000e763
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 + 0x78]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test eax, eax
jne 0x14000e74d
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 0x14000e75b
xor ecx, ecx
mov eax, 0x80004005
cmp ebx, dword [rsp + 0x50]
cmovne ecx, eax
jmp 0x14000e768
mov ecx, 0x80070057
mov eax, ecx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14000e77c
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rsi, rdx
mov r13, rcx
mov qword [rsp + 0x50], rcx
mov ebx, 0x8007000e
xor edi, edi
mov qword [rsp + 0x48], rdi
test rdx, rdx
je 0x14000e975
lea r15d, [rdi + 1]
mov ecx, r15d
call fcn.140009730
mov r14, rax
mov qword [rsp + 0xb8], rax
test rax, rax
je 0x14000e97a
mov rcx, rax
call qword [sym.imp.msvcrt.dll_wcslen]
mov r12, rax
mov qword [rsp + 0xb0], rax
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_wcslen]
inc eax
add r12d, eax
lea eax, [rdi + 2]
mul r12
lea rcx, [rdi - 1]
cmovo rax, rcx
mov rcx, rax
call fcn.1400192cc
mov rsi, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14000e8b4
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 0x14000e85c
mov r9, r14
mov rcx, rsi
call fcn.140009610
mov ebx, eax
mov dword [rsp + 0x44], eax
jmp 0x14000e864
test rdx, rdx
je 0x14000e864
mov word [rsi], di
mov dword [rsp + 0x40], ebx
test ebx, ebx
js 0x14000e8b4
lea r8, [rsp + 0xb0]
mov rdx, r12
mov rcx, rsi
call fcn.1400095a4
mov ebx, eax
test eax, eax
js 0x14000e8a6
mov rax, qword [rsp + 0xb0]
sub r12, rax
lea rcx, [rsi + rax*2]
mov r9, qword [rsp + 0xa8]
mov rdx, r12
call fcn.140009610
mov ebx, eax
mov dword [rsp + 0x40], ebx
test ebx, ebx
cmovns ebx, r15d
mov dword [rsp + 0x40], ebx
jmp 0x14000e8d2
test ebx, ebx
js 0x14000e95e
xor edx, edx
mov rcx, r14
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
test eax, eax
jne 0x14000e90f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0xb7
je 0x14000e90c
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 0x14000e90f
mov ebx, r15d
test ebx, ebx
js 0x14000e95e
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 + 0x78], rax
cmp rax, 0xffffffffffffffff
jne 0x14000e95c
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 0x14000e95e
mov ebx, edi
test rsi, rsi
je 0x14000e96b
mov rcx, rsi
call sub.msvcrt.dll_free
mov rcx, r14
call sub.msvcrt.dll_free
jmp 0x14000e97a
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 0x14000e98c
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 + 0x78]
test rcx, rcx
je 0x14000e9d0
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rsi + 0x78], rdi
test r12, r12
je 0x14000eb1f
mov ecx, 1
call fcn.140009730
mov r14, rax
mov qword [rsp + 0x88], rax
test rax, rax
je 0x14000eb24
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.1400192cc
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14000eaca
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 0x14000ea73
mov r9, r14
mov rcx, rsi
call fcn.140009610
mov ebx, eax
mov dword [rsp + 0x34], eax
jmp 0x14000ea7b
test rdx, rdx
je 0x14000ea7b
mov word [rsi], di
mov dword [rsp + 0x30], ebx
test ebx, ebx
js 0x14000eaca
lea r8, [rsp + 0x80]
mov rdx, r15
mov rcx, rsi
call fcn.1400095a4
mov ebx, eax
test eax, eax
js 0x14000eab8
mov rax, qword [rsp + 0x80]
sub r15, rax
lea rcx, [rsi + rax*2]
mov r9, r12
mov rdx, r15
call fcn.140009610
mov ebx, eax
mov dword [rsp + 0x30], ebx
test ebx, ebx
mov eax, 1
cmovns ebx, eax
mov dword [rsp + 0x30], ebx
jmp 0x14000eadf
test ebx, ebx
js 0x14000eb08
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
test eax, eax
jne 0x14000eb06
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 0x14000eb08
mov ebx, edi
test rsi, rsi
je 0x14000eb15
mov rcx, rsi
call sub.msvcrt.dll_free
mov rcx, r14
call sub.msvcrt.dll_free
jmp 0x14000eb24
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 0x14001013c
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_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.1400192cc
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400101f7
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.140001b7c
nop
jmp 0x1400101fe
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400196d0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140016920
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 0x1400169f0
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 0x140016d60
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 0x140016d80
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 0x140016ec0
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140016ec0
cmp dword [rsp + 0x34], 7
jne 0x140016ec0
add eax, 2
mov dword [rsp + 0x30], eax
mov ecx, eax
call fcn.1400192cc
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140016ec0
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 0x140016e5b
mov rcx, rbx
call sub.msvcrt.dll_free
mov qword [rsp + 0x38], r15
mov eax, 0x80040153
jmp 0x140016ec5
cmp dword [rsp + 0x34], 7
je 0x140016e76
mov rcx, rbx
call sub.msvcrt.dll_free
mov qword [rsp + 0x38], r15
mov eax, 0x80040153
jmp 0x140016ec5
mov rsi, rbx
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rbx + rdi*2], r15w
jne 0x140016e7d
test edi, edi
je 0x140016eb4
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 0x140016ea8
jmp 0x140016e87
mov rcx, rbx
call sub.msvcrt.dll_free
xor eax, eax
jmp 0x140016ec5
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 0x140016ef0
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 0x140016f10
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.1400192cc
mov rbx, rax
test rax, rax
je 0x140016fb0
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 0x140016f91
mov ecx, dword [rsp + 0x34]
sub ecx, 1
je 0x140016f86
cmp ecx, 3
je 0x140016f82
and dword [rdi], eax
mov esi, 0x80040153
jmp 0x140016f91
mov eax, dword [rbx]
jmp 0x140016f8f
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_atol]
mov dword [rdi], eax
mov rcx, rbx
call sub.msvcrt.dll_free
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.140013f24
lea rdx, [0x14002a668]
lea rcx, [rsp + 0x38]
call sub.msvcrt.dll__CxxThrowException
int3

Function at 0x140016fe0
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 0x140017000
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 [0x14002ff78]
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 0x14001717f
mov ebx, 0x106
lea r8, [0x14001f688]
lea rax, [rsp + 0x40]
mov edx, ebx
sub r8, rax
lea rcx, [rsp + 0x40]
lea rax, [rdx + 0x7ffffef8]
test rax, rax
je 0x1400170ab
movzx eax, word [r8 + rcx]
test ax, ax
je 0x1400170ab
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140017088
test rdx, rdx
lea rax, [rcx - 2]
mov edi, r14d
cmovne rax, rcx
mov word [rax], r14w
cmp dword [rsp + 0x30], r14d
jbe 0x140017125
mov eax, edi
lea r8, str._02x
mov edx, 0x104
lea rcx, [rbp + 0x150]
movzx r9d, byte [rbp + rax + 0x360]
call fcn.140001b7c
lea r8, [rsp + 0x38]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.1400095a4
test eax, eax
js 0x14001711d
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.140009610
inc edi
cmp edi, dword [rsp + 0x30]
jb 0x1400170c4
lea r8, [rsp + 0x38]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.1400095a4
test eax, eax
js 0x14001715b
mov rax, qword [rsp + 0x38]
lea rcx, [rsp + 0x40]
sub rbx, rax
lea r9, [0x14001f688]
mov rdx, rbx
lea rcx, [rcx + rax*2]
call fcn.140009610
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r14w
jne 0x140017164
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.1400196d0
add rsp, 0x680
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x1400171b0
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 0x1400171e0
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 0x1400174c0
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 0x14001750b
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 0x140017730
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 0x140017760
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 0x140017780
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov rcx, qword [r9]
lea rax, [0x14002ff90]
cmp rcx, qword [0x14002f0e0]
mov r10, r8
mov r11, rdx
je 0x1400177a1
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 0x1400177e0
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 0x140017820
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 0x1400178b6
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 [0x14002f0e0]
jne 0x140017894
lea rax, [0x14002ff90]
jmp 0x140017898
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 0x140017860
add edi, 2
mov ebx, edi
mov eax, 2
mul rbx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400192cc
mov r14, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140017a10
lea r8, [rdi + rdi]
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
xor eax, eax
mov ebx, eax
mov dword [rsp + 0x3c], eax
cmp ebx, dword [r15 + 8]
jge 0x1400179bc
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 0x140017975
mov r9, rax
mov rcx, r10
call fcn.140009610
mov dword [rsp + 0x38], eax
jmp 0x14001797e
test rdx, rdx
je 0x14001797e
mov word [r10], r11w
mov rax, qword [rsp + 0xa8]
cmp rax, qword [0x14002f0e0]
jne 0x140017998
lea rax, [0x14002ff90]
jmp 0x14001799c
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 0x1400178fd
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 sub.msvcrt.dll_free
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.140013f24
lea rdx, [0x14002a668]
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x140017a40
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov rcx, qword [r9]
lea rax, [0x14002ff90]
cmp rcx, qword [0x14002f0e0]
mov r10, r8
mov r11, rdx
je 0x140017a61
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 0x140018370
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 0x1400183b0
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 0x1400183f0
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 0x140018530
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