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

Disassembly:
sub rsp, 0x38
movsxd rcx, ecx
test r8d, r8d
je 0x180068a45
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
nop dword [rax + rax]
jmp 0x180068a56
and dword [rsp + 0x50], 0
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetEndOfFile]
nop dword [rax + rax]
mov ecx, eax
or eax, 0xffffffff
test ecx, ecx
cmovne eax, dword [rsp + 0x50]
add rsp, 0x38
ret

Function at 0x180069d68
Capabilities:
Timestomp file

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rdx
lea r9, [rsp + 0x50]
lea rdx, [rsp + 0x20]
lea r8, [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileTime]
nop dword [rax + rax]
test eax, eax
je 0x180069db9
lea r9, [rsp + 0x50]
mov rcx, rbx
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileTime]
nop dword [rax + rax]
test eax, eax
je 0x180069db9
mov eax, 1
jmp 0x180069dbc
or eax, 0xffffffff
add rsp, 0x30
pop rbx
ret

Function at 0x18006a93c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rax, qword [0x1800b2220]
xor rax, rsp
mov qword [rbp + 0x4f], rax
lea rdx, str.CorruptDetection
xor edi, edi
lea rcx, [rbp - 9]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
lea rdx, str.REGISTRYMACHINESYSTEMCurrentControlSetControlWOW
lea rcx, [rbp - 0x19]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
lea rax, [rbp - 0x19]
mov dword [rbp + 7], 0x30
xorps xmm0, xmm0
mov qword [rbp + 0x17], rax
lea r8, [rbp + 7]
mov qword [rbp + 0xf], rdi
mov edx, 0x20019
mov dword [rbp + 0x1f], 0x40
lea rcx, [rbp - 0x29]
movdqu xmmword [rbp + 0x27], xmm0
call qword [sym.imp.ntdll.dll_NtOpenKey]
nop dword [rax + rax]
test eax, eax
js 0x18006aa1b
mov rcx, qword [rbp - 0x29]
lea rax, [rbp - 0x21]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x37]
lea r8d, [rdi + 2]
mov dword [rsp + 0x20], 0x14
lea rdx, [rbp - 9]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x29]
mov ebx, eax
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
test ebx, ebx
js 0x18006aa1b
cmp dword [rbp + 0x3b], 4
cmove edi, dword [rbp + 0x43]
mov eax, edi
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.180024680
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x18006aa48
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rax, qword [0x1800b2220]
xor rax, rsp
mov qword [rbp + 0x4f], rax
lea rax, str.DisallowedPolicyDefault
mov bl, cl
xor edi, edi
lea rdx, str.VDMDisallowed
test cl, cl
lea rcx, [rbp - 9]
cmove rdx, rax
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
lea rax, str.REGISTRYMACHINESYSTEMCurrentControlSetControlWOW
test bl, bl
lea rdx, str.REGISTRYMACHINESoftwarePoliciesMicrosoftWindowsAppCompat
cmove rdx, rax
lea rcx, [rbp - 0x19]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
lea rax, [rbp - 0x19]
mov dword [rbp + 7], 0x30
xorps xmm0, xmm0
mov qword [rbp + 0x17], rax
lea r8, [rbp + 7]
mov qword [rbp + 0xf], rdi
mov edx, 0x20019
mov dword [rbp + 0x1f], 0x40
lea rcx, [rbp - 0x29]
movdqu xmmword [rbp + 0x27], xmm0
call qword [sym.imp.ntdll.dll_NtOpenKey]
nop dword [rax + rax]
test eax, eax
js 0x18006ab4b
mov rcx, qword [rbp - 0x29]
lea rax, [rbp - 0x21]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x37]
lea r8d, [rdi + 2]
mov dword [rsp + 0x20], 0x14
lea rdx, [rbp - 9]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x29]
mov ebx, eax
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
test ebx, ebx
js 0x18006ab4b
cmp dword [rbp + 0x3b], 4
jne 0x18006ab4b
mov eax, dword [rbp + 0x43]
neg eax
sbb ecx, ecx
lea edi, [rcx + 2]
mov eax, edi
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.180024680
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x18006b054
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x60
and qword [r11 - 0x28], 0
lea rax, [r11 - 0x18]
and qword [r11 - 0x30], 0
mov rbx, r9
mov dword [r11 - 0x38], r8d
xor r9d, r9d
mov qword [r11 - 0x40], rdx
xor r8d, r8d
xor edx, edx
mov qword [r11 - 0x48], rax
mov rdi, rcx
call qword [sym.imp.ntdll.dll_NtReadFile]
nop dword [rax + rax]
mov edx, eax
cmp eax, 0x103
jne 0x18006b0ac
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call sub.ntdll.dll_NtWaitForSingleObject
mov edx, eax
test edx, edx
jns 0x18006b0d0
cmp edx, 0xc0000011
jne 0x18006b0c2
test rbx, rbx
je 0x18006b0db
and dword [rbx], 0
jmp 0x18006b0db
mov eax, edx
and eax, 0xc0000000
cmp eax, 0x80000000
jne 0x18006b0db
test rbx, rbx
je 0x18006b0db
mov eax, dword [rsp + 0x58]
mov dword [rbx], eax
mov rbx, qword [rsp + 0x70]
mov eax, edx
add rsp, 0x60
pop rdi
ret
Function at 0x18006ca60
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x1800b2220]
xor rax, rsp
mov qword [rbp + 0x1b8], rax
and qword [rsp + 0x38], 0
mov rbx, rcx
lea rcx, [rbp - 0x80]
xor edx, edx
mov r8d, 0x220
call sub.ntdll.dll_memset
xor eax, eax
xorps xmm0, xmm0
and dword [rsp + 0x30], eax
mov rcx, rbx
movups xmmword [rbp + 0x1a0], xmm0
mov dword [rbp + 0x1b0], eax
xor edi, edi
call fcn.18006b9ec
and qword [rsp + 0x20], rdi
lea r8, [rbp - 0x80]
mov r9d, 0x218
lea edx, [rdi + 0x2b]
mov rcx, rbx
mov esi, eax
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
nop dword [rax + rax]
mov r15d, 0xc0000000
mov ecx, eax
and eax, r15d
cmp eax, r15d
jne 0x18006cb24
mov r9d, 0x1089
lea r8, str.WER_CrashAPI:_u:_ERROR_NtQueryInformationProcess_failed_0x_x_n
mov dword [rsp + 0x20], ecx
xor edx, edx
mov ecx, 0x96
call qword [sym.imp.ntdll.dll_DbgPrintEx]
nop dword [rax + rax]
jmp 0x18006cc2d
mov rcx, qword [rbp - 0x78]
call fcn.18006ba78
mov rbx, rax
test rax, rax
jne 0x18006cb5a
mov r9d, 0x1091
lea r8, str.WER_CrashAPI:_u:_ERROR_WerpPathTail_returned_NULL_n
xor edx, edx
mov ecx, 0x96
call qword [sym.imp.ntdll.dll_DbgPrintEx]
nop dword [rax + rax]
jmp 0x18006cc2d
and qword [rsp + 0x58], rdi
lea rcx, [0x180080720]
test esi, esi
mov dword [rsp + 0x50], 0x30
xorps xmm0, xmm0
mov dword [rsp + 0x68], 0x40
lea rax, [0x180080710]
mov esi, 1
cmove rax, rcx
lea r8, [rsp + 0x50]
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x60], rax
mov edx, esi
movdqu xmmword [rsp + 0x70], xmm0
call qword [sym.imp.ntdll.dll_NtOpenKey]
nop dword [rax + rax]
test eax, eax
js 0x18006cc2d
mov rdx, rbx
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeStringEx]
nop dword [rax + rax]
mov ecx, eax
and eax, r15d
cmp eax, r15d
jne 0x18006cbe2
mov r9d, 0x10ab
lea r8, str.WER_CrashAPI:_u:_ERROR_RtlInitUnicodeStringEx_returned_0x_x_n
jmp 0x18006cb08
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x1a0]
mov r8d, 2
mov dword [rsp + 0x20], 0x14
lea rdx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
test eax, eax
js 0x18006cc2d
cmp dword [rbp + 0x1a4], 4
jne 0x18006cc2d
cmp dword [rbp + 0x1ac], edi
cmovne edi, esi
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x18006cc43
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rbp + 0x1b8]
xor rcx, rsp
call fcn.180024680
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret
Function at 0x180070574
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9d, ecx
mov r10, rdx
not r9d
test r8d, r8d
je 0x1800705af
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, [0x18008d3d0]
mov r9d, dword [rdx + rcx*4]
xor r9d, eax
sub r11, 1
jne 0x180070585
not r9d
mov eax, r9d
ret

Function at 0x180070ab0
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 0x180070af1
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 0x180070b62
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.18001188c
jmp 0x180070ba9
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeStringToString]
nop dword [rax + rax]
test rsi, rsi
je 0x180070b97
cmp word [rsi], 0x5c
je 0x180070b97
lea rdx, [0x180085368]
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 0x180070bc8
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x1800b2220]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rsi, rcx
mov rax, r8
lea rcx, [rsp + 0x30]
mov edx, r9d
mov qword [rsp + 0x28], rcx
lea r9, [rsp + 0x40]
xor ebp, ebp
mov dword [rsp + 0x20], 0x20c
mov rcx, rax
mov dword [rsp + 0x30], ebp
xor r8d, r8d
call qword [sym.imp.ntdll.dll_ZwEnumerateKey]
nop dword [rax + rax]
mov edi, eax
test eax, eax
js 0x180070c57
mov r8d, dword [rsp + 0x4c]
mov ebx, r8d
shr rbx, 1
lea rcx, [rbx + 1]
cmp rcx, 0x104
jb 0x180070c46
mov edi, 0xc0000023
jmp 0x180070c57
lea rdx, [rsp + 0x50]
mov rcx, rsi
call sub.ntdll.dll_memcpy
mov word [rsi + rbx*2], bp
mov eax, edi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.180024680
mov rbx, qword [rsp + 0x288]
add rsp, 0x260
pop rdi
pop rsi
pop rbp
ret
Function at 0x180070d94
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1800b2220]
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 0x180070e1d
cmp eax, 0xc0000034
je 0x180070e58
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.18001188c
jmp 0x180070e58
cmp dword [rsp + 0x3c], 4
jne 0x180070e35
cmp dword [rsp + 0x40], 4
jne 0x180070e35
mov eax, dword [rsp + 0x44]
xor ebx, ebx
mov dword [rdi], eax
jmp 0x180070e58
lea r9, str.Invalid_value_type
mov r8d, 0x3a8
lea rdx, str.AslRegistryGetUInt32_UStr
mov ecx, 1
call fcn.18001188c
mov ebx, 0xc0000024
mov eax, ebx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180024680
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret
Function at 0x180072d00
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 r14
sub rsp, 0x20
and qword [rdx], 0
mov r14, rdx
mov rax, qword gs:[0x60]
mov edx, 8
mov rdi, r8
mov rbp, rcx
mov rcx, qword [rax + 0x30]
lea r8d, [rdx + 0x18]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x180072d57
mov eax, 0xc0000017
jmp 0x180072db8
and qword [rax + 0x10], 0
lea rcx, [rax + 0x18]
and qword [rax + 0x18], 0
mov rdx, rdi
mov qword [rax + 8], rbx
mov qword [rax], rbx
call fcn.18000eaac
mov edi, eax
test eax, eax
js 0x180072da9
mov rcx, qword [rbx + 0x18]
mov rdx, rbx
call fcn.180072ef4
mov edi, eax
test eax, eax
js 0x180072da9
mov rax, qword [rbx]
mov rdx, rbx
mov rcx, rbp
mov qword [rbx + 0x10], rax
call fcn.180072ddc
mov edi, eax
test eax, eax
js 0x180072da9
mov qword [r14], rbx
xor ebx, ebx
test rbx, rbx
je 0x180072db6
mov rcx, rbx
call fcn.180072c40
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x180072fa0
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 0x180072fd0
add r8, 2
mov qword [rcx + 0x10], r8
cmp word [r8], r15w
jne 0x180072fcc
lea rax, [r8 + 2]
mov qword [rcx + 0x10], rax
cmp word [rax], r15w
jne 0x180072ffe
neg r9d
sbb ebx, ebx
and ebx, 0xfffffe47
add ebx, 0xc0000273
jmp 0x18007319f
test r9d, r9d
jne 0x18007300d
mov ebx, 0xc0000103
jmp 0x1800731a3
movzx ecx, word [rdx]
lea r8, [rbp + 0x20]
movzx edx, word [rbp + 0x48]
mov word [rbp + 0x20], cx
call fcn.180073748
mov ebx, eax
test eax, eax
jns 0x180073039
lea r9, str.RtlUShortAdd_failed___x_
mov r8d, 0xb26
jmp 0x18007318a
movzx ecx, word [rbp + 0x20]
lea r8, [rbp + 0x20]
mov edx, 4
call fcn.180073748
mov ebx, eax
test eax, eax
jns 0x180073063
lea r9, str.RtlUShortAdd_failed___x_
mov r8d, 0xb2c
jmp 0x18007318a
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 0x1800730a5
mov ebx, 0xc0000017
jmp 0x1800731a3
mov rdx, r14
mov rcx, rdi
call fcn.180073888
mov ebx, eax
test eax, eax
jns 0x1800730c8
lea r9, str.RtlUnicodeStringCopy_failed___x_
mov r8d, 0xb3b
jmp 0x18007318a
movzx ecx, word [rdi]
mov rax, qword [rdi + 8]
shr rcx, 1
cmp word [rax + rcx*2 - 2], 0x5c
je 0x1800730fa
mov rcx, rdi
call fcn.180073770
mov ebx, eax
test eax, eax
jns 0x1800730fa
lea r9, str.RtlUnicodeStringCatString_failed___x_
mov r8d, 0xb4b
jmp 0x18007318a
mov rdx, qword [rbp + 0x40]
test rdx, rdx
je 0x18007312c
cmp word [rbp + 0x48], r15w
jbe 0x18007312c
movzx r8d, word [rbp + 0x48]
mov rcx, rdi
call fcn.1800737ec
mov ebx, eax
test eax, eax
jns 0x18007312c
lea r9, str.RtlUnicodeStringCbCatStringN_failed___x_
mov r8d, 0xb53
jmp 0x18007318a
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x21
lea rcx, [rdi + 0x18]
mov dword [rbp - 0x30], 0x30
lea r9, [rbp - 0x40]
mov qword [rbp - 0x28], r15
lea r8, [rbp - 0x30]
mov dword [rbp - 0x18], 0x40
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 0x1800731ab
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.18001188c
test ebx, ebx
jns 0x1800731ab
mov rcx, rdi
call fcn.1800732cc
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 0x180073b64
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 0x180073bde
lea r9, str.Out_of_memory
mov r8d, 0xed
lea rdx, str.AslGuidToString_UStr
lea ecx, [rax + 1]
call fcn.18001188c
mov ebx, 0xc0000017
jmp 0x180073cb7
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.180039600
mov ebx, eax
test eax, eax
jns 0x180073c8b
lea r9, str.RtlStringCchPrintfW_failed___x_
mov dword [rsp + 0x20], eax
mov r8d, 0x101
lea rdx, str.AslGuidToString_UStr
mov ecx, 1
call fcn.18001188c
jmp 0x180073c94
mov qword [r15 + 8], r14
xor r14d, r14d
xor ebx, ebx
test r14, r14
je 0x180073cb7
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 0x180078054
Capabilities:
Enumerate pe sections

Disassembly:
cmp byte [rdx + 0x2b], 0
mov r9, rdx
je 0x18007806f
mov ecx, r8d
cmp rcx, qword [rdx + 0x20]
jae 0x1800780bf
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 0x1800780a3
mov ecx, dword [rdx + 0xc]
cmp r8d, ecx
jb 0x180078097
add ecx, dword [rdx + 0x10]
cmp r8d, ecx
jb 0x1800780a5
add rdx, 0x28
inc r10d
cmp r10d, r11d
jb 0x180078087
xor edx, edx
test rdx, rdx
je 0x1800780bf
mov ecx, dword [rdx + 0x14]
sub ecx, dword [rdx + 0xc]
add ecx, r8d
cmp rcx, qword [r9 + 0x10]
jae 0x1800780bf
mov rax, qword [r9 + 0x18]
jmp 0x18007806a
xor eax, eax
ret
Function at 0x180078670
Capabilities:
Map section object

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
xor ebp, ebp
mov rsi, rdx
mov dword [rsp + 0x54], ebp
mov r15, rcx
mov dword [rsp + 0x6c], ebp
mov rax, qword gs:[0x60]
lea edx, [rbp + 8]
lea r8d, [rbp + 0x40]
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov qword [rsp + 0xd0], rax
mov rbx, rax
test rax, rax
jne 0x1800786d1
mov edi, 0xc0000017
jmp 0x18007887b
lea r14, [rax + 8]
mov dword [rsp + 0x50], 0x30
mov rax, qword [rsi]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
mov r12d, 2
mov dword [rsp + 0x28], 0x8000000
xor r9d, r9d
mov dword [rsp + 0x20], r12d
mov edx, 0xf0005
mov qword [rsp + 0x58], rbp
mov rcx, r14
mov dword [rsp + 0x68], ebp
mov qword [rsp + 0x60], rbp
movdqu xmmword [rsp + 0x70], xmm0
call qword [sym.imp.ntdll.dll_ZwCreateSection]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jns 0x180078758
lea r9, str.ZwCreateSection_failed___x_
mov r8d, 0x159
lea rdx, str.AslpFileLargeMapCreate
mov dword [rsp + 0x20], eax
mov ecx, 1
call fcn.18001188c
jmp 0x180078869
mov rax, qword [rsi + 0x10]
lea rcx, [rbx + 0x38]
mov dword [rsp + 0x48], r12d
lea r8, [rbx + 0x28]
mov dword [rsp + 0x40], 0x500000
sub rax, 0x1000
and rax, 0xffffffffffff0000
mov dword [rsp + 0x38], r12d
mov qword [rcx], rax
xor r9d, r9d
lea rax, [rbx + 0x30]
or rdx, 0xffffffffffffffff
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rcx
mov rcx, qword [r14]
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ntdll.dll_ZwMapViewOfSection]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jns 0x1800787c6
lea r9, str.ZwMapViewOfSection_failed_to_map_the_end_of_the_file___x_
mov r8d, 0x175
jmp 0x18007873e
lea rax, [rbx + 0x10]
mov ebp, 0x20000000
lea r12, [rbx + 0x18]
lea r13, [rbx + 0x20]
mov rbx, rax
mov eax, 2
mov qword [r12], rbp
and qword [r13], 0
xor r9d, r9d
mov rcx, qword [r14]
mov r8, rbx
mov dword [rsp + 0x48], eax
or rdx, 0xffffffffffffffff
mov dword [rsp + 0x40], 0x500000
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
and qword [rsp + 0x20], 0
call qword [sym.imp.ntdll.dll_ZwMapViewOfSection]
nop dword [rax + rax]
shr rbp, 1
mov edi, eax
cmp eax, 0xc0000017
jne 0x180078836
cmp rbp, 0x100000
jae 0x1800787da
mov rbx, qword [rsp + 0xd0]
xor ebp, ebp
test eax, eax
jns 0x180078856
lea r9, str.ZwMapViewOfSection_failed_to_map_the_start_of_the_file___x_
mov r8d, 0x19f
jmp 0x18007873e
mov qword [rbx], rsi
mov edi, ebp
mov qword [r15], rbx
mov rbx, rbp
mov qword [rsp + 0xd0], rbx
test rbx, rbx
je 0x18007887b
lea rcx, [rsp + 0xd0]
call fcn.1800788a0
mov rbx, qword [rsp + 0xc0]
mov eax, edi
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18007a7ec
Capabilities:
Get system information on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x1800b2220]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rsi, qword [rbp + 0x250]
xor r13d, r13d
xorps xmm1, xmm1
mov word [rbp - 0x50], r13w
xor eax, eax
mov qword [rsp + 0x50], r13
mov r12, r9
mov qword [rbp - 0x68], rax
mov r14d, r8d
mov dword [rsi], r13d
mov r15, rdx
mov dword [rbp - 0x60], eax
xorps xmm0, xmm0
lea r8, str.REGISTRYMACHINE_s
mov r9, rcx
mov edx, 0x104
lea rcx, [rbp - 0x50]
mov edi, r13d
movups xmmword [rbp - 0x78], xmm0
movups xmmword [rsp + 0x58], xmm1
movups xmmword [rsp + 0x68], xmm1
movups xmmword [rsp + 0x78], xmm1
call fcn.180039600
test eax, eax
jns 0x18007a89b
lea r9, str.Failed_to_construct_full_key_path
mov r8d, 0x4e4
lea rdx, str.SdbpCheckMatchingRegistryEntry
lea ecx, [r13 + 1]
call fcn.18001188c
jmp 0x18007a9ad
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x78]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
lea rax, [rbp - 0x78]
mov dword [rsp + 0x58], 0x30
xorps xmm0, xmm0
mov qword [rsp + 0x68], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x60], r13
mov edx, 0x20019
mov dword [rsp + 0x70], 0x40
lea rcx, [rsp + 0x50]
movdqu xmmword [rsp + 0x78], xmm0
call qword [sym.imp.ntdll.dll_ZwOpenKey]
nop dword [rax + rax]
test eax, eax
jns 0x18007a965
xor r9d, r9d
lea rdx, [rbp - 0x68]
lea r8d, [r9 + 0xc]
lea ecx, [r9 + 1]
call qword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
nop dword [rax + rax]
test eax, eax
jns 0x18007a938
lea r9, str.Failed_to_get_processor_architecture___x_
mov dword [rsp + 0x20], eax
mov r8d, 0x507
lea rdx, str.SdbpCheckMatchingRegistryEntry
mov ecx, 1
call fcn.18001188c
jmp 0x18007a9ad
cmp word [rbp - 0x68], 9
je 0x18007a946
mov edi, 1
jmp 0x18007a9ad
lea r8, [rsp + 0x58]
mov edx, 0x20219
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntdll.dll_ZwOpenKey]
nop dword [rax + rax]
test eax, eax
js 0x18007a93f
mov rax, qword [rbp + 0x248]
mov r9, r12
mov rcx, qword [rsp + 0x50]
mov r8d, r14d
mov qword [rsp + 0x40], rsi
mov rdx, r15
mov qword [rsp + 0x38], rax
mov rax, qword [rbp + 0x240]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp + 0x238]
mov qword [rsp + 0x28], rax
mov eax, dword [rbp + 0x230]
mov dword [rsp + 0x20], eax
call fcn.18007a9f0
mov edi, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x18007a9c3
call qword [sym.imp.ntdll.dll_ZwClose]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.180024680
add rsp, 0x2d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret