joyce8/EMBER2024-capa huggingface dataset:
Function at 0x374f4
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x1c0
mov rax, qword [0x000a7100]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rsi, rcx
xor r12d, r12d
lea rcx, [rsp + 0x30]
xor edx, edx
mov ebp, r12d
mov rbx, r12
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x00096060]
lea ecx, [r12 + 4]
call qword [sym.imp.ntoskrnl.exe_RtlCheckRegistryKey]
mov ecx, 0xc0000000
mov edi, eax
and eax, ecx
cmp eax, ecx
je 0x37721
lea rcx, [rsp + 0xb0]
xor edx, edx
mov r8d, 0x100
call fcn.00091d10
lea r8, [0x00096070]
lea rcx, [rsp + 0xb0]
mov r9d, ebp
mov edx, 0x80
call fcn.00014458
xor edx, edx
lea rcx, [rsp + 0x40]
lea r8d, [rdx + 0x70]
call fcn.00091d10
lea rax, [rsp + 0xb0]
xor r9d, r9d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x30]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x30]
lea rdx, [0x00096060]
lea ecx, [r9 + 4]
mov dword [rsp + 0x48], 0x20
mov dword [rsp + 0x60], 1
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], 0x80
mov qword [rsp + 0x20], r12
call qword [sym.imp.ntoskrnl.exe_RtlQueryRegistryValues]
cmp eax, r12d
mov edi, eax
jl 0x37703
movzx eax, word [rsp + 0x30]
cmp ax, r12w
jne 0x37610
cmp qword [rsp + 0x38], r12
je 0x37703
movzx edx, ax
xor ecx, ecx
mov r8d, 0x6c616e41
add rdx, 2
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
cmp rax, r12
je 0x37721
movzx r8d, word [rsp + 0x30]
xor edx, edx
mov rcx, rax
add r8, 2
call fcn.00091d10
movzx r8d, word [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.00091720
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_RtlCheckRegistryKey]
cmp eax, r12d
mov edi, eax
jl 0x376db
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [0x00096090]
lea r8, [rsp + 0x40]
xor r9d, r9d
mov rdx, rbx
xor ecx, ecx
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0x20
mov dword [rsp + 0x60], 1
mov dword [rsp + 0x70], 0x64
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x20], r12
call qword [sym.imp.ntoskrnl.exe_RtlQueryRegistryValues]
cmp eax, r12d
mov edi, eax
jl 0x376d2
cmp word [rsi], r12w
je 0x376d2
mov rax, qword [rsi + 8]
cmp word [rax], r12w
jne 0x3770e
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov edx, 0x6c616e41
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rbx, r12
cmp qword [rsp + 0x38], r12
je 0x37703
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov qword [rsp + 0x38], r12
inc ebp
cmp ebp, 8
jb 0x37557
cmp rbx, r12
je 0x37721
mov edx, 0x6c616e41
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, edi
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.000916b0
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x37a74
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x230
mov rax, qword [0x000a7100]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov r12, rcx
mov rsi, r8
mov ebp, edx
mov ebx, 0x100
lea rcx, [rsp + 0x120]
xor edx, edx
mov r8, rbx
movsxd rdi, r9d
call fcn.00091d10
xor r11d, r11d
lea r10, [rsp + 0x20]
mov eax, r11d
mov byte [r10], al
inc eax
inc r10
cmp eax, ebx
jl 0x37ac8
mov rdx, r11
cmp rsi, r11
je 0x37b0e
cmp edi, r11d
jle 0x37b0e
mov r8d, r11d
mov r9, rdi
cmp rdx, rdi
jne 0x37af4
dec r8d
mov rdx, r11
jmp 0x37b04
mov al, byte [rdx + rsi]
movsxd rcx, r8d
inc rdx
mov byte [rsp + rcx + 0x120], al
inc r8d
cmp r8d, ebx
jl 0x37ae7
jmp 0x37b3e
mov r8d, r11d
cmp rdx, 0xd
jne 0x37b1f
dec r8d
mov rdx, r11
jmp 0x37b36
lea rax, str.www.onpxe.net
movsxd rcx, r8d
mov al, byte [rdx + rax]
inc rdx
mov byte [rsp + rcx + 0x120], al
inc r8d
cmp r8d, ebx
jl 0x37b11
mov r9b, r11b
mov r8, r11
mov dl, byte [rsp + r8 + 0x20]
mov al, byte [rsp + r8 + 0x120]
inc r8
add al, dl
add r9b, al
sub rbx, 1
movzx ecx, r9b
mov al, byte [rsp + rcx + 0x20]
mov byte [rsp + rcx + 0x20], dl
mov byte [rsp + r8 + 0x1f], al
jne 0x37b44
cmp ebp, r11d
mov r10b, 1
jle 0x37bb8
mov rbx, rbp
movzx r8d, r10b
inc r10b
movsx r9d, byte [rsp + r8 + 0x20]
mov al, byte [rsp + r8 + 0x20]
add r11b, r9b
movzx ecx, r11b
mov dl, byte [rsp + rcx + 0x20]
mov byte [rsp + rcx + 0x20], al
mov byte [rsp + r8 + 0x20], dl
add dl, r9b
movzx eax, dl
mov cl, byte [rsp + rax + 0x20]
xor byte [r12], cl
inc r12
sub rbx, 1
jne 0x37b7b
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.000916b0
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret

Function at 0x37be8
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], r9
push rdi
sub rsp, 0xb0
and qword [rax + 0x20], 0
mov rbx, rdx
xor edx, edx
mov rdi, r8
mov rsi, rcx
lea r8d, [rdx + 0x38]
lea rcx, [rax - 0x48]
call fcn.00091d10
xor r8d, r8d
lea rcx, [rsp + 0x70]
lea edx, [r8 + 1]
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
and qword [rsp + 0x98], 0
and qword [rsp + 0xa0], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x60], 0
and qword [rsp + 0x68], 0
lea rax, [rsp + 0x70]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0xd8]
xor r9d, r9d
mov edx, 0x1fffff
mov qword [rsp + 0x28], rsi
and qword [rsp + 0x20], 0
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x90], rdi
mov dword [rsp + 0x40], 0x30
mov dword [rsp + 0x58], 0x200
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov ecx, eax
mov ebx, eax
mov eax, 0xc0000000
and ecx, eax
cmp ecx, eax
je 0x37cd0
and qword [rsp + 0x20], 0
lea rcx, [rsp + 0x70]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
mov rcx, qword [rsp + 0xd8]
test rcx, rcx
je 0x37ce3
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 0x3a3ac
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push r12
sub rsp, 0xa0
and dword [rax + 8], 0
lea r12, [0x000941b0]
mov rdi, r9
mov ebx, 0xc0000001
test r12, r12
je 0x3a4fa
lea rbp, [0x00094190]
test rbp, rbp
je 0x3a4fa
test r9, r9
je 0x3a4fa
lea rcx, [rax - 0x60]
mov rdx, r12
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x58]
mov rdx, rbp
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and qword [rsp + 0x70], 0
and qword [rsp + 0x88], 0
and qword [rsp + 0x90], 0
lea rax, [rsp + 0x48]
lea r8, [rsp + 0x68]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0xb0]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor r9d, r9d
mov edx, 0x20006
mov dword [rsp + 0x68], 0x30
mov dword [rsp + 0x80], 0x240
call qword [sym.imp.ntoskrnl.exe_ZwCreateKey]
mov ecx, eax
mov ebx, eax
mov eax, 0xc0000000
and ecx, eax
cmp ecx, eax
jne 0x3a4a3
lea rcx, [0x000974a0]
mov r9d, ebx
mov r8, rbp
mov rdx, r12
call fcn.0004505c
jmp 0x3a4fa
mov eax, dword [rsp + 0xb0]
sub eax, 1
je 0x3a4bd
cmp eax, 1
jne 0x3a4cf
lea rcx, [0x00097500]
jmp 0x3a4c4
lea rcx, [0x000974d0]
mov r8, rbp
mov rdx, r12
call fcn.0004505c
mov eax, dword [rsp + 0xd0]
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov r9d, 3
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x3a50a
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
Function at 0x3a52c
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r15
sub rsp, 0x90
and dword [rax + 8], 0
mov rbp, r9
mov r12, r8
mov rdi, rdx
mov rsi, rcx
mov ebx, 0xc0000001
test rcx, rcx
je 0x3a716
test rdx, rdx
je 0x3a716
mov rdx, rcx
lea rcx, [rax - 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x38]
mov rdx, rdi
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 + 0x48]
lea r8, [rsp + 0x58]
lea rcx, [rsp + 0x30]
mov edx, 0x20019
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x58], 0x30
mov dword [rsp + 0x70], 0x240
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov r15d, 0xc0000000
mov ecx, eax
mov r8, rdi
and ecx, r15d
mov ebx, eax
mov rdx, rsi
cmp ecx, r15d
jne 0x3a5f9
lea rcx, [0x00097530]
mov r9d, eax
call fcn.0004505c
jmp 0x3a716
lea rcx, [0x00097560]
call fcn.0004505c
mov rcx, qword [rsp + 0x30]
xor r9d, r9d
lea esi, [r9 + 1]
lea r11, [rsp + 0xb0]
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x28], r11
and dword [rsp + 0x20], 0
mov r8d, esi
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov ebx, eax
cmp eax, 0x80000005
je 0x3a645
cmp eax, 0xc0000023
jne 0x3a716
mov edx, dword [rsp + 0xb0]
xor ecx, ecx
mov r8d, 0x6c616e41
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
test rax, rax
jne 0x3a66c
mov ebx, 0xc000009a
jmp 0x3a703
mov r8d, dword [rsp + 0xb0]
xor edx, edx
mov rcx, rax
call fcn.00091d10
mov eax, dword [rsp + 0xb0]
mov rcx, qword [rsp + 0x30]
lea r11, [rsp + 0xb0]
lea rdx, [rsp + 0x38]
mov r9, rdi
mov qword [rsp + 0x28], r11
mov r8d, esi
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov ebx, eax
and eax, r15d
cmp eax, r15d
je 0x3a703
test rbp, rbp
je 0x3a6c1
mov eax, dword [rdi + 0xc]
mov dword [rbp], eax
test r12, r12
je 0x3a703
mov edx, dword [rdi + 0xc]
xor ecx, ecx
mov r8d, 0x6c616e41
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rsi, rax
test rax, rax
je 0x3a662
mov r8d, dword [rdi + 0xc]
xor edx, edx
mov rcx, rax
call fcn.00091d10
mov edx, dword [rdi + 8]
mov r8d, dword [rdi + 0xc]
add rdx, rdi
mov rcx, rsi
call fcn.00091720
mov qword [r12], rsi
test rdi, rdi
je 0x3a716
mov edx, 0x6c616e41
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x3a726
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea r11, [rsp + 0x90]
mov eax, ebx
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r12
pop rdi
ret
Function at 0x3a74c
Capabilities:
Get system information on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
xor eax, eax
xor r14d, r14d
mov r13, rdx
mov word [r11 - 0x38], r14w
mov qword [r11 - 0x36], rax
mov word [r11 - 0x48], r14w
mov qword [r11 - 0x46], rax
lea ebp, [rax + 0xb]
lea r9, [r11 + 0x18]
xor r8d, r8d
xor edx, edx
mov ecx, ebp
mov dword [r11 + 0x18], r14d
mov dword [rsp + 0x3a], eax
mov word [rsp + 0x3e], ax
mov dword [rsp + 0x2a], eax
mov word [rsp + 0x2e], ax
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov edi, 0xc0000000
mov ecx, eax
mov esi, eax
and ecx, edi
cmp ecx, edi
jne 0x3a7c0
cmp eax, 0xc0000004
jne 0x3a906
mov ecx, dword [rsp + 0x80]
mov r8d, 0x6c616e41
add ecx, ecx
mov dword [rsp + 0x80], ecx
mov edx, ecx
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
cmp rax, r14
je 0x3a906
mov r8d, dword [rsp + 0x80]
xor edx, edx
mov rcx, rax
call fcn.00091d10
mov r8d, dword [rsp + 0x80]
xor r9d, r9d
mov rdx, rbx
mov ecx, ebp
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov ecx, eax
mov esi, eax
and ecx, edi
cmp ecx, edi
je 0x3a8f8
lea rdx, [0x0009e160]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlInitString]
mov ebp, r14d
cmp qword [rbx], r14
jbe 0x3a8f8
mov rax, r14
lea r12, [rbx + 0x30]
or rcx, 0xffffffffffffffff
imul rax, rax, 0x128
lea r8, [rax + rbx + 0x30]
xor eax, eax
mov rdi, r8
repne scasb al, byte [rdi]
not rcx
dec rcx
cmp cx, r14w
je 0x3a8c6
movzx eax, cx
mov rdx, r14
mov rcx, rax
cmp eax, r14d
je 0x3a895
add rcx, r12
cmp byte [rcx], 0x5c
je 0x3a890
cmp byte [rcx], 0x2f
je 0x3a890
dec eax
dec rcx
cmp eax, r14d
jne 0x3a87a
jmp 0x3a895
mov edx, eax
add rdx, r12
lea rax, [rdx + 1]
cmp rdx, r14
lea rcx, [rsp + 0x30]
cmovne r8, rax
mov rdx, r8
call qword [sym.imp.ntoskrnl.exe_RtlInitString]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r8b, 1
call qword [sym.imp.ntoskrnl.exe_RtlEqualString]
cmp al, r14b
jne 0x3a8db
inc ebp
add r12, 0x128
mov eax, ebp
cmp rax, qword [rbx]
jae 0x3a8f8
jmp 0x3a846
mov ecx, ebp
mov esi, r14d
imul rcx, rcx, 0x128
mov rax, qword [rcx + rbx + 0x18]
mov qword [r13], rax
mov eax, dword [rcx + rbx + 0x20]
mov qword [r13 + 8], rax
mov edx, 0x6c616e41
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov eax, esi
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x3a928
Capabilities:
Disable driver code integrity
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor eax, eax
xor edi, edi
mov rbx, rcx
mov word [rsp + 0x30], di
mov qword [r11 - 0x36], rax
mov word [rsp + 0x20], di
mov qword [r11 - 0x46], rax
mov r15, rdx
mov dword [rsp + 0x3a], eax
mov word [rsp + 0x3e], ax
mov dword [rsp + 0x2a], eax
mov word [rsp + 0x2e], ax
mov rcx, rdi
mov rdx, rdi
cmp rbx, rdi
je 0x3ab29
cmp qword [r15], rdi
je 0x3ab29
lea r9, [0x0009e1e0]
cmp r9, rdi
je 0x3ab29
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x3ab29
movsxd rax, dword [rbx + 0x3c]
add rax, rbx
je 0x3ab29
cmp dword [rax], 0x4550
jne 0x3ab29
mov r8d, 0x14c
cmp r8w, word [rax + 4]
jne 0x3a9d3
mov rcx, rax
jmp 0x3aa02
mov edx, 0x200
cmp dx, word [rax + 4]
je 0x3a9ed
mov edx, 0x8664
cmp dx, word [rax + 4]
jne 0x3ab29
mov rdx, rax
sub rax, rbx
add rax, 0x108
cmp qword [r15], rax
jbe 0x3ab29
cmp rcx, rdi
je 0x3aa1b
mov eax, 0x10b
cmp word [rcx + 0x18], ax
jne 0x3ab29
mov eax, dword [rcx + 0x78]
jmp 0x3aa30
mov eax, 0x20b
cmp word [rdx + 0x18], ax
jne 0x3ab29
mov eax, dword [rdx + 0x88]
mov esi, eax
cmp rsi, qword [r15]
jge 0x3ab29
mov ecx, dword [rsi + rbx + 0x14]
mov eax, dword [rsi + rbx + 0x1c]
lea rcx, [rax + rcx*4]
cmp rcx, qword [r15]
ja 0x3ab29
mov r8d, dword [rsi + rbx + 0x18]
mov eax, dword [rsi + rbx + 0x20]
lea rcx, [rax + r8*4]
cmp rcx, qword [r15]
ja 0x3ab29
mov eax, dword [rsi + rbx + 0x24]
lea rcx, [rax + r8*2]
cmp rcx, qword [r15]
ja 0x3ab29
lea rcx, [rsp + 0x30]
mov rdx, r9
call qword [sym.imp.ntoskrnl.exe_RtlInitString]
movzx r11d, word [rsp + 0x30]
cmp r11w, di
je 0x3ab29
mov r13d, dword [rsi + rbx + 0x1c]
mov r12d, dword [rsi + rbx + 0x20]
mov r14d, dword [rsi + rbx + 0x24]
add r13, rbx
add r12, rbx
add r14, rbx
mov ebp, edi
cmp dword [rsi + rbx + 0x18], edi
jbe 0x3ab29
movzx eax, r11w
add eax, dword [r12]
cmp rax, qword [r15]
jg 0x3aaf8
mov eax, dword [r12]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
add rax, rbx
mov r8b, 1
mov word [rsp + 0x20], r11w
mov qword [rsp + 0x28], rax
mov word [rsp + 0x22], r11w
call qword [sym.imp.ntoskrnl.exe_RtlEqualString]
cmp al, dil
jne 0x3ab06
mov r11w, word [rsp + 0x30]
inc ebp
add r12, 4
cmp ebp, dword [rsi + rbx + 0x18]
jae 0x3ab29
jmp 0x3aab5
mov eax, ebp
movzx ecx, word [r14 + rax*2]
mov eax, dword [rsi + rbx + 0x10]
lea edx, [rcx + rax - 1]
cmp edx, dword [rsi + rbx + 0x14]
jae 0x3ab29
mov ecx, dword [r13 + rdx*4]
cmp rcx, qword [r15]
jge 0x3ab29
lea rdi, [rcx + rbx]
lea r11, [rsp + 0x40]
mov rax, rdi
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 0x3ab50
Capabilities:
Check for software breakpoints

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
xor edx, edx
mov r12d, r9d
mov rbp, rcx
mov r9d, r8d
mov r10, rdx
cmp rcx, rdx
je 0x3abe7
mov r11, qword [rsp + 0x30]
cmp r11, rdx
je 0x3abe7
mov rcx, qword [rsp + 0x40]
cmp rcx, rdx
je 0x3abe7
mov eax, dword [rsp + 0x38]
cmp eax, r8d
jne 0x3ab9c
mov edx, 0xc0000225
jmp 0x3abec
mov eax, edx
mov rsi, r11
mov ebx, edx
mov r8, rdx
cmp r9d, edx
jbe 0x3abc5
mov dil, byte [r8 + rbp]
cmp dil, 0xcc
je 0x3abbb
cmp dil, byte [rsi + r8]
jne 0x3abc5
inc ebx
inc r8
cmp ebx, r9d
jb 0x3abab
cmp ebx, r9d
je 0x3abdc
cmp eax, r12d
jae 0x3abe2
inc eax
inc rsi
cmp eax, dword [rsp + 0x38]
jbe 0x3aba1
jmp 0x3abe2
mov r10d, eax
add r10, r11
mov qword [rcx], r10
jmp 0x3abec
mov edx, 0xc000000d
mov rbx, qword [rsp + 0x10]
mov rbp, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
mov eax, edx
pop r12
ret
Function at 0x43538
Capabilities:
Get file attributes
Set file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x60
mov edi, r8d
movsxd rbx, edx
lea r8, [rax - 0x28]
lea rdx, [rax - 0x38]
mov r9d, 0x18
mov rsi, rcx
mov dword [rax - 0x48], 5
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
test eax, eax
jns 0x43578
or eax, 0xffffffff
jmp 0x43618
test edi, edi
je 0x435d3
sub edi, 1
je 0x435a4
cmp edi, 1
jne 0x43570
test ebx, ebx
jns 0x4359b
mov rax, qword [rsp + 0x48]
not ebx
inc ebx
movsxd rcx, ebx
sub rax, rcx
jmp 0x435d6
jne 0x43570
mov rax, qword [rsp + 0x48]
jmp 0x435d6
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x30]
mov r9d, 8
mov rcx, rsi
mov dword [rsp + 0x20], 0xe
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
test eax, eax
js 0x43570
mov rax, rbx
add rax, qword [rsp + 0x70]
jmp 0x435d6
mov rax, rbx
cmp rax, qword [rsp + 0x48]
jle 0x435e4
mov eax, 0x800f
jmp 0x43618
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x30]
mov r9d, 8
mov rcx, rsi
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x20], 0xe
call qword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
mov ecx, dword [rsp + 0x70]
or edx, 0xffffffff
test eax, eax
cmovs ecx, edx
mov eax, ecx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x436ac
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov edi, r8d
mov rsi, rdx
xor ebx, ebx
call fcn.00042dc8
cmp rax, rbx
je 0x43702
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rcx
mov rcx, rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
cmp eax, ebx
cmovge ebx, dword [rsp + 0x58]
mov rsi, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret

Function at 0x4371c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov edi, r8d
mov rsi, rdx
xor ebx, ebx
call fcn.00042dc8
cmp rax, rbx
je 0x43772
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rcx
mov rcx, rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
cmp eax, ebx
cmovge ebx, dword [rsp + 0x58]
mov rsi, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x44638
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0xb0
xor esi, esi
mov eax, 0xfeff
mov rdi, rcx
mov word [rsp + 0xd8], ax
cmp byte [0x000b50f8], sil
jne 0x44665
xor eax, eax
jmp 0x44862
cmp qword [0x000be5f0], rsi
je 0x4465e
call qword [sym.imp.ntoskrnl.exe_KeEnterCriticalRegion]
mov rcx, qword [0x000be5f0]
mov dl, 1
add rcx, 0x30
call qword [sym.imp.ntoskrnl.exe_ExAcquireResourceExclusiveLite]
mov rax, qword [0x000be5f0]
cmp qword [rax + 0x18], rsi
jne 0x446ac
lea rcx, [rax + 0x10]
lea rdx, [0x00097c10]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rax, qword [0x000be5f0]
mov dword [rsp + 0x50], esi
mov qword [rsp + 0x48], rsi
mov dword [rsp + 0x40], 0x64
mov dword [rsp + 0x38], 3
add rax, 0x10
mov dword [rsp + 0x30], 1
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x80]
lea rcx, [rsp + 0xe0]
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x80], 0x30
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x88], rsi
mov dword [rsp + 0x98], 0x240
mov qword [rsp + 0x90], rax
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0xa8], rsi
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
cmp eax, esi
mov ebx, eax
jl 0x44849
cmp qword [rsp + 0x78], 2
jne 0x44787
mov rcx, qword [rsp + 0xe0]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0xd8]
mov dword [rsp + 0x30], 2
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov ebx, eax
cmp ebx, esi
jl 0x4483b
mov rcx, qword [rsp + 0xe0]
lea rdx, [rsp + 0x60]
call fcn.00034ee4
cmp eax, esi
mov ebx, eax
jl 0x4483b
cmp qword [rsp + 0x60], 0x6400000
jl 0x447e3
mov rcx, qword [rsp + 0xe0]
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x70]
mov r9d, 8
mov qword [rsp + 0x68], rsi
mov dword [rsp + 0x20], 0x14
call qword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
mov ebx, eax
cmp ebx, esi
jl 0x4483b
movzx eax, word [rdi]
or dword [rsp + 0xec], 0xffffffff
or dword [rsp + 0xe8], 0xffffffff
mov qword [rsp + 0x40], rsi
lea rcx, [rsp + 0xe8]
xor r9d, r9d
mov qword [rsp + 0x38], rcx
mov rcx, qword [rsp + 0xe0]
mov dword [rsp + 0x30], eax
mov rax, qword [rdi + 8]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov ebx, eax
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [0x000be5f0]
add rcx, 0x30
call qword [sym.imp.ntoskrnl.exe_ExReleaseResourceLite]
call qword [sym.imp.ntoskrnl.exe_KeLeaveCriticalRegion]
mov eax, ebx
add rsp, 0xb0
pop rdi
pop rsi
pop rbx
ret
Function at 0x89e24
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x20
mov rbp, r8
mov r12d, edx
mov rsi, rcx
mov eax, 0xc0000001
test rcx, rcx
je 0x89f6c
test r8, r8
je 0x89f6c
mov rbx, qword [rcx]
jmp 0x89f61
and rbx, 0xfffffffffffffff0
je 0x89f6a
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x89f6a
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x89f6a
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x89f6a
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x89f6a
mov edx, 0x48
xor ecx, ecx
mov r8d, 0x6c616e41
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
test rax, rax
je 0x89f6a
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 0x48]
call fcn.00091d10
mov qword [rdi + 8], rdi
mov qword [rdi], rdi
mov rcx, qword [rbx]
mov qword [rdi + 0x18], rcx
mov rax, qword [rbx + 8]
mov qword [rdi + 0x20], rax
mov rax, qword [rbx + 0x10]
mov dword [rdi + 0x10], r12d
mov qword [rdi + 0x28], rax
mov rcx, qword [rbp]
cmp rcx, rbp
je 0x89f38
cmp dword [rcx + 0x10], r12d
jne 0x89f14
mov rax, qword [rdi + 0x20]
cmp qword [rcx + 0x20], rax
je 0x89f19
mov rcx, qword [rcx]
jmp 0x89eff
lea rcx, [0x0009d8c0]
mov rdx, rax
call sub.ntoskrnl.exe_DbgPrint
mov edx, 0x6c616e41
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x89f5a
mov rdx, qword [rdi + 0x20]
lea rcx, [0x0009d890]
call sub.ntoskrnl.exe_DbgPrint
mov rax, qword [rbp + 8]
mov qword [rdi], rbp
mov qword [rdi + 8], rax
mov qword [rax], rdi
mov qword [rbp + 8], rdi
add rsi, 8
mov rbx, qword [rsi]
test rbx, rbx
jne 0x89e65
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret