joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401e90
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x0040c624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x402018
mov rax, qword [0x0040c628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x401edc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x401f65
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x401ec0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x40204d
mov rax, qword [0x0040c628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0040c628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x402030
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401f5e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x401fc0
add dword [0x0040c624], 1
cmp edi, 8
jae 0x401f93
test dil, 4
jne 0x402004
test edi, edi
je 0x401f88
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x40201f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x401f88
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x401fac
jmp 0x401f88
add rsi, qword [0x0040c628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401f5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x401f88
xor esi, esi
jmp 0x401ee7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x401f88
mov rax, qword [0x0040c628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x4027a0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0040c900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0040c8e0]
test rbx, rbx
je 0x4027f4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x4027eb
test rsi, rsi
je 0x4027eb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4027d0
lea rcx, [0x0040c900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x402a30
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x402a40
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x402a50
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x402a91
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x402a88
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x402a93
add rax, 0x28
cmp rax, r9
jne 0x402a74
xor eax, eax
ret

Function at 0x402b30
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00409720]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x402b9d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402b9d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x402b9d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402b94
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402b9f
add rax, 0x28
cmp rax, r9
jne 0x402b80
xor eax, eax
add rsp, 0x28
ret

Function at 0x402ca0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00409720]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x402cc0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402cb8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x402d1d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402d14
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402d24
add rax, 0x28
cmp rax, r9
jne 0x402d00
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x402d40
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00409720]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x402dae
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402dae
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x402dae
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x402dae
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x402da5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x402db5
add rcx, 0x28
cmp rcx, rax
jne 0x402d90
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x402dc8
jmp 0x402dae
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x402dd6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x402dae
test r9d, r9d
jg 0x402dc0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x407c80
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140001040
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov edx, 0x47
lea rcx, [entry0]
mov al, byte [rcx + rdx]
xor al, 0xf1
add al, 0x5b
xor al, 0xdc
mov byte [rcx + rdx], al
inc rdx
cmp rdx, 0x2d9
jl 0x140001068
enter 0x7df8, 0xffffffffffffffe8
scasb al, byte [rdi]
shr dword [rax + rdi*4 - 0xb349bc6], 1
movabs eax, dword [0xc8d6188368357131]
or ecx, edi
xor ebx, ecx
test dword [rax - 0x2c], 0x6d6f7a8c
cmp eax, 0xaf0bc458
enter 0xffffffffffffebf8, 0x66
mov bh, 0xa7
outsd dx, dword [rsi]
insd dword [rdi], dx
cmp eax, 0xcf0bc858
retfq
Function at 0x140152c88
Capabilities:
Parse pe header

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [0x140055310], 0
xorps xmm0, xmm0
movups xmmword [rax - 0x18], xmm0
je 0x1400022c6
cmp byte [0x140055290], 0
jne 0x1400023d4
lea rdx, [0x1400086a0]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [0x140055318]
test rcx, rcx
je 0x1400022ec
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
lea r8, [0x140055320]
lea rdx, [0x140055318]
lea rcx, [rsp + 0x20]
call fcn.1400036e8
test eax, eax
js 0x1400023c0
movsxd r8, dword [0x140055320]
xor r9d, r9d
mov r10, qword [0x140055318]
test r8, r8
jle 0x14000235b
mov ecx, r9d
mov eax, 0x92492493
imul r9d
add edx, r9d
inc r9d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 7
sub ecx, eax
movsxd rax, ecx
lea rcx, [0x140012750]
mov al, byte [rcx + rax*4]
xor byte [r10], al
inc r10
sub r8, 1
jne 0x140002322
mov rbx, qword [0x140055320]
movabs rax, 0x642c8590b21642c9
mov rbp, qword [0x140055318]
xor edi, edi
mul rbx
sub rbx, rdx
shr rbx, 1
add rbx, rdx
shr rbx, 6
test ebx, ebx
je 0x1400023c0
movsxd rsi, edi
lea rdx, [0x140055290]
imul rcx, rsi, 0x5c
mov r8d, 0x40
add rcx, rbp
call sub.ntoskrnl.exe_strncmp
test eax, eax
je 0x1400023b1
inc edi
cmp edi, ebx
jb 0x140002389
jmp 0x1400023c0
imul rax, rsi, 0x5c
mov ecx, dword [rax + rbp + 0x40]
mov qword [0x140055310], rcx
mov rcx, qword [0x140055318]
test rcx, rcx
je 0x1400023d4
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1400035f4
Capabilities:
Get file attributes

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xf0
mov rax, qword [0x1400508e0]
xor rax, rsp
mov qword [rbp + 0x47], rax
and qword [rbp - 0x29], 0
lea r9, [rbp - 0x21]
mov dword [rsp + 0x68], 0x100
xor eax, eax
and qword [rsp + 0x60], rax
xorps xmm0, xmm0
and dword [rsp + 0x58], eax
and dword [rsp + 0x50], eax
and qword [rsp + 0x48], rax
and qword [rbp - 9], rax
mov dword [rsp + 0x40], 0x20
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], r8d
lea r8, [rbp - 0x11]
mov qword [rbp - 1], rcx
lea rcx, [rbp - 0x29]
mov dword [rsp + 0x28], 0x80
and qword [rsp + 0x20], rax
movups xmmword [rbp + 0x1f], xmm0
mov qword [rbp + 0x3f], rax
movups xmmword [rbp + 0x2f], xmm0
mov dword [rbp - 0x11], 0x30
mov dword [rbp + 7], 0x240
movdqu xmmword [rbp + 0xf], xmm0
call qword [sym.imp.ntoskrnl.exe_IoCreateFile]
test eax, eax
jns 0x140003697
xor eax, eax
jmp 0x1400036d1
mov rcx, qword [rbp - 0x29]
lea r8, [rbp + 0x1f]
mov r9d, 0x28
mov dword [rsp + 0x20], 4
lea rdx, [rbp - 0x21]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
test eax, eax
jns 0x1400036c7
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x140003693
test byte [rbp + 0x3f], 0x10
jne 0x1400036bb
mov rax, qword [rbp - 0x29]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140008190
add rsp, 0xf0
pop rbp
ret
Function at 0x1400036e8
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x1400508e0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rsi, r8
mov r14, rdx
mov edx, 0x100080
mov r8d, 4
mov ebx, 0xc0000001
call fcn.1400035f4
mov rdi, rax
test rax, rax
je 0x1400037bf
mov r9d, 0x18
mov dword [rsp + 0x20], 5
lea r8, [rsp + 0x60]
mov rcx, rax
lea rdx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov ebx, eax
test eax, eax
js 0x1400037b6
mov edx, dword [rsp + 0x68]
mov ecx, 1
mov qword [rsi], rdx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [r14], rax
test rax, rax
je 0x1400037b6
and qword [rsp + 0x40], 0
xor r9d, r9d
and qword [rsp + 0x38], 0
xor r8d, r8d
mov ecx, dword [rsi]
xor edx, edx
mov dword [rsp + 0x30], ecx
mov rcx, rdi
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov ebx, eax
test eax, eax
jns 0x1400037b6
and qword [rsi], 0
xor edx, edx
mov rcx, qword [r14]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140008190
mov rbx, qword [rsp + 0xb8]
add rsp, 0x80
pop r14
pop rdi
pop rsi
ret
Function at 0x140004a7c
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x30
xor r14d, r14d
mov rdi, rcx
cmp qword [0x140055378], r14
mov dword [rbp + 0x30], r14d
je 0x140004aba
test rcx, rcx
je 0x140004bd1
mov eax, dword [0x140055380]
mov dword [rcx], eax
jmp 0x140004bd1
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
test rdx, rdx
je 0x140004b00
mov ecx, 0x7fff
mov rax, rdx
mov r8d, 2
cmp word [rax], r14w
je 0x140004ae5
add rax, r8
sub rcx, 1
jne 0x140004ad4
jmp 0x140004b00
add cx, cx
mov qword [rbp - 8], rdx
mov eax, 0xfffe
sub ax, cx
mov word [rbp - 0x10], ax
add ax, r8w
mov word [rbp - 0xe], ax
lea rcx, [rbp - 0x10]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov rsi, rax
test rax, rax
je 0x140004bda
mov r8d, dword [rbp + 0x30]
lea r9, [rbp + 0x30]
xor edx, edx
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov eax, dword [rbp + 0x30]
test eax, eax
je 0x140004bda
mov edx, eax
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov r8d, dword [rbp + 0x30]
xor edx, edx
mov rcx, rax
mov rbx, rax
call fcn.140008500
mov r8d, dword [rbp + 0x30]
lea r9, [rbp + 0x30]
mov rdx, rbx
mov ecx, 0xb
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
js 0x140004bc1
mov r8d, dword [rbx]
mov edx, r14d
test r8d, r8d
je 0x140004bc1
lea rcx, [rbx + 0x20]
mov r9, qword [rcx - 8]
cmp rsi, r9
jb 0x140004b8b
mov eax, dword [rcx]
add rax, r9
cmp rsi, rax
jb 0x140004b9b
inc edx
add rcx, 0x128
cmp edx, r8d
jae 0x140004bc1
jmp 0x140004b78
mov eax, edx
imul rcx, rax, 0x128
mov rax, qword [rcx + rbx + 0x18]
mov qword [0x140055378], rax
mov eax, dword [rcx + rbx + 0x20]
mov dword [0x140055380], eax
test rdi, rdi
je 0x140004bc1
mov dword [rdi], eax
test rbx, rbx
je 0x140004bd1
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, qword [0x140055378]
jmp 0x140004bdc
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rbp
ret
Function at 0x140005170
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
and dword [rbp + 0x10], 0
lea rdx, [0x1400085f0]
mov rbx, rcx
xor edi, edi
lea rcx, [rbp - 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and qword [rbp - 0x28], rdi
lea r8, [rbp - 0x30]
xorps xmm0, xmm0
mov dword [rbp - 0x30], 0x30
mov edx, 0xf003f
mov dword [rbp - 0x18], 0x40
lea rcx, [rbp + 0x18]
mov qword [rbp - 0x20], rbx
movdqu xmmword [rbp - 0x10], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x1400052b0
lea rdx, [0x140008670]
lea rcx, [rbp - 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rbp + 0x18]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea ebx, [rdi + 2]
and dword [rsp + 0x20], edi
lea rdx, [rbp - 0x50]
xor r9d, r9d
mov r8d, ebx
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
cmp eax, 0xc0000023
jne 0x14000525d
mov edx, dword [rbp + 0x10]
lea ecx, [rdi + 1]
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rdi, rax
test rax, rax
je 0x14000525d
mov ecx, dword [rbp + 0x10]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x50]
mov dword [rsp + 0x20], ecx
mov r9, rdi
mov rcx, qword [rbp + 0x18]
mov r8d, ebx
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
jns 0x14000525d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor edi, edi
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.ntoskrnl.exe_ZwFlushKey]
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
test rdi, rdi
je 0x1400052b0
lea rdx, [rdi + 0xc]
lea rcx, [rbp - 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and qword [rbp - 0x28], 0
lea rax, [rbp - 0x50]
xorps xmm0, xmm0
mov qword [rbp - 0x20], rax
lea rcx, [rbp - 0x50]
mov dword [rbp - 0x30], 0x30
movdqu xmmword [rbp - 0x10], xmm0
mov dword [rbp - 0x18], 0x40
call fcn.140003470
lea r11, [rsp + 0x80]
xor eax, eax
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1400057f0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x60
mov esi, 0x20
mov dword [rbp - 0x20], 0x244c8948
mov edx, esi
mov dword [rbp - 0x1c], 0xec834808
xor ecx, ecx
mov dword [rbp - 0x18], 0x448b4838
mov dword [rbp - 0x14], 0x89484024
mov dword [rbp - 0x10], 0x48202444
mov dword [rbp - 0xc], 0x2024448b
mov dword [rbp - 8], 0x8348d0ff
mov dword [rbp - 4], 0xc338c4
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rbx, rax
test rax, rax
jne 0x140005889
mov cl, byte [0x1400553a0]
test cl, cl
jne 0x140005889
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
lea r8, [rbp + 0x10]
mov qword [rbp + 0x10], 0xffffffffff676980
mov dl, 1
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_KeDelayExecutionThread]
test rbx, rbx
je 0x140005856
movups xmm0, xmmword [rbp - 0x20]
xor eax, eax
mov rdi, rbx
movups xmm1, xmmword [rbp - 0x10]
mov rcx, rsi
xor r9d, r9d
rep stosb byte [rdi], al
lea rax, [0x1400054e0]
xor r8d, r8d
mov qword [rsp + 0x30], rax
lea rcx, [0x140055390]
movups xmmword [rbx], xmm0
mov qword [rsp + 0x28], rbx
mov edx, 0x1fffff
and qword [rsp + 0x20], 0
movups xmmword [rbx + 0x10], xmm1
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140005a30
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rdi, rcx
xor esi, esi
and qword [rsp + 0x60], rsi
lea rcx, [0x1400087a0]
mov rbx, rdx
call fcn.140007668
mov qword [0x140055818], rax
test rax, rax
jne 0x140005a7f
mov rcx, rbx
call fcn.140005170
mov rcx, qword [rbx + 8]
call fcn.14000799c
mov eax, 0xc0000001
jmp 0x140005bb5
call fcn.1400076dc
mov dword [0x1400553a4], eax
mov rax, qword [rdi + 0x28]
or dword [rax + 0x68], 0x20
call fcn.140005384
test al, al
je 0x140005bb3
mov rcx, qword [rdi + 0x28]
lea r8, [rsp + 0x60]
lea rdx, [0x1400086f0]
call fcn.140004da8
test eax, eax
jns 0x140005ae1
mov rax, qword [0x1400553e0]
mov esi, 0xc0000182
test rax, rax
je 0x140005bb3
mov rcx, qword [0x1400553e0]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x140005bb3
mov rcx, qword [rsp + 0x60]
call fcn.1400020a8
lea rdx, [0x1400555f0]
lea rcx, [0x1400553f0]
call fcn.140002f94
lea r8, [0x1400052d0]
mov rdx, rbx
mov rcx, rdi
call fcn.140002bb8
call fcn.140003f50
test al, al
je 0x140005bb3
call fcn.140002efc
mov rcx, rax
call fcn.14000737c
test eax, eax
lea rcx, [0x140055830]
mov rdx, rbx
setns byte [0x14005fad4]
call fcn.140001700
mov rdx, rbx
lea rcx, [0x14005a870]
call fcn.140001700
lea r8, [0x140055360]
mov rcx, rbx
lea rdx, [0x140055368]
call fcn.140001654
mov rcx, rbx
call fcn.140001a34
call fcn.140006dd4
lea rcx, [0x1400059d0]
call fcn.140006660
and qword [rsp + 0x30], rsi
lea rax, [0x1400058f0]
mov qword [rsp + 0x28], rax
lea rcx, [0x140055398]
and qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1fffff
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
call fcn.1400057f0
mov eax, esi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140005ca0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x30
xor r15d, r15d
mov rdi, rcx
cmp qword [0x14005f8b0], r15
mov dword [rbp + 0x28], r15d
je 0x140005ce4
test rcx, rcx
je 0x140005e19
mov eax, dword [0x14005f8b8]
mov dword [rcx], eax
jmp 0x140005e19
xorps xmm0, xmm0
lea r8, [0x1400086f0]
movups xmmword [rbp - 0x10], xmm0
mov rax, r8
mov ecx, 0x7fff
mov edx, 2
cmp word [rax], r15w
je 0x140005d10
add rax, rdx
sub rcx, 1
jne 0x140005cff
jmp 0x140005d2a
add cx, cx
mov qword [rbp - 8], r8
mov eax, 0xfffe
sub ax, cx
mov word [rbp - 0x10], ax
add ax, dx
mov word [rbp - 0xe], ax
lea rcx, [rbp - 0x10]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov rsi, rax
test rax, rax
je 0x140005e22
mov r8d, dword [rbp + 0x28]
lea r9, [rbp + 0x28]
xor edx, edx
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov eax, dword [rbp + 0x28]
test eax, eax
je 0x140005e22
mov r8d, 0x416c6374
mov edx, eax
xor ecx, ecx
mov r14d, eax
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
je 0x140005d86
mov r8d, r14d
xor edx, edx
mov rcx, rax
call fcn.140008500
mov r8d, dword [rbp + 0x28]
xor edx, edx
mov rcx, rbx
call fcn.140008500
mov r8d, dword [rbp + 0x28]
lea r9, [rbp + 0x28]
mov rdx, rbx
mov ecx, 0xb
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
js 0x140005e06
mov r9d, dword [rbx]
mov edx, r15d
test r9d, r9d
je 0x140005e06
lea rcx, [rbx + 0x20]
mov r8, qword [rcx - 8]
cmp rsi, r8
jb 0x140005dd0
mov eax, dword [rcx]
add rax, r8
cmp rsi, rax
jb 0x140005de0
inc edx
add rcx, 0x128
cmp edx, r9d
jae 0x140005e06
jmp 0x140005dbd
mov eax, edx
imul rcx, rax, 0x128
mov rax, qword [rcx + rbx + 0x18]
mov qword [0x14005f8b0], rax
mov eax, dword [rcx + rbx + 0x20]
mov dword [0x14005f8b8], eax
test rdi, rdi
je 0x140005e06
mov dword [rdi], eax
test rbx, rbx
je 0x140005e19
mov edx, 0x416c6374
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, qword [0x14005f8b0]
jmp 0x140005e24
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rbp
ret
Function at 0x140005e40
Capabilities:
Access pe header
Check for software breakpoints

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1400508e0]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor ecx, ecx
call fcn.140005ca0
mov rbx, rax
mov rax, qword [0x14005f8c0]
test rax, rax
jne 0x140005f4a
test rbx, rbx
je 0x140005f48
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
lea rdx, [rax + 0x108]
movzx eax, word [rax + 6]
lea rcx, [rax + rax*4]
lea rsi, [rdx + rcx*8]
cmp rdx, rsi
jae 0x140005f48
mov eax, dword [rdx + 0x24]
and eax, 0x2a000000
cmp eax, 0x28000000
jne 0x140005f3f
mov eax, dword [rdx]
cmp eax, 0x54494e49
je 0x140005f3f
cmp eax, 0x45474150
je 0x140005f3f
movups xmm0, xmmword [0x140008820]
mov ecx, dword [rdx + 0xc]
movdqu xmmword [rsp + 0x20], xmm0
add rcx, rbx
je 0x140005f3f
mov r9d, dword [rdx + 8]
xor eax, eax
sub r9, 0xf
je 0x140005f3f
lea r8, [rsp + 0x20]
mov r10, rcx
sub r10, r8
xor r8d, r8d
lea rbp, [r10 + rax]
lea r11, [rsp + 0x20]
add r11, r8
mov dil, byte [r11]
cmp dil, 0xcc
je 0x140005f18
cmp dil, byte [r11 + rbp]
jne 0x140005f37
inc r8
cmp r8, 0xf
jb 0x140005f01
add rcx, rax
mov eax, dword [rcx + 3]
add rax, 7
add rax, rcx
mov qword [0x14005f8c0], rax
jmp 0x140005f4a
inc rax
cmp rax, r9
jb 0x140005efa
add rdx, 0x28
jmp 0x140005ea2
xor eax, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140008190
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret