joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800042b0
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x2f8
mov dword [rsp + 0xd0], 0xc0000001
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x88], rax
xor eax, eax
mov word [rsp + 0x80], ax
mov eax, 0x208
mov word [rsp + 0x82], ax
mov r8d, 0x208
xor edx, edx
lea rcx, [rsp + 0xe0]
call fcn.1800105d0
mov r8d, 6
lea rdx, str.system
mov rcx, qword [rsp + 0x300]
mov rcx, qword [rcx + 8]
call qword [sym.imp.ntoskrnl.exe_RtlCompareMemory]
cmp rax, 6
jne 0x180004350
lea rdx, str.DosDevicesc:windows_
lea rcx, [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
mov dword [rsp + 0xd0], eax
jmp 0x18000436c
lea rdx, [0x180011630]
lea rcx, [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
mov dword [rsp + 0xd0], eax
mov rdx, qword [rsp + 0x300]
mov rdx, qword [rdx + 8]
lea rcx, [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
mov dword [rsp + 0xd0], eax
mov dword [rsp + 0x90], 0x30
mov qword [rsp + 0x98], 0
mov dword [rsp + 0xa8], 0x40
lea rax, [rsp + 0x80]
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], 0
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xc0]
lea r8, [rsp + 0x90]
mov edx, 0x80000000
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov dword [rsp + 0xd0], eax
cmp dword [rsp + 0xd0], 0
jl 0x180004541
mov dword [rsp + 0x20], 5
mov r9d, 0x18
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0xc0]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov dword [rsp + 0xd0], eax
cmp dword [rsp + 0xd0], 0
jl 0x180004541
mov rcx, qword [rsp + 0x310]
mov eax, dword [rsp + 0x68]
mov dword [rcx], eax
mov rax, qword [rsp + 0x310]
mov edx, dword [rax]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov r11, rax
mov rax, qword [rsp + 0x308]
mov qword [rax], r11
mov rax, qword [rsp + 0x310]
mov r8d, dword [rax]
xor edx, edx
mov rcx, qword [rsp + 0x308]
mov rcx, qword [rcx]
call fcn.1800105d0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov rax, qword [rsp + 0x310]
mov eax, dword [rax]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x308]
mov rax, qword [rax]
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 + 0x78]
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov dword [rsp + 0xd0], eax
cmp dword [rsp + 0xd0], 0
jl 0x180004541
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [rsp + 0xd0]
jmp 0x180004548
mov eax, dword [rsp + 0xd0]
add rsp, 0x2f8
ret
Function at 0x180004800
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xf8
mov dword [rsp + 0xb8], 0xc0000001
lea rdx, str.__C:WINDOWS_system32drivers_acpi.sys
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x88], 0x30
mov qword [rsp + 0x90], 0
mov dword [rsp + 0xa0], 0x40
lea rax, [rsp + 0x68]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xb0], 0
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0x20
mov dword [rsp + 0x38], 3
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
lea r8, [rsp + 0x88]
mov edx, 0x40000000
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov dword [rsp + 0xb8], eax
cmp dword [rsp + 0xb8], 0
jl 0x18000492b
mov dword [rsp + 0x20], 4
mov r9d, 0x28
lea r8, [rsp + 0xc0]
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov dword [rsp + 0xb8], eax
cmp dword [rsp + 0xb8], 0
jl 0x18000492b
mov rcx, qword [rsp + 0x100]
mov eax, dword [rsp + 0xc4]
mov dword [rcx], eax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [rsp + 0xb8]
add rsp, 0xf8
ret
Function at 0x180005030
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xb0
mov dword [rsp + 0x50], 0
mov rcx, qword [rsp + 0xc0]
call fcn.180004940
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x180005224
mov dword [rsp + 0x78], 0
lea rdi, [rsp + 0x7c]
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
lea rdi, [rsp + 0x80]
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov dword [rsp + 0x60], 0
lea rdi, [rsp + 0x64]
xor eax, eax
mov ecx, 0x14
rep stosb byte [rdi], al
mov dword [rsp + 0x20], 5
mov r9d, 0x18
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov dword [rsp + 0x88], eax
cmp dword [rsp + 0x88], 0
jl 0x1800051cd
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0xa0], eax
cmp dword [rsp + 0xa0], 0
jne 0x180005102
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, 0xc0000001
jmp 0x180005228
movsxd rdx, dword [rsp + 0xa0]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [rsp + 0x98], rax
movsxd r8, dword [rsp + 0xa0]
xor edx, edx
mov rcx, qword [rsp + 0x98]
call fcn.1800105d0
mov dword [rsp + 0x90], 0
lea rdi, [rsp + 0x94]
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x90]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov dword [rsp + 0x88], eax
cmp dword [rsp + 0x88], 0
jl 0x1800051ab
jmp 0x1800051cd
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
xor edx, edx
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, 0xc0000001
jmp 0x180005228
mov rcx, qword [rsp + 0x58]
call fcn.180004ae0
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x1800051f3
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [rsp + 0x50]
jmp 0x180005228
mov rcx, qword [rsp + 0x58]
call fcn.180004ce0
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x180005219
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [rsp + 0x50]
jmp 0x180005228
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [rsp + 0x50]
add rsp, 0xb0
pop rdi
ret
Function at 0x180007d90
Capabilities:
Get file attributes

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xd8
mov qword [rsp + 0xb8], 0xffffffffffffffff
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x88], 0x30
mov qword [rsp + 0x90], 0
mov dword [rsp + 0xa0], 0x40
lea rax, [rsp + 0x70]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xb0], 0
mov dword [rsp + 0x68], 0x100
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0x4021
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xc0]
lea r8, [rsp + 0x88]
mov edx, 0x100001
lea rcx, [rsp + 0xb8]
call qword [sym.imp.ntoskrnl.exe_IoCreateFile]
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x80], 0
jne 0x180007f27
cmp qword [rsp + 0xb8], 0xffffffffffffffff
je 0x180007f27
mov byte [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov byte [rsp + 0x40], 1
mov dword [rsp + 0x38], 3
mov eax, dword [rsp + 0xf0]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0xe8]
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 + 0xb8]
call qword [sym.imp.ntoskrnl.exe_ZwQueryDirectoryFile]
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x80], 0
je 0x180007f27
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov qword [rsp + 0xb8], 0xffffffffffffffff
mov rax, qword [rsp + 0xb8]
add rsp, 0xd8
ret

Function at 0x180007f40
Capabilities:
Get file attributes

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov byte [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov byte [rsp + 0x40], 0
mov dword [rsp + 0x38], 3
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_ZwQueryDirectoryFile]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jne 0x180007fba
mov al, 1
jmp 0x180007fbc
xor al, al
add rsp, 0x88
ret
Function at 0x180008f50
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea r11, [rsp + 0x38]
mov qword [rsp + 0x28], r11
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 2
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0xc0000034
je 0x180008fb3
cmp dword [rsp + 0x38], 0
jne 0x180008fba
xor al, al
jmp 0x180009060
mov edx, dword [rsp + 0x38]
mov r8d, 0x6f6a386b
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x30]
mov r8d, 2
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x18000900d
xor al, al
jmp 0x180009060
mov rax, qword [rsp + 0x30]
cmp dword [rax + 4], 4
jne 0x18000904a
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 8]
cmp rax, 4
jne 0x18000904a
mov rax, qword [rsp + 0x30]
add rax, 0xc
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x58]
mov eax, dword [rsp + 0x80]
cmp dword [rcx], eax
je 0x180009048
xor al, al
jmp 0x180009060
jmp 0x18000904e
xor al, al
jmp 0x180009060
mov edx, 0x6f6a386b
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov al, 1
add rsp, 0x68
ret
Function at 0x18000b080
Capabilities:
Check os version

Disassembly:
push rdi
sub rsp, 0x160
cmp dword [0x180013710], 0
je 0x18000b09d
mov eax, dword [0x180013710]
jmp 0x18000b1a7
mov dword [rsp + 0x30], 0x11c
lea rdi, [rsp + 0x34]
xor eax, eax
mov ecx, 0x118
rep stosb byte [rdi], al
mov qword [rsp + 0x150], 0
lea rdx, str.RtlGetVersion
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov qword [rsp + 0x150], rax
cmp qword [rsp + 0x150], 0
je 0x18000b0fd
lea rcx, [rsp + 0x30]
call qword [rsp + 0x150]
jmp 0x18000b115
xor r9d, r9d
lea r8, [rsp + 0x3c]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x34]
call qword [sym.imp.ntoskrnl.exe_PsGetVersion]
cmp dword [rsp + 0x34], 5
jne 0x18000b12f
cmp dword [rsp + 0x38], 1
jne 0x18000b12f
mov dword [0x180013710], 0x33
jmp 0x18000b1a1
cmp dword [rsp + 0x34], 6
jne 0x18000b149
cmp dword [rsp + 0x38], 1
jne 0x18000b149
mov dword [0x180013710], 0x3d
jmp 0x18000b1a1
cmp dword [rsp + 0x34], 6
jne 0x18000b163
cmp dword [rsp + 0x38], 2
jne 0x18000b163
mov dword [0x180013710], 0x3e
jmp 0x18000b1a1
cmp dword [rsp + 0x34], 6
jne 0x18000b17d
cmp dword [rsp + 0x38], 3
jne 0x18000b17d
mov dword [0x180013710], 0x3f
jmp 0x18000b1a1
cmp dword [rsp + 0x34], 0xa
jne 0x18000b197
cmp dword [rsp + 0x38], 0
jne 0x18000b197
mov dword [0x180013710], 0x64
jmp 0x18000b1a1
mov dword [0x180013710], 0x64
mov eax, dword [0x180013710]
add rsp, 0x160
pop rdi
ret
Function at 0x18000d790
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x48], 0x30
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x30], rax
lea rax, [0x18000d830]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x48]
mov edx, 0x1fffff
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
add rsp, 0x88
ret
Function at 0x18000e080
Capabilities:
Create device object

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x6f6a386b
mov edx, 0x104
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [0x180013838], rax
xor eax, eax
mov word [0x180013830], ax
mov eax, 0x104
mov word [0x180013832], ax
mov r8d, 0x104
xor edx, edx
mov rcx, qword [0x180013838]
call fcn.1800105d0
mov r8d, 0x6f6a386b
mov edx, 0x104
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0x50], rax
xor eax, eax
mov word [rsp + 0x48], ax
mov eax, 0x104
mov word [rsp + 0x4a], ax
mov r8d, 0x104
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.1800105d0
lea rdx, [0x180011eb4]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
xor r8d, r8d
lea rdx, [rsp + 0x58]
lea rcx, [0x180013830]
call qword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
mov dword [rsp + 0x68], eax
lea rcx, [rsp + 0x48]
call fcn.18000e9f0
lea rdx, [rsp + 0x48]
lea rcx, [0x180013830]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
lea r11, [0x1800137f8]
mov qword [rsp + 0x30], r11
mov byte [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x22
lea r8, [0x180013830]
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
jge 0x18000e195
mov eax, dword [rsp + 0x68]
jmp 0x18000e1e5
mov rax, qword [0x1800137f8]
mov ecx, dword [rax + 0x30]
or ecx, 4
mov rax, qword [0x1800137f8]
mov dword [rax + 0x30], ecx
mov dword [rsp + 0x40], 0
jmp 0x18000e1c1
mov eax, dword [rsp + 0x40]
add eax, 1
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x1b
jge 0x18000e1e3
movsxd rdx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
lea rax, [0x18000e3b0]
mov qword [rcx + rdx*8 + 0x70], rax
jmp 0x18000e1b6
xor eax, eax
add rsp, 0x78
ret
Function at 0x18000eb50
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xd8
lea rdx, str.__C:log.txt
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x88], 0x30
mov qword [rsp + 0x90], 0
mov dword [rsp + 0xa0], 0x40
lea rax, [rsp + 0x68]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xb0], 0
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0x20
mov dword [rsp + 0x38], 3
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
lea r8, [rsp + 0x88]
mov edx, 0x40000000
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov dword [rsp + 0xb8], eax
cmp dword [rsp + 0xb8], 0
jl 0x18000ec83
mov qword [rsp + 0xc0], 0
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0xe8]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
add rsp, 0xd8
ret
Function at 0x1800102c0
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov qword [rsp + 0x20], 0
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jge 0x180010309
xor al, al
jmp 0x1800103cb
cmp qword [rsp + 0x20], 0
je 0x180010323
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
movzx eax, al
test eax, eax
jne 0x18001032a
xor al, al
jmp 0x1800103cb
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov r11, rax
mov rax, qword [sym.imp.ntoskrnl.exe_PsInitialSystemProcess]
cmp r11, qword [rax]
jne 0x180010377
mov rax, qword [rsp + 0x28]
or rax, 0xffffffff80000000
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x88], rax
mov byte [rsp + 0x64], 0
mov byte [rsp + 0x65], 0
xor r8d, r8d
lea rdx, [rsp + 0x64]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ObSetHandleAttributes]
mov dword [rsp + 0x60], eax
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jge 0x1800103c3
xor al, al
jmp 0x1800103cb
jmp 0x1800103c9
mov al, 1
add rsp, 0x78
ret
Function at 0x140008164
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x140008192
xor eax, eax
jmp 0x140008278
cmp qword [rcx + 0x68], 0
je 0x1400081a3
call fcn.140003450
jmp 0x140008278
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400081ba
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400081bc
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400081ee
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14000ab70
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x140008272
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140008225
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x14000824e
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140014628
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140008272
cmp rsi, rbx
ja 0x14000822c
test rsi, rsi
je 0x140008272
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140014628
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x1400092d0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000931a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000931a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000931a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000931a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000931a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000931c
xor al, al
add rsp, 0x28
ret

Function at 0x1400192bc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400190ac
Function at 0x140020e18
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x140020e4a
call fcn.1400152bc
mov dword [rax], 0x16
call fcn.14001045c
jmp 0x140020f69
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140020f69
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140020f69
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140020e79
lock or dword [rcx + 0x14], 0x10
jmp 0x140020f69
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140020e8d
call fcn.14002247c
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14001e980
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.140021bf8
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140020f57
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x140020f22
mov rcx, rsi
call fcn.14001e980
cmp eax, edi
je 0x140020f0d
mov rcx, rsi
call fcn.14001e980
cmp eax, 0xfffffffe
je 0x140020f0d
mov rcx, rsi
call fcn.14001e980
movsxd rbx, eax
lea r14, [0x1400870d0]
mov rcx, rsi
sar rbx, 6
call fcn.14001e980
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x140020f14
lea rdx, [0x14004a3d0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140020f22
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x140020f46
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x140020f46
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x140020f46
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x140020f6c
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x140021294
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140008dd0
sub rsp, rax
mov rax, qword [0x14004a028]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001e980
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400212e3
mov rax, rbp
jmp 0x1400213eb
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x870d0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400223d0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x870d0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400213e7
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400213e7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400223d0
test rax, rax
js 0x1400213e7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400213e7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400213d9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400213d9
cmp byte [rcx], 0xd
jne 0x1400213bf
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400213ce
cmp byte [rcx + 1], 0xa
jne 0x1400213ce
inc rcx
jmp 0x1400213ce
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x4a420]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400213a1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400213eb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140008da0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret