joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002610
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140007040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400026e3
cmp byte [rcx + 0x71], 0
je 0x1400026e3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400026df
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400026a4
sub eax, 1
je 0x1400026a8
cmp eax, 2
jne 0x1400026df
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140002cd0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400026d6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400026df
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000268c
xor al, al
jmp 0x14000268c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140002cd0
add rsp, 0x60
pop rbx
ret

Function at 0x140003650
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000369a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000369a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000369a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000369a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000369a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000369c
xor al, al
add rsp, 0x28
ret
Function at 0x180578a52
Capabilities:
Encode data using xor

Disassembly:
mov r11, qword [rdi + 8]
add rdi, 0xc
xor ecx, ecx
push 0x13236b4
test r11, r11
jmp 0x18056958b
mov r10d, 0x9406c731
pop r10
jmp 0x18057c03a
lea rsp, [rsp + 8]
je 0x1805691c3
mov ebx, 0x18dca18
push r10
movzx r10d, bx
jmp 0x18057543f
lea r10, [0x180582498]
mov ebx, 0xab94f78f
movzx ebx, byte [rax]
push 0xffffffffbb825b3c
sar dword [rsp + 1], 0x28
xor ebx, ecx
not byte [rsp + 4]
and ebx, 0xff
mov ebx, dword [r10 + rbx*4]
and qword [rsp], 0xffffffff8c9de897
shr ecx, 8
xor ecx, ebx
inc rax
xor ecx, 0x1d1a7e99
dec r11
lea rsp, [rsp + 8]
jne 0x180575446
jmp 0x1805691bb
mov eax, 0x2894feaf
mov qword [rsp + rax - 0x2894feaf], rax
mov eax, dword [rdi + rax*2 - 0x5129fd5e]
jmp 0x18058d68e
jmp 0x180578a4b
mov dword [rdi], eax
call fcn.180566670
mov rax, qword [rdi]
jmp 0x180588d77
not ecx
push 0x5e8021b2
push 0x71934eb0
mov dword [rdi], ecx
lea rsp, [rsp + 0x10]
jmp fcn.1805671ce
mov r11d, 0x87abad2c
jmp 0x18054f916
mov ecx, 0xbd30c1af
mov ecx, dword [rdi + 4]
add rdi, 4
push 0xffffffffc60cb124
add eax, ecx
jmp 0x1805784f5
Function at 0x140003144
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x20
lea r8, [rcx + 8]
mov rbx, rcx
lea rdx, [0x14001e518]
call 0x14000a09c
lea r8, [rbx + 0xc]
lea rdx, str.First_Help
call 0x14000a09c
lea r8, [rbx + 0x10]
lea rdx, str.Last_Counter
call 0x14000a09c
lea r8, [rbx + 0x14]
lea rdx, str.Last_Help
add rsp, 0x20
pop rbx
jmp 0x14000a09c
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 [0x1400306d8], eax
jg 0x14000a1a2
test rbx, rbx
je 0x14000a185
and dword [rbx], 0
mov rax, qword [0x1400306e0]
test rax, rax
jne 0x14000a144
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 [0x1400306e0]
jne 0x14000a140
xor ecx, ecx
test rax, rax
je 0x14000a134
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 [0x1400306e0], rax
test ecx, ecx
jne 0x14000a18a
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 0x14000a18a
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, [0x1400306d8]
call fcn.1400197a4
cmp dword [0x1400306d8], 0xffffffff
jne 0x14000a0d1
lea rcx, [0x14001cc90]
call fcn.1400198ac
lea rcx, [0x1400306d8]
call fcn.140019738
jmp 0x14000a0d1
Function at 0x1400031d8
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 [0x14002ff78]
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 0x1400032ce
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 0x1400032ce
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 0x1400032af
test eax, eax
jne 0x1400032a9
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x50]
call fcn.1400031d8
mov ebx, eax
test ebx, ebx
je 0x140003242
jmp 0x1400032c3
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.1400196d0
lea r11, [rsp + 0x860]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1400032f8
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 0x14000336e
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 0x14000336e
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 0x140003afc
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 [0x1400306d4], eax
jg 0x140003b33
mov edx, ebx
lea rcx, [0x14002f010]
add rsp, 0x20
pop rbx
jmp fcn.140003388
lea rcx, [0x1400306d4]
call fcn.1400197a4
cmp dword [0x1400306d4], 0xffffffff
jne 0x140003b20
and qword [0x14002f060], 0
lea rax, str.SOFTWAREMicrosoftWBEMPROVIDERSPerformance
and qword [0x14002f090], 0
lea rcx, [0x1400306d4]
or dword [0x14002f098], 0xffffffff
xorps xmm0, xmm0
xorps xmm1, xmm1
mov qword [0x14002f048], rax
movdqa xmmword [0x14002f050], xmm0
movdqa xmmword [0x14002f070], xmm0
movdqa xmmword [0x14002f080], xmm1
mov dword [0x14002f068], 4
call fcn.140019738
jmp 0x140003b20
Function at 0x140003ba8
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 0x140003c68
lea rcx, [0x140030638]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop
mov eax, dword [0x1400305b8]
test eax, eax
jne 0x140003c11
lea r14d, [rax + 1]
mov dword [0x1400305b8], r14d
mov dword [0x1400305b4], r14d
mov rcx, qword [0x14002f0f0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ResetEvent]
xor esi, esi
jmp 0x140003bce
cmp dword [0x1400305b4], 0
je 0x140003c50
lea rcx, [0x140030638]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
or edx, 0xffffffff
mov rcx, qword [0x14002f0f0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
test eax, eax
je 0x140003bce
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 [0x1400305b8], eax
xor ebx, ebx
jmp 0x140003bce
lea rcx, [0x140030638]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
test r14d, r14d
je 0x140003c3b
call fcn.140004d58
mov ebx, eax
test eax, eax
js 0x140003d16
mov rax, qword [0x14002f140]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x140003c9d
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 0x140003d10
mov rax, qword [0x14002f150]
add rax, 0x108
cmp qword [rax], 0
jne 0x140003d0a
mov qword [rsp + 0x20], rax
lea r9, [0x14001e670]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x14001e660]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoCreateInstance]
mov ebx, eax
jmp 0x140003d10
jmp 0x140003d16
lea rcx, [0x140030638]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop
test ebx, ebx
jns 0x140003d2e
dec dword [0x1400305b8]
and dword [0x1400305b4], 0
mov rcx, qword [0x14002f0f0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
lea rcx, [0x140030638]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
jmp 0x140003c3b
Function at 0x140009688
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 0x140009701
cmp ecx, 2
jbe 0x140009716
cmp ecx, 7
jne 0x140009701
test byte [rdi], 1
jne 0x140009701
mov eax, dword [rdi]
and eax, 0xfffffffe
cmp eax, 4
jb 0x140009701
test rbx, rbx
je 0x14000972c
mov eax, dword [rdi]
shr rax, 1
cmp word [rbx + rax*2 - 2], si
jne 0x140009701
cmp word [rbx + rax*2 - 4], si
je 0x14000972c
mov eax, 0xd
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
test byte [rdi], 1
jne 0x140009701
test rbx, rbx
je 0x14000972c
mov eax, dword [rdi]
shr rax, 1
cmp word [rbx + rax*2 - 2], si
jne 0x140009701
mov eax, edx
jmp 0x140009706
Function at 0x140009d00
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 0x140009d73
mov ebx, r14d
mov rdi, qword [rsp + 0x78]
mov qword [rsp + 0x38], rdi
test ebx, ebx
je 0x140009d9d
cmp ebx, 5
je 0x140009d99
lea r8, [rsp + 0x38]
mov rdx, qword [rsp + 0x90]
call fcn.140009b08
test eax, eax
cmovns ebx, r14d
mov rdi, qword [rsp + 0x38]
test ebx, ebx
jne 0x140009dc1
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 0x140009ddd
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 0x140009df4
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 0x140009e55
mov rbx, qword [rsp + 0x78]
jmp 0x140009e6b
cmp eax, 5
je 0x140009e6b
lea r8, [rsp + 0x38]
xor edx, edx
call fcn.140009b08
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 0x140009eab
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 0x140009eb8
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 0x140009faf
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 0x140009fa4
mov eax, dword [rsp + 0x58]
test eax, eax
je 0x140009fa4
mov ecx, eax
call fcn.1400192cc
mov qword [rdi], rax
test rax, rax
je 0x140009f99
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 0x140009f9e
mov rcx, qword [rdi]
call sub.msvcrt.dll_free
and qword [rdi], 0
jmp 0x140009f9e
mov ebx, 0xe
jmp 0x140009fa4
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 0x140009fc8
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 0x14000a06e
test rdx, rdx
je 0x14000a06e
test rbx, rbx
je 0x14000a069
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 0x14000a06e
mov rdi, qword [rsp + 0x30]
test eax, eax
jne 0x14000a06e
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 0x14000a06e
mov eax, 0x80004003
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test rdi, rdi
je 0x14000a08a
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 0x14000a09c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x20
lea r8, [rcx + 8]
mov rbx, rcx
lea rdx, [0x14001e518]
call 0x14000a09c
lea r8, [rbx + 0xc]
lea rdx, str.First_Help
call 0x14000a09c
lea r8, [rbx + 0x10]
lea rdx, str.Last_Counter
call 0x14000a09c
lea r8, [rbx + 0x14]
lea rdx, str.Last_Help
add rsp, 0x20
pop rbx
jmp 0x14000a09c
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 [0x1400306d8], eax
jg 0x14000a1a2
test rbx, rbx
je 0x14000a185
and dword [rbx], 0
mov rax, qword [0x1400306e0]
test rax, rax
jne 0x14000a144
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 [0x1400306e0]
jne 0x14000a140
xor ecx, ecx
test rax, rax
je 0x14000a134
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 [0x1400306e0], rax
test ecx, ecx
jne 0x14000a18a
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 0x14000a18a
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, [0x1400306d8]
call fcn.1400197a4
cmp dword [0x1400306d8], 0xffffffff
jne 0x14000a0d1
lea rcx, [0x14001cc90]
call fcn.1400198ac
lea rcx, [0x1400306d8]
call fcn.140019738
jmp 0x14000a0d1
Function at 0x14000b638
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 [0x14002ff78]
xor rax, rsp
mov qword [rbp + 0x360], rax
xor r14d, r14d
mov rsi, rcx
mov ebx, 1
cmp qword [rcx + 0x50], r14
jne 0x14000b813
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 0x14000b6b4
mov ebx, 0x8000ffff
jmp 0x14000b813
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 0x14000b6ed
movzx eax, word [r8 + rcx]
test ax, ax
je 0x14000b6ed
mov word [rcx], ax
add rcx, 2
sub rdx, rbx
jne 0x14000b6cb
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 0x14000b813
cmp word [rsp + r9*2 + 0x40], 0x5c
je 0x14000b758
lea r8, [rsp + 0x30]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.1400095a4
test eax, eax
js 0x14000b756
mov rax, qword [rsp + 0x30]
lea rcx, [rsp + 0x40]
mov rdx, rdi
lea r9, [0x14001e418]
sub rdx, rax
lea rcx, [rcx + rax*2]
call fcn.140009610
mov ebx, eax
test ebx, ebx
js 0x14000b813
lea r8, [rsp + 0x30]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.1400095a4
test eax, eax
js 0x14000b796
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.140009610
mov ebx, eax
test eax, eax
js 0x14000b813
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 0x14000b7bc
mov ebx, 0x80070485
jmp 0x14000b813
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 0x14000b80e
cmp qword [rsi + 0x60], r14
je 0x14000b80e
mov ebx, r14d
test rax, rax
jne 0x14000b813
mov ebx, 0x8007007f
cmp qword [rsi + 0x78], r14
jne 0x14000b832
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.1400196d0
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret