joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007afc
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov rax, qword [rdx + 0x10]
xor r14d, r14d
mov rdi, rdx
mov rsi, rcx
mov ebx, r14d
test rax, rax
je 0x140007bd7
cmp rbx, rax
jae 0x140007b6a
mov rax, rbx
mul qword [rdi + 8]
test rdx, rdx
jne 0x140007b4a
add rax, qword [rdi + 0x28]
cmp rax, qword [rdi + 0x28]
jb 0x140007b4a
mov r10, qword [rax]
jmp 0x140007b52
mov r1pe_dos_header, qword [0]
mov rax, rbx
mul qword [rdi + 8]
test rdx, rdx
jne 0x140007b6d
add rax, qword [rdi + 0x28]
cmp rax, qword [rdi + 0x28]
jae 0x140007b70
jmp 0x140007b6d
mov r10, qword [r14]
mov rax, r14
mov rcx, qword [rax]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r14w
jne 0x140007b77
inc rax
lea rdx, [rcx + rax*2]
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], r14w
jne 0x140007b8c
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, rsi
mov rdx, r10
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov ecx, eax
test eax, eax
jne 0x140007bf1
mov rax, qword [rdi + 0x10]
inc rbx
cmp rbx, rax
jb 0x140007b2f
mov eax, r14d
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x140007bda
Function at 0x140007db0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x140020208]
xor rax, rsp
mov qword [rbp + 0x160], rax
and qword [rsp + 0x38], 0
xor eax, eax
and qword [rsp + 0x40], rax
mov rbx, rcx
lea rcx, [rsp + 0x38]
mov dword [rsp + 0x34], eax
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemTimeAsFileTime]
nop dword [rax + rax]
mov eax, dword [rsp + 0x3c]
lea r9, [rbx + 0x438]
mov ecx, dword [rbx + 0x18]
lea r8, str._ls_ls_ls
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x38]
imul rdx, rcx, 0x23c34600
mov dword [rsp + 0x30], eax
lea rcx, [rbx + 0x28]
mov rax, qword [rsp + 0x30]
add rdx, rax
mov qword [rbx + 0x640], rax
lea rax, [rbx + 0x230]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rax
mov edx, 0x104
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x50]
call fcn.1400085fc
mov ebx, eax
test eax, eax
js 0x140007ed9
lea rax, [rsp + 0x40]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x140007ea0
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140007ed9
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], 8
lea rdx, str.RefreshAfter
mov r9d, 0xb
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140007e90
xor ebx, ebx
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140007eef
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140015530
mov rbx, qword [rsp + 0x288]
add rsp, 0x270
pop rbp
ret
Function at 0x140008220
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x250
mov rax, qword [0x140020208]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor r15d, r15d
mov rdi, rcx
add rcx, 0x28
mov r14, rdx
mov ebp, 1
mov esi, r15d
cmp word [rcx], r15w
je 0x1400083a9
lea rax, [rdi + 0x230]
cmp word [rax], r15w
je 0x1400083a9
mov qword [rsp + 0x28], rax
lea r9, str.GlobalOneSettingQueryMutex
mov qword [rsp + 0x20], rcx
lea r8, str._s_s_s
lea rcx, [rsp + 0x30]
mov edx, 0x104
call fcn.1400085fc
test eax, eax
js 0x1400082e2
lea r8, [rsp + 0x30]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateMutexW]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x1400082d6
mov edx, 0xea60
mov rcx, rax
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x1400082e2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, rdi
call fcn.14000381c
test al, al
jne 0x140008393
mov rcx, rdi
call fcn.1400039f8
mov ebx, eax
test eax, eax
js 0x14000830d
mov rdx, r14
mov rcx, rdi
call fcn.1400042c0
jmp 0x14000833e
mov r9d, 0x4f7c
call fcn.140004500
test al, al
jne 0x140008359
mov r9d, 0x47bb
call fcn.140004500
test al, al
je 0x140008333
cmp ebx, 0x8007007e
jne 0x140008340
mov rdx, r14
mov rcx, rdi
call fcn.1400075f4
mov ebx, eax
mov ebp, ebx
test ebx, ebx
jne 0x14000837e
mov rcx, rdi
call fcn.1400077f8
mov rcx, rdi
call fcn.140007db0
mov ebx, r15d
test rsi, rsi
je 0x1400083ae
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseMutex]
nop dword [rax + rax]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
jmp 0x1400083ae
cmp ebx, 1
jne 0x140008393
mov rcx, rdi
call fcn.140007c08
mov rcx, rdi
call fcn.140007db0
mov rcx, rdi
call fcn.140007f8c
mov ebx, eax
test eax, eax
jns 0x140008356
test ebp, ebp
jns 0x140008359
mov ebx, ebp
jmp 0x140008359
mov ebx, 0x80070057
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140015530
mov rbx, qword [rsp + 0x290]
add rsp, 0x250
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400083e0
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get file version info

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x168]
sub rsp, 0x268
mov rax, qword [0x140020208]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov rax, qword [rbp + 0x1d0]
mov r13, rcx
and qword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rdx
mov edi, 0x104
mov edx, edi
mov qword [rsp + 0x38], rax
mov r12, r9
mov r15, r8
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
nop dword [rax + rax]
dec eax
lea esi, [rdi - 2]
cmp eax, esi
ja 0x1400085ca
lea r8, str.kernel32.dll
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.140001860
mov ebx, eax
test eax, eax
js 0x1400085cf
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x1400084bf
mov edx, edi
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
nop dword [rax + rax]
dec eax
cmp eax, esi
ja 0x1400085ca
lea r8, str._ntdll.dll
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.140001860
mov ebx, eax
test eax, eax
js 0x1400085cf
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_version_l1_1_1.dll_GetFileVersionInfoSizeW]
nop dword [rax + rax]
mov r14d, eax
test eax, eax
je 0x1400085ca
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x1400085ca
mov r8d, r14d
mov edx, 8
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x14000851e
mov ebx, 0x8007000e
jmp 0x1400085cf
mov r9, rdi
lea rcx, [rsp + 0x40]
mov r8d, r14d
xor edx, edx
call qword [sym.imp.api_ms_win_core_version_l1_1_1.dll_GetFileVersionInfoW]
nop dword [rax + rax]
test eax, eax
jne 0x140008542
mov ebx, 0x8000ffff
jmp 0x1400085b4
lea r9, [rsp + 0x28]
mov rcx, rdi
lea r8, [rsp + 0x20]
lea rdx, [0x140019070]
call qword [sym.imp.api_ms_win_core_version_l1_1_0.dll_VerQueryValueW]
nop dword [rax + rax]
test eax, eax
je 0x14000853b
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x30]
movzx eax, word [rcx + 0xa]
mov dword [r13], eax
movzx eax, word [rcx + 8]
mov dword [rdx], eax
movzx r8d, word [rcx + 0xe]
mov rax, qword [rsp + 0x38]
mov dword [rax], r8d
cmp r8d, 0x23f0
jae 0x1400085a9
mov eax, 0xcccccccd
mul r8d
shr edx, 3
lea eax, [rdx + rdx*4]
add eax, eax
sub r8d, eax
jmp 0x1400085ac
xor r8d, r8d
mov dword [r15], r8d
and dword [r12], 0
mov r8, rdi
xor edx, edx
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
jmp 0x1400085cf
mov ebx, 0x8000ffff
mov eax, ebx
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.140015530
add rsp, 0x268
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14000ab24
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov edx, 8
mov rsi, rcx
mov rcx, qword [rax + 0x30]
lea r8d, [rdx + 0x58]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x14000ab67
mov ebx, 0xc0000017
jmp 0x14000abba
mov rcx, rdi
call fcn.140007f18
mov ebx, eax
test eax, eax
js 0x14000aba7
lea rcx, [rdi + 0x30]
call fcn.140007f18
mov ebx, eax
test eax, eax
js 0x14000aba7
mov rcx, rdi
call fcn.14000d908
mov ebx, eax
test eax, eax
js 0x14000aba7
mov rcx, rdi
call fcn.14000dbec
mov ebx, eax
test eax, eax
js 0x14000aba7
mov qword [rsi], rdi
xor ebx, ebx
jmp 0x14000abb3
mov rcx, rdi
call fcn.14000de28
test ebx, ebx
js 0x14000abba
mov dword [rsi + 8], 1
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000ba38
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov dword [rax + 0x20], r9d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r14, r8
mov r13, rdx
mov rbp, rcx
call sub.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThreadId
lea rcx, [rbp + 0x58]
mov dword [rsp + 0x78], eax
mov edi, eax
call qword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
nop dword [rax + rax]
mov r9, qword [rbp + 0xc0]
xor r15d, r15d
test r9, r9
je 0x14000bb8a
xor eax, eax
xor ebx, ebx
cmp rax, r9
jae 0x14000bab6
mul qword [rbp + 0xb8]
test rdx, rdx
jne 0x14000bab4
mov rcx, qword [rbp + 0xd8]
lea rbx, [rcx + rax]
cmp rbx, rcx
jae 0x14000bab6
xor ebx, ebx
cmp dword [rbx], edi
jne 0x14000bb74
cmp qword [rbx + 0x20], 0
jne 0x14000bb71
or rdx, 0xffffffffffffffff
inc rdx
cmp byte [rdx + r13], 0
jne 0x14000bacd
test r14, r14
je 0x14000baf0
or rax, 0xffffffffffffffff
inc rax
cmp byte [r14 + rax], 0
jne 0x14000bae0
movzx r8d, ax
jmp 0x14000baf6
mov r8d, 0x10
mov rax, qword gs:[0x60]
lea rsi, [r8 + 2]
mov rcx, qword [rax + 0x30]
movzx eax, dx
mov edx, 8
add rsi, rax
mov r8, rsi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x14000bb8a
mov r9, r13
mov rdx, rsi
mov rcx, rax
test r14, r14
je 0x14000bb45
mov qword [rsp + 0x20], r14
lea r8, str._s_s
jmp 0x14000bb51
and dword [rsp + 0x20], 0
lea r8, str._s_d
call fcn.140009a1c
test eax, eax
js 0x14000bb8a
lea rcx, [rbx + 0x18]
mov rdx, rdi
call qword [sym.imp.ntdll.dll_RtlInitAnsiString]
nop dword [rax + rax]
mov edi, dword [rsp + 0x78]
inc dword [rbx + 0x28]
mov r9, qword [rbp + 0xc0]
inc r15d
mov eax, r15d
cmp rax, r9
jb 0x14000ba91
lea rcx, [rbp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
jmp qword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
Function at 0x14000bbbc
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
test rcx, rcx
je 0x14000bdb7
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, r8
mov dword [rax - 0x68], 2
mov r14, rdx
mov rbp, rcx
xor ebx, ebx
lea rcx, [rax - 0x60]
xor edx, edx
mov r15, r9
lea r8d, [rbx + 0x40]
call sub.msvcrt.dll_memset
mov rax, qword gs:[0x60]
lea edx, [rbx + 8]
mov r8d, 0x100
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x14000bd9b
mov r9, r14
mov dword [rsp + 0x20], edi
lea r8, str.ERROR_s_d
mov edx, 0x100
mov rcx, rax
call fcn.140009a1c
test eax, eax
js 0x14000bd5a
mov rax, qword gs:[0x60]
lea edx, [rbx + 8]
mov r8d, 0x400
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x14000bd5a
mov r9, qword [rsp + 0xc0]
mov edi, 0x3ff
mov edx, edi
mov r8, r15
mov rcx, rax
call qword [sym.imp.msvcrt.dll__vsnprintf]
nop dword [rax + rax]
test eax, eax
js 0x14000bd53
movsxd rcx, eax
cmp rcx, rdi
ja 0x14000bd53
jne 0x14000bcc1
mov byte [rbx + 0x3ff], 0
mov rdx, rsi
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_RtlInitAnsiString]
nop dword [rax + rax]
mov rdx, rbx
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlInitAnsiString]
nop dword [rax + rax]
mov edx, 0x5b
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_strchr]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x14000bd36
mov edx, 0x5d
mov rcx, rax
call qword [sym.imp.msvcrt.dll_strchr]
nop dword [rax + rax]
test rax, rax
je 0x14000bd36
lea rdx, [rdi + 1]
mov byte [rax], 0
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlInitAnsiString]
nop dword [rax + rax]
mov r8, rbx
mov rdx, rsi
mov rcx, rbp
call fcn.14000ba38
lea rdx, [rsp + 0x30]
mov rcx, rbp
call fcn.14000b7b4
jmp 0x14000bd5a
mov byte [rbx + 0x3ff], 0
mov rcx, qword gs:[0x60]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
test rbx, rbx
je 0x14000bd9b
mov rcx, qword gs:[0x60]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret

Function at 0x14000c060
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
not ecx
test r8d, r8d
je 0x14000c08f
mov r10d, r8d
movzx eax, byte [r9]
mov edx, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
inc r9
lea rdx, [0x14001a830]
xor ecx, dword [rdx + rax*4]
sub r10, 1
jne 0x14000c06d
not ecx
mov eax, ecx
ret
Function at 0x14000c200
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140020208]
xor rax, rsp
mov qword [rsp + 0x50], rax
and dword [rcx], 0
lea r9, [r11 - 0x30]
and dword [rsp + 0x30], 0
mov rdi, rcx
lea rcx, [r11 - 0x38]
mov r10, r8
mov rax, rdx
mov qword [r11 - 0x40], rcx
mov rcx, rax
mov dword [rsp + 0x20], 0x14
mov r8d, 2
mov rdx, r10
call qword [sym.imp.ntdll.dll_ZwQueryValueKey]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x14000c289
cmp eax, 0xc0000034
je 0x14000c2c4
lea r9, str.Failed_to_query_key_value___x_
mov dword [rsp + 0x20], eax
mov r8d, 0x3a1
lea rdx, str.AslRegistryGetUInt32_UStr
mov ecx, 1
call fcn.14000c024
jmp 0x14000c2c4
cmp dword [rsp + 0x3c], 4
jne 0x14000c2a1
cmp dword [rsp + 0x40], 4
jne 0x14000c2a1
mov eax, dword [rsp + 0x44]
xor ebx, ebx
mov dword [rdi], eax
jmp 0x14000c2c4
lea r9, str.Invalid_value_type
mov r8d, 0x3a8
lea rdx, str.AslRegistryGetUInt32_UStr
mov ecx, 1
call fcn.14000c024
mov ebx, 0xc0000024
mov eax, ebx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140015530
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret
Function at 0x14000c36c
Capabilities:
Check for peb beingdebugged flag
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
xor ebp, ebp
mov rsi, rdx
mov qword [rcx], rbp
mov r14, rcx
xorps xmm0, xmm0
mov dword [rax + 8], ebp
lea rcx, [rax - 0x28]
mov rdx, r8
movups xmmword [rax - 0x28], xmm0
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
lea rax, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8d, [rbp + 2]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x20], ebp
mov rcx, rsi
call qword [sym.imp.ntdll.dll_ZwQueryValueKey]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0x80000005
je 0x14000c410
cmp eax, 0xc0000023
je 0x14000c410
cmp eax, 0xc0000034
je 0x14000c539
lea r9, str.Failed_to_query_key_value___x_
mov dword [rsp + 0x20], eax
mov r8d, 0x494
lea rdx, str.AslRegistryGetString
lea ecx, [rbp + 1]
call fcn.14000c024
jmp 0x14000c539
mov ecx, dword [rsp + 0x60]
mov edx, 8
add ecx, 2
mov dword [rsp + 0x60], ecx
mov rax, qword gs:[0x60]
mov r8d, ecx
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x14000c46a
lea r9, str.Out_of_memory
mov r8d, 0x4a2
lea rdx, str.AslRegistryGetString
mov ebx, 0xc0000017
lea ecx, [rax + 1]
call fcn.14000c024
jmp 0x14000c539
lea rax, [rsp + 0x60]
mov r9, rdi
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x30]
mov eax, dword [rsp + 0x60]
mov r8d, 2
mov rcx, rsi
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntdll.dll_ZwQueryValueKey]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x14000c4ae
lea r9, str.Failed_to_query_key_value___x_
mov r8d, 0x4ae
jmp 0x14000c506
mov eax, dword [rdi + 4]
dec eax
cmp eax, 1
jbe 0x14000c4dd
lea r9, str.Invalid_value_type
mov r8d, 0x4b6
lea rdx, str.AslRegistryGetString
mov ecx, 1
call fcn.14000c024
mov ebx, 0xc0000024
jmp 0x14000c51b
mov eax, dword [rdi + 8]
lea rdx, [rdi + 0xc]
shr rax, 1
mov rcx, r14
mov word [rdx + rax*2], bp
call fcn.14000e648
mov ebx, eax
test eax, eax
jns 0x14000c51b
lea r9, str.Out_of_memory___x_
mov r8d, 0x4c0
lea rdx, str.AslRegistryGetString
mov dword [rsp + 0x20], eax
mov ecx, 1
call fcn.14000c024
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rbp, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x14000c7c4
Capabilities:
Check for peb beingdebugged flag

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 rsi, rdx
mov rbx, rcx
xorps xmm0, xmm0
lea rdx, str.RegistryMachine
lea rcx, [rax - 0x18]
movups xmmword [rax - 0x18], xmm0
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
xor edi, edi
mov word [rbx], di
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x14000c805
mov ebp, 1
add ax, bp
add ax, ax
add ax, word [rsp + 0x30]
movzx r8d, ax
lea edx, [rbp + 7]
mov word [rbx + 2], r8w
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov qword [rbx + 8], rax
test rax, rax
jne 0x14000c876
movzx eax, word [rbx + 2]
lea r9, str.Failed_to_allocate__d_bytes_for_user_key_buffer
mov r8d, 0x58c
mov dword [rsp + 0x20], eax
lea rdx, str.AslRegistryBuildMachinePath
mov ecx, ebp
mov edi, 0xc0000017
call fcn.14000c024
jmp 0x14000c8bd
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeStringToString]
nop dword [rax + rax]
test rsi, rsi
je 0x14000c8ab
cmp word [rsi], 0x5c
je 0x14000c8ab
lea rdx, [0x140019070]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
nop dword [rax + rax]
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x50]
mov eax, edi
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14000ccbc
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
xor r11d, r11d
lea r8, [0x140000000]
mov r9, rdx
test rdx, rdx
jne 0x14000cced
mov r9, r8
not r9
mov rdx, r9
mov rcx, r8
call fcn.14000c9ec
test eax, eax
je 0x14000cef1
mov edx, 0x40
call fcn.14000c9ec
test eax, eax
je 0x14000cef1
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x14000cef1
movsxd rax, dword [0x14000003c]
cmp rax, r9
jae 0x14000cef1
lea rcx, [rax + r8]
mov edx, 0x108
call fcn.14000c9ec
test eax, eax
je 0x14000cef1
cmp dword [rcx], 0x4550
jne 0x14000cef1
movzx eax, word [rcx + 0x14]
cmp rax, r9
jae 0x14000cef1
add rcx, 0x18
mov edx, 0x10b
cmp word [rcx], dx
jne 0x14000cd96
cmp rax, 0x60
jb 0x14000cef1
mov edx, 0xe0
call fcn.14000c9ec
test eax, eax
je 0x14000cef1
mov eax, dword [rcx + 0x5c]
add rcx, 0x70
jmp 0x14000cdc7
mov edx, 0x20b
cmp word [rcx], dx
jne 0x14000cef1
cmp rax, 0x70
jb 0x14000cef1
mov edx, 0xf0
call fcn.14000c9ec
test eax, eax
je 0x14000cef1
mov eax, dword [rcx + 0x6c]
sub rcx, 0xffffffffffffff80
cmp eax, 2
jbe 0x14000cef1
mov eax, dword [rcx]
mov edx, dword [rcx + 4]
test rax, rax
je 0x14000cef1
test rdx, rdx
je 0x14000cef1
lea rdi, [rax + r8]
test rdi, rdi
je 0x14000cef1
mov rcx, rdi
call fcn.14000c9ec
test eax, eax
je 0x14000cef1
mov ebp, 0x10
cmp rdx, rbp
jb 0x14000cef1
movzx ebx, word [rdi + 0xe]
test rbx, rbx
je 0x14000cef1
movzx ecx, word [rdi + 0xc]
lea r14d, [rbp - 8]
add rcx, 2
mov rsi, r11
lea rcx, [rdi + rcx*8]
test rbx, rbx
je 0x14000ce60
mov rdx, r14
call fcn.14000c9ec
test eax, eax
je 0x14000cef1
cmp word [rcx], bp
je 0x14000ce57
add rcx, r14
inc rsi
cmp rsi, rbx
jb 0x14000ce37
cmp rsi, rbx
je 0x14000cef1
mov ebx, dword [rcx + 4]
test ebx, ebx
jns 0x14000ced9
mov esi, 0x7fffffff
mov rdx, rbp
and rbx, rsi
add rbx, rdi
mov rcx, rbx
call fcn.14000c9ec
test eax, eax
je 0x14000cef1
cmp word [rbx + 0xe], r11w
jne 0x14000ce8f
cmp word [rbx + 0xc], r11w
je 0x14000cef1
lea rcx, [rbx + 0x10]
mov rdx, r14
call fcn.14000c9ec
test eax, eax
je 0x14000cef1
mov ebx, dword [rcx + 4]
test ebx, ebx
jns 0x14000ced9
and rbx, rsi
mov rdx, rbp
add rbx, rdi
mov rcx, rbx
call fcn.14000c9ec
test eax, eax
je 0x14000cef1
cmp word [rbx + 0xe], r11w
jne 0x14000cec9
cmp word [rbx + 0xc], r11w
je 0x14000cef1
lea rcx, [rbx + 0x10]
mov rdx, r14
call fcn.14000c9ec
test eax, eax
je 0x14000cef1
mov ecx, dword [rcx + 4]
mov rdx, rbp
add rcx, rdi
call fcn.14000c9ec
test eax, eax
je 0x14000cef1
mov r11d, dword [rcx]
add r11, r8
mov rbx, qword [rsp + 0x30]
mov rax, r11
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14000d64c
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [0x140020878]
test rbx, rbx
jne 0x14000d6ce
xor edx, edx
lea rcx, [0x1400190f8]
mov r8d, 0x800
mov ebx, 0x7ffe0030
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x14000d6c7
lea rdx, str.RtlGetNtSystemRoot
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
nop dword [rax + rax]
test rax, rax
je 0x14000d6b8
movabs r10, 0xeb78b7fe78dbb970
call qword [0x140018498]
mov rbx, rax
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
nop dword [rax + rax]
mov qword [0x140020878], rbx
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140010964
Capabilities:
Get system information on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140020208]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor eax, eax
mov rdi, rdx
mov qword [r11 - 0x38], rax
mov rsi, rcx
mov qword [r11 - 0x28], rax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x48], eax
test rcx, rcx
je 0x1400109ec
xor r9d, r9d
lea r8d, [rax + 0xc]
lea rdx, [r11 - 0x38]
lea ecx, [rax + 1]
call qword [sym.imp.ntdll.dll_RtlGetNativeSystemInformation]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x1400109e4
lea r9, str.RtlGetNativeSystemInformation_failed___x_
mov r8d, 0x72f
lea rdx, str.AslEnvGetProcessWowInfo
mov dword [rsp + 0x20], eax
mov ecx, 1
call fcn.14000c024
jmp 0x140010a2c
movzx eax, word [rsp + 0x30]
mov word [rsi], ax
test rdi, rdi
je 0x140010a2a
xor r9d, r9d
lea rdx, [rsp + 0x40]
lea r8d, [r9 + 0xc]
lea ecx, [r9 + 1]
call qword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x140010a22
lea r9, str.ZwQuerySystemInformation_failed___x_
mov r8d, 0x751
jmp 0x1400109cd
movzx eax, word [rsp + 0x40]
mov word [rdi], ax
xor ebx, ebx
mov eax, ebx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140015530
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret