joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140018cb0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x1406338b0]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140018cf4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x140018d53
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x140018d62
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x140018d9a
cmp eax, 0x103
je 0x140018da4
test eax, eax
js 0x140018d7f
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x140018d9a
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.1400116c0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140009960
mov ecx, 7
int 0x29
ud2
Function at 0x140018e10
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x1406338b0]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140018e54
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x140018eba
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140018ef1
test eax, eax
js 0x140018ecb
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140018ee4
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.1400116c0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140009960
mov ecx, 7
int 0x29
ud2

Function at 0x14001acf0
Capabilities:
Create pipe
Generate random numbers via winapi

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x148
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0xb0], xmm6
mov qword [rbp + 0xa8], 0xfffffffffffffffe
mov qword [rbp + 0x28], rcx
mov byte [rbp + 0xa5], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rbp + 0x24], ecx
xor edi, edi
mov r15d, 8
mov sil, 1
xorps xmm6, xmm6
mov r12, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
xor eax, eax
mov qword [rbp - 0x10], rax
nop
Function at 0x140030100
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14003017a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x140030170
cmp r11, r10
ja 0x140030213
cmp r10, rdx
ja 0x140030227
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140030172
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140030150
jmp 0x1400301e7
ja 0x14003017a
mov r11, r10
cmp rax, r8
jne 0x140030122
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x1400301eb
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x1400301c0
mov r8, r10
sub ecx, r9d
jns 0x1400301de
jmp 0x1400301ed
cmp r10, rdx
je 0x1400301f9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x1400301ed
xor al, 1
cmp r8, rdx
jne 0x1400301a0
jmp 0x1400301ed
xor eax, eax
jmp 0x1400301ed
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuefrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.1400330c0
ud2
lea r8, str._pc_
mov rcx, r11
mov rdx, r10
call fcn.140033590
ud2
lea r8, str._pc_
mov rcx, r10
call fcn.140033510
ud2

Function at 0x140031810
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003185a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003185a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003185a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003185a
cmp dword [rcx + 0x84], 0xe
jbe 0x14003185a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14003185c
xor al, al
add rsp, 0x28
ret
Function at 0x140003250
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x20
lea r8, [rcx + 8]
mov rbx, rcx
lea rdx, [0x14001f518]
call 0x14000a500
lea r8, [rbx + 0xc]
lea rdx, str.First_Help
call 0x14000a500
lea r8, [rbx + 0x10]
lea rdx, str.Last_Counter
call 0x14000a500
lea r8, [rbx + 0x14]
lea rdx, str.Last_Help
add rsp, 0x20
pop rbx
jmp 0x14000a500
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword gs:[0x58]
mov rdi, rdx
mov edx, 4
mov rbx, r8
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14002f6d8], eax
jg 0x14000a606
test rbx, rbx
je 0x14000a5e9
and dword [rbx], 0
mov rax, qword [0x14002f6e0]
test rax, rax
jne 0x14000a5a8
and qword [rsp + 0x40], rax
lea rdx, str.SYSTEMCurrentControlSetServicesWmiApRplPerformance
lea rax, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ecx, eax
test eax, eax
mov rax, qword [0x14002f6e0]
jne 0x14000a5a4
xor ecx, ecx
test rax, rax
je 0x14000a598
mov rcx, rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ecx, eax
mov rax, qword [rsp + 0x40]
mov qword [0x14002f6e0], rax
test ecx, ecx
jne 0x14000a5ee
and dword [rsp + 0x40], 0
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea r9, [rsp + 0x40]
mov rcx, rax
mov dword [rsp + 0x50], 4
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
cmp dword [rsp + 0x40], 4
mov ecx, eax
mov eax, 0xd
cmovne ecx, eax
jmp 0x14000a5ee
mov ecx, 0x80004003
mov rbx, qword [rsp + 0x48]
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
add rsp, 0x30
pop rdi
ret
lea rcx, [0x14002f6d8]
call fcn.140019e64
cmp dword [0x14002f6d8], 0xffffffff
jne 0x14000a535
lea rcx, [0x14001d970]
call fcn.140019f78
lea rcx, [0x14002f6d8]
call fcn.140019df4
jmp 0x14000a535
Function at 0x1400032f0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x860
mov rax, qword [0x14002ef78]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov rsi, rcx
mov rdi, rdx
mov rcx, rdx
mov ebx, 0x3f2
call qword [sym.imp.msvcrt.dll_wcslen]
test rax, rax
je 0x1400033e6
lea rax, [rsp + 0x48]
mov r9d, 0x1000a
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x1400033e6
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x800
call sub.msvcrt.dll_memset
and qword [rsp + 0x38], 0
lea r9, [rsp + 0x40]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x50]
and qword [rsp + 0x28], 0
xor edx, edx
mov rcx, qword [rsp + 0x48]
and qword [rsp + 0x20], 0
mov dword [rsp + 0x40], 0x400
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
mov ebx, eax
cmp eax, 0x103
je 0x1400033c7
test eax, eax
jne 0x1400033c1
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x50]
call fcn.1400032f0
mov ebx, eax
test ebx, ebx
je 0x14000335a
jmp 0x1400033db
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteKeyExW]
mov ebx, eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.140019d60
lea r11, [rsp + 0x860]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140003414
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbp, rcx
mov rsi, r8
mov rcx, rdx
mov rdi, rdx
mov ebx, 0x3f2
call qword [sym.imp.msvcrt.dll_wcslen]
test rax, rax
je 0x14000348a
and qword [rsp + 0x58], 0
lea rax, [rsp + 0x58]
mov r9d, 0x10002
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x14000348a
mov rcx, qword [rsp + 0x58]
mov rdx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140003c30
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword gs:[0x58]
mov ebx, ecx
mov ecx, 4
mov rdx, qword [rax]
mov eax, dword [rcx + rdx]
cmp dword [0x14002f6d4], eax
jg 0x140003c67
mov edx, ebx
lea rcx, [0x14002e010]
add rsp, 0x20
pop rbx
jmp fcn.1400034a8
lea rcx, [0x14002f6d4]
call fcn.140019e64
cmp dword [0x14002f6d4], 0xffffffff
jne 0x140003c54
and qword [0x14002e060], 0
lea rax, str.SOFTWAREMicrosoftWBEMPROVIDERSPerformance
and qword [0x14002e090], 0
lea rcx, [0x14002f6d4]
or dword [0x14002e098], 0xffffffff
xorps xmm0, xmm0
xorps xmm1, xmm1
mov qword [0x14002e048], rax
movdqa xmmword [0x14002e050], xmm0
movdqa xmmword [0x14002e070], xmm0
movdqa xmmword [0x14002e080], xmm1
mov dword [0x14002e068], 4
call fcn.140019df4
jmp 0x140003c54
Function at 0x140003ce0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov rax, rsp
push r14
sub rsp, 0x60
mov qword [rax - 0x18], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov ebx, 0x80004005
mov esi, 1
xor r14d, r14d
test esi, esi
je 0x140003da0
lea rcx, [0x14002f638]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop
mov eax, dword [0x14002f5b8]
test eax, eax
jne 0x140003d49
lea r14d, [rax + 1]
mov dword [0x14002f5b8], r14d
mov dword [0x14002f5b4], r14d
mov rcx, qword [0x14002e0f0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ResetEvent]
xor esi, esi
jmp 0x140003d06
cmp dword [0x14002f5b4], 0
je 0x140003d88
lea rcx, [0x14002f638]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
or edx, 0xffffffff
mov rcx, qword [0x14002e0f0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
test eax, eax
je 0x140003d06
mov eax, ebx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop r14
ret
xor esi, esi
inc eax
mov dword [0x14002f5b8], eax
xor ebx, ebx
jmp 0x140003d06
lea rcx, [0x14002f638]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
test r14d, r14d
je 0x140003d73
call fcn.140004f10
mov ebx, eax
test eax, eax
js 0x140003e4e
mov rax, qword [0x14002e140]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x140003dd5
mov rcx, qword [rcx + 8]
and qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0x42
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
or edx, 0xffffffff
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoInitializeSecurity]
mov ebx, eax
test eax, eax
js 0x140003e48
mov rax, qword [0x14002e150]
add rax, 0x108
cmp qword [rax], 0
jne 0x140003e42
mov qword [rsp + 0x20], rax
lea r9, [0x14001f670]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x14001f660]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoCreateInstance]
mov ebx, eax
jmp 0x140003e48
jmp 0x140003e4e
lea rcx, [0x14002f638]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop
test ebx, ebx
jns 0x140003e66
dec dword [0x14002f5b8]
and dword [0x14002f5b4], 0
mov rcx, qword [0x14002e0f0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
lea rcx, [0x14002f638]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
jmp 0x140003d73
Function at 0x140009ab0
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]
mov ecx, dword [rsp + 0x50]
mov edx, eax
test ecx, ecx
je 0x140009b43
cmp ecx, 2
jbe 0x140009b29
cmp ecx, 7
jne 0x140009b43
test byte [rdi], 1
jne 0x140009b43
mov eax, dword [rdi]
and eax, 0xfffffffe
cmp eax, 4
jb 0x140009b43
test rbx, rbx
je 0x140009b3f
mov eax, dword [rdi]
shr rax, 1
cmp word [rbx + rax*2 - 2], si
jne 0x140009b43
cmp word [rbx + rax*2 - 4], si
jmp 0x140009b3d
test byte [rdi], 1
jne 0x140009b43
test rbx, rbx
je 0x140009b3f
mov eax, dword [rdi]
shr rax, 1
cmp word [rbx + rax*2 - 2], si
jne 0x140009b43
mov eax, edx
jmp 0x140009b48
mov eax, 0xd
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14000a144
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
push rsi
push rdi
push r14
sub rsp, 0x50
mov qword [r11 - 0x38], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov esi, r9d
mov rbp, r8
xor r14d, r14d
mov edi, r14d
mov qword [r11 - 0x30], r14
mov qword [r11 - 0x28], r14
mov qword [r11 - 0x20], r14
mov qword [r11 + 0x10], r14
lea rax, [r11 + 0x10]
mov qword [r11 - 0x48], 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]
mov ebx, eax
test eax, eax
jne 0x14000a1b7
mov ebx, r14d
mov rdi, qword [rsp + 0x78]
mov qword [rsp + 0x38], rdi
test ebx, ebx
je 0x14000a1e1
cmp ebx, 5
je 0x14000a1dd
lea r8, [rsp + 0x38]
mov rdx, qword [rsp + 0x90]
call fcn.140009f48
test eax, eax
cmovns ebx, r14d
mov rdi, qword [rsp + 0x38]
test ebx, ebx
jne 0x14000a205
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]
mov ebx, eax
movzx esi, bx
or esi, 0x80070000
test ebx, ebx
cmovle esi, ebx
test rdi, rdi
je 0x14000a221
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, esi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x14000a240
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], r9
mov dword [r11 + 0x18], r8d
push rdi
sub rsp, 0x50
mov qword [r11 - 0x28], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov rdi, rdx
xor ebx, ebx
mov qword [r11 - 0x20], rbx
and qword [r11 - 0x18], rbx
and qword [r11 - 0x10], rbx
and qword [r11 + 0x20], rbx
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]
test eax, eax
jne 0x14000a2a1
mov rbx, qword [rsp + 0x78]
jmp 0x14000a2b7
cmp eax, 5
je 0x14000a2b7
lea r8, [rsp + 0x38]
xor edx, edx
call fcn.140009f48
mov rbx, qword [rsp + 0x38]
mov r9d, 4
mov dword [rsp + 0x28], r9d
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test rbx, rbx
je 0x14000a2f7
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, edi
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x14000a30c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x40
mov qword [r11 - 0x18], 0xfffffffffffffffe
mov qword [r11 + 0x20], rbx
mov rdi, r8
and qword [r8], 0
and qword [r11 + 8], 0
lea rax, [r11 + 8]
mov qword [r11 - 0x28], rax
mov r9d, 0x2000000
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWBEMPROVIDERSPerformance
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x14000a406
and dword [rsp + 0x58], eax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov rax, qword [rdi]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Performance_Data
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x14000a3fb
mov eax, dword [rsp + 0x58]
test eax, eax
je 0x14000a3fb
mov ecx, eax
call fcn.140019928
mov qword [rdi], rax
test rax, rax
je 0x14000a3f0
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Performance_Data
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
je 0x14000a3f5
mov rcx, qword [rdi]
call sub.msvcrt.dll_free
mov qword [rdi], 0
jmp 0x14000a3f5
mov ebx, 0xe
jmp 0x14000a3fb
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x14000a424
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x40
xor edi, edi
mov rbx, r8
mov rsi, rdx
lea eax, [rdi + 0x57]
test rcx, rcx
je 0x14000a4ca
test rdx, rdx
je 0x14000a4ca
test rbx, rbx
je 0x14000a4c5
and dword [r8], edi
lea rax, [r11 - 0x18]
and qword [r11 - 0x18], rdi
mov rdx, rcx
xor r8d, r8d
mov qword [r11 - 0x28], rax
mov rcx, 0xffffffff80000002
mov r9d, 0xf003f
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000a4ca
mov rdi, qword [rsp + 0x30]
test eax, eax
jne 0x14000a4ca
and dword [rsp + 0x50], eax
lea r9, [rsp + 0x50]
lea rax, [rsp + 0x68]
mov dword [rsp + 0x68], 4
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rbx
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
cmp dword [rsp + 0x50], 4
mov ecx, 0xd
cmovne eax, ecx
jmp 0x14000a4ca
mov eax, 0x80004003
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test rdi, rdi
je 0x14000a4e6
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14000a500
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x20
lea r8, [rcx + 8]
mov rbx, rcx
lea rdx, [0x14001f518]
call 0x14000a500
lea r8, [rbx + 0xc]
lea rdx, str.First_Help
call 0x14000a500
lea r8, [rbx + 0x10]
lea rdx, str.Last_Counter
call 0x14000a500
lea r8, [rbx + 0x14]
lea rdx, str.Last_Help
add rsp, 0x20
pop rbx
jmp 0x14000a500
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword gs:[0x58]
mov rdi, rdx
mov edx, 4
mov rbx, r8
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14002f6d8], eax
jg 0x14000a606
test rbx, rbx
je 0x14000a5e9
and dword [rbx], 0
mov rax, qword [0x14002f6e0]
test rax, rax
jne 0x14000a5a8
and qword [rsp + 0x40], rax
lea rdx, str.SYSTEMCurrentControlSetServicesWmiApRplPerformance
lea rax, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ecx, eax
test eax, eax
mov rax, qword [0x14002f6e0]
jne 0x14000a5a4
xor ecx, ecx
test rax, rax
je 0x14000a598
mov rcx, rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ecx, eax
mov rax, qword [rsp + 0x40]
mov qword [0x14002f6e0], rax
test ecx, ecx
jne 0x14000a5ee
and dword [rsp + 0x40], 0
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea r9, [rsp + 0x40]
mov rcx, rax
mov dword [rsp + 0x50], 4
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
cmp dword [rsp + 0x40], 4
mov ecx, eax
mov eax, 0xd
cmovne ecx, eax
jmp 0x14000a5ee
mov ecx, 0x80004003
mov rbx, qword [rsp + 0x48]
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
add rsp, 0x30
pop rdi
ret
lea rcx, [0x14002f6d8]
call fcn.140019e64
cmp dword [0x14002f6d8], 0xffffffff
jne 0x14000a535
lea rcx, [0x14001d970]
call fcn.140019f78
lea rcx, [0x14002f6d8]
call fcn.140019df4
jmp 0x14000a535