joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001de0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x20]
mov r8d, dword [rsp + 0x20]
xor edx, edx
mov ecx, 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x20], 0
jne 0x140001e19
xor eax, eax
jmp 0x140001f21
mov eax, dword [rsp + 0x20]
mov r8d, 0x4e554c4c
mov edx, eax
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x20]
mov r8d, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x30]
mov ecx, 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jge 0x140001e5d
xor eax, eax
jmp 0x140001f21
mov rax, qword [rsp + 0x30]
add rax, 8
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x24], 0
jmp 0x140001e91
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
cmp dword [rsp + 0x24], eax
jae 0x140001efb
mov eax, dword [rsp + 0x24]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax + 0x28]
mov rdx, qword [rsp + 0x60]
mov rcx, rax
call fcn.140013110
test eax, eax
jne 0x140001ef9
mov eax, dword [rsp + 0x24]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx + rax + 0x10]
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x24]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax + 0x18]
mov qword [rsp + 0x48], rax
jmp 0x140001efb
jmp 0x140001e87
cmp qword [rsp + 0x30], 0
je 0x140001f10
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp qword [rsp + 0x40], 0
jne 0x140001f1c
xor eax, eax
jmp 0x140001f21
mov rax, qword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x140003a20
Capabilities:
Inspect section memory permissions

Disassembly:
mov byte [rsp + 0x10], dl
mov dword [rsp + 8], ecx
sub rsp, 0x18
mov dword [rsp], 1
mov eax, dword [rsp + 0x20]
and eax, 0x2000000
test eax, eax
je 0x140003a4c
mov dword [rsp], 1
jmp 0x140003b16
mov eax, dword [rsp + 0x20]
and eax, 0x20000000
test eax, eax
je 0x140003ae3
mov eax, dword [rsp + 0x20]
and eax, 0x80000000
test eax, eax
je 0x140003a8e
movzx eax, byte [rsp + 0x28]
test eax, eax
je 0x140003a7d
mov dword [rsp + 4], 4
jmp 0x140003a85
mov dword [rsp + 4], 0x40
mov eax, dword [rsp + 4]
mov dword [rsp], eax
jmp 0x140003ae1
mov eax, dword [rsp + 0x20]
and eax, 0x40000000
test eax, eax
je 0x140003abf
movzx eax, byte [rsp + 0x28]
test eax, eax
je 0x140003aae
mov dword [rsp + 8], 2
jmp 0x140003ab6
mov dword [rsp + 8], 0x20
mov eax, dword [rsp + 8]
mov dword [rsp], eax
jmp 0x140003ae1
movzx eax, byte [rsp + 0x28]
test eax, eax
je 0x140003ad2
mov dword [rsp + 0xc], 2
jmp 0x140003ada
mov dword [rsp + 0xc], 0x10
mov eax, dword [rsp + 0xc]
mov dword [rsp], eax
jmp 0x140003b16
mov eax, dword [rsp + 0x20]
and eax, 0x80000000
test eax, eax
je 0x140003af9
mov dword [rsp], 4
jmp 0x140003b16
mov eax, dword [rsp + 0x20]
and eax, 0x40000000
test eax, eax
je 0x140003b0f
mov dword [rsp], 2
jmp 0x140003b16
mov dword [rsp], 1
mov eax, dword [rsp]
add rsp, 0x18
ret
Function at 0x140003c10
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140003d5e
mov dword [rsp + 0x38], 0
lea r9, [rsp + 0x38]
mov r8w, 0xa
mov dl, 1
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_RtlImageDirectoryEntryToData]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140003d5c
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x140003c8d
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x58]
mov qword [rsp + 0x40], rax
jmp 0x140003c9a
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x140003d5c
mov rax, qword [rsp + 0x70]
shr rax, 0x20
mov ecx, dword [rsp + 0x70]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x3c], eax
lea rcx, [rsp + 0x3c]
call qword [sym.imp.ntoskrnl.exe_RtlRandomEx]
mov eax, eax
mov rcx, qword [rsp + 0x70]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x140003d24
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x140003d08
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x58]
mov qword [rsp + 0x48], rax
jmp 0x140003d15
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x58]
mov qword [rax], rcx
jmp 0x140003d5c
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x140003d44
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x58]
mov qword [rsp + 0x50], rax
jmp 0x140003d51
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x58]
mov dword [rax], ecx
jmp 0x140003d66
mov dword [rsp + 0x28], 0xc000007b
mov eax, dword [rsp + 0x28]
add rsp, 0x68
ret
Function at 0x140005ea0
Capabilities:
Access pe header
Get file attributes
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xd0
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
lea rax, [rsp + 0xa0]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
lea rax, [rsp + 0x78]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rax, [rsp + 0x88]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
cmp qword [rsp + 0xe0], 0
je 0x140005f12
cmp qword [rsp + 0xe8], 0
jne 0x140005f1c
mov eax, 0xc000000d
jmp 0x1400060db
mov dword [rsp + 0xa0], 0x30
mov qword [rsp + 0xa8], 0
mov dword [rsp + 0xb8], 0x200
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xc0], 0
mov qword [rsp + 0xc8], 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], 1
mov dword [rsp + 0x28], pe_nt_image_headers64
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
lea r8, [rsp + 0xa0]
mov edx, 0x100001
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jge 0x140005fd1
mov eax, dword [rsp + 0x60]
jmp 0x1400060db
mov dword [rsp + 0x20], 5
mov r9d, 0x18
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jl 0x140006026
mov r8d, 0x35347936
mov rdx, qword [rsp + 0x90]
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rcx, qword [rsp + 0xe8]
mov qword [rcx], rax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0xe8]
mov rax, qword [rax]
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 + 0x68]
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jl 0x1400060a1
mov rax, qword [rsp + 0xe8]
mov rcx, qword [rax]
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x1400060a1
mov dword [rsp + 0x60], 0xc000007b
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
cmp dword [rsp + 0x60], 0
jge 0x1400060d7
mov rax, qword [rsp + 0xe8]
cmp qword [rax], 0
je 0x1400060d7
mov edx, 0x35347936
mov rax, qword [rsp + 0xe8]
mov rcx, qword [rax]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [rsp + 0x60]
add rsp, 0xd0
pop rdi
ret
Function at 0x140006280
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xe0
mov qword [rsp + 0x58], 0
lea rax, [rsp + 0x98]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
mov qword [rsp + 0x48], 0
lea rax, [rsp + 0x60]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov dword [rsp + 0x68], 0x30
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x80], 0x200
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x90], 0
cmp qword [rsp + 0xf0], 0
jne 0x140006327
mov eax, 0xc000000d
jmp 0x14000643c
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x30], rax
lea rax, [0x140006450]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x68]
mov edx, 0x1fffff
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x140006379
mov eax, dword [rsp + 0x40]
jmp 0x14000643c
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov rax, qword [sym.imp.ntoskrnl.exe_PsThreadType]
mov r8, qword [rax]
mov edx, 0x1fffff
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jl 0x140006425
lea rax, [rsp + 0xa8]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x20], 0
mov r9b, 1
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x30
lea r8, [rsp + 0xa8]
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationThread]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x40], eax
cmp qword [rsp + 0x48], 0
je 0x140006438
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [rsp + 0x40]
add rsp, 0xe0
pop rdi
ret
Function at 0x140008430
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 0x18], r8
mov byte [rsp + 0x10], dl
mov dword [rsp + 8], ecx
sub rsp, 0x48
movzx eax, byte [rsp + 0x58]
test eax, eax
je 0x14000845e
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
jmp 0x140008535
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140008533
mov rax, qword [rsp + 0x28]
add rax, 0x108
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x10b
jne 0x1400084aa
mov rax, qword [rsp + 0x28]
add rax, 0xf8
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
jmp 0x1400084c4
mov rax, qword [rsp + 0x20]
add rax, 0x28
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 6]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x20], rax
jae 0x140008533
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x50], eax
jb 0x140008531
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x20]
add eax, dword [rcx + 8]
cmp dword [rsp + 0x50], eax
jae 0x140008531
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x14]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x20]
mov ecx, dword [rcx + 0xc]
mov edx, dword [rsp + 0x50]
sub edx, ecx
mov ecx, edx
mov ecx, ecx
add rax, rcx
jmp 0x140008535
jmp 0x1400084b6
xor eax, eax
add rsp, 0x48
ret
Function at 0x140009560
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x24], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x40], 0
cmp qword [0x140015548], 0
je 0x1400095b6
cmp qword [rsp + 0x70], 0
je 0x1400095aa
mov rax, qword [rsp + 0x70]
mov ecx, dword [0x140015550]
mov dword [rax], ecx
mov rax, qword [0x140015548]
jmp 0x14000975b
lea rdx, [0x1400139d0]
lea rcx, [rsp + 0x48]
call fcn.14000ae30
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x1400095e6
xor eax, eax
jmp 0x14000975b
lea r9, [rsp + 0x24]
mov r8d, dword [rsp + 0x24]
xor edx, edx
mov ecx, 0xb
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x24], 0
jne 0x14000960f
xor eax, eax
jmp 0x14000975b
mov eax, dword [rsp + 0x24]
mov r8d, 0x35347936
mov edx, eax
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x24]
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x30]
call fcn.1400135c0
lea r9, [rsp + 0x24]
mov r8d, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x30]
mov ecx, 0xb
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jl 0x14000973c
mov rax, qword [rsp + 0x30]
add rax, 8
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x20], 0
jmp 0x140009686
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
cmp dword [rsp + 0x20], eax
jae 0x14000973c
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx + rax + 0x10]
cmp qword [rsp + 0x40], rax
jb 0x140009737
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x128
mov ecx, dword [rsp + 0x20]
imul rcx, rcx, 0x128
mov rdx, qword [rsp + 0x38]
mov ecx, dword [rdx + rcx + 0x18]
mov rdx, qword [rsp + 0x38]
add rcx, qword [rdx + rax + 0x10]
mov rax, rcx
cmp qword [rsp + 0x40], rax
jae 0x140009737
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx + rax + 0x10]
mov qword [0x140015548], rax
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax + 0x18]
mov dword [0x140015550], eax
cmp qword [rsp + 0x70], 0
je 0x140009735
mov rax, qword [rsp + 0x70]
mov ecx, dword [0x140015550]
mov dword [rax], ecx
jmp 0x14000973c
jmp 0x14000967c
cmp qword [rsp + 0x30], 0
je 0x140009754
mov edx, 0x35347936
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, qword [0x140015548]
add rsp, 0x68
ret
Function at 0x140009850
Capabilities:
Access pe header

Disassembly:
push rsi
push rdi
sub rsp, 0x78
xor ecx, ecx
call fcn.140009560
mov qword [rsp + 0x40], rax
cmp qword [0x140015558], 0
je 0x140009879
mov rax, qword [0x140015558]
jmp 0x1400099db
cmp qword [rsp + 0x40], 0
jne 0x140009888
xor eax, eax
jmp 0x1400099db
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
add rax, 0x108
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x38], rax
jmp 0x1400098c2
mov rax, qword [rsp + 0x38]
add rax, 0x28
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 6]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x38], rax
jae 0x1400099d9
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x24]
and eax, 0x8000000
test eax, eax
je 0x1400099d4
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x24]
and eax, 0x20000000
test eax, eax
je 0x1400099d4
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x24]
and eax, 0x2000000
test eax, eax
jne 0x1400099d4
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0x54494e49
je 0x1400099d4
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0x45474150
je 0x1400099d4
mov qword [rsp + 0x48], 0
lea rax, [rsp + 0x60]
lea rcx, [0x1400139f0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x38]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0x40]
add rdx, rcx
mov rcx, rdx
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rax
mov r9, rcx
mov r8d, 0xf
mov dl, 0xcc
lea rcx, [rsp + 0x60]
call fcn.1400087f0
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x1400099d4
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 3]
mov rcx, qword [rsp + 0x48]
lea rax, [rcx + rax + 7]
mov qword [0x140015558], rax
mov rax, qword [0x140015558]
jmp 0x1400099db
jmp 0x1400098b4
xor eax, eax
add rsp, 0x78
pop rdi
pop rsi
ret
Function at 0x14000a750
Capabilities:
Access pe header
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x14000a7a4
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x24], eax
jmp 0x14000a93f
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0x18]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0x10b
je 0x14000a7c7
cmp dword [rsp + 0x38], 0x20b
je 0x14000a7d6
jmp 0x14000a7e6
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x34]
mov qword [rsp + 0x48], rax
jmp 0x14000a7f6
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x48], rax
jmp 0x14000a7f6
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x24], eax
jmp 0x14000a93f
lea r9, [rsp + 0x28]
mov r8w, 5
mov dl, 1
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_RtlImageDirectoryEntryToData]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14000a824
cmp dword [rsp + 0x28], 0
jne 0x14000a859
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0x16]
and eax, 1
test eax, eax
je 0x14000a841
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x3c], eax
jmp 0x14000a84c
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x24], eax
jmp 0x14000a93f
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x80]
sub rcx, rax
mov rax, rcx
add rax, qword [rsp + 0x88]
mov qword [rsp + 0x58], rax
cmp dword [rsp + 0x28], 0
je 0x14000a934
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 4]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x14000a8a7
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x24], eax
jmp 0x14000a93f
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x28]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x20]
sub rax, 8
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
xor edx, edx
mov ecx, 2
div rcx
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x30]
add rax, 8
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x50]
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
call fcn.14000a4a0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x14000a92f
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x24], eax
jmp 0x14000a93f
jmp 0x14000a879
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
add rsp, 0x78
ret
Function at 0x14000b640
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x38], 0
mov rax, qword [rsp + 0x60]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x20], 0
jmp 0x14000b6a1
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x20], eax
jae 0x14000b738
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x45474150
je 0x14000b6f7
mov rax, qword [rsp + 0x28]
mov r8d, 5
lea rdx, [0x140013d60]
mov rcx, rax
call fcn.140013230
test eax, eax
jne 0x14000b733
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov r9, qword [rsp + 0x70]
mov r8, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x28]
mov edx, dword [rcx + 8]
mov rcx, rax
call fcn.14000b5b0
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x14000b733
jmp 0x14000b738
jmp 0x14000b697
mov rax, qword [rsp + 0x38]
add rsp, 0x58
ret
Function at 0x14000b750
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x24], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x40], 0
lea r9, [rsp + 0x24]
mov r8d, dword [rsp + 0x24]
xor edx, edx
mov ecx, 0xb
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x24], 0
jne 0x14000b7a9
xor eax, eax
jmp 0x14000b8e7
mov eax, dword [rsp + 0x24]
mov edx, eax
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x14000b7cb
xor eax, eax
jmp 0x14000b8e7
mov eax, dword [rsp + 0x24]
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x30]
call fcn.1400135c0
lea r9, [rsp + 0x24]
mov r8d, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x30]
mov ecx, 0xb
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jl 0x14000b8cd
mov rax, qword [rsp + 0x30]
add rax, 8
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x20], 0
jmp 0x14000b829
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
cmp dword [rsp + 0x20], eax
jae 0x14000b8cd
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx + rax + 0x10]
cmp qword [rsp + 0x60], rax
jb 0x14000b8c8
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x128
mov ecx, dword [rsp + 0x20]
imul rcx, rcx, 0x128
mov rdx, qword [rsp + 0x38]
mov ecx, dword [rdx + rcx + 0x18]
mov rdx, qword [rsp + 0x38]
add rcx, qword [rdx + rax + 0x10]
mov rax, rcx
cmp qword [rsp + 0x60], rax
jae 0x14000b8c8
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx + rax + 0x10]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x68], 0
je 0x14000b8c6
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x38]
mov eax, dword [rdx + rax + 0x18]
mov dword [rcx], eax
jmp 0x14000b8cd
jmp 0x14000b81f
cmp qword [rsp + 0x30], 0
je 0x14000b8e2
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, qword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x14000c620
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov byte [rsp + 0x20], 0
mov rcx, qword [rsp + 0x50]
call fcn.140013360
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x24]
cdq
idiv dword [rsp + 0x2c]
mov eax, edx
cdqe
movsxd rcx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x30]
movzx eax, byte [r8 + rax]
mov byte [rdx + rcx], al
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x60]
movzx edx, byte [rsp + 0x24]
mov byte [rcx + rax], dl
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0x100
jl 0x14000c658
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x28], 0
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x60]
movzx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0x28]
add ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x58]
movzx ecx, byte [rdx + rcx]
add eax, ecx
and eax, 0xff
mov dword [rsp + 0x28], eax
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x60]
movzx eax, byte [rcx + rax]
mov byte [rsp + 0x20], al
movsxd rax, dword [rsp + 0x28]
movsxd rcx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x60]
movzx eax, byte [r8 + rax]
mov byte [rdx + rcx], al
movsxd rax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
movzx edx, byte [rsp + 0x20]
mov byte [rcx + rax], dl
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0x100
jl 0x14000c6b2
add rsp, 0x48
ret