joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4027a0
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 0x4027e1
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 0x4027d8
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x4027e3
add rax, 0x28
cmp rax, r9
jne 0x4027c4
xor eax, eax
repz ret

Function at 0x402880
Capabilities:
Enumerate pe sections

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

Function at 0x402a10
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00404940]
xor eax, eax
mov rdx, rcx
cmp word [r8], 0x5a4d
je 0x402a30
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402a28
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 0x402a8d
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 0x402a84
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402a94
add rax, 0x28
cmp rax, r9
jne 0x402a70
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x402ab0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00404940]
xor r9d, r9d
mov r8d, ecx
cmp word [r11], 0x5a4d
je 0x402ad1
mov rax, r9
add rsp, 0x28
ret
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402ac9
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x402ac9
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x402ac9
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov rcx, r9
jb 0x402b24
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x402b40
add rdx, 0x28
cmp rdx, r10
jne 0x402b10
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jne 0x402b58
jmp 0x402b2d
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x402b66
mov edx, dword [rax + 0xc]
test edx, edx
je 0x402b2d
test r8d, r8d
jg 0x402b50
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x1400013b8
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
and qword [0x14000a0a8], 0
lea rcx, [0x14000a0b8]
and dword [0x14000a0b0], 0
mov edx, 1
xor r8d, r8d
mov dword [0x14000a0a0], edx
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
lea rcx, [0x140007850]
jmp fcn.14012d800

Function at 0x140002088
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rsi, r8
mov ebx, edx
mov r8d, edx
mov rdi, rcx
mov rdx, rcx
mov r15, r9
mov rcx, rsi
call fcn.1400073c0
shr rbx, 3
xor ebp, ebp
test rbx, rbx
je 0x14000211b
mov r14d, ebp
sub rdi, rsi
mov rcx, r15
call fcn.140002eb0
movsxd rcx, r14d
inc ebp
add rcx, qword [r15 + 0x10]
add r14d, 0x10
xor rax, rcx
mov rcx, qword [rdi + rsi]
xor rcx, rax
mov eax, 0xd20d20d3
mov qword [rsi], rcx
lea rsi, [rsi + 8]
mov ecx, dword [r15 + 8]
imul ecx
add edx, ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x138
sub ecx, eax
movsxd rax, ebp
mov dword [r15 + 8], ecx
cmp rax, rbx
jb 0x1400020ca
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x1400026d0
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rsi, rdx
mov ecx, ecx
xor ebp, ebp
lea rdx, [rax + 0x20]
mov qword [rax + 0x20], rbp
mov ebx, r8d
mov r14b, 1
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
mov rcx, qword [rsp + 0x58]
test eax, eax
movzx edi, r14b
cmovs edi, ebp
test rcx, rcx
jne 0x140002714
xor eax, eax
jmp 0x140002738
mov r8d, ebx
mov rdx, rsi
call fcn.1400027d4
mov rcx, qword [rsp + 0x58]
mov ebx, eax
test rcx, rcx
je 0x140002736
cmp dil, r14b
jne 0x140002736
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x14000274c
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov edi, r8d
mov rsi, rdx
mov r15b, 1
xor r14d, r14d
mov qword [rax + 0x20], r14
mov ecx, ecx
lea rdx, [rax + 0x20]
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
movzx ebx, r15b
test eax, eax
cmovs ebx, r14d
mov byte [rsp + 0x20], bl
mov rcx, qword [rsp + 0x68]
test rcx, rcx
jne 0x140002797
xor eax, eax
jmp 0x1400027bf
mov r8d, edi
mov rdx, rsi
call fcn.140002a94
mov edi, eax
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400027b9
cmp bl, r15b
jne 0x1400027b9
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, edi
jmp 0x1400027bf
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140002a94
Capabilities:
Attach user process memory

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rsi, rdx
mov rbx, rcx
xor r14d, r14d
mov r15d, r14d
test rcx, rcx
jne 0x140002ac8
xor eax, eax
jmp 0x140002d38
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
test rax, rax
setne dil
lea rdx, [rsp + 0x48]
mov rcx, rbx
call sub.ntoskrnl.exe_KeStackAttachProcess
nop
mov rcx, rbx
test dil, dil
je 0x140002c06
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
mov r12, rax
test rax, rax
je 0x140002d21
mov eax, dword [rax + 0xc]
test eax, eax
je 0x140002d21
mov r13d, dword [rax + 0xc]
mov eax, dword [r12 + 0xc]
add rax, 0xc
cmp r13, rax
je 0x140002d21
mov edx, dword [r13 + 0x28]
lea rcx, [rsp + 0x38]
call fcn.140002e2c
mov edx, dword [r13 + 0x30]
lea rcx, [rsp + 0x28]
call fcn.140002e2c
cmp r15d, dword [rsp + 0xd0]
jae 0x140002bed
mov eax, r15d
imul rbx, rax, 0x318
lea rdi, [rbx + rsi]
xor edx, edx
mov r8d, 0x100
lea rcx, [rdi + 0xc]
call fcn.140007700
add rsi, rbx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsi + 0x10c]
call fcn.140007700
mov eax, dword [r13 + 0x18]
mov rcx, qword [rsp + 0xc8]
mov qword [rbx + rcx], rax
mov eax, dword [r13 + 0x20]
mov dword [rbx + rcx + 8], eax
movzx eax, word [rsp + 0x28]
mov ecx, 0x7f
mov r8d, ecx
cmp cx, word [rsp + 0x28]
cmovae r8d, eax
mov rdx, qword [rsp + 0x30]
lea rcx, [rdi + 0xc]
call fcn.1400073c0
movzx eax, word [rsp + 0x38]
mov ebx, 0x103
mov r8d, ebx
cmp bx, word [rsp + 0x38]
cmovae r8d, eax
mov rdx, qword [rsp + 0x40]
lea rcx, [rsi + 0x10c]
call fcn.1400073c0
mov rsi, qword [rsp + 0xc8]
inc r14d
mov dword [rsp + 0x20], r14d
inc r15d
mov dword [rsp + 0x24], r15d
mov r13d, dword [r13]
jmp 0x140002b10
call qword [sym.imp.ntoskrnl.exe_PsGetProcessPeb]
mov rsi, rax
test rax, rax
je 0x140002d21
mov rdi, qword [rax + 0x18]
test rdi, rdi
je 0x140002d21
mov rdi, qword [rdi + 0x10]
mov r13d, 0x7f
mov r12d, 0x103
mov rax, qword [rsi + 0x18]
add rax, 0x10
cmp rdi, rax
je 0x140002d21
cmp r15d, dword [rsp + 0xd0]
jae 0x140002d09
mov eax, r15d
imul rbx, rax, 0x318
mov rax, qword [rsp + 0xc8]
add rax, 0xc
add rax, rbx
mov qword [rsp + 0xc0], rax
xor edx, edx
mov r8d, 0x100
mov rcx, rax
call fcn.140007700
mov rax, qword [rsp + 0xc8]
add rax, 0x10c
add rax, rbx
mov qword [rsp + 0xd8], rax
xor edx, edx
mov r8d, 0x208
mov rcx, rax
call fcn.140007700
mov rax, qword [rdi + 0x30]
mov rcx, qword [rsp + 0xc8]
mov qword [rbx + rcx], rax
mov eax, dword [rdi + 0x40]
mov dword [rbx + rcx + 8], eax
movzx eax, word [rdi + 0x58]
cmp r13w, ax
movzx r8d, ax
jae 0x140002cd6
mov r8, r13
mov rdx, qword [rdi + 0x60]
mov rcx, qword [rsp + 0xc0]
call fcn.1400073c0
movzx eax, word [rdi + 0x48]
cmp r12w, ax
movzx r8d, ax
jae 0x140002cf8
mov r8, r12
mov rdx, qword [rdi + 0x50]
mov rcx, qword [rsp + 0xd8]
call fcn.1400073c0
inc r14d
mov dword [rsp + 0x20], r14d
inc r15d
mov dword [rsp + 0x24], r15d
mov rdi, qword [rdi]
jmp 0x140002c35
jmp 0x140002d2b
lea rcx, [rsp + 0x48]
call sub.ntoskrnl.exe_KeUnstackDetachProcess
mov eax, r14d
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140002eb0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov r10, rcx
test rcx, rcx
je 0x140003007
cmp dword [rcx + 0xc], 0
je 0x140003007
mov r8d, dword [rcx + 8]
cmp r8d, 0x138
jl 0x140002fab
xor ebx, ebx
lea rsi, [section..data]
mov edi, 0x7fffffff
mov r11d, 0x4e0
mov r9, qword [r10]
mov r8d, dword [rbx + r9 + 8]
xor r8d, dword [rbx + r9]
and r8, rdi
xor r8, qword [rbx + r9]
mov rcx, r8
shr r8, 1
and ecx, 1
mov rdx, qword [rsi + rcx*8]
xor rdx, qword [rbx + r9 + 0x4e0]
xor rdx, r8
mov qword [rbx + r9], rdx
add rbx, 8
cmp rbx, r11
jl 0x140002efa
mov r9, qword [r10]
mov r8d, dword [r11 + r9 + 8]
xor r8d, dword [r11 + r9]
and r8, rdi
xor r8, qword [r11 + r9]
mov rcx, r8
shr r8, 1
and ecx, 1
mov rdx, qword [rsi + rcx*8]
xor rdx, qword [r11 + r9 - 0x4e0]
xor rdx, r8
mov qword [r11 + r9], rdx
add r11, 8
cmp r11, 0x9b8
jl 0x140002f32
mov r9, qword [r10]
mov r8d, dword [r9 + 0x9b8]
xor r8d, dword [r9]
and r8, rdi
xor r8, qword [r9 + 0x9b8]
mov rcx, r8
shr r8, 1
and ecx, 1
mov rdx, qword [rsi + rcx*8]
xor rdx, qword [r9 + 0x4d8]
xor rdx, r8
mov qword [r9 + 0x9b8], rdx
and dword [r10 + 8], 0
xor r8d, r8d
mov rax, qword [r10]
movsxd rcx, r8d
mov rdx, qword [rax + rcx*8]
lea eax, [r8 + 1]
mov dword [r10 + 8], eax
movabs rcx, 0x555555555
mov rax, rdx
shr rax, 0x1d
and rax, rcx
movabs rcx, 0x38eb3ffff6d3
xor rdx, rax
mov rax, rdx
and rax, rcx
shl rax, 0x11
xor rdx, rax
mov rax, rdx
and rax, 0xffffffffffffbf77
shl rax, 0x25
xor rdx, rax
mov rax, rdx
shr rax, 0x2b
xor rax, rdx
jmp 0x140003009
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret

Function at 0x14000301c
Capabilities:
Encode data using xor

Disassembly:
test rcx, rcx
je 0x1400030b4
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor eax, eax
mov rdi, rdx
mov qword [rcx], rax
mov rbx, rcx
mov qword [rcx + 8], rax
mov edx, 0x9c0
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
xor edx, edx
mov r8d, 0x9c0
mov rcx, rax
mov qword [rbx], rax
call fcn.140007700
mov rax, qword [rbx]
mov r9d, 1
mov dword [rbx + 0xc], r9d
mov qword [rax], rdi
mov dword [rbx + 8], r9d
movsxd r8, dword [rbx + 8]
mov rdx, qword [rbx]
mov rax, qword [rdx + r8*8 - 8]
mov rcx, rax
shr rcx, 0x3e
xor rcx, rax
movabs rax, 0x5851f42d4c957f2d
imul rcx, rax
add rcx, r8
mov qword [rdx + r8*8], rcx
add dword [rbx + 8], r9d
cmp dword [rbx + 8], 0x138
jl 0x140003072
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400032b0
Capabilities:
Attach user process memory
Find process by pid

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 eax, dword [rcx]
xor esi, esi
and qword [rbp + 0x10], 0
xor eax, 0xcdfe
mov dword [rcx], eax
mov rbx, rdx
test rdx, rdx
je 0x140003430
test eax, eax
je 0x140003430
lea rcx, [rbp - 0x40]
mov qword [rbp - 0x38], rcx
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x40]
mov qword [rbp - 0x40], rcx
mov ecx, eax
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
mov edi, eax
test eax, eax
js 0x140003409
mov rcx, qword [rbp + 0x10]
lea rdx, [rbp - 0x30]
call sub.ntoskrnl.exe_KeStackAttachProcess
mov r8, qword [sym.imp.ntoskrnl.exe_MmHighestUserAddress]
lea rcx, [rbp - 0x40]
mov r9b, 1
mov edx, 0x10000
mov r8, qword [r8]
call fcn.1400030b8
lea rcx, [rbp - 0x30]
mov edi, eax
call sub.ntoskrnl.exe_KeUnstackDetachProcess
test edi, edi
js 0x140003409
mov r8, qword [rbp - 0x40]
lea rcx, [rbp - 0x40]
mov rax, r8
cmp r8, rcx
je 0x140003369
mov rax, qword [rax]
lea rcx, [rbp - 0x40]
inc esi
cmp rax, rcx
jne 0x14000335b
mov rax, qword [rbx]
mov ecx, esi
mov qword [rbx], rcx
cmp rax, rcx
jae 0x140003380
mov edi, 0xc0000023
jmp 0x14000340d
xor r9d, r9d
lea rax, [rbp - 0x40]
mov rdx, r8
cmp r8, rax
je 0x140003416
mov rax, qword [rdx + 0x18]
lea rcx, [r9 + r9*2]
add rcx, rcx
inc r9d
mov qword [rbx + rcx*8 + 0x10], rax
mov eax, dword [rdx + 0x20]
mov dword [rbx + rcx*8 + 0x18], eax
mov rax, qword [rdx + 0x10]
mov qword [rbx + rcx*8 + 8], rax
mov eax, dword [rdx + 0x34]
mov dword [rbx + rcx*8 + 0x2c], eax
mov rax, qword [rdx + 0x28]
mov qword [rbx + rcx*8 + 0x20], rax
mov eax, dword [rdx + 0x30]
mov dword [rbx + rcx*8 + 0x28], eax
mov eax, dword [rdx + 0x38]
mov dword [rbx + rcx*8 + 0x30], eax
lea rax, [rbp - 0x40]
mov rdx, qword [rdx]
cmp rdx, rax
jne 0x140003393
jmp 0x14000340d
mov rax, qword [r8]
cmp qword [rax + 8], r8
jne 0x140003429
mov rcx, qword [r8 + 8]
cmp qword [rcx], r8
jne 0x140003429
mov qword [rcx], rax
mov edx, 0x4746544d
mov qword [rax + 8], rcx
mov rcx, r8
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov r8, qword [rbp - 0x40]
lea rax, [rbp - 0x40]
cmp r8, rax
jne 0x1400033e2
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x140003425
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, edi
jmp 0x140003435
mov ecx, 3
int 0x29
mov eax, 0xc000000d
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 0x1400035b0
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x30
mov edi, ecx
or dword [rax - 0x18], 0xffffffff
xor ebx, ebx
mov qword [rax + 0x10], rbx
mov ecx, edi
lea rdx, [rax + 0x10]
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
test eax, eax
jns 0x1400035e5
mov ecx, edi
call fcn.1400034a8
mov qword [rsp + 0x48], rax
jmp 0x1400035f5
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, qword [rsp + 0x48]
test rax, rax
setne bl
mov dword [rsp + 0x20], ebx
jmp 0x140003605
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140003614
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
xor ebx, ebx
mov qword [rax + 0x10], rbx
mov dil, 1
mov byte [rax - 0x18], dil
mov ecx, ecx
lea rdx, [rax + 0x10]
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
movzx esi, dil
test eax, eax
cmovs esi, ebx
mov byte [rsp + 0x20], sil
jmp 0x14000365b
mov rcx, qword [rsp + 0x48]
test rcx, rcx
jne 0x14000366a
or eax, 0xffffffff
jmp 0x140003692
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
mov r14d, ebx
test rax, rax
sete r14b
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14000368f
cmp sil, dil
jne 0x14000368f
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, r14d
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x140003874
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rbp, rdx
mov r14, rcx
mov edi, 0x100000
xor ecx, ecx
mov edx, edi
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rbx, rax
test rax, rax
jne 0x1400038ad
mov eax, 0xc0000001
jmp 0x140003957
and dword [rsp + 0x70], 0
lea r9, [rsp + 0x70]
mov r8d, edi
mov rdx, rbx
mov ecx, 0x42
call sub.ntoskrnl.exe_ZwQuerySystemInformation
test eax, eax
jne 0x14000394a
xor edi, edi
cmp dword [rbx], edi
jbe 0x14000394a
mov rax, qword [rbp + 8]
lea rcx, [rdi + rdi*2]
movsd xmm1, qword [rbx + rcx*8 + 0x18]
movsd qword [rsp + 0x30], xmm1
movups xmm0, xmmword [rbx + rcx*8 + 8]
movups xmmword [rsp + 0x20], xmm0
mov rsi, qword [rsp + 0x28]
test rax, rax
je 0x1400038fe
cmp rsi, rax
jb 0x140003944
mov rax, qword [rbp + 0x10]
test rax, rax
je 0x14000390c
cmp rsi, rax
ja 0x140003944
mov edx, 0x28
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rcx, qword [rsp + 0x20]
mov qword [rax + 0x10], rcx
mov ecx, dword [rsp + 0x30]
mov dword [rax + 0x20], ecx
mov qword [rax + 0x18], rsi
mov rcx, qword [r14]
cmp qword [rcx + 8], r14
jne 0x14000396a
mov qword [rax], rcx
mov qword [rax + 8], r14
mov qword [rcx + 8], rax
mov qword [r14], rax
inc edi
cmp edi, dword [rbx]
jb 0x1400038d1
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
mov ecx, 3
int 0x29
int3
Function at 0x140003bfc
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov esi, r8d
mov r15, rdx
xor ebx, ebx
mov byte [rax - 0x28], bl
mov dil, 1
mov byte [rax - 0x27], dil
mov qword [rax + 0x20], rbx
mov ecx, ecx
lea rdx, [rax + 0x20]
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
movzx r14d, dil
test eax, eax
cmovs r14d, ebx
mov byte [rsp + 0x21], r14b
mov rcx, qword [rsp + 0x68]
test rcx, rcx
jne 0x140003c4e
xor al, al
jmp 0x140003c87
mov r8d, esi
mov rdx, r15
call fcn.140003c9c
mov sil, al
mov byte [rsp + 0x20], al
jmp 0x140003c6f
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140003c84
cmp r14b, dil
jne 0x140003c84
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov al, sil
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x140003d44
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
and qword [rsp + 0x38], 0
lea rdx, [rsp + 0x38]
mov ecx, ecx
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
test eax, eax
jns 0x140003d64
xor eax, eax
jmp 0x140003d84
mov rcx, qword [rsp + 0x38]
call fcn.140003d8c
mov rcx, qword [rsp + 0x38]
mov rbx, rax
test rcx, rcx
je 0x140003d81
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x140003f2c
Capabilities:
Find process by pid

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
mov ecx, dword [rcx + 8]
lea rdx, [rax + 8]
xor ebp, ebp
mov r14b, 1
mov qword [rax + 8], rbp
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
mov rcx, qword [rsp + 0x40]
test eax, eax
movzx edi, r14b
cmovs edi, ebp
test rcx, rcx
jne 0x140003f74
mov eax, 0xc0000001
jmp 0x140003f93
mov r8, rsi
mov rdx, rbx
call fcn.140003eb8
mov ebx, eax
cmp dil, r14b
jne 0x140003f91
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x140007130
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
cmp dword [0x14000a740], 0
je 0x140007144
mov al, 1
jmp 0x1400071e0
and dword [rsp + 0x38], 0
lea rdx, [rsp + 0x30]
and dword [rsp + 0x30], 0
lea rcx, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ntoskrnl.exe_PsGetVersion]
mov eax, dword [rsp + 0x38]
cmp eax, 5
jne 0x140007180
cmp dword [rsp + 0x30], 1
jne 0x1400071d7
mov dword [0x14000a740], 0x33
jmp 0x14000713d
cmp eax, 6
jne 0x1400071bc
mov eax, dword [rsp + 0x30]
cmp eax, 1
jne 0x14000719a
mov dword [0x14000a740], 0x3d
jmp 0x14000713d
cmp eax, 2
jne 0x1400071ab
mov dword [0x14000a740], 0x3e
jmp 0x14000713d
cmp eax, 3
jne 0x1400071d7
mov dword [0x14000a740], 0x3f
jmp 0x14000713d
cmp eax, 0xa
jne 0x1400071d7
cmp dword [rsp + 0x30], 0
jne 0x1400071d7
mov dword [0x14000a740], 0x64
jmp 0x14000713d
and dword [0x14000a740], 0
xor al, al
add rsp, 0x28
ret
Function at 0x14000e000
Capabilities:
Create device object

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rdi, rcx
lea rcx, [0x14000e1d0]
jmp 0x14012df75
Function at 0x140002c10
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140003cf0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140003cf0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002c80
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400080a4]
mov rbx, rcx
test esi, esi
jle 0x140002db0
mov rax, qword [0x1400080a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002ccb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002d55
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002cb0
mov rcx, rbx
call fcn.1400036d0
mov rdi, rax
test rax, rax
je 0x140002dd2
mov rax, qword [0x1400080a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003810
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400080a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002db7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002d4e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002d60
add dword [0x1400080a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400080a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002d4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002c10
nop dword [rax]
xor esi, esi
jmp 0x140002cd8
mov rax, qword [0x1400080a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002c10
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002c10
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003340
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140008100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400080e0]
test rbx, rbx
je 0x14000339c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140003393
test rsi, rsi
je 0x140003393
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003378
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]