joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140147370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x14018d441], 0
mov rbp, rcx
mov r12, rdx
mov rdi, r8
je 0x1401473f8
lea rdx, [0x140172182]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140147460
mov rbx, qword [0x14018d2e0]
jmp 0x1401473b5
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x1401473b0
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, rbp
mov rdx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.140136540
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x14018d2e0], rax
mov ebx, dword [rax]
mov qword [0x14018d2e0], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x14018d2e0], rdx
call fcn.1401464a0
cmp eax, ebx
jne 0x1401474c8
mov byte [0x14018d441], 1
jmp 0x14014738c
cmp byte [0x14018d440], 0
jne 0x1401473a3
mov rbx, qword [sym.imp.python311.dll_PyDict_New]
call rbx
mov qword [0x14018dda8], rax
call rbx
mov qword [0x14018dda0], rax
call rbx
mov qword [0x14018dd98], rax
call rbx
mov qword [0x14018dd90], rax
call rbx
mov qword [0x14018dd88], rax
call rbx
mov qword [0x14018dd80], rax
call rbx
mov qword [0x14018dd78], rax
call rbx
mov byte [0x14018d440], 1
mov qword [0x14018dd70], rax
jmp 0x1401473a3
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x14014fdd0
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 fcn.140161560
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.140161560
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x140150aa2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14018e268]
test eax, eax
je 0x140150b3a
lea rax, [0x14018e240]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14018e270]
mov qword [rbp - 8], rax
jmp 0x140150b1e
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 0x140150b12
cmp qword [rbp - 0x10], 0
je 0x140150b12
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 0x140150ad8
lea rax, [0x14018e240]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140150b3b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140150c40
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 0x140150c68
mov eax, 0
jmp 0x140150cb6
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 0x140150c91
mov eax, 0
jmp 0x140150cb6
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 0x140150cb1
mov eax, 0
jmp 0x140150cb6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x140150cbc
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 0x140150d3a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140150d31
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 0x140150d31
mov rax, qword [rbp - 8]
jmp 0x140150d4f
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 0x140150d04
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d9d50
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4da752
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4ff108]
test eax, eax
je 0x2fc4da7ea
lea rax, [0x2fc4ff0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4ff110]
mov qword [rbp - 8], rax
jmp 0x2fc4da7ce
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 0x2fc4da7c2
cmp qword [rbp - 0x10], 0
je 0x2fc4da7c2
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 0x2fc4da788
lea rax, [0x2fc4ff0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4da7eb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4da8f0
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 0x2fc4da918
mov eax, 0
jmp 0x2fc4da966
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 0x2fc4da941
mov eax, 0
jmp 0x2fc4da966
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 0x2fc4da961
mov eax, 0
jmp 0x2fc4da966
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4da96c
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 0x2fc4da9ea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4da9e1
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 0x2fc4da9e1
mov rax, qword [rbp - 8]
jmp 0x2fc4da9ff
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 0x2fc4da9b4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x11008
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x30
lea rdx, [0x00012be0]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
movsxd rcx, dword [rax + 4]
lea rbx, [rax + rcx + 8]
lea rcx, [0x00012c20]
mov rdx, rbx
call sub.ntoskrnl.exe_DbgPrint
lea rax, [rbx + 0xff]
cmp rbx, rax
jae 0x11072
cmp byte [rbx], 0x4c
jne 0x11060
cmp byte [rbx + 1], 0x8d
jne 0x11060
cmp byte [rbx + 2], 0x35
je 0x11065
inc rbx
jmp 0x1104a
mov eax, dword [rbx + 3]
add eax, 7
cdqe
add rax, rbx
jmp 0x11074
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x11080
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x30
lea rdx, [0x00012cb0]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
lea rcx, [0x00012cf0]
mov rdx, rax
mov rbx, rax
call sub.ntoskrnl.exe_DbgPrint
lea rax, [rbx + 0xff]
cmp rbx, rax
jae 0x110e4
cmp byte [rbx], 0x48
jne 0x110d2
cmp byte [rbx + 1], 0x8d
jne 0x110d2
cmp byte [rbx + 2], 0xd
je 0x110d7
inc rbx
jmp 0x110bc
mov eax, dword [rbx + 3]
add eax, 7
cdqe
add rax, rbx
jmp 0x110e6
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x110f4
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x30
lea rdx, [0x00012d80]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
lea rcx, [0x00012dc0]
mov rdx, rax
mov rbx, rax
call sub.ntoskrnl.exe_DbgPrint
lea rax, [rbx + 0xff]
cmp rbx, rax
jae 0x11158
cmp byte [rbx], 0x48
jne 0x11146
cmp byte [rbx + 1], 0x8d
jne 0x11146
cmp byte [rbx + 2], 0xd
je 0x1114b
inc rbx
jmp 0x11130
mov eax, dword [rbx + 3]
add eax, 7
cdqe
add rax, rbx
jmp 0x1115a
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x11168
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x00015100]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x114
xor bl, bl
call fcn.00012af0
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlGetVersion]
mov edx, dword [rsp + 0x2c]
lea rcx, [0x00012e50]
mov dword [0x00018310], edx
call sub.ntoskrnl.exe_DbgPrint
mov r11d, dword [0x00018310]
cmp r11d, 0x1db0
jb 0x111fb
cmp r11d, 0x1db1
jbe 0x111ef
cmp r11d, 0x23f0
je 0x111e3
cmp r11d, 0x2580
jne 0x111fb
mov dword [0x00018314], 0xc8
jmp 0x111f9
mov dword [0x00018314], 0xc0
mov bl, 1
mov al, bl
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.000126a0
add rsp, 0x150
pop rbx
ret
Function at 0x1121c
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0xb8
lea rdx, [0x00012e90]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and dword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x88], 0
and qword [rsp + 0xa0], 0
and qword [rsp + 0xa8], 0
mov dword [rsp + 0x40], 0x40
mov dword [rsp + 0x38], 3
and dword [rsp + 0x30], 0
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x80]
lea rcx, [0x00018430]
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
and qword [rsp + 0x20], 0
mov dword [rsp + 0x80], 0x30
mov dword [rsp + 0x98], 0x240
mov qword [rsp + 0x90], rax
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
jns 0x112d4
lea rcx, [0x00012ee0]
mov edx, eax
call sub.ntoskrnl.exe_DbgPrint
jmp 0x112e0
lea rcx, [0x00012f00]
call sub.ntoskrnl.exe_DbgPrint
add rsp, 0xb8
ret
Function at 0x112f0
Capabilities:
Print debug messages

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x50
mov rax, qword [0x00015100]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rax, qword [0x00012f20]
mov rsi, rcx
lea rcx, [rsp + 0x30]
mov qword [rcx], rax
mov eax, dword [0x00012f28]
mov rbp, r9
mov dword [rcx + 8], eax
movzx eax, word [0x00012f2c]
mov r13, r8
mov word [rcx + 0xc], ax
mov al, byte [0x00012f2e]
mov r12, rdx
mov byte [rcx + 0xe], al
mov rax, qword [0x00012f20]
lea rcx, [rsp + 0x20]
mov qword [rcx], rax
mov eax, dword [0x00012f28]
mov dword [rcx + 8], eax
movzx eax, word [0x00012f2c]
mov word [rcx + 0xc], ax
mov al, byte [0x00012f2e]
mov byte [rcx + 0xe], al
mov ecx, 0xe
mov dword [r9], ecx
movsx eax, byte [rsi]
cmp eax, 0xff
je 0x114a9
cmp byte [rsi + 1], 0x25
je 0x114a9
mov rdx, rcx
mov r8d, 0x53595351
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
mov rbx, cr8
mov r15d, 2
mov cr8, r15
mov rcx, cr0
btr rcx, 0x10
mov cr0, rcx
cli
mov r8d, dword [rbp]
mov rdx, rsi
mov rcx, rax
call fcn.00012710
mov r11, cr0
sti
bts r11, 0x10
mov cr0, r11
movzx eax, bl
mov cr8, rax
mov edx, dword [rbp]
xor ecx, ecx
mov r8d, 0x53595351
add edx, 0xe
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r8d, dword [rbp]
mov edx, 0x90
add r8d, 0xe
mov rcx, rax
mov rbx, rax
call fcn.00012af0
mov r8d, dword [rbp]
mov rdx, rdi
lea rcx, [r8 + rsi]
mov qword [rsp + 0x26], rcx
mov rcx, rbx
call fcn.00012710
mov r11d, dword [rbp]
lea rcx, [rsp + 0x20]
mov rax, qword [rcx]
mov qword [rsp + 0x36], r12
mov qword [r11 + rbx], rax
mov eax, dword [rcx + 8]
mov dword [r11 + rbx + 8], eax
movzx eax, word [rcx + 0xc]
mov word [r11 + rbx + 0xc], ax
mov qword [r13], rbx
mov rbx, cr8
mov cr8, r15
mov rax, cr0
btr rax, 0x10
mov cr0, rax
cli
mov r8d, dword [rbp]
mov edx, 0x90
mov rcx, rsi
call fcn.00012af0
lea rcx, [rsp + 0x30]
mov rax, qword [rcx]
mov qword [rsi], rax
mov eax, dword [rcx + 8]
mov dword [rsi + 8], eax
movzx eax, word [rcx + 0xc]
mov word [rsi + 0xc], ax
mov rax, cr0
sti
bts rax, 0x10
mov cr0, rax
movzx eax, bl
mov cr8, rax
mov rax, rdi
jmp 0x114b7
lea rcx, [0x00012f30]
call sub.ntoskrnl.exe_DbgPrint
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.000126a0
add rsp, 0x50
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x114dc
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
lea rdx, [rsp + 0x38]
xor ebx, ebx
mov qword [rsp + 0x38], rbx
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp eax, ebx
jl 0x11511
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_PsGetProcessImageFileName]
mov rcx, qword [rsp + 0x38]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x11e5c
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x20
mov r12, rdx
mov edi, 0x5000
mov edx, edi
xor ecx, ecx
mov r8d, 0x53595351
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
je 0x11f1b
lea r9, [rsp + 0x50]
mov r8d, edi
mov rdx, rax
mov ecx, 0xb
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x11ebe
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
add edi, edi
jmp 0x11e76
test eax, eax
js 0x11f10
mov ebp, dword [rbx]
xor edi, edi
test ebp, ebp
je 0x11f10
lea rsi, [rbx + 0x2e]
movabs rax, 0x8000000000000000
cmp qword [rsi - 0x16], rax
jbe 0x11f03
movzx ecx, word [rsi]
mov eax, edi
lea rdx, [0x00013550]
imul rax, rax, 0x128
add rax, rbx
lea rcx, [rcx + rax + 0x30]
call qword [sym.imp.ntoskrnl.exe__stricmp]
test eax, eax
je 0x11f30
inc edi
add rsi, 0x128
cmp edi, ebp
jb 0x11ece
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret
test r12, r12
je 0x11f46
mov eax, edi
imul rax, rax, 0x128
mov eax, dword [rax + rbx + 0x20]
mov dword [r12], eax
mov eax, edi
imul rax, rax, 0x128
mov rax, qword [rax + rbx + 0x18]
jmp 0x11f1d

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

Disassembly:
push rbx
sub rsp, 0x60
lea rax, [0x00011fe8]
mov rbx, rcx
lea rdx, [0x00013690]
mov qword [rcx + 0x70], rax
lea rax, [0x00012020]
mov qword [rcx + 0x80], rax
lea rax, [0x00012058]
mov qword [rcx + 0xe0], rax
lea rax, [0x00011f5c]
mov qword [rcx + 0x68], rax
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea r11, [rsp + 0x70]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x30], r11
mov r9d, 0x22
xor edx, edx
mov rcx, rbx
mov byte [rsp + 0x28], 0
and dword [rsp + 0x20], 0
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
test eax, eax
js 0x12683
mov dl, 0x10
mov cl, 1
call qword [sym.imp.ntoskrnl.exe_IoIsWdmVersionAvailable]
lea rcx, [rsp + 0x50]
lea rdx, [0x000136b0]
test al, al
jne 0x12614
lea rdx, [0x000134c0]
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
jns 0x1263f
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, ebx
jmp 0x12683
and qword [0x00018408], 0
call fcn.0001121c
mov ebx, 0x3200
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
lea rdx, [0x00015110]
mov r8, rbx
mov rcx, rax
mov qword [0x00018438], rax
call fcn.00012710
lea rcx, [0x000136e0]
call sub.ntoskrnl.exe_DbgPrint
xor eax, eax
add rsp, 0x60
pop rbx
ret

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

Disassembly:
sub rsp, 0x28
mov r8, rdx
mov r9, rcx
call fcn.0001a008
mov rdx, r8
mov rcx, r9
add rsp, 0x28
jmp fcn.00012574
Function at 0x4142e0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x41446b
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00430140
xorps xmm15, xmm15
mov r14, qword [0x00595a68]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x414345
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x414354
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x414373
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x414383
cmp rbx, 0x1000
jae 0x41434b
jmp 0x4143ed
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x414395
xor edx, edx
jmp 0x4143e4
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00430140
xorps xmm15, xmm15
mov r14, qword [0x00595a68]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x414379
jmp 0x414368
call fcn.004600c0
xorps xmm15, xmm15
mov r14, qword [0x00595a68]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.004345e0
lea rax, [0x004add6b]
mov ebx, 0x18
nop dword [rax]
call fcn.00434e60
mov rax, qword [rsp + 0x38]
call fcn.00434ba0
lea rax, [0x004ae063]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.00434e60
mov rax, qword [rsp + 0x30]
call fcn.00434ba0
call fcn.00434820
call fcn.00434640
lea rax, [0x004afbbc]
mov ebx, 0x21
call fcn.00432c40
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045c9e0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.004142e0
Function at 0x4144a0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4146c6
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.004301c0
xorps xmm15, xmm15
mov r14, qword [0x00595a68]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x414513
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x414522
add rsp, 0x50
pop rbp
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x414545
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
jmp 0x414555
cmp rbx, 0x1000
jae 0x414519
nop
jmp 0x4145d8
add rsp, 0x50
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop word [rax + rax]
cmp rbx, 0x1000
jae 0x41456d
xor esi, esi
jmp 0x4145ca
mov rax, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.004301c0
xorps xmm15, xmm15
mov r14, qword [0x00595a68]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x28], 0
sete al
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov esi, eax
mov rax, qword [rsp + 0x68]
test sil, sil
jne 0x41454b
jmp 0x414536
call fcn.004600c0
xorps xmm15, xmm15
mov r14, qword [0x00595a68]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x414660
nop dword [rax + rax]
call fcn.004345e0
lea rax, [0x004ae07c]
mov ebx, 0x19
call fcn.00434e60
mov rax, qword [rsp + 0x68]
nop dword [rax + rax]
call fcn.00434ba0
lea rax, [0x004ae063]
mov ebx, 0x19
call fcn.00434e60
mov eax, dword [rsp + 0x34]
call fcn.00434ba0
nop
call fcn.00434820
call fcn.00434640
lea rax, [0x004ab5e9]
mov ebx, 0xd
call fcn.00432c40
nop dword [rax + rax]
cmp eax, 0x5af
je 0x414600
call fcn.004345e0
lea rax, [0x004ae07c]
mov ebx, 0x19
call fcn.00434e60
mov rax, qword [rsp + 0x38]
call fcn.00434ba0
lea rax, [0x004ae063]
mov ebx, 0x19
call fcn.00434e60
mov eax, dword [rsp + 0x34]
nop dword [rax]
call fcn.00434ba0
call fcn.00434820
call fcn.00434640
lea rax, [0x004af4b9]
mov ebx, 0x1f
nop dword [rax + rax]
call fcn.00432c40
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045c9e0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
nop
jmp fcn.004144a0