joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001759c
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x140017402
call fcn.14000eb8c
mov dword [rax], 0x16
call fcn.14000e02c
mov eax, 0xffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400173e4
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x1400173e4
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x20]
shr ecx, 1
test cl, 1
je 0x140017434
lock or dword [rax + 0x14], 0x10
jmp 0x1400173e4
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x140017451
mov rcx, qword [rbp + 0x20]
call fcn.140017b38
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x10], 1
jne 0x140017466
mov rcx, qword [rax]
mov sil, 1
mov r14b, byte [rcx]
jmp 0x14001746c
xor sil, sil
xor r14b, r14b
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.1400171e0
mov rdx, qword [rbp + 0x20]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.14001f73c
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x20]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 2
ja 0x1400174bf
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x20]
and dword [rax + 0x10], 0
jmp 0x1400173e4
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x14001752b
mov rcx, qword [rbp + 0x20]
call fcn.1400171e0
cmp eax, 0xffffffff
je 0x140017512
mov rcx, qword [rbp + 0x20]
call fcn.1400171e0
cmp eax, 0xfffffffe
je 0x140017512
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.1400171e0
movsxd rdi, eax
lea r15, [0x14003a5b0]
mov rcx, rbx
sar rdi, 6
call fcn.1400171e0
and eax, 0x3f
shl rax, 6
add rax, qword [r15 + rdi*8]
jmp 0x140017519
lea rax, [0x140038430]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14001752b
mov rax, qword [rbp + 0x20]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x20], 0x200
jne 0x140017561
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x14001755d
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x14001755d
mov rax, qword [rbp + 0x20]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax]
test sil, sil
je 0x14001757f
movzx edx, byte [rcx]
dec dword [rax + 0x10]
shl dx, 8
movzx ecx, r14b
or dx, cx
inc qword [rax]
jmp 0x14001758a
movzx edx, word [rcx]
add dword [rax + 0x10], 0xfffffffe
add qword [rax], 2
movzx eax, dx
jmp 0x1400173e9
jmp 0x1400173b0
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x1400fe490]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x1400fe4a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.1400e01d0
jmp 0x14000123c
mov rax, qword [0x1400fe4a0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x1400fe4a0]
mov dword [rax], 1
mov rax, qword [0x1400fe4e0]
mov rdx, rax
mov rax, qword [0x1400fe4d0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x140102024], 1
mov rax, qword [0x1400fe4a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x1400fe4c0]
mov rdx, rax
mov rax, qword [0x1400fe4b0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x1400fe4a0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x1400fe490]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x1400fe3e0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x1400fe3e0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.1400df458
mov rax, qword [0x1400fe520]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x1400fe480]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.1400dec50
mov eax, dword [0x140102004]
lea rdx, [0x140102008]
mov ecx, eax
call fcn.14000147c
call fcn.1400de9e7
mov rax, qword [0x1400fe410]
mov rax, qword [rax]
mov rdx, qword [0x140102010]
mov qword [rax], rdx
mov rcx, qword [0x140102010]
mov rdx, qword [0x140102008]
mov eax, dword [0x140102004]
mov r8, rcx
mov ecx, eax
call fcn.1400016d0
mov dword [0x14010201c], eax
mov eax, dword [0x140102020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14010201c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x140102024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14010201c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400fe440]
mov dword [rax], 1
mov rax, qword [0x1400fe450]
mov dword [rax], 1
mov rax, qword [0x1400fe460]
mov dword [rax], 1
mov rax, qword [0x1400fe400]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400dec60
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.1400dffc0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x1400df932
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140102168]
test eax, eax
je 0x1400df9ca
lea rax, [0x140102140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140102170]
mov qword [rbp - 8], rax
jmp 0x1400df9ae
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1400df9a2
cmp qword [rbp - 0x10], 0
je 0x1400df9a2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400df968
lea rax, [0x140102140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400df9cb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400dfad0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400dfaf8
mov eax, 0
jmp 0x1400dfb46
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400dfb21
mov eax, 0
jmp 0x1400dfb46
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400dfb41
mov eax, 0
jmp 0x1400dfb46
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1400dfb4c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1400dfbca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400dfbc1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1400dfbc1
mov rax, qword [rbp - 8]
jmp 0x1400dfbdf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400dfb94
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1401cfe38
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x14030f560]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x14030691c]
test eax, eax
je 0x1401cfe83
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14030691c]
test eax, eax
jne 0x1401cfe8c
call fcn.14006d284
test eax, eax
je 0x1401cfea8
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402fb4b0]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x1401cfeb0
xor eax, eax
jmp 0x1401cff0d
test rbx, rbx
jne 0x1401cfed0
lea rcx, str.DestroyPropertySheetPage
call fcn.1401d001c
mov rbx, rax
test rax, rax
je 0x1401cfedb
mov qword [0x14030f560], rax
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x1401cfef0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1401cfef2
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x1401cff0b
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x1401cff24
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
or rdi, 0xffffffffffffffff
mov qword [rax - 0x18], rdi
mov rbx, qword [0x14030f568]
and qword [rax + 0x10], 0
xor esi, esi
mov eax, dword [0x14030691c]
test eax, eax
je 0x1401cff73
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14030691c]
test eax, eax
jne 0x1401cff7c
call fcn.14006d284
test eax, eax
je 0x1401cff98
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402fb4b0]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x1401cffa2
or rax, 0xffffffffffffffff
jmp 0x1401d0004
test rbx, rbx
jne 0x1401cffc2
lea rcx, str.PropertySheetW
call fcn.1401d001c
mov rbx, rax
test rax, rax
je 0x1401cffcf
mov qword [0x14030f568], rax
mov rcx, r14
call rbx
mov rdi, rax
mov qword [rsp + 0x20], rax
xor ebx, ebx
cmp rdi, 0xffffffffffffffff
sete bl
test ebx, ebx
je 0x1401cffe6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1401cffe8
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x1401d0001
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x140214a5c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140214a72
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140214a74
xor eax, eax
test eax, eax
je 0x140214a84
mov ecx, eax
call fcn.1401f6920
or eax, 0xffffffff
jmp 0x140214a86
xor eax, eax
add rsp, 0x28
ret
Function at 0x140001a28
Capabilities:
Allocate or change rwx memory
Attach user process memory

Disassembly:
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push r13
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x140009010]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rdi, rcx
mov qword [rsp + 0x58], rcx
xor r15b, r15b
mov byte [rsp + 0x30], r15b
cmp qword [rcx], 0
jbe 0x140001bcd
lea r13, [rcx + 0x10]
cmp qword [r13], 0
jbe 0x140001bcd
cmp qword [rcx + 0x28], 0
jbe 0x140001bcd
cmp byte [0x140009050], r15b
je 0x140001bcd
mov edx, 8
xor ecx, ecx
mov r8d, 0x726574
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140001bcd
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140001bcd
xor eax, eax
mov qword [rsi], rax
mov rcx, rdi
call fcn.140004a7c
test al, al
je 0x140001bae
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov r12, rax
mov qword [rsp + 0x48], rax
mov rcx, qword [rdi]
call fcn.140003aec
mov r14, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140001ba9
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
cmp rax, r12
je 0x140001b30
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x1000
mov r9, r13
xor r8d, r8d
lea rdx, [rsp + 0x38]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov r8, qword [r13]
xor edx, edx
mov rcx, qword [rsp + 0x38]
call fcn.1400068c0
mov rax, qword [rsp + 0x38]
mov qword [rsi], rax
mov r15b, 1
mov byte [rsp + 0x30], r15b
jmp 0x140001b99
cmp r14, r12
je 0x140001ba9
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
call fcn.1400050d0
test r15b, r15b
je 0x140001bbd
mov rdx, qword [rdi + 0x28]
mov rcx, qword [rsi]
mov qword [rdx], rcx
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov al, r15b
jmp 0x140001bcf
xor al, al
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140006680
lea r11, [rsp + 0xa0]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret
Function at 0x140001c2c
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 ebx, 0x100000
mov r8d, 0x627566
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 0x140001c82
mov eax, 0xc000000d
jmp 0x140001d6c
test rsi, rsi
jne 0x140001c91
mov eax, 0xc0000017
jmp 0x140001d6c
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 0x140001cbd
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x140001d6a
mov ebx, 0xc0000225
cmp qword [rsi + 0x50], rbp
je 0x140001cd7
mov eax, dword [rdi]
test eax, eax
je 0x140001cd9
add rdi, rax
cmp qword [rdi + 0x50], rbp
jne 0x140001cc8
xor ebx, ebx
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
test rax, rax
setne r12b
test ebx, ebx
js 0x140001d53
lfence
xor ebp, ebp
mov ebx, 0xc0000225
cmp dword [rdi + 4], ebp
jbe 0x140001d53
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 0x140001d4c
mov rdx, r14
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_PsLookupThreadByThreadId]
mov rcx, qword [r14]
mov ebx, eax
test rcx, rcx
je 0x140001d53
mov dl, r12b
call fcn.140001ed0
test al, al
je 0x140001d53
mov rcx, qword [r14]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
and qword [r14], 0
inc ebp
cmp ebp, dword [rdi + 4]
jb 0x140001cfc
xor edx, edx
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

Function at 0x140002170
Capabilities:
Create device object

Disassembly:
push rbx
sub rsp, 0x60
and qword [rsp + 0x78], 0
lea rdx, [0x140006f50]
mov rbx, rcx
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r9d, 0x22
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x40]
mov byte [rsp + 0x28], 0
mov rcx, rbx
mov dword [rsp + 0x20], 0x100
lea edx, [r9 - 0x1a]
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov ebx, eax
test eax, eax
jne 0x1400021f9
lea rdx, [0x140006f30]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov ebx, eax
test eax, eax
je 0x1400021f9
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, ebx
add rsp, 0x60
pop rbx
ret
Function at 0x1400025bc
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
and qword [rbp + 0x18], 0
mov rbx, rcx
xor ecx, ecx
mov dword [rbp + 0x10], 0x200
mov edx, 0x200
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
xor edx, edx
mov r8d, 0x200
mov rcx, rax
mov rdi, rax
call fcn.1400068c0
and dword [rbp - 0x2c], 0
lea r8, [rbp - 0x30]
and dword [rbp - 0x14], 0
lea rcx, [rbp + 0x18]
and qword [rbp - 0x28], 0
xorps xmm0, xmm0
mov edx, 0x20019
mov dword [rbp - 0x30], 0x30
movdqu xmmword [rbp - 0x10], xmm0
mov dword [rbp - 0x18], 0x40
mov qword [rbp - 0x20], rbx
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x1400026ac
mov dword [rbp - 0x40], 0x140012
lea rax, [0x140007010]
mov qword [rbp - 0x38], rax
test rdi, rdi
je 0x14000267d
mov rcx, qword [rbp + 0x18]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x40]
mov eax, dword [rbp + 0x10]
mov r9, rdi
mov r8d, 2
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
js 0x1400026ac
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea rcx, [rdi + 0xc]
call fcn.1400022c4
mov ebx, eax
test eax, eax
jns 0x1400026ac
lfence
test rdi, rdi
jne 0x1400026a8
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, ebx
jmp 0x1400026af
lfence
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140002bd0
Capabilities:
Attach user process memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x140009010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, rcx
mov qword [rsp + 0x40], rcx
xor dil, dil
mov byte [rsp + 0x20], dil
cmp qword [rcx], 0
jbe 0x140002d20
mov rax, qword [rcx + 8]
mov r12d, 1
sub rax, r12
movabs rcx, 0x7ffffffffffe
cmp rax, rcx
ja 0x140002d20
cmp qword [rbx + 0x28], 0
jbe 0x140002d20
cmp qword [rbx + 0x10], 0
jbe 0x140002d20
cmp byte [0x140009050], dil
je 0x140002d20
mov rcx, rbx
call fcn.140004a7c
test al, al
je 0x140002d0c
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov r14, rax
mov qword [rsp + 0x30], rax
mov rcx, qword [rbx]
call fcn.140003aec
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140002d07
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm0
cmp rax, r14
je 0x140002cb0
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rax, qword [rbx + 8]
mov qword [rsp + 0x28], rax
mov r9d, 0x8000
lea r8, [rbx + 0x10]
lea rdx, [rsp + 0x28]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
movzx edi, dil
test eax, eax
cmovns edi, r12d
mov byte [rsp + 0x20], dil
jmp 0x140002cf7
cmp rsi, r14
je 0x140002d07
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
call fcn.1400050d0
test dil, dil
je 0x140002d1b
mov rcx, qword [rbx + 0x28]
mov dword [rcx], 0x23ff
mov al, dil
jmp 0x140002d22
xor al, al
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140006680
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x140003460
Capabilities:
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 r14
push r15
sub rsp, 0x20
xor ebx, ebx
mov rsi, rdx
mov r8, rcx
test rcx, rcx
je 0x140003550
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140003550
movsxd rax, dword [rcx + 0x3c]
mov ecx, 0x20b
cmp word [rax + r8 + 0x18], cx
jne 0x1400034b7
mov ecx, dword [rax + r8 + 0x88]
jmp 0x1400034bc
mov ecx, dword [rax + r8 + 0x78]
mov r9d, ecx
mov edx, ebx
mov r14d, dword [r9 + r8 + 0x24]
mov r15d, dword [r9 + r8 + 0x20]
add r14, r8
mov edi, dword [r9 + r8 + 0x1c]
add r15, r8
mov r12d, dword [r9 + r8 + 0x14]
add rdi, r8
test r12d, r12d
je 0x140003546
cmp rsi, 0xffff
ja 0x1400034ff
movzx r10d, dx
mov ecx, r10d
movzx eax, si
add ecx, dword [r9 + r8 + 0x10]
cmp eax, ecx
jmp 0x140003531
cmp edx, dword [r9 + r8 + 0x18]
jae 0x140003550
mov eax, edx
mov rbp, rsi
mov ecx, dword [r15 + rax*4]
movzx r10d, word [r14 + rax*2]
add rcx, r8
sub rbp, rcx
movzx eax, byte [rcx]
movzx r11d, byte [rcx + rbp]
sub eax, r11d
jne 0x14000352f
inc rcx
test r11d, r11d
jne 0x14000351a
test eax, eax
je 0x14000353c
inc edx
cmp edx, r12d
jb 0x1400034e3
jmp 0x140003546
movzx eax, r10w
mov ebx, dword [rdi + rax*4]
add rbx, r8
call fcn.1400065f8
mov rax, rbx
jmp 0x140003552
xor eax, eax
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