joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400958a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
movzx eax, byte [rcx]
mov ecx, dword [rdx + 0x34]
test cl, 0x10
jne 0x140095902
test cl, 0x20
jne 0x140095944
mov r8d, eax
sar r8b, 7
mov ecx, eax
xor cl, r8b
sub cl, r8b
cmp cl, 0x64
jb 0x1400959b5
add cl, cl
add cl, 0x38
movzx ecx, cl
lea r8, [0x1400b7ede]
movzx ecx, word [rcx + r8]
mov word [rbp - 0x23], cx
mov r8d, 0x24
mov cl, 1
jmp 0x1400959c0
lea r9, [rbp + 0x38]
xor r8d, r8d
mov ecx, eax
nop dword [rax + rax]
mov r10d, eax
and r10b, 0xf
shr cl, 4
lea r11d, [r10 + 0x30]
lea esi, [r10 + 0x57]
cmp r10b, 0xa
movzx r10d, r11b
movzx r11d, sil
cmovb r11d, r10d
mov byte [r9 - 1], r11b
dec r9
inc r8
cmp al, 0x10
mov eax, ecx
jae 0x140095910
jmp 0x140095982
lea r9, [rbp + 0x38]
xor r8d, r8d
mov ecx, eax
nop dword [rax]
mov r10d, eax
and r10b, 0xf
shr cl, 4
lea r11d, [r10 + 0x30]
lea esi, [r10 + 0x37]
cmp r10b, 0xa
movzx r10d, r11b
movzx r11d, sil
cmovb r11d, r10d
mov byte [r9 - 1], r11b
dec r9
inc r8
cmp al, 0x10
mov eax, ecx
jae 0x140095950
mov ecx, pe_nt_image_headers64
sub rcx, r8
cmp rcx, 0x81
jae 0x140095a21
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], r9
lea r8, str.0x0o0b00010203040506070809101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899assertion_failed:_curr___19
mov r9d, 2
mov rcx, rdx
mov dl, 1
jmp 0x140095a11
mov r8d, 0x26
cmp cl, 0xa
jae 0x1400959ca
or cl, 0x30
mov byte [rbp + r8 - 0x48], cl
jmp 0x1400959e3
movzx ecx, cl
lea r8, [0x1400b7ede]
movzx ecx, word [r8 + rcx*2]
mov word [rbp - 0x23], cx
mov r8d, 0x25
lea rcx, [r8 + rbp]
add rcx, 0xffffffffffffffb8
mov r9d, 0x27
sub r9, r8
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], rcx
not al
shr al, 7
mov r8d, 1
mov rcx, rdx
mov edx, eax
xor r9d, r9d
call sym.core::fmt::Formatter::pad_integral::hcd991e4585082cf6
nop
add rsp, 0xb8
pop rsi
pop rbp
ret
lea r8, str.core_src_fmt_num.rs
mov edx, pe_nt_image_headers64
call sym.core::slice::index::slice_start_index_len_fail::h419d9fe760474afb
int3
Function at 0x14009c9b0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rbx, rcx
lea rax, [rbp + 0x28]
mov ecx, 2
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
mov qword [rbp - 8], 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 [rbp - 8]
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 dword [rax]

Function at 0x14009ca20
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
movsxd rsi, dword [0x1400d61f4]
mov rbx, rcx
test esi, esi
jle 0x14009cb50
mov rax, qword [0x1400d61f8]
xor r9d, r9d
add rax, 0x18
nop dword [rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14009ca6b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14009caf3
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14009ca50
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x14009cb72
mov rax, qword [0x1400d61f8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400d61f8]
lea rdx, [rbp - 0x30]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14009cb57
mov eax, dword [rbp - 0xc]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14009caec
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14009cb00
add dword [0x1400d61f4], 1
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 2
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400d61f8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14009caec
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop word [rax + rax]
xor esi, esi
jmp 0x14009ca78
mov rax, qword [0x1400d61f8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x14009d100
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
lea r13, [0x1400d6260]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400d6240]
test rbx, rbx
je 0x14009d165
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, dword [rbx]
call r12
mov rsi, rax
call rdi
test rsi, rsi
je 0x14009d15c
test eax, eax
jne 0x14009d15c
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14009d140
mov rcx, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14009d3a0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14009d3b8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14009d3c0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14009d3d0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14009d41d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x14009d414
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14009d41f
add rax, 0x28
cmp rax, r9
jne 0x14009d400
xor eax, eax
ret

Function at 0x14009d420
Capabilities:
Parse pe header

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x14009d4b8
mov rdx, qword [0x1400c3c10]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14009d4a6
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14009d4a6
cmp word [rax + 0x18], 0x20b
jne 0x14009d4a6
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x14009d4b8
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x14009d491
add rbx, 0x28
cmp rbx, rdi
je 0x14009d4b8
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x14009d488
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x14009d4d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400c3c10]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14009d4f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14009d4f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14009d4f0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14009d54d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14009d544
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14009d4f0
add rax, 0x28
cmp rax, r9
jne 0x14009d530
xor eax, eax
ret
Function at 0x14009d550
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400c3c10]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14009d56f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14009d578
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14009d56f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14009d590
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400c3c10]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x14009d5b0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x14009d5b8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x14009d5b0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x14009d600
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14009d5f7
test rcx, rcx
je 0x14009d5b0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x14009d5e8
xor eax, eax
ret

Function at 0x14009d610
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400c3c10]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14009d62f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14009d638
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x14009d650
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400c3c10]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14009d670
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14009d678
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14009d670
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x14009d670
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x14009d6c4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14009d6d0
add rdx, 0x28
cmp rdx, r9
jne 0x14009d6b0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x14009d6e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x1400c3c10]
xor r8d, r8d
cmp word [r11], 0x5a4d
mov r10d, ecx
jne 0x14009d704
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
cmp dword [rcx], 0x4550
je 0x14009d710
mov rax, r8
ret
cmp word [rcx + 0x18], 0x20b
jne 0x14009d704
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x14009d704
movzx edx, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rdx, [rcx + rdx + 0x18]
test r9w, r9w
je 0x14009d704
lea ecx, [r9 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rdx + 0xc]
mov rcx, r8
cmp rax, r8
jb 0x14009d75c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x14009d770
add rdx, 0x28
cmp r9, rdx
jne 0x14009d748
xor r8d, r8d
mov rax, r8
ret
add rax, r11
jmp 0x14009d780
sub r10d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x14009d78e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14009d765
test r10d, r10d
jg 0x14009d778
mov r8d, dword [rax + 0xc]
add r8, r11
mov rax, r8
ret
Function at 0x11008
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0xa8
mov rax, qword [0x0001d100]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov dword [rsp + 0x40], 0x30
and qword [r11 - 0x60], 0
mov dword [rsp + 0x58], 0x40
and qword [r11 - 0x48], 0
and qword [r11 - 0x40], 0
mov qword [r11 - 0x58], rcx
lea rcx, [r11 - 0x78]
lea r8, [r11 - 0x68]
mov edx, 0x20019
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x110c8
lea rdx, [0x0001aa00]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rsp + 0x30]
lea r11, [rsp + 0x38]
mov qword [rsp + 0x28], r11
lea r9, [rsp + 0x80]
lea rdx, [rsp + 0x70]
mov r8d, 2
mov dword [rsp + 0x20], 0x14
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
js 0x110bd
cmp dword [rsp + 0x88], 4
jne 0x110bd
cmp dword [rsp + 0x8c], 1
jne 0x110bd
call sub.ntoskrnl.exe_DbgBreakPoint
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.0001a4b0
add rsp, 0xa8
ret

Function at 0x11570
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r13
sub rsp, 0x30
mov rsi, rcx
mov rcx, qword [rcx + 0x30]
xor ebx, ebx
test rcx, rcx
mov bpl, r8b
mov rdi, rdx
je 0x116ae
mov rax, cr8
cmp al, 2
jae 0x115c0
lea rdx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x116ae
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp qword [rsi], rbx
je 0x116a7
test bpl, bpl
mov r13d, 1
je 0x11603
mov r8d, dword [str.NxMm]
lea edx, [r13 + 0x17]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
test rax, rax
mov qword [rdi + 0x10], rax
je 0x1164a
xor r8d, r8d
mov edx, r13d
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
mov qword [rdi + 0x20], rdi
movabs rax, qword [0xfffff78000000320]
cmp qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], rax
mov eax, r13d
setne bpl
lock cmpxchg dword [0x0001d180], r13d
test eax, eax
je 0x11651
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x11651
xor r8d, r8d
xor edx, edx
mov word [rdi + 0x2c], 0x100
call qword [sym.imp.ntoskrnl.exe_KeSetEvent]
mov ebx, 0xc0000001
jmp 0x11666
mov ebx, 0xc0000017
jmp 0x116bb
mov rcx, qword [rsi]
lea r8, [rsi + 0x20]
mov rdx, rdi
call qword [sym.imp.ntoskrnl.exe_ExInterlockedInsertTailList]
lock add dword [rsi + 8], r13d
mov rcx, qword [rsi + 0x28]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_KeSetEvent]
test bpl, bpl
je 0x116bb
mov rcx, qword [rdi + 0x10]
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
mov rcx, qword [rdi + 0x10]
xor edx, edx
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
and qword [rdi + 0x10], 0
jmp 0x116bb
mov ebx, 0xc0000022
jmp 0x116bb
mov rcx, rsi
mov ebx, 0xc000021a
call fcn.00011414
mov rbp, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r13
pop rdi
pop rsi
ret
Function at 0x11d90
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xd0
xor edi, edi
lea r8, [rsp + 0x30]
mov rbx, rcx
lea r9d, [rdi + 0x40]
lea edx, [rdi + 0x25]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationProcess]
mov rdx, qword [rsp + 0x30]
cmp eax, edi
cmovl rdx, rdi
cmp rdx, rdi
mov qword [rsp + 0x30], rdx
jne 0x11e71
cmp rbx, rdi
je 0x11e71
lea r9d, [rdi + 0x30]
lea r8, [rsp + 0xa0]
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationProcess]
cmp eax, edi
jl 0x11e6c
mov rcx, qword [rsp + 0xc0]
lea rdx, [rsp + 0xe8]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp eax, edi
jl 0x11e6c
mov rcx, qword [rsp + 0xe8]
lea rdx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
lea r9d, [rdi + 0x40]
lea r8, [rsp + 0x30]
lea edx, [rdi + 0x25]
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationProcess]
mov rcx, qword [rsp + 0x30]
cmp eax, edi
cmovl rcx, rdi
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rdx, qword [rsp + 0x30]
mov eax, edx
mov rbx, qword [rsp + 0xe0]
add rsp, 0xd0
pop rdi
ret

Function at 0x1251c
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
lea r9, [rax + 0x10]
xor r8d, r8d
lea edi, [rbx + 0xb]
xor edx, edx
mov dword [rax + 0x10], ebx
mov ecx, edi
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov eax, dword [rsp + 0x38]
cmp eax, ebx
je 0x125e4
lea edx, [rax + rax]
lea ecx, [rbx + 1]
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
cmp rax, rbx
mov rbp, rax
je 0x125e4
mov r8d, dword [rsp + 0x38]
xor r9d, r9d
mov rdx, rax
add r8d, r8d
mov ecx, edi
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
cmp eax, ebx
jne 0x125d9
cmp qword [rbp], rbx
mov edx, ebx
jbe 0x125d9
mov rax, rbx
lea r8, [rbp + 0x2e]
movzx ecx, word [r8]
imul rax, rax, 0x128
lea rsi, [0x0001aa50]
lea rax, [rax + rbp + 8]
lea rdi, [rcx + rax + 0x28]
mov ecx, 0xa
repe cmpsb byte [rsi], byte [rdi]
je 0x125cb
add edx, 1
add r8, 0x128
mov eax, edx
cmp rax, qword [rbp]
jb 0x12592
jmp 0x125d9
mov eax, edx
imul rax, rax, 0x128
mov rbx, qword [rax + rbp + 0x18]
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x12604
Capabilities:
Parse pe header
Resolve function by parsing pe exports

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
push r13
push r14
test rcx, rcx
mov rbp, rdx
mov r8, rcx
je 0x126c2
cmp word [rcx], 0x5a4d
jne 0x126c2
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x126c2
mov r12d, dword [rax + rcx + 0x88]
mov r14d, dword [rax + rcx + 0x8c]
lea rax, [rcx + r12]
mov ebx, dword [rax + 0x1c]
mov r11d, dword [rax + 0x24]
mov esi, dword [rax + 0x20]
mov r13d, dword [rax + 0x18]
add rbx, rcx
add r11, rcx
add rsi, rcx
xor ecx, ecx
test r13d, r13d
je 0x126c2
mov r9, r11
movzx eax, word [r9]
mov edx, dword [rbx + rax*4]
cmp edx, r12d
jb 0x1268d
lea eax, [r12 + r14]
cmp edx, eax
jb 0x126b2
mov eax, dword [rsi]
mov rdi, rbp
add rax, r8
sub rdi, rax
movzx edx, byte [rax]
movzx r10d, byte [rax + rdi]
sub edx, r10d
jne 0x126ae
add rax, 1
test r10d, r10d
jne 0x12698
test edx, edx
je 0x126df
add ecx, 1
add r9, 2
add rsi, 4
cmp ecx, r13d
jb 0x12679
xor eax, eax
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
pop r14
pop r13
pop r12
ret
movzx ecx, word [r11 + rcx*2]
mov eax, dword [rbx + rcx*4]
add rax, r8
jmp 0x126c4

Function at 0x12788
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov qword [rax + 0x10], rdx
push rdi
sub rsp, 0x60
mov r10, qword [0x0001d1c0]
xor ebx, ebx
mov rsi, rcx
mov qword [rax + 0x18], rbx
mov rax, qword [rax - 0x30]
mov edi, 0x71700000
cmp r10, rbx
je 0x127e9
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x30
call r10
mov r10, qword [0x0001d1c0]
mov r11d, eax
mov rax, qword [rsp + 0x38]
jmp 0x127ef
mov r11d, 0xc0000001
cmp r11d, ebx
jl 0x1284f
cmp dword [rsp + 0x50], 0x10000
je 0x12811
cmp rdi, rax
jne 0x1280c
sub rdi, 0x10000
jmp 0x127b5
mov rdi, rax
jmp 0x127b5
lea r9, [rsp + 0x78]
lea rdx, [rsp + 0x30]
xor r8d, r8d
mov rcx, rsi
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x2000
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov rcx, qword [rsp + 0x80]
cmp eax, ebx
cmovge rcx, qword [rsp + 0x30]
mov qword [rsp + 0x80], rcx
lea r9, [rsp + 0x78]
lea rdx, [rsp + 0x80]
xor r8d, r8d
mov rcx, rsi
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
lea r11, [rsp + 0x60]
mov rsi, qword [r11 + 0x28]
cmp eax, ebx
cmovge rbx, qword [rsp + 0x80]
mov rax, rbx
mov rbx, qword [r11 + 0x10]
mov rsp, r11
pop rdi
ret
Function at 0x12f1c
Capabilities:
Enumerate processes via ntquerysysteminformation
Find process by pid
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rsi, rcx
xor ebx, ebx
mov edi, 0x1000
add edi, edi
test rbx, rbx
je 0x12f58
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov r8d, dword [str.NxMm]
mov edx, edi
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
test rax, rax
mov rbx, rax
je 0x12f8b
xor r9d, r9d
mov r8d, edi
mov rdx, rax
lea ecx, [r9 + 5]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov ebp, eax
jmp 0x12f90
mov ebp, 0xc000009a
cmp ebp, 0xc0000004
je 0x12f46
test ebp, ebp
js 0x130fa
test edi, edi
je 0x130fa
mov rdi, rbx
mov r8d, dword [str.NxMm]
mov edx, 0x98
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
test rax, rax
mov r12, rax
je 0x130eb
xor edx, edx
mov r8d, 0x98
mov rcx, rax
call fcn.0001a520
lea rax, [r12 + 0x30]
lea rcx, [r12 + 0x40]
mov qword [rax + 8], rax
mov qword [rax], rax
mov qword [rcx + 8], rcx
mov qword [rcx], rcx
lea rax, [r12 + 0x50]
lea rdx, [r12 + 0x18]
mov qword [rax + 8], rax
mov qword [rax], rax
lea rax, [r12 + 0x68]
mov qword [rax + 8], rax
mov qword [rax], rax
lea rax, [r12 + 0x80]
mov qword [rax + 8], rax
mov qword [rax], rax
mov rcx, qword [rdi + 0x50]
mov qword [r12 + 0x10], rcx
mov rax, qword [rdi + 0x58]
mov qword [r12 + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
mov ebp, eax
js 0x1304a
mov rcx, qword [r12 + 0x18]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x13050
and qword [r12 + 0x18], 0
xor r15d, r15d
cmp dword [rdi + 4], r15d
jbe 0x130d7
lea r14, [rdi + 0x120]
lea rsi, [r12 + 0x30]
mov r8d, dword [str.NxMm]
mov edx, 0x28
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
test rax, rax
mov r13, rax
je 0x130c4
mov rcx, qword [r14 + 8]
mov qword [rax + 0x10], rcx
mov rdx, qword [r14]
mov qword [rax + 0x20], rdx
lea rdx, [rax + 0x18]
call qword [sym.imp.ntoskrnl.exe_PsLookupThreadByThreadId]
test eax, eax
mov ebp, eax
js 0x130ac
mov rcx, qword [r13 + 0x18]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x130b1
and qword [r13 + 0x18], 0
mov rax, qword [rsi + 8]
mov qword [r13], rsi
mov qword [r13 + 8], rax
mov qword [rax], r13
mov qword [rsi + 8], r13
add r15d, 1
add r14, 0x50
cmp r15d, dword [rdi + 4]
jb 0x13065
mov rsi, qword [rsp + 0x50]
mov rax, qword [rsi + 8]
mov qword [r12], rsi
mov qword [r12 + 8], rax
mov qword [rax], r12
mov qword [rsi + 8], r12
cmp dword [rdi], 0
je 0x130fa
mov eax, dword [rdi]
add rdi, rax
jmp 0x12fab
test rbx, rbx
je 0x1310a
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rbx, qword [rsi]
jmp 0x1311b
mov rcx, qword [rbx + 0x10]
call fcn.000196fc
mov rbx, qword [rbx]
cmp rbx, rsi
jne 0x1310f
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
mov eax, ebp
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret