joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a1930
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.1400a0580
mov ecx, dword [0x1400a63e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400a18e8
test byte [rbx + 0x40], 0xc
jne 0x1400a189f
mov eax, dword [0x1400cb1e8]
test eax, eax
jne 0x1400a18b0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14009f810
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x1400a18d3
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x1400a18d3
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x1400a18fc
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14009fae0
call fcn.1400a0630
mov rbx, rax
test rax, rax
jne 0x1400a188f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x1400a191a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14009fae0
call fcn.1400a1790
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x1400a19a0
call fcn.1400a2fb0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x1400a19d8
call fcn.1400a0580
mov ecx, dword [0x1400a63e8]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400a1a30
test esi, esi
je 0x1400a19b6
call fcn.1400a1870
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400a1a10
mov edx, edi
call fcn.1400a3060
call fcn.1400a1870
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.1400a0580
mov ecx, dword [0x1400a63e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400a1a20
call fcn.1400a1870
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400a1870
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.1400a0580
mov ecx, dword [0x1400a63e8]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x1400a1975
call fcn.1400a0630
mov rbx, rax
jmp 0x1400a1975
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400a198e
call fcn.1400a0630
jmp 0x1400a19b6
call fcn.1400a0630
mov rbx, rax
jmp 0x1400a1971

Function at 0x1400a1a40
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.1400a0580
mov ecx, dword [0x1400a63e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400a1ab0
test esi, esi
je 0x1400a1a90
call fcn.1400a1870
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400a1ac0
mov edx, esi
call fcn.1400a3060
call fcn.1400a1870
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.1400a1870
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400a1870
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.1400a0630
mov rbx, rax
jmp 0x1400a1a61
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400a1a7a
Function at 0x1400a1ad0
Capabilities:
Get thread local storage value
Hijack thread execution

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x4f8
mov rsi, rcx
test rcx, rcx
je 0x1400a1bc0
lea rdi, [0x1400a63d8]
mov rcx, rdi
call fcn.14009f810
mov rcx, rsi
call fcn.14009fdf0
mov rcx, rdi
mov rbx, rax
call fcn.14009fae0
test rbx, rbx
je 0x1400a1bc0
mov rcx, qword [rbx + 0x28]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400a1bc0
lea rdi, [rsp + 0x20]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x1400a1bc0
lea rbp, [rbx + 0x38]
mov rcx, rbp
call fcn.14009f810
call fcn.1400a0580
mov ecx, dword [0x1400a63e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400a1cd0
movzx edx, byte [rbx + 0x40]
cmp rsi, qword [rax + 0x1d8]
je 0x1400a1bd8
mov eax, dword [rbx + 0x44]
not eax
test al, 3
je 0x1400a1c30
test dl, 3
jne 0x1400a1bb0
and edx, 0xfffffffc
or edx, 1
mov byte [rbx + 0x40], dl
lock add dword [0x1400cb1e8], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400a1b9f
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rbp
call fcn.14009fae0
xor eax, eax
jmp 0x1400a1bc5
mov rcx, rbp
call fcn.14009fae0
test byte [rbx + 0x40], 0xc
je 0x1400a1ba7
nop
mov eax, 3
add rsp, 0x4f8
pop rbx
pop rsi
pop rdi
pop rbp
ret
test dl, 3
jne 0x1400a1bb0
and edx, 0xfffffffc
or edx, 1
mov byte [rbx + 0x40], dl
lock add dword [0x1400cb1e8], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400a1bfd
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [rbx + 0x44]
mov edx, eax
not edx
and edx, 3
jne 0x1400a1b9f
and eax, 0xfffffffe
mov rcx, rbp
mov dword [rbx + 0x44], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xfffffff3
or eax, 4
mov byte [rbx + 0x40], al
call fcn.14009fae0
call fcn.1400a1790
nop dword [rax]
test dl, 0xc
jne 0x1400a1bb0
and edx, 0xf
jne 0x1400a1bc0
mov rcx, qword [rbx + 0x28]
mov dword [rsp + 0x50], 0x100001
call qword [sym.imp.KERNEL32.dll_SuspendThread]
xor edx, edx
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1400a1b9f
mov rcx, qword [rbx + 0x28]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
lea rax, [fcn.1400a1790]
mov rcx, qword [rbx + 0x28]
mov rdx, rdi
mov qword [rsp + 0x118], rax
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
movzx eax, byte [rbx + 0x40]
and dword [rbx + 0x44], 0xfffffffe
and eax, 0xfffffff0
or eax, 5
mov byte [rbx + 0x40], al
lock add dword [0x1400cb1e8], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400a1cb8
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rbp
call fcn.14009fae0
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x1400a1b9f
call fcn.1400a0630
test rax, rax
jne 0x1400a1b60
movzx edx, byte [rbx + 0x40]
jmp 0x1400a1b6d
Function at 0x1400a2050
Capabilities:
Create thread
Get thread local storage value
Resume thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbp, rcx
mov rdi, rdx
mov rsi, r8
mov r12, r9
call fcn.1400a0310
mov rbx, rax
test rax, rax
je 0x1400a2284
test rbp, rbp
je 0x1400a208b
mov rax, qword [rax + 0x1d8]
mov qword [rbp], rax
mov r13, qword [sym.imp.KERNEL32.dll_Sleep]
mov dword [rbx + 0x44], 1
mov dword [rbx + 0xbc], 0
mov qword [rbx + 0x28], 0xffffffffffffffff
mov r14, r13
mov qword [rbx + 8], r12
mov r12, qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x10], rsi
xor esi, esi
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call r12
mov qword [rbx + 0x30], rax
test rax, rax
jne 0x1400a2100
test esi, esi
jne 0x1400a20f0
xor ecx, ecx
mov esi, 1
call r14
jmp 0x1400a20bf
add esi, 1
mov ecx, 0x14
call r13
cmp esi, 5
jne 0x1400a20bf
mov qword [rbx + 0x38], 0xffffffffffffffff
lea r12, [rbx + 0x68]
mov rcx, r12
call fcn.1400a3e10
cmp eax, 1
je 0x1400a22cf
cmp qword [rbx + 0x30], 0
mov dword [rbx], 0xbab1f00d
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xc0], 0
mov dword [rbx + 0xb8], 0
je 0x1400a226d
xor edx, edx
test rdi, rdi
je 0x1400a216d
mov eax, dword [rdi]
mov rsi, qword [rdi + 0x10]
mov dword [rbx + 0x44], eax
test al, 8
jne 0x1400a2290
mov eax, dword [rdi + 0x18]
mov dword [rbx + 0xc0], eax
mov edx, esi
lea r8, [0x1400a08e0]
mov r9, rbx
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov rsi, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400a2238
mov eax, dword [rbx + 0xc0]
mov edx, 0xfffffff1
cmp eax, 0xfffffff2
jge 0x1400a2210
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test byte [rbx + 0x44], 4
jne 0x1400a21f0
mov qword [rbx + 0x28], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, rsi
mov qword [rbx + 0x28], 0
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400a21d7
mov edx, 0xfffffffe
cmp eax, 0xffffffff
jl 0x1400a21b1
mov edx, 2
cmp eax, edx
cmovle edx, eax
cmp eax, 0xf
mov eax, 0xf
cmovge edx, eax
jmp 0x1400a21b1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400a2247
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbx + 0x38]
call fcn.14009fc70
mov rcx, r12
call fcn.1400a3e10
cmp eax, 1
je 0x1400a22cf
mov qword [rbx + 0x68], 0xffffffffffffffff
pxor xmm0, xmm0
movups xmmword [rbx + 0x28], xmm0
test rbp, rbp
je 0x1400a227a
mov qword [rbp], 0
cmp qword [rbx + 0x1d0], 0
je 0x1400a22b8
mov eax, 0xb
jmp 0x1400a21e1
call fcn.1400a0580
mov ecx, dword [0x1400a63e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400a22c8
mov eax, dword [rax + 0xc0]
jmp 0x1400a2165
mov rcx, rbx
call fcn.1400a03e0
jmp 0x1400a2284
call fcn.1400a0630
jmp 0x1400a22a6
call fcn.1400a00e0
nop
nop word cs:[rax + rax]
Function at 0x140002498
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400024e2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400024e2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400024e2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400024e2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400024e2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400024e4
xor al, al
add rsp, 0x28
ret
Function at 0x14000c339
Capabilities:
Acquire debug privileges
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
rcl al, 0x88
shr rcx, 4
xadd al, cl
push rdi
or cl, bl
sub rsp, 0x1b0
or rcx, r8
bt ecx, 0xb4
mov rax, qword [section..data]
xor rax, rsp
not cx
btc rcx, rbp
btr ecx, r8d
mov qword [rsp + 0x1a0], rax
movsx cx, r9b
xor edi, edi
sub edx, edx
lea ecx, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jmp 0x14000c394
je 0x14000c45c
lea rdx, [rsp + 0x70]
not cx
movzx cx, al
mov dword [rsp + 0x70], 0x130
not ch
cmovb cx, r15w
setl ch
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x14000c45c
cmp dword [rsp + 0x78], edi
jmp 0x14000c3d2
jne 0x14000c409
lea rdx, [rsp + 0x70]
mov ecx, 0xff9ed326
mov rcx, rbx
jmp 0x14000c3ea
call qword [sym.imp.KERNEL32.dll_Process32Next]
nop dword [rax]
movzx dx, bh
nop word [rax + rax]
cwd
cdq
movsx dx, r10b
lea rdx, str.explorer.exe
cmovo rcx, r15
lea rcx, [rsp + 0x9c]
jmp 0x14000c421
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14000c44f
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jmp 0x14000c444
jne 0x14000c409
jmp 0x14000c45c
mov edi, dword [rsp + 0x78]
not ch
xchg cl, cl
jmp 0x14000c45c
mov rcx, rbx
jmp 0x14000c464
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
jmp 0x14000c472
mov qword [rsp + 0x50], 0
movups xmmword [rsp + 0x58], xmm0
jmp 0x14000c485
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x50]
mov edx, 0x28
cmovp rcx, rbp
mov rcx, rcx
movsx ecx, cx
mov rcx, rax
jmp 0x14000c4a7
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jmp 0x14000c4b4
je 0x14000c555
lea r8, [rsp + 0x5c]
mov dword [rsp + 0x58], 1
test r14d, r15d
setl dh
lea rdx, [0x140003328]
cmc
mov dword [rsp + 0x64], 2
cmp rcx, 0xeb976ae
jmp 0x14000c4ea
xor ecx, ecx
jmp 0x14000c4f1
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jmp 0x14000c4fe
je 0x14000c54a
mov rcx, qword [rsp + 0x50]
movsx r8d, sp
rcl r8b, 0x3d
lea r8, [rsp + 0x58]
clc
jmp 0x14000c51c
mov qword [rsp + 0x28], 0
stc
jmp 0x14000c52b
sub r9d, r9d
cmc
xor edx, edx
jmp 0x14000c536
mov qword [rsp + 0x20], 0
jmp 0x14000c544
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, edi
shl ecx, 0xc
xor edx, edx
movzx cx, spl
cmovs rcx, r14
mov ecx, 0x1fffff
jmp 0x14000c570
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rcx, rax
seto bl
mov rbx, rax
jmp 0x14000c584
call section..text20
lea rcx, [0x140005080]
test dx, 0x9f03
jmp 0x14000c59a
test al, al
jmp 0x14000c5a1
jne 0x14000c5c9
call fcn.140001be0
mov rcx, rbx
jmp 0x14000c5b4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffff8
jmp 0x14000c5c4
jmp 0x14000c5dc
call fcn.140001be0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
adc rcx, r11
mov rcx, qword [rsp + 0x1a0]
cmp rax, rdi
stc
xor rcx, rsp
call fcn.140001bc0
mov rbx, qword [rsp + 0x1c0]
add edi, 0xa6997080
add rsp, 0x1b0
cmovp rdi, rdi
pop rdi
ret
Function at 0x14003ee60
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rax, qword [0x140084030]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov dil, 1
cmp qword [rcx + 0x68], 0
je 0x14003ef1c
mov rsi, rcx
cmp byte [rcx + 0x71], 0
je 0x14003ef1c
mov rax, qword [rsi]
mov rax, qword [rax + 0x18]
mov rcx, rsi
mov edx, 0xffffffff
call qword [0x1400ba010]
cmp eax, 0xffffffff
je 0x14003ef1a
mov rcx, qword [rsi + 0x68]
lea r9, [rsp + 0x50]
lea rdx, [rsi + 0x74]
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
lea r8, [rsp + 0x28]
mov qword [rsp + 0x20], r8
lea rdi, [rsp + 0x30]
mov r8, rdi
call qword [0x1400ba010]
cmp eax, 3
je 0x14003ef33
cmp eax, 1
je 0x14003eee9
test eax, eax
jne 0x14003ef1a
mov byte [rsi + 0x71], 0
mov rbx, qword [rsp + 0x28]
sub rbx, rdi
je 0x14003ef10
mov r9, qword [rsi + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x14003ef1a
cmp byte [rsi + 0x71], 0
sete dil
jmp 0x14003ef1c
xor edi, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14003b840
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov byte [rsi + 0x71], 0
mov dil, 1
jmp 0x14003ef1c
Function at 0x140001530
Capabilities:
Access pe header
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x50
and dword [rax + 0x18], 0
mov r14, rcx
mov rcx, rdx
mov rbp, rdx
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov rdi, rax
test rax, rax
je 0x1400016f0
mov r8d, 9
lea r9, [rsp + 0x90]
mov dl, 1
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_RtlImageDirectoryEntryToData]
mov rbx, rax
test rax, rax
je 0x1400016f0
cmp byte [r14 + 0x58], 0
mov r12d, 0x20b
jne 0x140001681
cmp word [rdi + 0x18], r12w
jne 0x1400015a3
mov rax, qword [rax]
jmp 0x1400015a5
mov eax, dword [rax]
test rax, rax
je 0x140001681
and qword [rsp + 0x98], 0
lea r9, [rsp + 0x40]
mov eax, 0x1000
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x98]
mov dword [rsp + 0x20], eax
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
test eax, eax
js 0x140001681
mov rcx, qword [r14 + 0x18]
call qword [sym.imp.ntoskrnl.exe_PsGetThreadTeb]
mov rcx, qword [r14]
mov rsi, rax
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
test rax, rax
je 0x140001631
mov ecx, dword [rsp + 0x98]
mov dword [rsi + 0x202c], ecx
cmp word [rdi + 0x18], r12w
jne 0x140001623
mov rcx, qword [rbx]
jmp 0x140001625
mov ecx, dword [rbx]
mov rax, qword [rsp + 0x98]
mov dword [rax], ecx
jmp 0x140001656
mov rax, qword [rsp + 0x98]
mov qword [rsi + 0x58], rax
cmp word [rdi + 0x18], r12w
jne 0x140001649
mov rcx, qword [rbx]
jmp 0x14000164b
mov ecx, dword [rbx]
mov rax, qword [rsp + 0x98]
mov qword [rax], rcx
mov rax, qword [rsp + 0x98]
lea r9, [0x140002c20]
xor edx, edx
mov qword [rsp + 0x20], rax
lea r8, [0x140002c40]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov byte [r14 + 0x58], 1
movzx ecx, word [rdi + 0x18]
cmp cx, r12w
jne 0x140001691
mov rbx, qword [rbx + 0x18]
jmp 0x140001694
mov ebx, dword [rbx + 0xc]
cmp cx, r12w
jne 0x14000169f
mov rax, qword [rbx]
jmp 0x1400016a1
mov eax, dword [rbx]
test rax, rax
je 0x1400016f0
cmp cx, r12w
jne 0x1400016b1
mov r8, qword [rbx]
jmp 0x1400016b4
mov r8d, dword [rbx]
and qword [rsp + 0x30], 0
mov r9d, 3
mov qword [rsp + 0x28], 1
mov rdx, r14
xor ecx, ecx
mov qword [rsp + 0x20], rbp
call fcn.1400094a4
movzx ecx, word [rdi + 0x18]
mov eax, 4
cmp cx, r12w
lea edx, [rax + 4]
cmove eax, edx
add rbx, rax
jmp 0x140001694
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140001704
Capabilities:
Get system information on windows

Disassembly:
lea rdx, [rcx + 0x18]
mov rcx, qword [rcx]
jmp fcn.140008708
Function at 0x140001bd4
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140005090]
xor rax, rsp
mov qword [rbp - 8], rax
and qword [rbp - 0x40], 0
xor esi, esi
mov rbx, rdx
test rdx, rdx
je 0x140001d5f
test rcx, rcx
je 0x140001d5f
mov eax, dword [rcx]
test eax, eax
je 0x140001d5f
lea rcx, [rbp - 0x50]
mov qword [rbp - 0x48], rcx
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x50]
mov qword [rbp - 0x50], rcx
mov ecx, eax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov edi, eax
test eax, eax
js 0x140001d38
mov rcx, qword [rbp - 0x40]
lea rdx, [rbp - 0x38]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov r8, qword [sym.imp.ntoskrnl.exe_MmHighestUserAddress]
lea rcx, [rbp - 0x50]
mov r9b, 1
mov edx, 0x10000
mov r8, qword [r8]
call fcn.14000c0c0
lea rcx, [rbp - 0x38]
mov edi, eax
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
test edi, edi
js 0x140001d38
mov r8, qword [rbp - 0x50]
lea rcx, [rbp - 0x50]
mov rax, r8
cmp r8, rcx
je 0x140001c98
mov rax, qword [rax]
lea rcx, [rbp - 0x50]
inc esi
cmp rax, rcx
jne 0x140001c8a
mov rax, qword [rbx]
mov ecx, esi
mov qword [rbx], rcx
cmp rax, rcx
jae 0x140001caf
mov edi, 0xc0000023
jmp 0x140001d3c
xor r9d, r9d
lea rax, [rbp - 0x50]
mov rdx, r8
cmp r8, rax
je 0x140001d45
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 - 0x50]
mov rdx, qword [rdx]
cmp rdx, rax
jne 0x140001cc2
jmp 0x140001d3c
mov rcx, qword [r8]
cmp qword [rcx + 8], r8
jne 0x140001d58
mov rax, qword [r8 + 8]
cmp qword [rax], r8
jne 0x140001d58
mov qword [rax], rcx
mov edx, 0x6274754f
mov qword [rcx + 8], rax
mov rcx, r8
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov r8, qword [rbp - 0x50]
lea rax, [rbp - 0x50]
cmp r8, rax
jne 0x140001d11
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x140001d54
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, edi
jmp 0x140001d64
mov ecx, 3
int 0x29
mov eax, 0xc000000d
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400023d0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001d80
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
and qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rdi, rcx
mov ecx, dword [rcx + 0x10]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
js 0x140001db8
mov rdx, qword [rdi]
mov rcx, qword [rsp + 0x40]
call fcn.14000e8f0
mov ebx, eax
jmp 0x140001dd8
lfence
xor edx, edx
mov dword [rsp + 0x20], eax
lea r9, [0x140002d60]
lea r8, [0x140002d10]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140001de8
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140001df8
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
and qword [rsp + 0x48], 0
cmp dword [0x140005598], 0
je 0x140001ebf
cmp dword [0x140005578], 0
je 0x140001ebf
cmp byte [0x140005568], 0
jne 0x140001e4e
xor edx, edx
lea r9, [0x140002c70]
lea r8, [0x140002cd0]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, 0xc000a004
jmp 0x140001edd
mov ecx, dword [rcx]
lea rdx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov edi, eax
test eax, eax
js 0x140001e8b
mov rcx, qword [rsp + 0x48]
mov edx, dword [0x140005578]
mov rbx, qword [rdx + rcx]
xor ecx, ecx
call fcn.14000bc48
mov edx, dword [0x140005598]
mov rcx, rbx
add rax, rdx
call qword [0x140003330]
jmp 0x140001eab
lfence
xor edx, edx
mov dword [rsp + 0x20], edi
lea r9, [0x140002c70]
lea r8, [0x140002d10]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140001ebb
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, edi
jmp 0x140001edd
xor edx, edx
lea r9, [0x140002c70]
lea r8, [0x140002c90]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, 0xc0000141
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140008708
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

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 r14
push r15
sub rsp, 0x20
mov r14, rdx
mov r15, rcx
call qword [sym.imp.ntoskrnl.exe_PsGetProcessId]
mov r12d, 0x6274754f
mov ebx, 0x100000
mov r8d, r12d
mov edx, ebx
xor ecx, ecx
mov rbp, rax
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rsi, rax
mov rdi, rax
test r14, r14
jne 0x140008761
mov eax, 0xc000000d
jmp 0x140008883
test rsi, rsi
jne 0x140008789
lea r9, [0x14000efb0]
xor edx, edx
lea r8, [0x14000efd0]
lea ecx, [rsi + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, 0xc0000017
jmp 0x140008883
xor r9d, r9d
mov r8d, ebx
mov rdx, rsi
lea ecx, [r9 + 5]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov ebx, eax
lfence
test eax, eax
jns 0x1400087b6
mov edx, r12d
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x140008881
mov ebx, 0xc0000225
cmp qword [rsi + 0x50], rbp
je 0x1400087d0
mov eax, dword [rdi]
test eax, eax
je 0x1400087d2
add rdi, rax
cmp qword [rdi + 0x50], rbp
jne 0x1400087c1
xor ebx, ebx
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
test rax, rax
setne r12b
test ebx, ebx
js 0x14000884e
lfence
xor ebp, ebp
mov ebx, 0xc0000225
cmp dword [rdi + 4], ebp
jbe 0x140008867
lea rcx, [rbp*4]
add rcx, rbp
add rcx, rcx
mov r15, qword [rdi + rcx*8 + 0x130]
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentThreadId]
cmp r15, rax
je 0x140008845
mov rdx, r14
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_PsLookupThreadByThreadId]
mov rcx, qword [r14]
mov ebx, eax
test rcx, rcx
je 0x140008867
mov dl, r12b
call fcn.140008f64
test al, al
je 0x140008867
mov rcx, qword [r14]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
and qword [r14], 0
inc ebp
cmp ebp, dword [rdi + 4]
jb 0x1400087f5
jmp 0x140008867
xor edx, edx
lea r9, [0x14000efb0]
lea r8, [0x14000f010]
lea ecx, [rdx + 0x4d]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov edx, 0x6274754f
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp qword [r14], 0
mov eax, 0xc0000225
cmove ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret