joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2d1bc
Capabilities:
Access pe header
Get system information on windows
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x000b5158]
and qword [rsp + 0x78], 0
mov rsi, rcx
mov ebp, 0xc0000001
test rax, rax
je 0x2d1fb
cmp qword [0x000b5160], 0
je 0x2d1fb
test rcx, rcx
je 0x2d1f4
mov qword [rcx], rax
xor ebp, ebp
jmp 0x2d3b6
and dword [rsp + 0x70], 0
lea rdx, [0x000959e0]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov rdi, rax
test rax, rax
je 0x2d2f7
xor edx, edx
lea r9, [rsp + 0x70]
xor r8d, r8d
lea ecx, [rdx + 0xb]
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, 0xc0000004
jne 0x2d2f7
mov eax, dword [rsp + 0x70]
xor ecx, ecx
mov r8d, 0x6c616e41
add eax, 0x1000
mov edx, eax
mov dword [rsp + 0x70], eax
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
je 0x2d2f7
mov r8d, dword [rsp + 0x70]
xor edx, edx
mov rcx, rax
call fcn.00091d10
mov r8d, dword [rsp + 0x70]
xor r9d, r9d
lea ecx, [r9 + 0xb]
mov rdx, rbx
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov ecx, 0xc0000000
and eax, ecx
cmp eax, ecx
je 0x2d2e9
xor edx, edx
cmp qword [rbx], rdx
jbe 0x2d2e9
lea rcx, [rbx + 0x18]
cmp qword [rcx], rdi
jae 0x2d2b8
mov eax, dword [rcx + 8]
add rax, qword [rcx]
cmp rax, rdi
ja 0x2d2ca
inc edx
add rcx, 0x128
mov eax, edx
cmp rax, qword [rbx]
jae 0x2d2e9
jmp 0x2d2a8
mov ecx, edx
imul rcx, rcx, 0x128
mov rax, qword [rcx + rbx + 0x18]
mov qword [0x000b5150], rax
mov eax, dword [rcx + rbx + 0x20]
mov dword [0x000b50fc], eax
mov edx, 0x6c616e41
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rdi, qword [0x000b5150]
test rdi, rdi
je 0x2d3b6
mov eax, 0x5a4d
cmp word [rdi], ax
jne 0x2d3b6
mov rcx, rdi
call sub.ntoskrnl.exe_RtlImageNtHeader
mov r11, rax
test rax, rax
je 0x2d3b6
cmp dword [rax], 0x4550
jne 0x2d3b6
movzx eax, word [rax + 0x14]
lea rbx, [rax + r11 + 0x18]
cmp dword [rbx + 0xc], 0
jne 0x2d34a
cmp dword [rbx + 0x10], 0
je 0x2d3b6
mov eax, dword [rbx + 0x24]
and eax, 0x2a000000
cmp eax, 0x28000000
jne 0x2d39b
cmp dword [rbx], 0x54494e49
je 0x2d39b
cmp dword [rbx], 0x45474150
je 0x2d39b
mov r9d, dword [rbx + 0xc]
lea rax, [rsp + 0x78]
lea rcx, [0x000ab780]
mov qword [rsp + 0x28], rax
mov eax, dword [rbx + 0x10]
mov r8d, 0x10
add r9, rdi
mov dl, 0xcc
mov dword [rsp + 0x20], eax
call fcn.0002d10c
mov ebp, eax
test eax, eax
jns 0x2d3a1
add rbx, 0x28
jmp 0x2d33e
test rsi, rsi
je 0x2d3b6
mov rcx, qword [rsp + 0x78]
mov eax, dword [rcx + 3]
mov rcx, qword [rax + rcx + 7]
mov qword [rsi], rcx
mov eax, ebp
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x2d3cc
Capabilities:
Map section object
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0xc0
xor esi, esi
mov rdi, rdx
mov ebx, 0xc0000001
mov qword [rax + 0x20], rsi
mov qword [rax - 0x70], rsi
cmp rcx, rsi
je 0x2d58c
cmp rdx, rsi
je 0x2d58c
mov rdx, rcx
lea rcx, [rax - 0x68]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x50], esi
mov qword [rsp + 0x48], rsi
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x38], 1
lea rax, [rsp + 0x70]
mov dword [rsp + 0x30], 1
lea r9, [rsp + 0x80]
lea r8, [rsp + 0x90]
lea edx, [rsi + 1]
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x90], 0x30
mov qword [rsp + 0x98], rsi
mov dword [rsp + 0xa8], 0x240
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xb0], rsi
mov qword [rsp + 0xb8], rsi
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov ebp, 0xc0000000
mov ecx, eax
mov ebx, eax
and ecx, ebp
cmp ecx, ebp
je 0x2d58c
mov rax, qword [rsp + 0x60]
lea r8, [rsp + 0x90]
lea rcx, [rsp + 0xe0]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov edx, 0xf001f
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x90], 0x30
mov qword [rsp + 0x98], rsi
mov dword [rsp + 0x20], 2
mov dword [rsp + 0xa8], 0x240
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0xb0], rsi
mov qword [rsp + 0xb8], rsi
call qword [sym.imp.ntoskrnl.exe_ZwCreateSection]
mov ebx, eax
and eax, ebp
cmp eax, ebp
je 0x2d58c
mov rcx, qword [rsp + 0xe0]
mov dword [rsp + 0x48], 2
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x38], 1
lea rax, [rsp + 0x68]
lea r8, [rsp + 0xf8]
mov qword [rsp + 0x30], rax
xor r9d, r9d
or rdx, 0xffffffffffffffff
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
mov ebx, eax
and eax, ebp
cmp eax, ebp
je 0x2d58c
mov rcx, qword [rsp + 0xf8]
cmp rcx, rsi
je 0x2d58c
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x2d58c
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x2d58c
mov qword [rdi], rcx
mov ebx, esi
mov rcx, qword [rsp + 0xe0]
cmp rcx, rsi
je 0x2d5a7
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov qword [rsp + 0xe0], rsi
mov rcx, qword [rsp + 0x60]
cmp rcx, rsi
je 0x2d5b7
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
mov rbx, qword [rsp + 0xe8]
add rsp, 0xc0
pop rdi
pop rsi
pop rbp
ret
Function at 0x2e9d4
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2c0
mov rax, qword [0x000a7100]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov rbp, qword [rsp + 0x320]
mov eax, 0x2836
xor r14d, r14d
mov rbx, r8
mov r12, rdx
mov r8d, eax
xor edx, edx
mov r13, rcx
mov dword [rsp + 0x3c], 0x44448888
mov edi, r14d
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x38], eax
call fcn.0002ec18
mov r15d, 0xc0000000
mov qword [rsp + 0x30], rax
cmp rax, r14
je 0x2ebb9
mov esi, 0x836
lea rdx, [0x000ac4d0]
mov rcx, rax
mov r8, rsi
call fcn.00091720
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r12
mov rdx, r12
repne scasw ax, word [rdi]
not rcx
lea eax, [rcx + rcx - 2]
lea r8, [rcx + rcx - 2]
mov rcx, qword [rsp + 0x30]
add rcx, rsi
mov dword [rsp + 0x38], eax
call fcn.00091720
mov r9, qword [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], rdx
lea r8d, [r14 + 4]
lea rcx, [rsp + 0x3c]
mov dl, 0xcc
mov dword [rsp + 0x20], esi
call fcn.0002d10c
mov ecx, eax
mov edi, eax
and ecx, r15d
cmp ecx, r15d
je 0x2ebb4
mov rsi, qword [rsp + 0x30]
add rsi, 0x836
cmp rbx, r14
je 0x2eb6d
cmp word [rbx], r14w
je 0x2eb6d
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x258
call fcn.00091d10
lea rax, [rsp + 0x50]
mov edx, 0x12c
sub rbx, rax
lea rcx, [rsp + 0x50]
lea rax, [rdx + 0x7ffffed2]
cmp rax, r14
je 0x2eb29
movzx eax, word [rbx + rcx]
cmp ax, r14w
je 0x2eb29
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x2eb06
cmp rdx, r14
jne 0x2eb32
sub rcx, 2
mov word [rcx], r14w
lea rcx, [rsp + 0x50]
call fcn.00037d00
lea r11, [rsp + 0x50]
lea r8, [0x00095950]
mov r9, r12
mov edx, 0x1000
mov rcx, rsi
mov qword [rsp + 0x20], r11
call fcn.00014458
mov rdx, rsi
lea rcx, [0x00095980]
jmp 0x2eb8e
lea r8, [0x00095940]
mov r9, r12
mov edx, 0x1000
mov rcx, rsi
call fcn.00014458
mov rdx, rbx
lea rcx, [0x00095960]
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [rsp + 0x40]
cmp rcx, r14
je 0x2eba8
mov eax, dword [rsp + 0x30]
add eax, 0x836
mov dword [rcx], eax
cmp rbp, r14
je 0x2ebb4
mov dword [rbp], 0x2836
mov rax, qword [rsp + 0x30]
and edi, r15d
cmp edi, r15d
jne 0x2ebe4
cmp rax, r14
je 0x2ebe4
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x30]
mov r9d, 0x8000
mov rcx, r13
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.000916b0
mov rbx, qword [rsp + 0x318]
add rsp, 0x2c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x2ec18
Capabilities:
Allocate or change rwx memory

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x10], rdx
push rdi
sub rsp, 0x30
mov eax, r8d
lea r9, [r11 + 0x20]
lea rdx, [r11 + 0x10]
xor esi, esi
xor r8d, r8d
mov dword [rsp + 0x28], 0x40
mov rbx, rcx
mov qword [r11 + 0x20], rax
mov qword [r11 + 0x10], rsi
mov dword [rsp + 0x20], 0x3000
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov edi, 0xc0000000
and eax, edi
cmp eax, edi
jne 0x2eca2
lea r9, [rsp + 0x58]
lea rdx, [rsp + 0x48]
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x28], 0x40
mov qword [rsp + 0x48], rsi
mov dword [rsp + 0x20], 0x3000
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov rcx, qword [rsp + 0x48]
and eax, edi
cmp eax, edi
cmove rcx, rsi
jmp 0x2eca7
mov rcx, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rax, rcx
add rsp, 0x30
pop rdi
ret
Function at 0x31cec
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
and dword [rax + 0x20], 0
mov rbp, r8
mov r15, rdx
mov r14, rcx
xor edi, edi
lea r9, [rax + 0x20]
lea esi, [rdi + 0xb]
xor r8d, r8d
xor edx, edx
mov ecx, esi
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov ebx, eax
cmp eax, 0xc0000004
jne 0x31e97
mov eax, dword [rsp + 0x88]
xor ecx, ecx
mov r8d, 0x6c616e41
add eax, 0x1000
mov edx, eax
mov dword [rsp + 0x88], eax
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
test rax, rax
je 0x31ebb
mov r8d, dword [rsp + 0x88]
xor edx, edx
mov rcx, rax
call fcn.00091d10
mov r8d, dword [rsp + 0x88]
xor r9d, r9d
mov rdx, rdi
mov ecx, esi
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov ecx, eax
mov ebx, eax
mov eax, 0xc0000000
and ecx, eax
cmp ecx, eax
je 0x31ea8
xor esi, esi
cmp qword [rdi], rsi
jbe 0x31e9e
lea r13, [rdi + 0x20]
mov edx, 0xadc
xor ecx, ecx
mov r8d, 0x6c616e41
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r12, rax
test rax, rax
je 0x31e9e
xor edx, edx
mov r8d, 0xadc
mov rcx, rax
call fcn.00091d10
and qword [rsp + 0x28], 0
mov qword [r12 + 8], r12
mov qword [r12], r12
mov dword [r12 + 0x10], esi
mov rcx, qword [r13 - 8]
mov qword [r12 + 0x14], rcx
mov ecx, dword [r13]
mov eax, esi
imul rax, rax, 0x128
mov qword [r12 + 0x1c], rcx
lea r8, [rax + rdi + 0x30]
lea rax, [rsp + 0x30]
lea r9, [r12 + 0x24]
lea rcx, [fcn.0003412c]
xor edx, edx
mov dword [rsp + 0x30], 0x100
mov qword [rsp + 0x20], rax
call fcn.0003ae58
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r8, [r12 + 0x24]
lea rcx, [0x00036f70]
mov r9, r12
xor edx, edx
call fcn.0003ae58
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_KeAcquireSpinLockRaiseToDpc]
mov rcx, qword [r14 + 8]
mov qword [r12], r14
mov qword [r12 + 8], rcx
mov qword [rcx], r12
mov dl, al
mov rcx, r15
mov qword [r14 + 8], r12
call qword [sym.imp.ntoskrnl.exe_KeReleaseSpinLock]
inc esi
add r13, 0x128
mov eax, esi
cmp rax, qword [rdi]
jb 0x31daf
jmp 0x31e9e
mov esi, dword [rsp + 0x88]
test rbp, rbp
je 0x31ea6
mov dword [rbp], esi
xor ebx, ebx
test rdi, rdi
je 0x31ebb
mov edx, 0x6c616e41
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
lea r11, [rsp + 0x40]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x33134
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov rax, qword [0x000b5100]
mov rsi, qword [rcx + 0x40]
xor ebp, ebp
mov rbx, rdx
mov edi, ebp
mov dword [rsp + 0x58], ebp
cmp rdx, rbp
je 0x33248
cmp r8, rbp
je 0x33248
cmp rax, rbp
je 0x33248
cmp byte [rax + 0x862b9], bpl
je 0x33248
cmp byte [rax + 0x862b8], bpl
je 0x33248
cmp byte [rax + 0x862be], bpl
je 0x33248
lea rax, [r8 + 8]
cmp rax, rbp
je 0x33248
mov rax, qword [rax + 8]
mov rcx, qword [rax + 0x28]
add rcx, 4
je 0x33248
mov edi, dword [rcx + 6]
movzx ecx, word [rcx + 4]
mov word [rsp + 0x40], bp
movzx eax, cx
mov byte [rsp + 0x41], cl
lea r9, [rsp + 0x58]
shr ax, 8
lea ecx, [rbp + 1]
mov edx, edi
mov byte [rsp + 0x40], al
movzx r8d, word [rsp + 0x40]
call fcn.000338a4
cmp al, 1
jne 0x3320c
cmp dword [rsp + 0x58], ebp
jl 0x3320c
inc byte [rbx + 0x43]
add qword [rbx + 0xb8], 0x48
mov rcx, qword [rsi]
mov rdx, rbx
call qword [sym.imp.ntoskrnl.exe_IofCallDriver]
mov dword [rsp + 0x58], eax
movzx r8d, word [rsp + 0x40]
lea r9, [rsp + 0x58]
mov ecx, 1
mov edx, edi
call fcn.00033594
mov edi, dword [rsp + 0x58]
cmp al, 1
jne 0x33248
cmp edi, ebp
jl 0x33248
inc byte [rbx + 0x43]
add qword [rbx + 0xb8], 0x48
mov rcx, qword [rsi]
mov rdx, rbx
call qword [sym.imp.ntoskrnl.exe_IofCallDriver]
mov edi, eax
mov ecx, 0xc0000000
mov eax, edi
and eax, ecx
cmp eax, ecx
jne 0x33267
xor edx, edx
mov rcx, rbx
mov dword [rbx + 0x30], edi
mov qword [rbx + 0x38], rbp
call qword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov eax, edi
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
Function at 0x34340
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0xb0
and qword [rax + 0x20], 0
mov rsi, rdx
mov rdx, rcx
lea rcx, [rax - 0x58]
mov edi, r8d
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and dword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x88], 0
and qword [rsp + 0xa0], 0
and qword [rsp + 0xa8], 0
mov dword [rsp + 0x40], 0x20
mov dword [rsp + 0x38], 3
and dword [rsp + 0x30], 0
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x80]
lea rcx, [rsp + 0xd8]
mov edx, 2
mov dword [rsp + 0x28], 0x80
and qword [rsp + 0x20], 0
mov dword [rsp + 0x80], 0x30
mov dword [rsp + 0x98], 0x240
mov qword [rsp + 0x90], rax
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov ecx, eax
mov ebx, eax
mov eax, 0xc0000000
and ecx, eax
cmp ecx, eax
je 0x3443d
and qword [rsp + 0x40], 0
and qword [rsp + 0x38], 0
mov rcx, qword [rsp + 0xd8]
lea rax, [rsp + 0x70]
mov dword [rsp + 0x30], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov ebx, eax
mov rcx, qword [rsp + 0xd8]
test rcx, rcx
je 0x34450
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea r11, [rsp + 0xb0]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x34470
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x90
and dword [rax + 8], 0
and qword [rax - 0x78], 0
xor ebp, ebp
mov rsi, r9
mov rbx, r8
test rdx, rdx
je 0x34620
lea rcx, [rax - 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x38]
mov rdx, rbx
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and qword [rsp + 0x60], rbp
and qword [rsp + 0x78], rbp
and qword [rsp + 0x80], rbp
lea rax, [rsp + 0x48]
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], 0x240
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov r14d, 0xc0000000
mov ecx, eax
mov ebp, eax
and ecx, r14d
cmp ecx, r14d
je 0x34610
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0xb0]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0xb0]
lea edi, [r9 + 1]
lea rdx, [rsp + 0x38]
mov r8d, edi
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov ebp, eax
cmp eax, 0xc0000023
jne 0x34610
mov edx, dword [rsp + 0xb0]
xor ecx, ecx
mov r8d, 0x6c616e41
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
je 0x34610
mov r8d, dword [rsp + 0xb0]
xor edx, edx
mov rcx, rax
call fcn.00091d10
mov ecx, dword [rsp + 0xb0]
lea r11, [rsp + 0xb0]
mov qword [rsp + 0x28], r11
mov dword [rsp + 0x20], ecx
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov r9, rbx
mov r8d, edi
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov ebp, eax
and eax, r14d
cmp eax, r14d
je 0x34602
mov eax, dword [rbx + 4]
mov rdi, qword [rsp + 0xd0]
test eax, eax
je 0x345f8
cmp eax, 3
jbe 0x345db
cmp eax, 4
je 0x3463a
cmp eax, 7
jne 0x345f8
test rsi, rsi
je 0x345f8
mov eax, dword [rbx + 0xc]
cmp dword [rdi], eax
jb 0x345f8
mov edx, dword [rbx + 8]
mov r8, rax
mov rcx, rsi
add rdx, rbx
call fcn.00091720
test rdi, rdi
je 0x34602
mov eax, dword [rbx + 0xc]
mov dword [rdi], eax
mov edx, 0x6c616e41
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x34620
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea r11, [rsp + 0x90]
mov eax, ebp
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
test rsi, rsi
je 0x345f8
mov eax, dword [rbx + 0xc]
cmp dword [rdi], eax
jb 0x345f8
mov eax, dword [rbx + 8]
mov ecx, dword [rax + rbx]
mov dword [rsi], ecx
jmp 0x345f8

Function at 0x346ac
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov edi, 0xc0000001
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x346f9
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x346f9
movsxd rax, dword [rbx + 0x3c]
cmp dword [rax + rbx], 0x4550
jne 0x346f9
mov ecx, 0x20b
cmp word [rax + rbx + 0x18], cx
je 0x346f7
mov ecx, 0x10b
cmp word [rax + rbx + 0x18], cx
jne 0x346f9
xor edi, edi
mov eax, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x34ee4
Capabilities:
Get file attributes

Disassembly:
push rbx
sub rsp, 0x60
mov rbx, rdx
mov eax, 0xc0000001
test rcx, rcx
je 0x34f35
cmp rcx, 0xffffffffffffffff
je 0x34f35
test rdx, rdx
je 0x34f35
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
mov r9d, 0x18
mov dword [rsp + 0x20], 5
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov edx, 0xc0000000
mov ecx, eax
and ecx, edx
cmp ecx, edx
je 0x34f35
mov rcx, qword [rsp + 0x48]
mov qword [rbx], rcx
add rsp, 0x60
pop rbx
ret
Function at 0x353bc
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x160
mov rax, qword [0x000a7100]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor ebp, ebp
mov qword [rsp + 0xb0], rdx
mov rdi, rcx
mov esi, 0xc0000001
mov qword [rsp + 0xb8], rbp
cmp rcx, rbp
je 0x3562e
cmp rcx, 0xffffffffffffffff
je 0x3562e
mov r12d, 0x1000
mov r8d, 0x6c616e41
xor ecx, ecx
mov rdx, r12
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
mov qword [rsp + 0xa8], rax
cmp rax, rbp
je 0x3562e
mov r8, r12
xor edx, edx
mov rcx, rax
call fcn.00091d10
mov qword [rsp + 0x40], rbp
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xc0]
mov dword [rsp + 0x30], r12d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov ecx, eax
mov esi, eax
mov dword [rsp + 0xa0], eax
mov eax, 0xc0000000
and ecx, eax
cmp ecx, eax
je 0x35620
mov rdi, qword [rsp + 0xc8]
cmp rdi, rbp
je 0x35620
lea r8d, [rbp + 0x58]
lea rcx, [rsp + 0xd0]
xor edx, edx
call fcn.00091d10
lea rcx, [rsp + 0xd0]
mov r8d, edi
mov rdx, rbx
mov dword [rsp + 0xe4], ebp
mov dword [rsp + 0xe0], ebp
mov dword [rsp + 0xd0], 0x67452301
mov dword [rsp + 0xd4], 0xefcdab89
mov dword [rsp + 0xd8], 0x98badcfe
mov dword [rsp + 0xdc], 0x10325476
call fcn.000179cc
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x130]
call fcn.00017a88
movzx eax, byte [rsp + 0x13e]
movzx r11d, byte [rsp + 0x13f]
movzx ecx, byte [rsp + 0x13d]
movzx edx, byte [rsp + 0x13c]
movzx r8d, byte [rsp + 0x13b]
movzx r10d, byte [rsp + 0x13a]
movzx ebx, byte [rsp + 0x139]
movzx edi, byte [rsp + 0x138]
movzx esi, byte [rsp + 0x137]
movzx ebp, byte [rsp + 0x136]
movzx r12d, byte [rsp + 0x135]
movzx r13d, byte [rsp + 0x134]
movzx r14d, byte [rsp + 0x133]
movzx r15d, byte [rsp + 0x132]
movzx r9d, byte [rsp + 0x130]
mov dword [rsp + 0x90], r11d
mov dword [rsp + 0x88], eax
movzx eax, byte [rsp + 0x131]
mov dword [rsp + 0x80], ecx
mov rcx, qword [rsp + 0xb0]
mov dword [rsp + 0x78], edx
mov dword [rsp + 0x70], r8d
mov dword [rsp + 0x68], r10d
mov dword [rsp + 0x60], ebx
mov dword [rsp + 0x58], edi
mov dword [rsp + 0x50], esi
mov dword [rsp + 0x48], ebp
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], r14d
lea r8, [0x00095c40]
mov edx, 0x40
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], eax
call fcn.00014458
mov rbx, qword [rsp + 0xa8]
mov esi, dword [rsp + 0xa0]
mov edx, 0x6c616e41
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, esi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.000916b0
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x160
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x35e20
Capabilities:
Find process by pid

Disassembly:
mov r11, rsp
push rbx
push rbp
push rdi
sub rsp, 0x60
and qword [r11 + 0x18], 0
and qword [r11 + 0x20], 0
and dword [r11 + 8], 0
mov rdi, rdx
mov ebx, 0xc0000001
test rcx, rcx
je 0x35f3c
test rdx, rdx
je 0x35f3c
mov rax, cr8
test al, al
jne 0x35f3c
lea rdx, [r11 + 0x18]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebp, 0xc0000000
mov ecx, eax
mov ebx, eax
and ecx, ebp
cmp ecx, ebp
je 0x35f0d
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x35f29
lea rax, [rsp + 0x98]
mov r9d, 0x1fffff
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov edx, 0x200
mov byte [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
mov ebx, eax
and eax, ebp
cmp eax, ebp
je 0x35f0d
mov ebx, 0x20
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8, rbx
call fcn.00091d10
mov rcx, qword [rsp + 0x98]
lea r11, [rsp + 0x80]
lea r8, [rsp + 0x40]
lea edx, [rbx - 0x1c]
mov r9d, ebx
mov qword [rsp + 0x20], r11
call sub.ntoskrnl.exe_ZwQueryInformationProcess
mov ebx, eax
and eax, ebp
cmp eax, ebp
je 0x35f0d
cmp qword [rsp + 0x48], 0
sete al
mov byte [rdi], al
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x35f29
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
and qword [rsp + 0x90], 0
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x35f3c
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
add rsp, 0x60
pop rdi
pop rbp
pop rbx
ret
Function at 0x367b8
Capabilities:
Map section object

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x80
and qword [rax - 0x28], 0
and qword [rax + 8], 0
and qword [rax - 0x20], 0
mov rdi, r9
mov rbp, r8
mov rsi, rdx
mov ebx, 0xc0000001
test rcx, rcx
je 0x36966
cmp rcx, 0xffffffffffffffff
je 0x36966
test rdx, rdx
je 0x36966
test r9, r9
je 0x36966
mov qword [rax - 0x68], rcx
mov dword [rax - 0x70], 0x1000000
lea rcx, [rax - 0x28]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf001f
mov dword [rax - 0x78], 0x10
call qword [sym.imp.ntoskrnl.exe_ZwCreateSection]
mov r14d, 0xc0000000
mov ecx, eax
mov ebx, eax
and ecx, r14d
cmp ecx, r14d
je 0x36936
mov rcx, qword [rsp + 0x70]
mov dword [rsp + 0x48], 2
and dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 1
lea rax, [rsp + 0x78]
lea r8, [rsp + 0xa0]
mov qword [rsp + 0x30], rax
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor r9d, r9d
or rdx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
mov ebx, eax
and eax, r14d
cmp eax, r14d
je 0x36936
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x36956
mov rax, qword [rsp + 0x100]
mov r9, rdi
mov r8, rbp
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0xf8]
mov rdx, rsi
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x20], rax
call fcn.00036248
mov ebx, eax
mov rdx, qword [rsp + 0xa0]
test rdx, rdx
je 0x36956
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwUnmapViewOfSection]
and qword [rsp + 0xa0], 0
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x36966
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea r11, [rsp + 0x80]
mov eax, ebx
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret