joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402a85ec
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x30
mov edi, dword [0x14038c6dc]
xor ebx, ebx
test edi, edi
jne 0x1402a86da
lea rax, [rbp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMSetup
mov rcx, 0xffffffff80000002
lea edi, [rbx + 2]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x1402a86d4
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea rdx, str.SystemSetupInProgress
lea rax, [rbp + 0x20]
mov dword [rbp + 0x20], ebx
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x28], 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x1402a86c4
cmp dword [rbp + 0x20], ebx
je 0x1402a86c4
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea rdx, str.OOBEInProgress
lea rax, [rbp + 0x20]
mov dword [rbp + 0x28], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x1402a86bf
cmp dword [rbp + 0x20], ebx
jne 0x1402a86c4
mov edi, 1
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov dword [0x14038c6dc], edi
cmp edi, 1
sete bl
mov eax, ebx
add rsp, 0x30
pop rdi
pop rbx
pop rbp
ret
Function at 0x1402a9b44
Capabilities:
Get hostname
Get user security identifier

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x140387a48]
xor rax, rsp
mov qword [rbp + 0x50], rax
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], reloc.OLEAUT32.dll_SafeArrayGetDim
lea rcx, [rsp + 0x68]
xor ebx, ebx
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_GetComputerNameW]
nop dword [rax + rax]
test eax, eax
je 0x1402a9c85
lea esi, [rbx + 0x44]
xor edx, edx
mov r8d, esi
lea rcx, [rbp - 0x70]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea rax, [rsp + 0x60]
mov dword [rsp + 0x48], esi
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x48]
lea rax, [rsp + 0x44]
mov dword [rsp + 0x44], reloc.OLEAUT32.dll_SafeArrayGetDim
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x70]
lea rax, [rbp + 0x30]
xor ecx, ecx
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_security_lsalookup_l2_1_0.dll_LookupAccountNameW]
nop dword [rax + rax]
test eax, eax
je 0x1402a9c85
mov r8d, esi
lea rcx, [rbp - 0x20]
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea r9, [rsp + 0x4c]
mov dword [rsp + 0x4c], esi
lea r8, [rbp - 0x20]
lea rdx, [rbp - 0x70]
lea ecx, [rbx + 0x26]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CreateWellKnownSid]
nop dword [rax + rax]
test eax, eax
je 0x1402a9c85
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x20]
call qword [0x1403ad2d0]
nop dword [rax + rax]
test eax, eax
je 0x1402a9c85
lea rdx, [rsp + 0x50]
call fcn.1400209a4
test eax, eax
js 0x1402a9c7b
mov rax, qword [rsp + 0x50]
lea edx, [rbx + 1]
mov r8, qword [rsp + 0x58]
lea ecx, [rbx + 0x7f]
or r9d, 0xffffffff
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], rax
call sub.api_ms_win_core_string_l1_1_0.dll_CompareStringW
mov rcx, qword [rsp + 0x50]
cmp eax, 2
sete bl
call sub.api_ms_win_core_heap_l2_1_0.dll_LocalFree
mov rcx, qword [rsp + 0x58]
call sub.api_ms_win_core_heap_l2_1_0.dll_LocalFree
mov eax, ebx
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.1400a15a0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret

Function at 0x1402a9d14
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea r8, str.Local__DDrawExclMode__
xor edx, edx
mov ecx, 0x100000
xor ebx, ebx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenMutexW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x1402a9d75
xor edx, edx
mov rcx, rax
call sub.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject
test eax, eax
je 0x1402a9d65
cmp eax, 0x80
je 0x1402a9d65
cmp eax, 0x102
jne 0x1402a9d6d
mov ebx, 1
jmp 0x1402a9d6d
mov rcx, rdi
call sub.api_ms_win_core_synch_l1_1_0.dll_ReleaseMutex
mov rcx, rdi
call sub.api_ms_win_core_handle_l1_1_0.dll_CloseHandle
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1402aa07c
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
mov qword [rax + 0x20], rdi
push r15
sub rsp, 0x470
mov rax, qword [0x140387a48]
xor rax, rsp
mov qword [rsp + 0x460], rax
xor ebp, ebp
lea r15, str.SystemNotification
mov esi, ebp
mov edi, ebp
lea rax, [0x140320918]
mov qword [rsp + 0x20], r15
test edi, edi
lea r9, str..Default
lea r8, str.AppEventsSchemesApps_s_s.current
mov edx, 0x104
cmove r9, rax
lea rcx, [rsp + 0x40]
call fcn.14002d868
mov ebx, eax
test eax, eax
js 0x1402aa160
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x208
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x40]
lea rax, [rsp + 0x250]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000001
call sub.api_ms_win_shcore_registry_l1_1_0.dll_SHGetValueW
test eax, eax
jne 0x1402aa160
cmp dword [rsp + 0x30], ebp
je 0x1402aa160
cmp word [rsp + 0x250], bp
je 0x1402aa160
mov r8d, edi
xor edx, edx
xor r8d, 1
mov rcx, r15
shl r8d, 0x16
or r8d, 0x292013
call qword [0x1403ad160]
nop dword [rax + rax]
test eax, eax
jne 0x1402aa174
lea ebx, [rax + 1]
test ebx, ebx
je 0x1402aa176
test esi, esi
jne 0x1402aa176
mov esi, 1
xor edi, esi
jmp 0x1402aa0b7
mov ebx, ebp
mov eax, ebx
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1400a15a0
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret

Function at 0x1402ab544
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
mov rcx, rdi
mov edx, 0x104
call sub.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW
mov ecx, eax
xor eax, eax
test ecx, ecx
jne 0x1402ab570
call fcn.140020b4c
jmp 0x1402ab594
cmp ecx, 0x104
jbe 0x1402ab57f
mov eax, 0x8007007a
jmp 0x1402ab594
test rbx, rbx
je 0x1402ab594
mov r8, rbx
mov edx, 0x104
mov rcx, rdi
call sub.api_ms_win_core_path_l1_1_0.dll_PathCchAppend
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1402ac354
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x500
mov rax, qword [0x140387a48]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
mov rsi, qword [rsp + 0x550]
xor edx, edx
mov r14, r8
mov rbp, rcx
lea rcx, [rsp + 0x74]
lea r8d, [rdx + 0x64]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
xor r15d, r15d
mov dword [rsp + 0x70], Ordinal_109
test rsi, rsi
lea rdi, [rsp + 0x50]
xorps xmm0, xmm0
lea rcx, [rsp + 0xe0]
cmovne rdi, rsi
mov r8, rbp
xor eax, eax
mov edx, 0x102
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rax
call fcn.14003d070
mov ebx, eax
test eax, eax
js 0x1402ac526
lea rcx, [rsp + 0xe0]
call sub.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathQuoteSpacesW
mov r10d, 0x208
lea rax, [rsp + 0xe0]
mov ecx, r10d
cmp word [rax], r15w
je 0x1402ac407
add rax, 2
sub rcx, 1
jne 0x1402ac3f7
mov rax, rcx
neg rax
sbb ebx, ebx
not ebx
and ebx, 0x80070057
test rcx, rcx
je 0x1402ac424
mov rax, r10
sub rax, rcx
jmp 0x1402ac427
mov rax, r15
test rcx, rcx
je 0x1402ac491
mov rcx, r10
lea rdx, [rsp + 0xe0]
lea rdx, [rdx + rax*2]
sub rcx, rax
je 0x1402ac475
lea r8, [rax + 0x7ffffdf6]
add r8, rcx
lea rax, [0x140314f70]
sub rax, rdx
test r8, r8
je 0x1402ac475
movzx r9d, word [rax + rdx]
test r9w, r9w
je 0x1402ac475
mov word [rdx], r9w
dec r8
add rdx, 2
sub rcx, 1
jne 0x1402ac454
test rcx, rcx
lea rax, [rdx - 2]
cmovne rax, rdx
neg rcx
sbb ebx, ebx
not ebx
and ebx, 0x8007007a
mov word [rax], r15w
test ebx, ebx
js 0x1402ac526
lea r8, [0x140348dc8]
mov rdx, r10
lea rcx, [rsp + 0xe0]
call fcn.140057dcc
mov ebx, eax
test eax, eax
js 0x1402ac526
mov qword [rsp + 0x48], rdi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0xe0]
mov qword [rsp + 0x38], r14
xor r9d, r9d
mov qword [rsp + 0x30], r15
xor r8d, r8d
mov dword [rsp + 0x28], r15d
mov rcx, rbp
mov dword [rsp + 0x20], r15d
call sub.api_ms_win_core_processthreads_l1_1_0.dll_CreateProcessW
test eax, eax
jne 0x1402ac510
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x1402ac526
movzx ebx, ax
or ebx, 0x80070000
jmp 0x1402ac526
test rsi, rsi
jne 0x1402ac526
mov rcx, qword [rdi + 8]
call sub.api_ms_win_core_handle_l1_1_0.dll_CloseHandle
mov rcx, qword [rdi]
call sub.api_ms_win_core_handle_l1_1_0.dll_CloseHandle
mov eax, ebx
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.1400a15a0
mov rbx, qword [rsp + 0x538]
add rsp, 0x500
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1402ad32c
Capabilities:
Bypass uac via rpc

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov dword [rsp + 0x10], edx
mov qword [r11 + 8], rcx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x70
and qword [rbp + 0x38], 0
lea rdx, str.ncalrpc
and qword [rbp + 0x20], 0
lea rcx, str.201ef99a_7fa0_444c_9399_19ba84f12a1a
xor eax, eax
xorps xmm0, xmm0
mov qword [rbp - 0x10], rax
mov rsi, r8
lea rax, [rbp + 0x38]
xor edi, edi
mov qword [r11 - 0x60], rax
xor r9d, r9d
and qword [r11 - 0x68], rdi
xor r8d, r8d
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
call qword [sym.imp.RPCRT4.dll_RpcStringBindingComposeW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x1402ad463
mov rcx, qword [rbp + 0x38]
lea rdx, [rbp + 0x20]
call qword [sym.imp.RPCRT4.dll_RpcBindingFromStringBindingW]
nop dword [rax + rax]
lea rcx, [rbp + 0x38]
mov ebx, eax
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
nop dword [rax + rax]
test ebx, ebx
jne 0x1402ad463
lea edx, [rdi + 0x44]
lea ecx, [rdi + 0x40]
mov dword [rbp + 0x28], edx
call sub.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc
mov rdi, rax
test rax, rax
jne 0x1402ad3e4
lea ebx, [rax + 8]
jmp 0x1402ad463
xor edx, edx
lea r9, [rbp + 0x28]
mov r8, rdi
lea ecx, [rdx + 0x16]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CreateWellKnownSid]
nop dword [rax + rax]
test eax, eax
jne 0x1402ad409
call sub.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError
mov ebx, eax
jmp 0x1402ad463
mov rcx, qword [rbp + 0x20]
mov eax, 3
and dword [rbp - 0x28], 0
xor edx, edx
mov dword [rbp - 0x30], eax
mov dword [rbp - 0x24], eax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
lea r9d, [rdx + 0xa]
and qword [rsp + 0x20], 0
lea r8d, [rdx + 6]
mov dword [rbp - 0x2c], 1
mov qword [rbp - 0x10], rdi
call qword [sym.imp.RPCRT4.dll_RpcBindingSetAuthInfoExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x1402ad463
mov rax, qword [rbp + 0x20]
and qword [rbp + 0x20], 0
mov qword [rsi], rax
mov rcx, rdi
call sub.api_ms_win_core_heap_l2_1_0.dll_LocalFree
cmp qword [rbp + 0x20], 0
je 0x1402ad482
lea rcx, [rbp + 0x20]
call qword [sym.imp.RPCRT4.dll_RpcBindingFree]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x1402b09e4
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
xor r15d, r15d
mov r14, rdx
mov qword [rcx], r15
mov rdi, rcx
mov qword [rcx + 8], r15
mov qword [rcx + 0x18], r15
jmp 0x1402b0a14
add r8, 2
mov qword [rcx + 0x10], r8
cmp word [r8], r15w
jne 0x1402b0a10
lea rax, [r8 + 2]
mov qword [rcx + 0x10], rax
cmp word [rax], r15w
jne 0x1402b0a42
neg r9d
sbb ebx, ebx
and ebx, 0xfffffe47
add ebx, 0xc0000273
jmp 0x1402b0be3
test r9d, r9d
jne 0x1402b0a51
mov ebx, 0xc0000103
jmp 0x1402b0be7
movzx ecx, word [rdx]
lea r8, [rbp + 0x20]
movzx edx, word [rbp + 0x48]
mov word [rbp + 0x20], cx
call fcn.1402b1194
mov ebx, eax
test eax, eax
jns 0x1402b0a7d
lea r9, str.RtlUShortAdd_failed___x_
mov r8d, 0xb26
jmp 0x1402b0bce
movzx ecx, word [rbp + 0x20]
lea r8, [rbp + 0x20]
mov edx, 4
call fcn.1402b1194
mov ebx, eax
test eax, eax
jns 0x1402b0aa7
lea r9, str.RtlUShortAdd_failed___x_
mov r8d, 0xb2c
jmp 0x1402b0bce
movzx eax, word [rbp + 0x20]
mov edx, 8
mov word [rdi + 2], ax
mov word [rdi], r15w
mov rax, qword gs:[0x60]
movzx r8d, word [rbp + 0x20]
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov qword [rdi + 8], rax
test rax, rax
jne 0x1402b0ae9
mov ebx, 0xc0000017
jmp 0x1402b0be7
mov rdx, r14
mov rcx, rdi
call fcn.1402b12d4
mov ebx, eax
test eax, eax
jns 0x1402b0b0c
lea r9, str.RtlUnicodeStringCopy_failed___x_
mov r8d, 0xb3b
jmp 0x1402b0bce
movzx ecx, word [rdi]
mov rax, qword [rdi + 8]
shr rcx, 1
cmp word [rax + rcx*2 - 2], 0x5c
je 0x1402b0b3e
mov rcx, rdi
call fcn.1402b11bc
mov ebx, eax
test eax, eax
jns 0x1402b0b3e
lea r9, str.RtlUnicodeStringCatString_failed___x_
mov r8d, 0xb4b
jmp 0x1402b0bce
mov rdx, qword [rbp + 0x40]
test rdx, rdx
je 0x1402b0b70
cmp word [rbp + 0x48], r15w
jbe 0x1402b0b70
movzx r8d, word [rbp + 0x48]
mov rcx, rdi
call fcn.1402b1238
mov ebx, eax
test eax, eax
jns 0x1402b0b70
lea r9, str.RtlUnicodeStringCbCatStringN_failed___x_
mov r8d, 0xb53
jmp 0x1402b0bce
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x21
lea rcx, [rdi + 0x18]
mov dword [rbp - Ordinal_54], 0x30
lea r9, [rbp - 0x40]
mov qword [rbp - 0x28], r15
lea r8, [rbp - 0x30]
mov dword [rbp - 0x18], Shell_MergeMenus
mov edx, 0x100001
mov qword [rbp - 0x20], rdi
movdqu xmmword [rbp - 0x10], xmm0
mov dword [rsp + 0x20], 1
call qword [sym.imp.ntdll.dll_ZwOpenFile]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x1402b0bef
lea r9, str.Failed_to_open_dir___x_
mov r8d, 0xb61
lea rdx, str.AslpPathWildcardAllocMatchNode
mov dword [rsp + 0x20], eax
mov ecx, 1
call fcn.1400139b4
test ebx, ebx
jns 0x1402b0bef
mov rcx, rdi
call fcn.1402b0d10
lea r11, [rsp + 0x70]
mov eax, ebx
mov rbx, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1402b14ac
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9d, ecx
mov r10, rdx
not r9d
test r8d, r8d
je 0x1402b14e7
mov r11d, r8d
movzx eax, byte [r10]
mov edx, r9d
xor rdx, rax
inc r10
mov eax, r9d
movzx ecx, dl
shr eax, 8
lea rdx, [0x14034a240]
mov r9d, dword [rdx + rcx*4]
xor r9d, eax
sub r11, 1
jne 0x1402b14bd
not r9d
mov eax, r9d
ret

Function at 0x1402b1728
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 0x1402b1769
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 0x1402b17da
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.1400139b4
jmp 0x1402b1821
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeStringToString]
nop dword [rax + rax]
test rsi, rsi
je 0x1402b180f
cmp word [rsi], 0x5c
je 0x1402b180f
lea rdx, [0x14030ab44]
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 0x1402b1840
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 qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
mov rdi, rcx
xorps xmm0, xmm0
lea rcx, [rax - 0x18]
mov rbp, rdx
movups xmmword [rax - 0x18], xmm0
call qword [sym.imp.ntdll.dll_RtlFormatCurrentUserKeyPath]
nop dword [rax + rax]
xor r14d, r14d
mov ebx, eax
test eax, eax
jns 0x1402b18a5
lea r9, str.RtlFormatCurrentUserKeyPath_failed___x_
mov dword [rsp + 0x20], eax
mov r8d, 0x5c4
lea rdx, str.AslRegistryBuildUserPath
lea ecx, [r14 + 1]
call fcn.1400139b4
jmp 0x1402b1941
mov word [rdi], r14w
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], r14w
jne 0x1402b18ad
mov esi, 1
add ax, si
add ax, ax
add ax, word [rsp + 0x30]
movzx r8d, ax
lea edx, [rsi + 7]
mov word [rdi + 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 [rdi + 8], rax
test rax, rax
jne 0x1402b1918
lea r9, str.Out_of_memory
mov r8d, 0x5d0
lea rdx, str.AslRegistryBuildUserPath
mov ecx, esi
mov ebx, 0xc0000017
call fcn.1400139b4
jmp 0x1402b1941
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeStringToString]
nop dword [rax + rax]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
nop dword [rax + rax]
mov ebx, r14d
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
nop dword [rax + rax]
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1402b1be8
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140387a48]
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], SafeArrayUnaccessData
mov r8d, 2
mov rdx, r10
call qword [sym.imp.ntdll.dll_ZwQueryValueKey]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x1402b1c71
cmp eax, 0xc0000034
je 0x1402b1cac
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.1400139b4
jmp 0x1402b1cac
cmp dword [rsp + 0x3c], 4
jne 0x1402b1c89
cmp dword [rsp + 0x40], 4
jne 0x1402b1c89
mov eax, dword [rsp + 0x44]
xor ebx, ebx
mov dword [rdi], eax
jmp 0x1402b1cac
lea r9, str.Invalid_value_type
mov r8d, 0x3a8
lea rdx, str.AslRegistryGetUInt32_UStr
mov ecx, 1
call fcn.1400139b4
mov ebx, 0xc0000024
mov eax, ebx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400a15a0
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret
Function at 0x1402b1e5c
Capabilities:
Access peb ldr_data

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 r12
push r14
push r15
sub rsp, 0x70
mov dword [rcx], 0x4e004c
mov r8d, 0x4e
mov rax, qword gs:[0x60]
mov r12, rdx
mov r15, rcx
lea edx, [r8 - 0x46]
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov r14, rax
test rax, rax
jne 0x1402b1ed6
lea r9, str.Out_of_memory
mov r8d, 0xed
lea rdx, str.AslGuidToString_UStr
lea ecx, [rax + 1]
call fcn.1400139b4
mov ebx, 0xc0000017
jmp 0x1402b1faf
movzx ecx, byte [r12 + 0xe]
movzx r8d, byte [r12 + 0xd]
movzx r9d, byte [r12 + 0xc]
movzx eax, byte [r12 + 0xf]
movzx r10d, byte [r12 + 0xb]
movzx r11d, byte [r12 + 0xa]
movzx ebx, byte [r12 + 9]
movzx edi, byte [r12 + 8]
movzx esi, word [r12 + 6]
movzx edx, word [r15 + 2]
movzx ebp, word [r12 + 4]
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x60], ecx
mov rcx, r14
mov dword [rsp + 0x58], r8d
lea r8, str._08lx__04hx__04hx__02hx_02hx__02hx_02hx_02hx_02hx_02hx_02hx
mov dword [rsp + 0x50], r9d
mov r9d, dword [r12]
mov dword [rsp + 0x48], r10d
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], esi
shr rdx, 1
mov dword [rsp + 0x20], ebp
call fcn.1402475d0
mov ebx, eax
test eax, eax
jns 0x1402b1f83
lea r9, str.RtlStringCchPrintfW_failed___x_
mov dword [rsp + 0x20], eax
mov r8d, 0x101
lea rdx, str.AslGuidToString_UStr
mov ecx, 1
call fcn.1400139b4
jmp 0x1402b1f8c
mov qword [r15 + 8], r14
xor r14d, r14d
xor ebx, ebx
test r14, r14
je 0x1402b1faf
mov rcx, qword gs:[0x60]
mov r8, r14
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
lea r11, [rsp + 0x70]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x1402b57e8
Capabilities:
Enumerate pe sections

Disassembly:
cmp byte [rdx + 0x2b], 0
mov r9, rdx
je 0x1402b5803
mov ecx, r8d
cmp rcx, qword [rdx + 0x20]
jae 0x1402b5853
mov rax, qword [rdx + 0x18]
add rax, rcx
ret
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
movzx r11d, word [rcx + 6]
add rdx, rax
xor r10d, r10d
test r11d, r11d
je 0x1402b5837
mov ecx, dword [rdx + 0xc]
cmp r8d, ecx
jb 0x1402b582b
add ecx, dword [rdx + 0x10]
cmp r8d, ecx
jb 0x1402b5839
add rdx, 0x28
inc r10d
cmp r10d, r11d
jb 0x1402b581b
xor edx, edx
test rdx, rdx
je 0x1402b5853
mov ecx, dword [rdx + 0x14]
sub ecx, dword [rdx + 0xc]
add ecx, r8d
cmp rcx, qword [r9 + 0x10]
jae 0x1402b5853
mov rax, qword [r9 + 0x18]
jmp 0x1402b57fe
xor eax, eax
ret