joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004a80
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov qword [rsp + 0x78], 0
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x68], 0
cmp qword [rsp + 0x38], 0
je 0x140004af0
cmp qword [rsp + 0xa8], 0
jne 0x140004af5
jmp 0x140004cf7
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x40], 0xffffffffffffffff
inc qword [rsp + 0x40]
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x40]
cmp byte [rax + rcx], 0
jne 0x140004b0e
mov rax, qword [rsp + 0x40]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x40
jbe 0x140004b3b
jmp 0x140004cf7
mov edx, 0x40
mov rcx, qword [rsp + 0x38]
call fcn.140004d80
movzx eax, al
test eax, eax
je 0x140004b56
jmp 0x140004cf7
mov rax, qword [rsp + 0x38]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140004b6a
jmp 0x140004cf7
mov rax, qword [rsp + 0x38]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0xa0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x38]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0xa0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x48]
cmp dword [rax], 0x4550
je 0x140004bb4
jmp 0x140004cf7
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x140004be8
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx + rax + 0x88]
add rax, qword [rsp + 0xa0]
mov qword [rsp + 0x28], rax
jmp 0x140004c07
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax + 0x78]
add rax, qword [rsp + 0xa0]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x20]
add rax, qword [rsp + 0xa0]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x1c]
add rax, qword [rsp + 0xa0]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x24]
add rax, qword [rsp + 0xa0]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x24], 0
jmp 0x140004c5a
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x24], eax
jae 0x140004ced
xor eax, eax
mov word [rsp + 0x20], ax
mov qword [rsp + 0x50], 0
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx + rax*4]
add rax, qword [rsp + 0xa0]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140004ce8
mov eax, dword [rsp + 0x30]
mov r8d, eax
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x50]
call sub.ntoskrnl.exe_strncmp
test eax, eax
jne 0x140004ce8
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x68]
movzx eax, word [rcx + rax*2]
mov word [rsp + 0x20], ax
movzx eax, word [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
mov eax, dword [rcx + rax*4]
add rax, qword [rsp + 0xa0]
mov qword [rsp + 0x78], rax
jmp 0x140004ced
jmp 0x140004c50
xor eax, eax
test eax, eax
jne 0x140004a9a
mov rax, qword [rsp + 0x78]
add rsp, 0x98
ret
Function at 0x1400056b0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2c0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x70], 0
mov qword [rsp + 0x38], 0
cmp qword [rsp + 0x2d0], 0
jne 0x1400056fd
jmp 0x1400058e2
lea r9, [rsp + 0x70]
mov r8d, dword [rsp + 0x70]
xor edx, edx
mov ecx, 0xb
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x70], 0
jne 0x140005724
jmp 0x1400058e2
mov eax, dword [rsp + 0x70]
mov r8d, 0x6c747373
mov edx, eax
mov ecx, 0x100
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool2]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14000574d
jmp 0x1400058e2
mov eax, dword [rsp + 0x70]
mov edx, eax
mov rcx, qword [rsp + 0x38]
call fcn.140005cf0
lea r9, [rsp + 0x70]
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x38]
mov ecx, 0xb
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x140005787
jmp 0x1400058e2
mov rax, qword [rsp + 0x38]
add rax, 8
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x1400058d8
mov rax, qword [rsp + 0x38]
mov eax, dword [rax]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x30], 0
jmp 0x1400057c0
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x30], eax
jae 0x1400058d8
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx + rax + 0x10]
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax + 0x18]
mov dword [rsp + 0x44], eax
mov rcx, qword [rsp + 0x58]
call fcn.140005be0
movzx eax, al
test eax, eax
je 0x1400058d3
cmp dword [rsp + 0x44], 0
je 0x1400058d3
lea rax, [rsp + 0xa0]
mov rdi, rax
xor eax, eax
mov ecx, 0x20a
rep stosb byte [rdi], al
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x48]
lea rax, [rcx + rax + 0x28]
mov rdx, rax
lea rcx, [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x80], rax
mov eax, 0x208
mov word [rsp + 0x7a], ax
xor r8d, r8d
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
test eax, eax
jne 0x1400058d3
mov rax, qword [rsp + 0x2d0]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov r9, qword [rsp + 0x2d8]
mov r8d, dword [rsp + 0x44]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0xa0]
mov rax, qword [rsp + 0x68]
call qword [0x14000f488]
movzx eax, al
test eax, eax
jne 0x1400058d3
jmp 0x1400058d8
jmp 0x1400057b6
xor eax, eax
test eax, eax
jne 0x1400056ed
cmp qword [rsp + 0x38], 0
je 0x1400058fa
mov edx, 0x6c747373
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.140001860
add rsp, 0x2c0
pop rdi
ret
Function at 0x140005ff0
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x410
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x400], rax
mov byte [rsp + 0x30], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0xb0]
mov rdi, rax
xor eax, eax
mov ecx, 0x348
rep stosb byte [rdi], al
lea rcx, [rsp + 0xb0]
call fcn.140006330
movzx eax, al
test eax, eax
jne 0x14000605d
jmp 0x140006267
lea rax, [rsp + 0x2f8]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
lea rax, [rsp + 0x98]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rax, [rsp + 0x88]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rdx, qword [rsp + 0x420]
lea rcx, [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r9, qword [rsp + 0x40]
lea r8, [0x14000e4d0]
lea rdx, [0x14000e4f0]
mov ecx, 0x10
call fcn.140003ea0
mov dword [rsp + 0x58], 0x30
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x70], 0x40
lea rax, [rsp + 0x98]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
lea r8, [rsp + 0x58]
mov edx, 1
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jge 0x140006161
lea r8, [0x14000e510]
lea rdx, [0x14000e4f0]
mov ecx, 0x10
call fcn.140003ea0
jmp 0x140006267
mov dword [rsp + 0x48], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 2
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x48], 0
jne 0x1400061a7
jmp 0x140006267
mov eax, dword [rsp + 0x48]
mov r8d, 0x554d4c44
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool2]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x1400061d0
jmp 0x140006267
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x38]
mov r8d, 2
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jge 0x14000620d
jmp 0x140006267
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x38]
add rcx, 0xc
mov edx, dword [rsp + 0x430]
mov r9d, eax
mov r8, rcx
mov rcx, qword [rsp + 0x428]
call fcn.140006cc0
mov r9, qword [rsp + 0x428]
lea r8, [0x14000e530]
lea rdx, [0x14000e4f0]
mov ecx, 0x10
call fcn.140003ea0
mov byte [rsp + 0x30], 1
xor eax, eax
test eax, eax
jne 0x140006030
cmp qword [rsp + 0x38], 0
je 0x14000627c
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp qword [rsp + 0x50], 0
je 0x14000628f
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
movzx eax, byte [rsp + 0x30]
mov rcx, qword [rsp + 0x400]
xor rcx, rsp
call fcn.140001860
add rsp, 0x410
pop rdi
ret
Function at 0x1400086e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
sub rsp, 0x138
movaps xmmword [rsp + 0x70], xmm10
movaps xmmword [rsp + 0x40], xmm7
lea rax, [rsp + 0x100]
movaps xmmword [rax - 0x80], xmm11
movaps xmmword [rax - 0x50], xmm14
movaps xmmword [rsp + 0x30], xmm6
movaps xmmword [rax - 0x60], xmm13
movaps xmmword [rsp + 0x50], xmm8
movaps xmmword [rax - 0x40], xmm15
movaps xmmword [rsp + 0x60], xmm9
movaps xmmword [rax - 0x70], xmm12
mov qword [rax - 8], rbp
mov rbp, rsp
mov qword [rax], rbx
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], r13
mov qword [rax + 0x30], r15
mov qword [rax + 0x18], r12
mov qword [rax + 0x28], r14
mov qword [rbp + 0xd8], rcx
lea rax, [r8 - 0x30]
mov qword [rbp + 0xe0], rax
mov rbx, qword gs:[0x188]
mov qword [r8 + 0x20], rsp
mov rsi, qword [rbx + 0x90]
mov qword [rbp + 0xd0], rsi
cli
mov qword [rbx + 0x28], r8
lea r9, [r8 + 0x50]
mov qword [rbx + 0x38], r9
test qword [0x140011880], 1
jne 0x14000879c
mov rdi, qword gs:[8]
mov qword [rdi + 4], r8
jmp 0x1400087ab
mov rcx, qword [0x140011888]
add rcx, 8
mov qword gs:[rcx], r8
mov ecx, 0x6000
sub r9, rcx
mov qword gs:[0x1a8], r8
mov qword [rbx + 0x30], r9
lea rsp, [r8 - 0x190]
mov rdi, rsp
mov ecx, 0x32
rep movsq qword [rdi], qword [rsi]
lea rbp, [rsi - 0x110]
ldmxcsr dword [rbp - 0x54]
mov r11, qword [rbp + 0xf8]
mov rbp, qword [rbp + 0xd8]
mov rax, qword [rdx + 0x10]
mov rsp, qword [rdx + 8]
mov rcx, qword [rdx]
movss xmm0, dword [rdx + 0x18]
movss xmm1, dword [rdx + 0x20]
movss xmm2, dword [rdx + 0x28]
movss xmm3, dword [rdx + 0x30]
cmp qword [rdx + 0x38], 0
je 0x140008815
mov r13, qword [rdx + 0x38]
mov r9, rbp
test qword [0x140011880], 1
jne 0x14000882b
swapgs
sysretq
mov rbp, qword [0x140011888]
add rbp, 0x18
mov r8d, dword gs:[rbp]
bt r8d, 1
jb 0x140008880
mov rbp, qword gs:[0x188]
mov rbp, qword [rbp + 0x220]
mov rbp, qword [rbp + 0x388]
bt ebp, 0
jae 0x14000887d
bt r8d, 0
jb 0x14000886d
bts rbp, 0x3f
jmp 0x14000887d
mov r10, qword [0x140011888]
add r10, 0x18
and dword gs:[r10], 0xfffffffe
mov cr3, rbp
mov rbp, r9
bt r8d, 1
jb 0x14000889a
mov r8, qword [0x140011888]
add r8, 0x2a
verw word gs:[r8]
swapgs
sysretq
ret
Function at 0x140008970
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xe0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0x90]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
lea rax, [rsp + 0xc0]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rax, [rsp + 0x78]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x90], 0x30
mov qword [rsp + 0x98], 0
mov dword [rsp + 0xa8], 0x240
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], 0
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0x20
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xc0]
lea r8, [rsp + 0x90]
mov edx, 0x80000000
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jge 0x140008a9c
mov eax, dword [rsp + 0x60]
jmp 0x140008bd1
mov dword [rsp + 0x20], 5
mov r9d, 0x18
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0xc0]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jge 0x140008ae1
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [rsp + 0x60]
jmp 0x140008bd1
mov eax, dword [rsp + 0x80]
mov r8d, 0x4153554b
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool2]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x140008b1d
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, 0xc000009a
jmp 0x140008bd1
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jge 0x140008b8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [rsp + 0x60]
jmp 0x140008bd1
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
cmp qword [rsp + 0xf8], 0
je 0x140008bb3
mov rax, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0x68]
mov qword [rax], rcx
cmp qword [rsp + 0x100], 0
je 0x140008bcf
mov rax, qword [rsp + 0x100]
mov ecx, dword [rsp + 0x80]
mov dword [rax], ecx
xor eax, eax
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140001860
add rsp, 0xe0
pop rdi
ret
Function at 0x14000afc0
Capabilities:
Access pe header
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x30], 0xc0000001
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x14000b0bf
mov dword [rsp + 0x44], 0
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x18]
cmp eax, 0x10b
jne 0x14000b023
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x54]
mov dword [rsp + 0x34], eax
jmp 0x14000b02f
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x54]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x70]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwProtectVirtualMemory]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x14000b0bd
mov rdi, qword [rsp + 0x70]
xor eax, eax
mov rcx, qword [rsp + 0x48]
rep stosb byte [rdi], al
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x44]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x70]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwProtectVirtualMemory]
mov dword [rsp + 0x30], eax
lea r9, [0x14000e7c0]
lea r8, [0x14000e7d0]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x14000b0e2
mov dword [rsp + 0x30], 0xc000000d
lea r9, [0x14000e7c0]
lea r8, [0x14000e800]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
jmp 0x14000b10c
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140001860
add rsp, 0x60
pop rdi
ret
Function at 0x14000d0b0
Capabilities:
Access pe header

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x48], 0
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14000d113
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x24], eax
jmp 0x14000d2ae
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x18]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x10b
je 0x14000d136
cmp dword [rsp + 0x30], 0x20b
je 0x14000d145
jmp 0x14000d155
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x34]
mov qword [rsp + 0x40], rax
jmp 0x14000d165
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x40], rax
jmp 0x14000d165
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x24], eax
jmp 0x14000d2ae
lea r9, [rsp + 0x60]
mov r8w, 5
mov dl, 1
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_RtlImageDirectoryEntryToData]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14000d193
cmp dword [rsp + 0x60], 0
jne 0x14000d1c8
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x16]
and eax, 1
test eax, eax
je 0x14000d1b0
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x34], eax
jmp 0x14000d1bb
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x24], eax
jmp 0x14000d2ae
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
sub rcx, rax
mov rax, rcx
add rax, qword [rsp + 0x88]
mov qword [rsp + 0x50], rax
cmp dword [rsp + 0x60], 0
je 0x14000d2a3
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 4]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x14000d216
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x24], eax
jmp 0x14000d2ae
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x60]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x20]
sub rax, 8
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
xor edx, edx
mov ecx, 2
div rcx
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x28]
add rax, 8
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x48]
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x58]
call fcn.14000ce00
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14000d29e
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x24], eax
jmp 0x14000d2ae
jmp 0x14000d1e8
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140001860
add rsp, 0x78
ret
Function at 0x14001470c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rdi
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
and dword [rsp + 0x30], 0
lea rax, [r11 - 0x28]
mov rdi, r9
mov qword [r11 - 0x30], rax
mov ebx, r8d
mov dword [rsp + 0x20], 0x10
lea r9, [r11 - 0x20]
mov r8d, 2
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
nop dword [rax + rax]
test eax, eax
js 0x14001476e
cmp dword [rsp + 0x3c], 4
jne 0x140014769
mov ebx, dword [rsp + 0x44]
jmp 0x14001476e
mov eax, 0xc0000024
mov dword [rdi], ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140001860
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x14001478c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov r14, qword [rsp + 0x80]
mov esi, r8d
and dword [rsp + 0x78], 0
mov rbp, rdx
mov r12, rcx
and qword [r14], 0
movzx eax, word [rdx]
add eax, 0x1f
and eax, 0xfffffff8
lea edi, [rax + r9]
cmp edi, eax
jb 0x1400148f8
mov r8d, 0x62527050
mov edx, edi
mov ecx, 0x200
mov r15d, edi
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x1400148f1
mov r8d, r15d
xor edx, edx
mov rcx, rax
call fcn.14000d680
lea rax, [rsp + 0x78]
mov r15d, 1
mov qword [rsp + 0x28], rax
mov r9, rbx
mov r8d, r15d
mov dword [rsp + 0x20], edi
mov rdx, rbp
mov rcx, r12
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jns 0x1400148c6
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
nop dword [rax + rax]
cmp edi, 0x80000005
je 0x140014864
cmp edi, 0xc0000023
je 0x140014864
mov eax, edi
jmp 0x1400148fd
mov edx, dword [rsp + 0x78]
mov ecx, 0x200
mov r8d, 0x62527050
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x1400148f1
mov r8d, dword [rsp + 0x78]
xor edx, edx
mov rcx, rax
call fcn.14000d680
lea rax, [rsp + 0x78]
mov r9, rbx
mov qword [rsp + 0x28], rax
mov r8d, r15d
mov eax, dword [rsp + 0x78]
mov rdx, rbp
mov rcx, r12
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
nop dword [rax + rax]
mov edi, eax
test eax, eax
js 0x1400148d4
test esi, esi
je 0x1400148ea
cmp dword [rbx + 4], esi
je 0x1400148ea
mov edi, 0xc0000024
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
nop dword [rax + rax]
jmp 0x14001485d
mov qword [r14], rbx
xor eax, eax
jmp 0x1400148fd
mov eax, 0xc000009a
jmp 0x1400148fd
mov eax, 0xc0000095
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140014918
Capabilities:
Set 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 r14
sub rsp, 0x40
xorps xmm0, xmm0
mov rbp, rdx
movzx edx, word [r8]
mov rdi, r8
movups xmmword [rax - 0x18], xmm0
movzx eax, word [r8 + 2]
mov r14, rcx
sub rax, rdx
cmp rax, 2
jb 0x14001498e
mov rax, qword [r8 + 8]
xor esi, esi
shr rdx, 1
lea r9d, [rsi + 1]
mov word [rax + rdx*2], si
mov rdx, rbp
movzx eax, word [r8]
add eax, 2
mov dword [rsp + 0x28], eax
mov rax, qword [r8 + 8]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
nop dword [rax + rax]
mov ebx, eax
jmp 0x140014a0b
lea rcx, [rsp + 0x30]
call fcn.140014be8
xor esi, esi
mov ebx, eax
test eax, eax
js 0x140014a0b
movzx r8d, word [rdi]
mov rdx, qword [rdi + 8]
mov rcx, qword [rsp + 0x38]
mov word [rsp + 0x30], r8w
call fcn.14000d3c0
mov rax, qword [rsp + 0x38]
lea r9d, [rsi + 1]
movzx ecx, word [rsp + 0x30]
xor r8d, r8d
shr rcx, 1
mov rdx, rbp
mov word [rax + rcx*2], si
mov rcx, r14
movzx eax, word [rsp + 0x30]
add eax, 2
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
nop dword [rax + rax]
lea rcx, [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_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 0x140014adc
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, rcx
xorps xmm0, xmm0
lea rcx, [rax - 0x18]
mov rbx, r9
movups xmmword [rax - 0x18], xmm0
mov edi, r8d
call fcn.140001ea0
test eax, eax
js 0x140014b30
mov eax, dword [rsp + 0x70]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov r9d, edi
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret