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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x60
lea rax, str.ExistingPageFiles
mov dword [rbp - 0x10], 0x240022
mov qword [rbp - 8], rax
mov rbx, rdx
lea rax, str.TempPageFile
mov dword [rbp - 0x20], 0x1a0018
mov sil, cl
mov qword [rbp - 0x18], rax
lea rdx, [rbp - 0x30]
xor dil, dil
lea rcx, [0x140027430]
call fcn.14000a1b4
test eax, eax
js 0x14000a3af
test rbx, rbx
je 0x14000a332
movzx eax, word [rbp - 0x30]
cmp word [rbx], ax
jne 0x140011fbe
mov rdx, qword [rbp - 0x28]
mov r8d, eax
mov rcx, qword [rbx + 8]
call qword [sym.imp.ntdll.dll_RtlCompareMemory]
nop dword [rax + rax]
movzx ecx, word [rbp - 0x30]
cmp rcx, rax
jne 0x140011fbe
mov rcx, qword [0x140027450]
lea rdx, [rbp - 0x20]
test sil, sil
jne 0x140011fc6
call qword [sym.imp.ntdll.dll_NtDeleteValueKey]
nop dword [rax + rax]
movzx eax, word [rbp - 0x30]
lea rdx, [rbp - 0x10]
mov rcx, qword [0x140027450]
mov r9d, 7
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rax, qword [rbp - 0x28]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtSetValueKey]
nop dword [rax + rax]
mov ebx, eax
test dil, dil
jne 0x140011ff6
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rbp - 0x28]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov eax, ebx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov dil, 1
jmp 0x14000a332
mov r9d, 4
mov dword [rbp + 0x20], 1
lea rax, [rbp + 0x20]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtSetValueKey]
nop dword [rax + rax]
nop
jmp 0x14000a352
mov rcx, qword [0x140027450]
call qword [sym.imp.ntdll.dll_NtFlushKey]
nop dword [rax + rax]
nop
jmp 0x14000a38e
Function at 0x14000a660
Capabilities:
Get process heap flags

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
call qword [sym.imp.ntdll.dll_RtlGetNtSystemRoot]
nop dword [rax + rax]
mov rdx, rax
lea rcx, [0x140027350]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
movzx eax, word [0x140027892]
mov word [rsp + 0x20], bx
add ax, 0x14
add ax, word [0x140027352]
movzx r8d, ax
mov word [rsp + 0x22], r8w
mov rcx, qword gs:[0x60]
mov edx, dword [0x1400278a8]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x1400121f0
lea rdx, [0x140027350]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeStringToString]
nop dword [rax + rax]
lea rdx, str._system32_
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
nop dword [rax + rax]
lea rdx, [0x140027890]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeStringToString]
nop dword [rax + rax]
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [0x140027898]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
movups xmm0, xmmword [rsp + 0x20]
movdqu xmmword [0x140027890], xmm0
mov eax, ebx
add rsp, 0x30
pop rbx
ret
mov ebx, 0xc0000017
jmp 0x14000a74f
Function at 0x14000acd8
Capabilities:
Encode data using xor
Hash data with crc32
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140026730]
xor rax, rsp
mov qword [rbp - 0x10], rax
lea rax, str.PagefileHybridPriority
mov dword [rbp - 0x48], 0x2e002c
mov qword [rbp - 0x40], rax
lea r9, [rbp - 0x38]
lea rax, [rbp - 0x50]
mov rdi, r8
mov r14, rdx
mov qword [rsp + 0x28], rax
mov esi, ecx
mov dword [rsp + 0x20], 0x24
mov rcx, qword [0x140027450]
lea rdx, [rbp - 0x48]
mov r8d, 4
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
test eax, eax
jns 0x1400121fa
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140010a60
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
cmp dword [rbp - 0x38], 3
jne 0x1400122b9
mov r8d, 0x18
cmp dword [rbp - 0x34], r8d
jne 0x1400122b9
lea rcx, [rbp - 0x2c]
lea edx, [r8 - 4]
mov al, byte [rbp - 0x30]
xor byte [rcx], al
inc rcx
sub rdx, 1
jne 0x14001221c
cmp dword [rbp - 0x2c], 3
jne 0x1400122af
cmp byte [rbp - 0x24], 1
ja 0x1400122af
mov ebx, dword [rbp - 0x30]
xor ecx, ecx
and dword [rbp - 0x30], edx
lea rdx, [rbp - 0x30]
call qword [sym.imp.ntdll.dll_RtlComputeCrc32]
nop dword [rax + rax]
mov dword [rbp - 0x30], eax
cmp eax, ebx
jne 0x1400122af
movzx r8d, byte [rbp - 0x24]
xor edx, edx
test r8b, r8b
je 0x140012277
movzx ecx, word [rbp + rdx*8 - 0x1c]
dec ecx
cmp ecx, 0xfd
ja 0x1400122af
inc edx
cmp edx, r8d
jb 0x140012261
xor ecx, ecx
mov edx, r8d
test r8b, r8b
je 0x1400122b9
cmp dword [rbp + rcx*8 - 0x20], esi
je 0x14001228d
inc ecx
cmp ecx, edx
jb 0x140012281
cmp ecx, edx
jae 0x1400122b9
mov ecx, dword [rbp + rcx*8 - 0x1c]
movzx eax, cx
mov dword [r14], eax
test rdi, rdi
je 0x1400122a8
shr ecx, 0x10
and ecx, 1
mov dword [rdi], ecx
xor eax, eax
jmp 0x14000ad52
mov eax, 0xc000007b
jmp 0x14000ad52
mov eax, 0xc0000225
jmp 0x14000ad52

Function at 0x14000af18
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140026730]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, r8
mov dword [rsp + 0x20], 5
mov rdi, rdx
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
mov r9d, 0x18
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
nop dword [rax + rax]
mov r8d, eax
test eax, eax
js 0x1400122c4
mov rax, qword [rsp + 0x40]
mov qword [rbx], rax
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140010a60
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov eax, 1
lock xadd dword [0x140027960], eax
inc eax
mov ecx, 0x40
cdq
idiv ecx
lea rax, [0x140027960]
movsxd rcx, edx
add rcx, rcx
mov dword [rax + rcx*8 + 8], 0x10ad
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], rdi
mov eax, r8d
jmp 0x14000af70
Function at 0x14000c5dc
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x140026730]
xor rax, rsp
mov qword [rbp + 0x170], rax
and qword [rsp + 0x48], 0
lea rax, section..rdata
xorps xmm0, xmm0
mov qword [rsp + 0x50], rax
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], 0x30
mov edx, 0xf003f
mov dword [rsp + 0x58], 0x40
lea rcx, [rsp + 0x30]
movdqu xmmword [rsp + 0x60], xmm0
call qword [sym.imp.ntdll.dll_NtOpenKey]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x14001282a
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140010a60
mov rbx, qword [rsp + 0x290]
add rsp, 0x280
pop rbp
ret
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x70]
mov r8d, 2
mov dword [rsp + 0x20], 0x200
lea rdx, [0x140019c80]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov eax, dword [0x140026760]
test ebx, ebx
cmovns eax, dword [rsp + 0x7c]
mov dword [0x140026760], eax
jmp 0x14000c652
Function at 0x14000cd10
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push r12
push r14
push r15
sub rsp, 0x40
xor ebp, ebp
mov edx, 0x14c
mov r15d, ebp
cmp cx, dx
je 0x14000cd54
movzx ecx, cx
mov r12b, 1
sub ecx, edx
je 0x14000cd4b
cmp ecx, 0x78
jne 0x14000cd57
lea r15, [0x140019a80]
jmp 0x14000cd57
lea r15, [0x140019a70]
jmp 0x14000cd57
xor r12b, r12b
mov qword [rsp + 0x60], rsi
lea rbx, [0x1400190b0]
mov qword [rsp + 0x68], rdi
nop dword [rax + rax]
test r12b, r12b
je 0x14000ceb8
movzx ecx, word [r15]
mov eax, 0x18
sub eax, ecx
mov rcx, qword gs:[0x60]
cdq
mov esi, eax
xor esi, edx
mov rcx, qword [rcx + 0x30]
sub esi, edx
add si, si
xor edx, edx
movzx edi, si
add si, word [rbx + 0x12]
add di, word [rbx + 2]
movzx r8d, di
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
xorps xmm0, xmm0
movzx r8d, si
movups xmmword [rsp + 0x20], xmm0
mov word [rsp + 0x22], di
xor edx, edx
mov qword [rsp + 0x28], rax
mov rcx, qword gs:[0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
cmp qword [rsp + 0x28], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x32], si
mov qword [rsp + 0x38], rax
je 0x14000cf1b
test rax, rax
je 0x14000cefb
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_RtlCopyUnicodeString]
nop dword [rax + rax]
lea rdx, [rbx + 0x10]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_RtlCopyUnicodeString]
nop dword [rax + rax]
lea r8, [rsp + 0x20]
mov rdx, r15
lea rcx, [0x140019a70]
call fcn.140018080
lea r8, [rsp + 0x30]
mov rdx, r15
lea rcx, [0x140019a70]
call fcn.140018080
lea rsi, [rsp + 0x20]
lea r14, [rsp + 0x30]
mov rcx, rsi
mov rdx, r14
call fcn.14000cf30
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rsi + 8]
mov edi, eax
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [r14 + 8]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
jmp 0x14000cec6
lea rdx, [rbx + 0x10]
mov rcx, rbx
call fcn.14000cf30
mov edi, eax
test edi, edi
js 0x14000ced9
inc ebp
add rbx, 0x20
cmp ebp, 0x4e
jb 0x14000cd70
mov eax, edi
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov eax, 0xc0000017
jmp 0x14000cedb
Function at 0x14000cf30
Capabilities:
Delete registry key
Query or enumerate registry key
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x140026730]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rbx, rcx
xor r14d, r14d
mov r8, rcx
mov qword [rbp - 0x29], r14
lea rcx, [rbp - 0x29]
mov qword [rbp - 0x21], r14
mov r9b, 1
mov rdi, rdx
call fcn.14000d0e0
cmp eax, 0xc0000022
je 0x140013008
mov qword [rsp + 0xd0], rsi
cmp eax, 0xc0000035
je 0x14000d033
test eax, eax
js 0x14001305c
movzx eax, word [rdi]
lea rdx, [0x140026718]
mov rcx, qword [rbp - 0x29]
mov r9d, 6
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rax, qword [rdi + 8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtSetValueKey]
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 0x14000d008
xor r9d, r9d
lea rcx, [rbp - 0x21]
mov r8, rdi
call fcn.14000d0e0
mov ebx, eax
test eax, eax
js 0x14001306c
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov eax, ebx
mov rsi, qword [rsp + 0xd0]
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140010a60
mov rbx, qword [rsp + 0xd8]
add rsp, 0xa0
pop r14
pop rdi
pop rbp
ret
movups xmm0, xmmword [rbx]
lea rax, [rbp - 0x11]
mov dword [rbp - 1], 0x30
lea r8, [rbp - 1]
mov qword [rbp + 7], r14
movups xmmword [rbp - 0x11], xmm0
mov dword [rbp + 0x17], 0x140
mov edx, 0x3001f
xorps xmm0, xmm0
mov qword [rbp + 0xf], rax
lea rcx, [rbp - 0x29]
movdqu xmmword [rbp + 0x1f], xmm0
call qword [sym.imp.ntdll.dll_NtOpenKey]
nop dword [rax + rax]
test eax, eax
js 0x14000d00a
mov rcx, qword [rbp - 0x29]
lea rax, [rbp - 0x19]
mov r9d, 0xc
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x2f]
lea edx, [r9 - 7]
call qword [sym.imp.ntdll.dll_NtQueryKey]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x29]
mov esi, eax
test eax, eax
js 0x140013012
mov eax, dword [rbp + 0x33]
and al, 3
cmp al, 2
je 0x140013025
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
jmp 0x14000cfdf
mov eax, 0xc0000022
jmp 0x14000d012
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov eax, esi
jmp 0x14000d00a
call qword [sym.imp.ntdll.dll_NtDeleteKey]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x29]
mov esi, eax
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
test esi, esi
js 0x14001301e
mov r9b, 1
lea rcx, [rbp - 0x29]
mov r8, rbx
call fcn.14000d0e0
nop
jmp 0x14000cf91
cmp eax, 0xc0000035
jne 0x14000d00a
jmp 0x14000cfdf
cmp eax, 0xc0000035
je 0x14001307e
cmp eax, 0xc0000022
jne 0x14000d008
mov ebx, r14d
jmp 0x14000d008
Function at 0x14000e240
Capabilities:
Get system information on windows

Disassembly:
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x30], rbx
mov qword [rbp + 0x38], rdi
mov rax, qword [0x140026730]
xor rax, rbp
mov qword [rbp + 0x10], rax
and qword [rbp + 8], 0
lea rax, [rbp]
xor r9d, r9d
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
lea rdx, [rbp + 8]
mov ecx, 0xe6
lea edi, [r9 + 8]
mov r8d, edi
call qword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
nop dword [rax + rax]
mov ecx, eax
cmp eax, 0xc0000023
jne 0x14000e333
mov edx, dword [rbp]
lea rcx, [rdx + 0xf]
cmp rcx, rdx
ja 0x14000e2b6
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call sub.ntdll.dll___chkstk
sub rsp, rcx
lea rax, [rbp]
mov r8d, edi
mov ecx, 0xe6
mov qword [rsp + 0x28], rax
lea rbx, [rsp + 0x30]
mov dword [rsp + 0x20], edx
mov r9, rbx
lea rdx, [rbp + 8]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformationEx]
nop dword [rax + rax]
mov ecx, eax
test eax, eax
js 0x14000e333
mov edx, dword [rbx]
xor edi, edi
test dx, dx
je 0x14000e333
mov r8, rbx
bt edx, 0x11
jae 0x14000e325
bt edx, 0x12
jb 0x14000e325
bt edx, 0x14
jae 0x14000e325
movzx ecx, word [r8]
call fcn.14000cd10
mov ecx, eax
test eax, eax
js 0x14000e333
inc edi
lea r8, [rbx + rdi*4]
mov edx, dword [r8]
test dx, dx
jne 0x14000e304
mov eax, ecx
mov rcx, qword [rbp + 0x10]
xor rcx, rbp
call fcn.140010a60
mov rbx, qword [rbp + 0x30]
mov rdi, qword [rbp + 0x38]
lea rsp, [rbp + 0x20]
pop rbp
ret
Function at 0x140010784
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov ebx, dword [0x1400273f0]
shl ebx, 0xd
add ebx, 0x30
xor esi, esi
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8d, ebx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x14001082a
lea r9, [rsp + 0x50]
mov r8d, ebx
mov rdx, rax
mov ecx, 0x8a
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
nop dword [rax + rax]
mov ebp, eax
test eax, eax
js 0x1400138f8
inc esi
cmp esi, 2
jb 0x1400107a6
test ebp, ebp
js 0x140010807
cmp dword [rdi + 0xc], 1
ja 0x14001392d
test rdi, rdi
je 0x14001082a
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 rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
cmp ebp, 0xc0000023
jne 0x14001080c
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 ebx, dword [rsp + 0x50]
xor edi, edi
jmp 0x1400107f2
and dword [rsp + 0x30], 0
lea rcx, [0x140022398]
and dword [rsp + 0x28], 0
xor r9d, r9d
and qword [rsp + 0x20], 0
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntdll.dll_NtUpdateWnfStateData]
nop dword [rax + rax]
nop
jmp 0x140010807

Function at 0x140010e3c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140026730]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rcx, qword [0x140027450]
lea rax, str.DedicatedMemoryPagefileSizeMB
mov qword [rbp - 0x38], rax
lea r9, [rbp - 0x20]
lea rax, str.Dedicated_memory_pagefile
mov dword [rbp - 0x40], 0x3c003a
mov qword [rbp - 0x28], rax
lea rdx, [rbp - 0x40]
lea rax, [rbp - 0x48]
mov dword [rbp - 0x30], 0x340032
mov qword [rsp + 0x28], rax
mov r8d, 4
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
test eax, eax
js 0x140010eec
cmp dword [rbp - 0x20], 4
jne 0x140010ee7
cmp dword [rbp - 0x1c], 4
jne 0x140010ee7
mov eax, dword [rbp - 0x18]
lea r8, [rbp - 0x50]
shl rax, 0x14
lea rdx, [rbp - 0x50]
mov r9d, 0x800000
mov qword [rbp - 0x50], rax
lea rcx, [rbp - 0x30]
call qword [sym.imp.ntdll.dll_NtCreatePagingFile]
nop dword [rax + rax]
jmp 0x140010eec
mov eax, 0xc000000d
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140010a60
add rsp, 0x80
pop rbp
ret
Function at 0x140013e38
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword gs:[0x60]
mov edx, 8
mov rcx, qword [rcx + 0x30]
lea r8d, [rdx + 0x58]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x140013e74
mov eax, 0xc0000017
add rsp, 0x20
pop rbx
ret
mov r8d, 0x28
xor edx, edx
mov word [rax + 0x12], r8w
mov rcx, qword gs:[0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov qword [rbx + 0x18], rax
test rax, rax
jne 0x140013ec3
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]
jmp 0x140013e68
lea rcx, [rbx + 0x20]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
lea rcx, [rbx + 0x10]
lea rdx, str.___:pagefile.sys
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
nop dword [rax + rax]
mov rax, qword [rbx + 0x18]
mov ecx, 0x3f
mov word [rax + 8], cx
or dword [rbx + 0x5c], 6
call fcn.140013990
mov rax, qword [0x140027430]
lea rcx, [0x140027430]
inc dword [0x14002742c]
cmp qword [rax + 8], rcx
je 0x140013f23
mov ecx, 3
int 0x29
mov qword [rbx + 8], rcx
mov rcx, rbx
mov qword [rbx], rax
mov qword [rax + 8], rbx
mov qword [0x140027430], rbx
add rsp, 0x20
pop rbx
jmp fcn.14000a098

Function at 0x140013f48
Capabilities:
Set file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
xor esi, esi
mov qword [rbp - 0x20], rcx
xorps xmm0, xmm0
mov dword [rbp - 0x30], 0x30
lea r9, [rbp - 0x40]
mov qword [rbp - 0x28], rsi
lea r8, [rbp - 0x30]
mov edx, 0x10000
lea r14d, [rsi + 0x40]
mov dword [rax - 0x60], r14d
lea rcx, [rbp + 0x28]
mov dword [rax - 0x68], 7
mov dword [rbp - 0x18], r14d
movdqu xmmword [rbp - 0x10], xmm0
call qword [sym.imp.ntdll.dll_NtOpenFile]
nop dword [rax + rax]
lea ebx, [rsi + 1]
mov edi, eax
test eax, eax
jns 0x140013fe3
mov eax, ebx
lock xadd dword [0x140027960], eax
add eax, ebx
cdq
idiv r14d
lea rax, [0x140027960]
movsxd rcx, edx
add rcx, rcx
mov dword [rax + rcx*8 + 8], 0x105b
mov dword [rax + rcx*8 + 0xc], edi
mov qword [rax + rcx*8 + 0x10], rsi
jmp 0x14001406f
mov rcx, qword [rbp + 0x28]
lea r8, [rbp + 0x20]
mov r9d, ebx
mov byte [rbp + 0x20], bl
lea rdx, [rbp - 0x40]
mov dword [rsp + 0x20], 0xd
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
nop dword [rax + rax]
mov edi, eax
mov eax, ebx
lock xadd dword [0x140027960], eax
add eax, ebx
lea r8, [0x14002796c]
cdq
lea r9, [0x140027968]
idiv r14d
mov r10d, edi
mov r11d, 0x106e
movsxd rax, edx
lea rdx, [0x140027970]
mov rcx, rax
shl rcx, 4
mov rbx, rcx
test edi, edi
jns 0x140014050
mov r11d, 0x1076
add rax, rax
mov dword [r9 + rax*8], r11d
mov dword [r8 + rbx], r10d
mov qword [rcx + rdx], rsi
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
lea r11, [rsp + 0x70]
mov eax, edi
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140014214
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x140026730]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
and qword [rbp - 0x78], 0
lea rax, str.RegistryMachineSYSTEMCurrentControlSetControl
mov qword [rsp + 0x48], rax
lea r8, [rbp - 0x80]
lea rax, str.SystemBootDevice
mov dword [rsp + 0x40], 0x660064
mov qword [rsp + 0x58], rax
mov rdi, rcx
lea rax, str.ramdisk
mov dword [rsp + 0x50], 0x220020
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x38]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x60], 0x10000e
xorps xmm0, xmm0
mov qword [rbp - 0x70], rax
mov edx, 0x20019
mov dword [rbp - 0x80], 0x30
mov dword [rbp - 0x68], 0x40
movdqu xmmword [rbp - 0x60], xmm0
call qword [sym.imp.ntdll.dll_NtOpenKey]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x14001433e
mov ecx, 0x210
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x50]
mov dword [rsp + 0x20], ecx
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x30], ecx
mov r8d, 2
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x14001433e
cmp dword [rbp - 0x4c], 1
je 0x14001430c
mov ebx, 0xc0000225
jmp 0x14001433e
lea rdx, [rbp - 0x44]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
mov r8b, 1
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlPrefixUnicodeString]
nop dword [rax + rax]
mov byte [rdi], al
xor ebx, ebx
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140014354
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.140010a60
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1400150d8
Capabilities:
Get file attributes

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140026730]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rdx
mov dword [rsp + 0x20], 5
lea rdx, [rsp + 0x30]
mov r9d, 0x18
lea r8, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
nop dword [rax + rax]
test eax, eax
js 0x140015120
mov rcx, qword [rsp + 0x40]
mov qword [rbx], rcx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140010a60
add rsp, 0x60
pop rbx
ret

Function at 0x14001513c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x60
mov rax, qword [0x140026730]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rcx, qword [0x1400273f8]
lea rax, str.PagefileTooSmall
mov dword [rsp + 0x38], 0x220020
lea r9, [r11 - 0x20]
mov qword [r11 - 0x28], rax
lea rdx, [r11 - 0x30]
lea rax, [r11 - 0x38]
xor ebx, ebx
mov qword [r11 - 0x40], rax
mov dword [rsp + 0x20], 0x10
lea r8d, [rbx + 4]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
test eax, eax
js 0x1400151ad
cmp dword [rsp + 0x48], 0xb
jne 0x1400151ad
cmp dword [rsp + 0x4c], 8
cmove rbx, qword [rsp + 0x50]
mov rax, rbx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140010a60
add rsp, 0x60
pop rbx
ret

Function at 0x1400151cc
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x140026730]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov ecx, 0x210
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rdi, r9
mov dword [rsp + 0x20], ecx
lea r9, [rsp + 0x60]
mov rbx, r8
mov dword [rsp + 0x30], ecx
mov rcx, qword [0x1400273f8]
mov r8d, 2
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
test eax, eax
js 0x140015298
cmp dword [rsp + 0x64], 2
jne 0x1400152e3
movzx eax, word [rsp + 0x30]
lea r8, [rsp + 0x38]
sub ax, 0xc
mov dword [rsp + 0x38], 0x2040000
mov word [rsp + 0x48], ax
lea rdx, [rsp + 0x48]
mov word [rsp + 0x4a], ax
xor r9d, r9d
lea rax, [rsp + 0x6c]
xor ecx, ecx
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0x170]
mov qword [rsp + 0x40], rax
call qword [sym.imp.ntdll.dll_RtlExpandEnvironmentStrings_U]
nop dword [rax + rax]
test eax, eax
js 0x140015298
mov rcx, qword [rsp + 0x40]
test rcx, rcx
jne 0x1400152a0
test rbx, rbx
je 0x1400152c0
mov rcx, rbx
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
call qword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
nop dword [rax + rax]
neg al
sbb eax, eax
not eax
and eax, 0xc0000001
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.140010a60
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x490
pop rdi
pop rsi
pop rbp
ret
cmp dword [rsp + 0x64], 1
jne 0x140015298
lea rcx, [rsp + 0x6c]
jmp 0x1400152a0