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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
sub rsp, 0x40
mov rbx, qword [0x140209cb0]
cmp byte [rbx + 0x3190], 0
je 0x14001417c
cmp qword [rbx + 0x3198], 0
mov qword [rax - 0x18], rsi
lea rsi, [rax + 0x10]
mov qword [rax - 0x20], rdi
lea rdi, [rbx + 0x31a0]
je 0x140014164
mov r9d, dword [rdi + 4]
mov qword [rax - 0x10], rbp
xor ebp, ebp
test r9d, r9d
jns 0x14001410b
mov eax, r9d
mov rcx, rdi
cdq
sub eax, edx
mov edx, ebp
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.140015fd0
mov rcx, qword [rsp + 0x50]
mov rdx, rcx
mov dword [rdi], ebp
mov rcx, rdi
mov r8, rsi
call fcn.140002fa0
mov eax, dword [rdi]
lea rcx, [0x140209ca8]
mov r9, qword [rbx + 0x3198]
test eax, eax
lea edx, [rax - 1]
mov rax, qword [rbx + 0x31a8]
cmove edx, ebp
test rax, rax
movsxd r8, edx
mov edx, 1
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
ret
mov rdx, rcx
mov r8, rsi
mov rcx, rdi
call fcn.140002fa0
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
ret
Function at 0x116b8
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
sub rsp, 0x68
test rcx, rcx
je 0x116fb
test rdx, rdx
je 0x116fb
mov rax, cr8
test al, al
jne 0x116fb
and qword [r11 - 0x28], 0
and qword [r11 - 0x30], 0
mov dword [r11 - 0x38], r8d
mov qword [r11 - 0x40], rdx
lea rax, [r11 - 0x18]
xor r9d, r9d
xor edx, edx
xor r8d, r8d
mov qword [r11 - 0x48], rax
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
jmp 0x11700
mov eax, 0xc0000001
add rsp, 0x68
ret

Function at 0x1170c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x68
mov rdx, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
xor ecx, ecx
lea rax, [rsp + 0x20]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rcx
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x30
mov dword [rsp + 0x48], 0x240
mov qword [rsp + 0x40], rax
call qword [sym.imp.ntoskrnl.exe_ZwDeleteFile]
add rsp, 0x68
ret

Function at 0x11760
Capabilities:
Set file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0xb0
mov rbx, rdx
mov rsi, rcx
xor ebp, ebp
xor edx, edx
mov r8d, 0x1018
mov rcx, rbx
mov qword [rax + 0x10], rbp
call fcn.00019aa0
or rcx, 0xffffffffffffffff
lea r8, [0x000dcb30]
xor eax, eax
mov rdi, r8
repne scasw ax, word [rdi]
not rcx
dec rcx
add ecx, ecx
mov dword [rbx + 0x10], ecx
lea rcx, [rbx + 0x14]
sub rcx, r8
movzx eax, word [r8]
mov word [rcx + r8], ax
add r8, 2
cmp ax, bp
jne 0x117b8
lea rcx, [rsp + 0x60]
mov rdx, rsi
mov byte [rbx], 1
mov qword [rbx + 8], rbp
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x50], ebp
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x40], 0x28
mov dword [rsp + 0x38], 1
lea rax, [rsp + 0x60]
mov dword [rsp + 0x30], 1
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x80]
lea rcx, [rsp + 0xc8]
mov edx, 0x110000
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x80], 0x30
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x98], 0x40
mov qword [rsp + 0x90], rax
mov qword [rsp + 0xa0], rbp
mov qword [rsp + 0xa8], rbp
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
cmp eax, ebp
mov edi, eax
jge 0x1187a
mov edx, 0x666c726e
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x118bc
mov rcx, qword [rsp + 0xc8]
lea rdx, [rsp + 0x70]
mov r9d, 0x1018
mov r8, rbx
mov dword [rsp + 0x20], 0xa
call qword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
mov edx, 0x666c726e
mov rcx, rbx
mov edi, eax
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea r11, [rsp + 0xb0]
mov eax, edi
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1194c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rsi
push rdi
push r12
sub rsp, 0xa0
mov rax, qword [0x0001c100]
xor rax, rsp
mov qword [rsp + 0x90], rax
or qword [r11 - 0x80], 0xffffffffffffffff
xor r12d, r12d
mov rsi, r8
mov rdi, rcx
mov rbx, rdx
lea r8d, [r12 + 0x28]
lea rcx, [r11 - 0x60]
xor edx, edx
mov dword [r11 - 0x68], r12d
call fcn.00019aa0
xor eax, eax
lea rcx, [rsp + 0x40]
mov rdx, rbx
mov dword [rsp + 0x30], r12d
mov word [rsp + 0x40], r12w
mov qword [rsp + 0x42], rax
mov dword [rsp + 0x4a], eax
mov word [rsp + 0x4e], ax
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea r8, [rsp + 0x50]
lea rcx, [rsp + 0x38]
mov edx, 0x20019
mov dword [rsp + 0x50], 0x30
mov qword [rsp + 0x58], r12
mov dword [rsp + 0x68], 0x40
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], r12
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, r12d
jl 0x11b09
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x80]
mov qword [rsp + 0x28], rax
lea r8d, [r12 + 2]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
cmp eax, r12d
mov ebx, eax
jge 0x11a48
cmp eax, 0x80000005
je 0x11a48
cmp eax, 0xc0000023
jne 0x11afc
mov edx, dword [rsp + 0x30]
mov ecx, 1
mov r8d, 0x70767069
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rcx, qword [rsp + 0x38]
mov rdi, rax
cmp rax, r12
je 0x11b01
lea rax, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x30]
mov r8d, 2
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
cmp eax, r12d
mov ebx, eax
jge 0x11ab6
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov edx, 0x70767069
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x11b07
cmp dword [rsp + 0x84], 4
mov rcx, rsi
jne 0x11ad9
mov edx, dword [rsp + 0x30]
mov r9d, dword [rdi + 0xc]
lea r8, [0x00019d10]
call fcn.000118e0
jmp 0x11aee
lea r9, [rdi + 0xc]
lea r8, [0x00019d20]
mov edx, 0x400
call fcn.000118e0
mov edx, 0x70767069
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.000196e0
mov rbx, qword [rsp + 0xd8]
add rsp, 0xa0
pop r12
pop rdi
pop rsi
ret
Function at 0x11b34
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x90
mov rbx, rdx
mov rdx, rcx
lea rcx, [rsp + 0x38]
mov rdi, r9
mov esi, r8d
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x48]
mov rdx, rbx
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and qword [rsp + 0x60], 0
and qword [rsp + 0x78], 0
and qword [rsp + 0x80], 0
lea rax, [rsp + 0x38]
lea r8, [rsp + 0x58]
lea rcx, [rsp + 0x30]
mov edx, 0xf003f
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x58], 0x30
mov dword [rsp + 0x70], 0x40
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov ebx, eax
test eax, eax
js 0x11bf3
mov eax, dword [rsp + 0xc0]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x48]
mov dword [rsp + 0x28], eax
mov r9d, esi
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ZwFlushKey]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea r11, [rsp + 0x90]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x11f7c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x2b0
mov rax, qword [0x0001c100]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
or qword [rsp + 0x38], 0xffffffffffffffff
xor eax, eax
xor edi, edi
lea rcx, [rsp + 0x92]
xor edx, edx
mov r8d, 0x206
mov dword [rsp + 0x30], edi
mov word [rsp + 0x40], di
mov qword [rsp + 0x42], rax
mov dword [rsp + 0x4a], eax
mov word [rsp + 0x4e], ax
mov word [rsp + 0x90], di
call fcn.00019aa0
lea rax, [0x000fec80]
lea r8, [rsp + 0x50]
lea rcx, [rsp + 0x38]
mov edx, 0x20019
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x50], 0x30
mov qword [rsp + 0x58], rdi
mov dword [rsp + 0x68], 0x40
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], rdi
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, edi
jge 0x1202c
mov eax, 0xc0000001
jmp 0x121b4
lea rdx, [0x00019d30]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rsp + 0x38]
lea r11, [rsp + 0x30]
mov qword [rsp + 0x28], r11
mov esi, 2
lea r9, [rsp + 0x80]
lea rdx, [rsp + 0x40]
mov r8d, esi
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
cmp eax, edi
jge 0x1208f
cmp eax, 0x80000005
je 0x1208f
cmp eax, 0xc0000023
je 0x1208f
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x12022
mov edx, dword [rsp + 0x30]
mov ecx, 1
mov r8d, 0x50766970
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov ecx, dword [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov rbx, rax
lea rax, [rsp + 0x30]
mov r8d, esi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
mov rcx, qword [rsp + 0x38]
mov r9, rbx
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
cmp eax, edi
jge 0x120fa
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
cmp rbx, rdi
je 0x12022
mov edx, 0x50766970
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x12022
cmp dword [rbx + 4], esi
jne 0x12199
mov esi, 0x104
lea r8, [rbx + 0xc]
lea rcx, [rsp + 0x90]
mov rdx, rsi
call fcn.00011e34
lea rdx, [0x00019d50]
lea rcx, [rsp + 0x90]
call fcn.00011ccc
mov rdx, rsi
lea rcx, [0x000dcb30]
cmp eax, edi
je 0x12181
lea r8, [0x00019cf0]
call fcn.00011e34
lea r8, [0x00019d80]
lea rcx, [0x000dcb30]
mov rdx, rsi
call fcn.00011eac
lea r8, [rsp + 0x90]
lea rcx, [0x000dcb30]
mov rdx, rsi
call fcn.00011eac
mov r11d, dword [rbx + 8]
add r11d, 0x1e
jmp 0x12192
lea r8, [rsp + 0x90]
call fcn.00011e34
mov r11d, dword [rbx + 8]
mov dword [0x000dc2e8], r11d
mov edx, 0x50766970
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
xor eax, eax
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.000196e0
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x12c44
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 0x18], r8
push rdi
sub rsp, 0x60
mov qword [rax + 0x18], 0x1000
lea rax, [rdx - 0x70000000]
mov rbp, rcx
mov rsi, rdx
mov ecx, 0x70000000
cmp rax, 0xfffffff
cmovbe rsi, rcx
mov ecx, dword [0x000fe860]
test ecx, ecx
je 0x12d66
call fcn.00100818
test rax, rax
je 0x12cd2
mov rdi, qword gs:[0x188]
mov ecx, dword [0x000fe85c]
and qword [rsp + 0x28], 0
add rdi, rcx
lea r9, [rsp + 0x30]
xor r8d, r8d
mov bl, byte [rdi]
mov rdx, rsi
mov rcx, rbp
mov byte [rdi], 0
mov qword [rsp + 0x20], 0x30
call rax
mov byte [rdi], bl
jmp 0x12cd7
mov eax, 0xc0000225
test eax, eax
js 0x12d66
mov rax, qword [rsp + 0x38]
cmp rsi, rax
mov rsi, rax
jne 0x12cf3
lea rsi, [rax - 0x10000]
cmp dword [rsp + 0x50], 0x10000
jne 0x12c80
lea r9, [rsp + 0x80]
lea rdx, [rsp + 0x30]
xor r8d, r8d
mov rcx, rbp
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x2000
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
test eax, eax
js 0x12c80
lea r9, [rsp + 0x80]
lea rdx, [rsp + 0x30]
xor r8d, r8d
mov rcx, rbp
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
test eax, eax
js 0x12c80
mov rax, qword [rsp + 0x30]
jmp 0x12d68
xor eax, eax
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x12d84
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0xb0
mov rax, qword [0x0001c100]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov rax, qword [0x000dd158]
and dword [rsp + 0x58], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
test rax, rax
mov rsi, rdx
cmove rax, rdx
lea rdx, [rsp + 0x50]
mov rdi, r8
mov qword [0x000dd158], rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
js 0x12fcf
mov rcx, qword [rsp + 0x50]
mov ebx, 0xc0000001
call qword [0x000dc4f8]
test rax, rax
jne 0x12fc4
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov r9d, 0x1fffff
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov edx, 0x200
mov byte [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
mov ebx, eax
test eax, eax
js 0x12fc4
mov rax, qword [0x000fe398]
test rax, rax
je 0x12e57
mov rcx, qword [0x000fe7c8]
test rcx, rcx
je 0x12e57
mov rdx, qword [0x000fe5a8]
test rdx, rdx
jne 0x12ec9
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
lea rdx, [0x0001a050]
mov rcx, rsi
call fcn.00100008
lea rdx, [0x0001a070]
mov rcx, rsi
mov qword [0x000fe5a8], rax
call fcn.00100008
lea rdx, [0x0001a080]
mov rcx, rsi
mov qword [0x000fe398], rax
call fcn.00100008
lea rcx, [rsp + 0x70]
mov qword [0x000fe7c8], rax
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rax, qword [0x000fe398]
mov rcx, qword [0x000fe7c8]
mov rdx, qword [0x000fe5a8]
mov ebx, 0xc0000001
test rax, rax
je 0x12fb9
test rcx, rcx
je 0x12fb9
test rdx, rdx
je 0x12fb9
mov rcx, qword [rsp + 0x48]
mov rdx, rdi
call fcn.00100148
test rax, rax
je 0x12fb9
mov rcx, qword [0x000fe7c8]
and dword [rsp + 0x40], 0
mov edi, 5
sub eax, ecx
mov byte [rsp + 0xa0], 0xe9
mov qword [rsp + 0x60], rdi
sub eax, edi
cmp dword [0x000fe864], 0
mov qword [rsp + 0x68], rcx
mov dword [rsp + 0xa1], eax
je 0x12f8d
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
lea r9d, [rdi + 0x3b]
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x20], rax
call fcn.00012bb8
mov ebx, eax
test eax, eax
js 0x12fb9
mov rdx, qword [0x000fe7c8]
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
lea r8, [rsp + 0xa0]
mov r9d, edi
mov qword [rsp + 0x20], rax
call fcn.00012b28
cmp dword [0x000fe864], 0
jne 0x12f94
mov ebx, 0xc0000225
jmp 0x12fb9
mov r9d, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x20], rax
call fcn.00012bb8
mov ebx, eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.000196e0
add rsp, 0xb0
pop rdi
pop rsi
pop rbx
ret
Function at 0x12ff4
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0xb0
mov rax, qword [0x0001c100]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov rax, qword [0x000dc918]
and qword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
test rax, rax
mov rsi, rdx
mov rdi, r8
cmove rax, rdx
lea rdx, [rsp + 0x50]
mov qword [0x000dc918], rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
js 0x13221
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov r9d, 0x1fffff
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov edx, 0x200
mov byte [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
mov ebx, eax
test eax, eax
js 0x13216
mov rax, qword [0x000dcb28]
mov ebx, 0xc0000001
test rax, rax
je 0x130ae
mov rcx, qword [0x000dcf48]
test rcx, rcx
je 0x130ae
mov rdx, qword [0x000dcd38]
test rdx, rdx
jne 0x13120
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
lea rdx, [0x0001a050]
mov rcx, rsi
call fcn.00100008
lea rdx, [0x0001a070]
mov rcx, rsi
mov qword [0x000dcd38], rax
call fcn.00100008
lea rdx, [0x0001a080]
mov rcx, rsi
mov qword [0x000dcb28], rax
call fcn.00100008
lea rcx, [rsp + 0x70]
mov qword [0x000dcf48], rax
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rax, qword [0x000dcb28]
mov rcx, qword [0x000dcf48]
mov rdx, qword [0x000dcd38]
test rax, rax
je 0x1320b
test rcx, rcx
je 0x1320b
test rdx, rdx
je 0x1320b
mov rcx, qword [rsp + 0x48]
mov rdx, rdi
call fcn.0010031c
test rax, rax
je 0x1320b
mov rcx, qword [0x000dcf48]
and dword [rsp + 0x40], 0
mov edi, 5
sub eax, ecx
mov byte [rsp + 0xa0], 0xe9
mov qword [rsp + 0x58], rdi
sub eax, edi
cmp dword [0x000fe864], 0
mov qword [rsp + 0x60], rcx
mov dword [rsp + 0xa1], eax
je 0x131df
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
lea r9d, [rdi + 0x3b]
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call fcn.00012bb8
mov ebx, eax
test eax, eax
js 0x1320b
mov rdx, qword [0x000dcf48]
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x68]
lea r8, [rsp + 0xa0]
mov r9d, edi
mov qword [rsp + 0x20], rax
call fcn.00012b28
cmp dword [0x000fe864], 0
jne 0x131e6
mov ebx, 0xc0000225
jmp 0x1320b
mov r9d, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call fcn.00012bb8
mov ebx, eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.000196e0
add rsp, 0xb0
pop rdi
pop rsi
pop rbx
ret
Function at 0x14cf8
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rsi
push rdi
push r12
push r13
sub rsp, 0x60
mov rdi, rdx
xor r13d, r13d
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
test rax, rax
je 0x14e90
cmp rax, 4
je 0x14e90
cmp dword [rdi + 8], r13d
jge 0x14d34
xor eax, eax
jmp 0x14e92
mov rsi, qword [rdi + 0x10]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], r13b
and qword [rsp + 0x20], r13
mov r9d, 0xf003f
xor r8d, r8d
mov edx, 0x200
mov rcx, qword [rdi]
call qword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
test eax, eax
jns 0x14d6e
xor eax, eax
jmp 0x14e92
mov edx, dword [rsi + 0x18]
mov ecx, 1
mov r8d, 0x46526c46
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14e7a
mov ecx, dword [rsi + 8]
lea edx, [r13 + rcx]
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
mov ecx, dword [rsi + 0x18]
mov dword [rsp + 0x20], ecx
mov r9, rbx
mov r8d, dword [rsi + 0xc]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov r12d, eax
mov dword [rsp + 0xa8], eax
test eax, eax
js 0x14e65
cmp dword [rsi + 0xc], 0
je 0x14dfb
cmp dword [rsi + 0xc], 3
jne 0x14e65
lea rcx, [rbx + 4]
mov qword [rsp + 0x58], rcx
movzx ecx, word [rbx]
mov word [rsp + 0x52], cx
mov word [rsp + 0x50], cx
jmp 0x14e12
lea rax, [rbx + 0x10]
mov qword [rsp + 0x58], rax
movzx eax, word [rbx + 0xc]
mov word [rsp + 0x52], ax
mov word [rsp + 0x50], ax
lea rdx, [rsp + 0x50]
mov rcx, qword [rdi]
call fcn.00014aec
test al, al
jne 0x14e5d
mov rdx, qword [rsi + 0x20]
mov eax, dword [rsp + 0xa0]
mov dword [rdx], eax
mov r8d, dword [rsp + 0xa0]
mov rdx, rbx
mov rcx, qword [rsi + 0x10]
call fcn.00019750
jmp 0x14e65
inc r13d
jmp 0x14d93
test rbx, rbx
je 0x14e7d
mov edx, 0x46526c46
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x14e7d
xor r12d, r12d
mov dword [rdi + 0x18], r12d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
xor eax, eax
jmp 0x14e92
xor eax, eax
add rsp, 0x60
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x152f4
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov ebp, r8d
mov rsi, rdx
mov r13d, 0x5000
xor edx, edx
mov r8, r13
mov rdi, rcx
xor ebx, ebx
mov r12, rcx
call fcn.00019aa0
test r12, r12
je 0x15435
test rsi, rsi
je 0x15435
cmp ebp, 4
jl 0x15417
mov r9b, 0x80
lea r10, [0x0001b310]
inc ebx
cmp ebx, r13d
jge 0x15427
test byte [rsi], r9b
jne 0x1541b
movsx rax, byte [rsi]
mov cl, byte [rax + r10]
cmp cl, 0xff
je 0x1541b
test byte [rsi + 1], r9b
jne 0x1541b
movsx rax, byte [rsi + 1]
mov r8b, byte [rax + r10]
cmp r8b, 0xff
je 0x1541b
shl cl, 2
mov al, r8b
sar al, 4
and al, 3
or al, cl
mov byte [rdi], al
mov al, byte [rsi + 2]
inc rdi
cmp al, 0x3d
je 0x1542e
inc ebx
cmp ebx, r13d
jge 0x15427
test r9b, al
jne 0x1541b
movsx rax, al
mov dl, byte [rax + r10]
cmp dl, 0xff
je 0x1541b
shl r8b, 4
mov al, dl
sar al, 2
and al, 0xf
or al, r8b
mov byte [rdi], al
mov al, byte [rsi + 3]
inc rdi
cmp al, 0x3d
je 0x1542e
inc ebx
cmp ebx, r13d
jge 0x15427
test r9b, al
jne 0x1541b
movsx rax, al
mov cl, byte [rax + r10]
cmp cl, 0xff
je 0x1541b
and cl, 0x3f
shl dl, 6
sub ebp, 4
or cl, dl
add rsi, 4
mov byte [rdi], cl
inc rdi
cmp ebp, 4
jge 0x1534f
test ebp, ebp
jle 0x1542e
mov eax, 0xfffffffe
mov byte [r12], 0
jmp 0x15438
mov eax, 0xfffffffd
jmp 0x15420
mov byte [rdi], 0
mov eax, ebx
jmp 0x15438
or eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x15548
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
xor r10d, r10d
mov rbx, rdx
mov r11, rcx
mov esi, r10d
cmp r8d, r10d
jbe 0x155c8
mov edi, r8d
mov ebp, 0xff
lea eax, [r10 + 1]
cdq
and edx, ebp
add eax, edx
and eax, ebp
sub eax, edx
movsxd r10, eax
movzx r8d, byte [r10 + r11]
lea eax, [rsi + r8]
cdq
and edx, ebp
add eax, edx
and eax, ebp
sub eax, edx
movsxd rsi, eax
mov cl, byte [rsi + r11]
mov byte [r10 + r11], cl
mov byte [rsi + r11], r8b
movzx eax, byte [r10 + r11]
add eax, r8d
cdq
and edx, ebp
add eax, edx
and eax, ebp
sub eax, edx
movsxd rcx, eax
mov al, byte [rcx + r11]
xor byte [rbx], al
inc rbx
sub rdi, 1
jne 0x15574
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret