joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000bb28
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x370]
sub rsp, 0x470
mov rax, qword [0x14002ef78]
xor rax, rsp
mov qword [rbp + 0x360], rax
xor r14d, r14d
mov rsi, rcx
mov ebx, 1
cmp qword [rcx + 0x50], r14
jne 0x14000bd03
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]
mov r9d, eax
cmp eax, edi
jb 0x14000bba4
mov ebx, 0x8000ffff
jmp 0x14000bd03
lea r8, [rbp + 0x150]
mov rdx, rdi
lea rax, [rsp + 0x40]
sub r8, rax
lea rcx, [rsp + 0x40]
lea rax, [rdx + 0x7ffffef9]
test rax, rax
je 0x14000bbdd
movzx eax, word [r8 + rcx]
test ax, ax
je 0x14000bbdd
mov word [rcx], ax
add rcx, 2
sub rdx, rbx
jne 0x14000bbbb
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
mov word [rax], r14w
mov rax, rdx
neg rax
sbb ecx, ecx
not ecx
and ecx, 0x8007007a
mov ebx, ecx
test rdx, rdx
je 0x14000bd03
cmp word [rsp + r9*2 + 0x40], 0x5c
je 0x14000bc48
lea r8, [rsp + 0x30]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.1400099bc
test eax, eax
js 0x14000bc46
mov rax, qword [rsp + 0x30]
lea rcx, [rsp + 0x40]
mov rdx, rdi
lea r9, [0x14001f418]
sub rdx, rax
lea rcx, [rcx + rax*2]
call fcn.140009a30
mov ebx, eax
test ebx, ebx
js 0x14000bd03
lea r8, [rsp + 0x30]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.1400099bc
test eax, eax
js 0x14000bc86
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.140009a30
mov ebx, eax
test eax, eax
js 0x14000bd03
xor r8d, r8d
lea rcx, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
mov qword [rsi + 0x50], rax
test rax, rax
jne 0x14000bcac
mov ebx, 0x80070485
jmp 0x14000bd03
lea rdx, str.EnumProcesses
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
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]
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]
mov qword [rsi + 0x68], rax
cmp qword [rsi + 0x58], r14
je 0x14000bcfe
cmp qword [rsi + 0x60], r14
je 0x14000bcfe
mov ebx, r14d
test rax, rax
jne 0x14000bd03
mov ebx, 0x8007007f
cmp qword [rsi + 0x78], r14
jne 0x14000bd22
xor edx, edx
lea rcx, str.loadperf.dll
mov r8d, 0x800
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
mov qword [rsi + 0x78], rax
mov eax, ebx
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.140019d60
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14000ebc8
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 [0x14002ef78]
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 0x14000ece4
test rdx, rdx
je 0x14000ece4
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 0x14000ec53
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14001ae80
sub rsp, rax
lea rdi, [rsp + 0x40]
test rdi, rdi
je 0x14000ec9d
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 0x14000ec9f
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 0x14000ecd0
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 0x14000ecdd
xor ecx, ecx
mov eax, 0x80004005
cmp esi, dword [rbp]
cmovne ecx, eax
jmp 0x14000ece9
mov ecx, 0x80070057
mov eax, ecx
mov rcx, qword [rbp + 0x10]
xor rcx, rbp
call fcn.140019d60
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 0x14000ed14
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 0x14000eda3
test rdx, rdx
je 0x14000eda3
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 0x14000ed8d
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 0x14000ed9b
xor ecx, ecx
mov eax, 0x80004005
cmp ebx, dword [rsp + 0x50]
cmovne ecx, eax
jmp 0x14000eda8
mov ecx, 0x80070057
mov eax, ecx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14000edc0
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 0x14000efc4
lea r15d, [rdi + 1]
mov ecx, r15d
call fcn.140009b60
mov r14, rax
mov qword [rsp + 0xb8], rax
test rax, rax
je 0x14000efc9
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.140019928
mov rsi, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14000ef00
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 0x14000eea3
mov r9, r14
mov rcx, rsi
call fcn.140009a30
mov ebx, eax
mov dword [rsp + 0x44], eax
jmp 0x14000eeab
test rdx, rdx
je 0x14000eeab
mov word [rsi], di
mov dword [rsp + 0x40], ebx
test ebx, ebx
js 0x14000ef00
lea r8, [rsp + 0xb0]
mov rdx, qword [rsp + 0xa8]
mov rcx, rsi
call fcn.1400099bc
mov ebx, eax
test eax, eax
js 0x14000eef2
mov rax, qword [rsp + 0xb0]
mov rdx, qword [rsp + 0xa8]
sub rdx, rax
lea rcx, [rsi + rax*2]
mov r9, r12
call fcn.140009a30
mov ebx, eax
mov dword [rsp + 0x40], ebx
test ebx, ebx
cmovns ebx, r15d
mov dword [rsp + 0x40], ebx
jmp 0x14000ef21
test ebx, ebx
js 0x14000efad
xor edx, edx
mov rcx, r14
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
test eax, eax
jne 0x14000ef5e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0xb7
je 0x14000ef5b
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 0x14000ef5e
mov ebx, r15d
test ebx, ebx
js 0x14000efad
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 0x14000efab
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 0x14000efad
mov ebx, edi
test rsi, rsi
je 0x14000efba
mov rcx, rsi
call sub.msvcrt.dll_free
mov rcx, r14
call sub.msvcrt.dll_free
jmp 0x14000efc9
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 0x14000efe4
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 0x14000f028
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rsi + 0x78], rdi
test r12, r12
je 0x14000f177
mov ecx, 1
call fcn.140009b60
mov r14, rax
mov qword [rsp + 0x88], rax
test rax, rax
je 0x14000f17c
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.140019928
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14000f122
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 0x14000f0cb
mov r9, r14
mov rcx, rsi
call fcn.140009a30
mov ebx, eax
mov dword [rsp + 0x34], eax
jmp 0x14000f0d3
test rdx, rdx
je 0x14000f0d3
mov word [rsi], di
mov dword [rsp + 0x30], ebx
test ebx, ebx
js 0x14000f122
lea r8, [rsp + 0x80]
mov rdx, r15
mov rcx, rsi
call fcn.1400099bc
mov ebx, eax
test eax, eax
js 0x14000f110
mov rax, qword [rsp + 0x80]
sub r15, rax
lea rcx, [rsi + rax*2]
mov r9, r12
mov rdx, r15
call fcn.140009a30
mov ebx, eax
mov dword [rsp + 0x30], ebx
test ebx, ebx
mov eax, 1
cmovns ebx, eax
mov dword [rsp + 0x30], ebx
jmp 0x14000f137
test ebx, ebx
js 0x14000f160
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
test eax, eax
jne 0x14000f15e
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 0x14000f160
mov ebx, edi
test rsi, rsi
je 0x14000f16d
mov rcx, rsi
call sub.msvcrt.dll_free
mov rcx, r14
call sub.msvcrt.dll_free
jmp 0x14000f17c
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 0x1400107e0
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 [0x14002ef78]
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.140019928
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14001089b
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.140001c58
nop
jmp 0x1400108a2
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140019d60
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140016fe0
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 0x1400170b0
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 0x140017420
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 0x140017440
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 0x140017580
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140017580
cmp dword [rsp + 0x34], 7
jne 0x140017580
add eax, 2
mov dword [rsp + 0x30], eax
mov ecx, eax
call fcn.140019928
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140017580
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 0x14001751b
mov rcx, rbx
call sub.msvcrt.dll_free
mov qword [rsp + 0x38], r15
mov eax, 0x80040153
jmp 0x140017585
cmp dword [rsp + 0x34], 7
je 0x140017536
mov rcx, rbx
call sub.msvcrt.dll_free
mov qword [rsp + 0x38], r15
mov eax, 0x80040153
jmp 0x140017585
mov rsi, rbx
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rbx + rdi*2], r15w
jne 0x14001753d
test edi, edi
je 0x140017574
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 0x140017568
jmp 0x140017547
mov rcx, rbx
call sub.msvcrt.dll_free
xor eax, eax
jmp 0x140017585
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 0x1400175b0
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 0x1400175d0
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.140019928
mov rbx, rax
test rax, rax
je 0x140017670
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 0x140017651
mov ecx, dword [rsp + 0x34]
sub ecx, 1
je 0x140017646
cmp ecx, 3
je 0x140017642
and dword [rdi], eax
mov esi, 0x80040153
jmp 0x140017651
mov eax, dword [rbx]
jmp 0x14001764f
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.1400145ac
lea rdx, [0x140029e68]
lea rcx, [rsp + 0x38]
call sub.msvcrt.dll__CxxThrowException
int3

Function at 0x1400176a0
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 0x1400176c0
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 [0x14002ef78]
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 0x14001783f
mov ebx, 0x106
lea r8, [0x140020688]
lea rax, [rsp + 0x40]
mov edx, ebx
sub r8, rax
lea rcx, [rsp + 0x40]
lea rax, [rdx + 0x7ffffef8]
test rax, rax
je 0x14001776b
movzx eax, word [r8 + rcx]
test ax, ax
je 0x14001776b
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140017748
test rdx, rdx
lea rax, [rcx - 2]
mov edi, r14d
cmovne rax, rcx
mov word [rax], r14w
cmp dword [rsp + 0x30], r14d
jbe 0x1400177e5
mov eax, edi
lea r8, str._02x
mov edx, 0x104
lea rcx, [rbp + 0x150]
movzx r9d, byte [rbp + rax + 0x360]
call fcn.140001c58
lea r8, [rsp + 0x38]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.1400099bc
test eax, eax
js 0x1400177dd
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.140009a30
inc edi
cmp edi, dword [rsp + 0x30]
jb 0x140017784
lea r8, [rsp + 0x38]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.1400099bc
test eax, eax
js 0x14001781b
mov rax, qword [rsp + 0x38]
lea rcx, [rsp + 0x40]
sub rbx, rax
lea r9, [0x140020688]
mov rdx, rbx
lea rcx, [rcx + rax*2]
call fcn.140009a30
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r14w
jne 0x140017824
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.140019d60
add rsp, 0x680
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x140017870
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 0x1400178a0
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 0x140017b80
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 0x140017bcb
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 0x140017de0
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 0x140017e10
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 0x140017e30
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov rcx, qword [r9]
lea rax, [0x14002ef90]
cmp rcx, qword [0x14002e0e0]
mov r10, r8
mov r11, rdx
je 0x140017e51
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 0x140017e90
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