joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x140102ae0]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rbp
mov rax, rdi
lock cmpxchg qword [rbx], rsi
test rax, rax
jne 0x1400011b0
mov rsi, qword [0x140102af0]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x140106008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x140102a50]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call fcn.1400ff730
mov rcx, qword [0x140102b70]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x140102ad0]
lea rcx, section..text
mov qword [rdx], rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.1400ff540
mov ebx, dword [0x140106028]
lea r12d, [rbx + 1]
movsxd r12, r12d
shl r12, 3
mov rcx, r12
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rdi, qword [0x140106020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub r12, 8
xor ebx, ebx
nop dword [rax]
mov rcx, qword [rdi + rbx]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
lea rsi, [rax + rax + 2]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [rdi + rbx]
mov rcx, rax
add rbx, 8
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
cmp rbx, r12
jne 0x140001288
add rbx, rbp
mov qword [rbx], 0
mov qword [0x140106020], rbp
call fcn.1400ff280
mov rax, qword [0x140102a60]
mov r8, qword [0x140106018]
mov ecx, dword [0x140106028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x140106020]
call fcn.1400ff2a0
mov ecx, dword [0x14010600c]
mov dword [0x140106010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x140106008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x140102af0]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call fcn.1401004e0
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x140102b10]
mov rcx, qword [0x140102b00]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001208
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001208
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x140106010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x140102b30]
mov rcx, qword [0x140102b20]
mov dword [rsi], 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x1400011f5
mov rbx, rax
jmp 0x1400012be
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
Function at 0x1400ff550
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.140100350
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x1400ff5c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140109224]
mov rbx, rcx
test esi, esi
jle 0x1400ff6f0
mov rax, qword [0x140109228]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400ff60b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400ff695
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400ff5f0
mov rcx, rbx
call fcn.140100030
mov rdi, rax
test rax, rax
je 0x1400ff712
mov rax, qword [0x140109228]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140100170
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140109228]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400ff6f7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400ff68e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400ff6a0
add dword [0x140109224], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140109228]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400ff68e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400ff550
nop dword [rax]
xor esi, esi
jmp 0x1400ff618
mov rax, qword [0x140109228]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400ff550
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400ff550
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x1400ffca0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140109280]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140109260]
test rbx, rbx
je 0x1400ffcfc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1400ffcf3
test eax, eax
jne 0x1400ffcf3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400ffcd8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140100030
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140102a20]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140100050
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140100058
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140100050
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1401000ad
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1401000a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140100050
add rax, 0x28
cmp rax, r9
jne 0x140100090
xor eax, eax
ret

Function at 0x1401000b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140102a20]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1401000cf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1401000d8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1401000cf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140100170
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140102a20]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14010018f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140100198
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1a50450
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1a5045a
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x1a50483
pop rbp
sub rbp, 0x33
sub rbp, 0x1650450
sub rsp, 0x20
jmp 0x1a504a2
mov rax, 0x1650450
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x4ea20044
xor byte [rax], dl
inc rax
dec rcx
jne 0x1a504c1
jmp 0x1a504d8
or al, 0xcd
lodsd eax, dword [rsi]
iretd
Function at 0x140583058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1405831df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140583089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14058306f
add dl, dl
jne 0x140583096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405830f6
xor eax, eax
add dl, dl
jne 0x1405830a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405831ad
add dl, dl
jne 0x1405830b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405830c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405830d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405830dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1405830ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14058307e
mov eax, 1
add dl, dl
jne 0x140583106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140583113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405830fb
sub eax, ebx
mov ebx, 1
jne 0x14058314c
mov ecx, 1
add dl, dl
jne 0x14058312e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14058313b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140583123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14058307e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140583168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140583175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14058315d
cmp eax, 0x7d00
jae 0x14058319b
cmp eax, 0x500
jb 0x140583196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14058307e
cmp eax, 0x7f
ja 0x14058319e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14058307e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1405831d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14058307e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400033a4
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x20
lea r8, [rcx + 8]
mov rbx, rcx
lea rdx, [0x140021c48]
call 0x14000ad24
lea r8, [rbx + 0xc]
lea rdx, str.First_Help
call 0x14000ad24
lea r8, [rbx + 0x10]
lea rdx, str.Last_Counter
call 0x14000ad24
lea r8, [rbx + 0x14]
lea rdx, str.Last_Help
add rsp, 0x20
pop rbx
jmp 0x14000ad24
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 [0x140032718], eax
jg 0x14000ae3d
test rbx, rbx
je 0x14000ae1f
and dword [rbx], 0
mov rax, qword [0x140032720]
test rax, rax
jne 0x14000add8
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]
nop dword [rax + rax]
mov ecx, eax
test eax, eax
mov rax, qword [0x140032720]
jne 0x14000add4
xor ecx, ecx
test rax, rax
je 0x14000adc8
mov rcx, rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov ecx, eax
mov rax, qword [rsp + 0x40]
mov qword [0x140032720], rax
test ecx, ecx
jne 0x14000ae24
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]
nop dword [rax + rax]
cmp dword [rsp + 0x40], 4
mov ecx, eax
mov eax, 0xd
cmovne ecx, eax
jmp 0x14000ae24
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, [0x140032718]
call fcn.14001b064
cmp dword [0x140032718], 0xffffffff
jne 0x14000ad59
lea rcx, [0x14001eb20]
call fcn.14001b178
lea rcx, [0x140032718]
call fcn.14001aff4
jmp 0x14000ad59
Function at 0x140003444
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 [0x140031f88]
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]
nop dword [rax + rax]
test rax, rax
je 0x140003558
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]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x140003558
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]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0x103
je 0x14000352d
test eax, eax
jne 0x140003527
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x50]
call fcn.140003444
mov ebx, eax
test ebx, ebx
je 0x1400034ba
jmp 0x140003547
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]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.14001af60
lea r11, [rsp + 0x860]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140003588
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]
nop dword [rax + rax]
test rax, rax
je 0x140003616
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]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x140003616
mov rcx, qword [rsp + 0x58]
mov rdx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
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 0x140003c68
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 [0x140032714], eax
jg 0x140003c9f
mov edx, ebx
lea rcx, [0x140031020]
add rsp, 0x20
pop rbx
jmp fcn.140003634
lea rcx, [0x140032714]
call fcn.14001b064
cmp dword [0x140032714], 0xffffffff
jne 0x140003c8c
and qword [0x140031070], 0
lea rax, str.SOFTWAREMicrosoftWBEMPROVIDERSPerformance
and qword [0x1400310a0], 0
lea rcx, [0x140032714]
or dword [0x1400310a8], 0xffffffff
xorps xmm0, xmm0
xorps xmm1, xmm1
mov qword [0x140031058], rax
movdqa xmmword [0x140031060], xmm0
movdqa xmmword [0x140031080], xmm0
movdqa xmmword [0x140031090], xmm1
mov dword [0x140031078], 4
call fcn.14001aff4
jmp 0x140003c8c
Function at 0x140003d18
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 0x140003df5
lea rcx, [0x140032678]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
nop
mov eax, dword [0x1400325f8]
test eax, eax
jne 0x140003d8d
lea r14d, [rax + 1]
mov dword [0x1400325f8], r14d
mov dword [0x1400325f4], r14d
mov rcx, qword [0x140031100]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ResetEvent]
nop dword [rax + rax]
xor esi, esi
jmp 0x140003d3e
cmp dword [0x1400325f4], 0
je 0x140003ddd
lea rcx, [0x140032678]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
or edx, 0xffffffff
mov rcx, qword [0x140031100]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
nop dword [rax + rax]
test eax, eax
je 0x140003d3e
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 [0x1400325f8], eax
xor ebx, ebx
jmp 0x140003d3e
lea rcx, [0x140032678]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
test r14d, r14d
je 0x140003dc7
call fcn.14000517c
mov ebx, eax
test eax, eax
js 0x140003eb5
mov rax, qword [0x140031150]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x140003e30
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]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x140003eaf
mov rax, qword [0x140031160]
add rax, 0x108
cmp qword [rax], 0
jne 0x140003ea9
mov qword [rsp + 0x20], rax
lea r9, [0x140021da0]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x140021d90]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoCreateInstance]
nop dword [rax + rax]
mov ebx, eax
jmp 0x140003eaf
jmp 0x140003eb5
lea rcx, [0x140032678]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
nop
test ebx, ebx
jns 0x140003ed3
dec dword [0x1400325f8]
and dword [0x1400325f4], 0
mov rcx, qword [0x140031100]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
nop dword [rax + rax]
lea rcx, [0x140032678]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
jmp 0x140003dc7
Function at 0x14000a1fc
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]
nop dword [rax + rax]
mov ecx, dword [rsp + 0x50]
mov edx, eax
test ecx, ecx
je 0x14000a295
cmp ecx, 2
jbe 0x14000a27b
cmp ecx, 7
jne 0x14000a295
test byte [rdi], 1
jne 0x14000a295
mov eax, dword [rdi]
and eax, 0xfffffffe
cmp eax, 4
jb 0x14000a295
test rbx, rbx
je 0x14000a291
mov eax, dword [rdi]
shr rax, 1
cmp word [rbx + rax*2 - 2], si
jne 0x14000a295
cmp word [rbx + rax*2 - 4], si
jmp 0x14000a28f
test byte [rdi], 1
jne 0x14000a295
test rbx, rbx
je 0x14000a291
mov eax, dword [rdi]
shr rax, 1
cmp word [rbx + rax*2 - 2], si
jne 0x14000a295
mov eax, edx
jmp 0x14000a29a
mov eax, 0xd
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14000a908
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]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14000a981
mov ebx, r14d
mov rdi, qword [rsp + 0x78]
mov qword [rsp + 0x38], rdi
test ebx, ebx
je 0x14000a9ab
cmp ebx, 5
je 0x14000a9a7
lea r8, [rsp + 0x38]
mov rdx, qword [rsp + 0x90]
call fcn.14000a6e0
test eax, eax
cmovns ebx, r14d
mov rdi, qword [rsp + 0x38]
test ebx, ebx
jne 0x14000a9d5
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]
nop dword [rax + rax]
mov ebx, eax
movzx esi, bx
or esi, 0x80070000
test ebx, ebx
cmovle esi, ebx
test rdi, rdi
je 0x14000a9f7
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
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 0x14000aa18
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]
nop dword [rax + rax]
test eax, eax
jne 0x14000aa7f
mov rbx, qword [rsp + 0x78]
jmp 0x14000aa95
cmp eax, 5
je 0x14000aa95
lea r8, [rsp + 0x38]
xor edx, edx
call fcn.14000a6e0
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]
nop dword [rax + rax]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test rbx, rbx
je 0x14000aae1
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, edi
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret