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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1800089b0
sub rsp, rax
mov rax, qword [0x180038080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180014b2c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18001a8b7
mov rax, rbp
jmp 0x18001a9bf
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x3a180]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18001b7b4
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x3a180]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18001a9bb
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18001a9bb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18001b7b4
test rax, rax
js 0x18001a9bb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18001a9bb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18001a9ad
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18001a9ad
cmp byte [rcx], 0xd
jne 0x18001a993
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18001a9a2
cmp byte [rcx + 1], 0xa
jne 0x18001a9a2
inc rcx
jmp 0x18001a9a2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x38660]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18001a975
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18001a9bf
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180008150
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18001ab54
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x18003a180]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x18001abab
cmp word [rdx], r13w
jne 0x18001abab
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18001abb0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18001acd5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18001acf6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18001abe9
mov rdx, r9
mov word [rbx], cx
jmp 0x18001ac10
cmp r9, r8
jae 0x18001ac20
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x18001abca
jmp 0x18001acd5
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18001acca
cmp dword [rsp + 0x80], esi
je 0x18001acca
lea r8, [0x18003a180]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18001aca2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18001ac72
mov word [rbx], r13w
jmp 0x18001acd2
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x18001ac7f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18001acd2
cmp word [rsp + 0x70], r13w
jne 0x18001acaf
cmp rbx, r14
je 0x18001ac6c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18001b7bc
cmp word [rsp + 0x70], r13w
je 0x18001acd5
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x18003a180]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18001accf
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18001acd5
Function at 0x18001eeb4
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 0x18001eee4
xor eax, eax
jmp 0x18001efa7
mov rbp, rbx
cmp word [rax], si
je 0x18001ef09
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18001eef0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18001eeec
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.180019f64
movsxd r14, eax
test eax, eax
jne 0x18001ef47
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18001eedd
mov rcx, r14
call fcn.180019e74
mov rdi, rax
test rax, rax
jne 0x18001ef60
xor ecx, ecx
call fcn.18001701c
jmp 0x18001ef3c
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.180019f64
test eax, eax
jne 0x18001ef91
mov rcx, rdi
call fcn.18001701c
jmp 0x18001ef9b
xor ecx, ecx
call fcn.18001701c
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 0x18001efc4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x18001f04b
mov rsi, rbx
cmp word [rax], bp
je 0x18001f00a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x18001eff4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x18001eff0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.180019e74
mov rdi, rax
test rax, rax
je 0x18001f038
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.180026040
mov rbp, rdi
xor ecx, ecx
call fcn.18001701c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180022214
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.180015150
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1800222b5
cmp ebx, dword [rsp + 0x30]
je 0x1800222ae
test esi, esi
je 0x1800222ae
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180022289
sub r8w, 0x61
cmp r8w, 0x19
ja 0x180022296
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x180022273
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18002229a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1800222b7
mov eax, 1
jmp 0x1800222b7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x180025688
Capabilities:
Clear file content

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 rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.18001b7bc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18001b7bc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1800257d8
cmp rax, 0xffffffffffffffff
je 0x1800257d8
xor edi, edi
test rbp, rbp
jle 0x180025783
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180016fa4
mov rbx, rax
test rax, rax
jne 0x180025710
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180025779
mov edx, 0x8000
mov ecx, r14d
call fcn.18002550c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.180019768
cmp eax, 0xffffffff
je 0x180025759
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180025720
mov edx, r15d
mov ecx, r14d
call fcn.18002550c
jmp 0x180025779
cmp byte [rsi + 0x38], dil
je 0x180025770
cmp dword [rsi + 0x34], 5
jne 0x180025770
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180025779
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18001701c
jmp 0x1800257ec
jns 0x1800257ec
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18001b7bc
cmp rax, 0xffffffffffffffff
jne 0x1800257a4
cmp byte [rsi + 0x30], dil
je 0x1800257ec
mov edi, dword [rsi + 0x2c]
jmp 0x1800257ec
mov ecx, r14d
call fcn.18001fb68
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1800257ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1800257ec
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1800257e5
mov eax, dword [rsi + 0x2c]
jmp 0x1800257ea
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18001b7bc
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x180025da0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180025dc8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180025dc8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x11870
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x38
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call sub.ntoskrnl.exe_DbgPrint
mov qword [rsp + 0x20], 0
add rsp, 0x38
ret

Function at 0x15010
Capabilities:
Create device object

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x88
mov qword [rsp + 0x40], 0
mov byte [rsp + 0x54], 0
lea rdx, [0x00018c80]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x8000
lea r8, [rsp + 0x58]
mov edx, 0x30
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x15088
jmp 0x15144
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x48], rax
lea rdx, [0x00018cb0]
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x150c5
jmp 0x15144
mov byte [rsp + 0x54], 1
mov rcx, qword [rsp + 0x48]
add rcx, 0x28
call fcn.00011050
mov rcx, qword [rsp + 0x48]
add rcx, 0x18
call fcn.00011010
mov rdx, qword [rsp + 0x48]
mov dword [rdx + 0x10], 0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_IoAllocateWorkItem]
mov rdx, rax
mov rax, qword [rsp + 0x48]
mov qword [rax + 8], rdx
cmp dword [rsp + 0x50], 0
jl 0x1513a
mov rax, qword [rsp + 0x40]
mov qword [0x000131e0], rax
lea rdi, [0x00013660]
lea rsi, [rsp + 0x68]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov byte [0x000131f0], 1
xor eax, eax
jmp 0x1516f
xor eax, eax
test eax, eax
jne 0x15043
movzx eax, byte [rsp + 0x54]
test eax, eax
je 0x15158
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_IoDeleteSymbolicLink]
cmp qword [rsp + 0x40], 0
je 0x1516b
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, dword [rsp + 0x50]
add rsp, 0x88
pop rdi
pop rsi
ret
Function at 0x15a60
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xc0
mov rax, qword [0x00013100]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov dword [rsp + 0x58], 0
lea rdi, [rsp + 0x5c]
xor eax, eax
mov ecx, 0x24
rep stosb byte [rdi], al
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
lea rax, [rsp + 0x88]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x38], rax
mov byte [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x28
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0xd0]
mov ecx, 0x700a0
call qword [sym.imp.ntoskrnl.exe_IoBuildDeviceIoControlRequest]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jne 0x15b1d
lea rcx, [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_KeResetEvent]
jmp 0x15bb2
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.ntoskrnl.exe_IofCallDriver]
mov dword [rsp + 0xb0], eax
cmp dword [rsp + 0xb0], 0x103
jne 0x15b74
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
mov edx, dword [rsp + 0x88]
mov dword [rsp + 0xb0], edx
cmp dword [rsp + 0xb0], 0
jl 0x15ba8
mov rcx, qword [rsp + 0xd8]
mov rax, qword [rsp + 0x70]
mov qword [rcx], rax
mov rax, qword [rsp + 0xd8]
cmp qword [rax], 0
je 0x15ba8
mov eax, dword [rsp + 0xb0]
jmp 0x15cd8
xor eax, eax
test eax, eax
jne 0x15aad
lea rax, [rsp + 0x88]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x38], rax
mov byte [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x18
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0xd0]
mov ecx, 0x70000
call qword [sym.imp.ntoskrnl.exe_IoBuildDeviceIoControlRequest]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jne 0x15c27
lea rcx, [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_KeResetEvent]
mov eax, 0xc000009a
jmp 0x15cd8
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.ntoskrnl.exe_IofCallDriver]
mov dword [rsp + 0xb0], eax
cmp dword [rsp + 0xb0], 0x103
jne 0x15c7e
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
mov edx, dword [rsp + 0x88]
mov dword [rsp + 0xb0], edx
cmp dword [rsp + 0xb0], 0
jl 0x15cd1
mov eax, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
imul rcx, rax
mov eax, dword [rsp + 0x64]
imul rcx, rax
mov rax, qword [rsp + 0xd8]
mov qword [rax], rcx
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0xd8]
mov rdx, qword [rdx]
lea rcx, [0x000191b0]
call sub.ntoskrnl.exe_DbgPrint
mov eax, dword [rsp + 0xb0]
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.00011990
add rsp, 0xc0
pop rdi
ret
Function at 0x15fb0
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [0x000131e0]
cmp qword [rsp + 0x40], rax
jne 0x15ff6
mov rax, qword [rsp + 0x48]
mov dword [rax + 0x30], 0
mov rax, qword [rsp + 0x48]
mov qword [rax + 0x38], 0
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
xor eax, eax
jmp 0x16022
mov rcx, qword [rsp + 0x48]
call fcn.00011190
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x20], rax
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 8]
call qword [sym.imp.ntoskrnl.exe_IofCallDriver]
add rsp, 0x38
ret

Function at 0x16e80
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
lea rax, [0x00019210]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x44], 0
lea rcx, [0x00019460]
call fcn.00011870
lea r11, [0x00013440]
mov qword [rsp + 0x30], r11
mov qword [rsp + 0x28], 0
lea rax, [0x00017010]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x80]
lea r8, [0x00012190]
mov edx, 1
mov ecx, 2
call qword [sym.imp.ntoskrnl.exe_IoRegisterPlugPlayNotification]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x16f18
mov edx, dword [rsp + 0x40]
lea rcx, [0x00019490]
call sub.ntoskrnl.exe_DbgPrint
mov eax, dword [rsp + 0x40]
jmp 0x16ffd
mov byte [0x000131f1], 1
mov dword [rsp + 0x40], 0
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea r11, [rsp + 0x48]
mov qword [rsp + 0x38], r11
mov qword [rsp + 0x30], 0
mov byte [rsp + 0x28], 0
mov rax, qword [sym.imp.ntoskrnl.exe_IoDriverObjectType]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40
lea rcx, [rsp + 0x58]
call sub.ntoskrnl.exe_ObReferenceObjectByName
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jge 0x16f90
lea rcx, [0x000194e0]
call fcn.00011870
xor eax, eax
jmp 0x16ffd
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp qword [rsp + 0x48], 0
je 0x16fed
mov rax, qword [rsp + 0x48]
cmp qword [rax + 0x90], 0
je 0x16fed
mov rax, qword [rsp + 0x48]
add rax, 0x90
lea rcx, [0x00017440]
xchg qword [rax], rcx
mov rax, rcx
mov qword [0x000131f8], rax
cmp qword [0x000131f8], 0
jne 0x16fed
lea rcx, [0x00019520]
call sub.ntoskrnl.exe_DbgPrint
mov eax, dword [rsp + 0x40]
jmp 0x16ffd
lea rcx, [0x00019560]
call fcn.00011870
mov eax, dword [rsp + 0x40]
add rsp, 0x78
ret
Function at 0x17240
Capabilities:
Create device object
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
lea rcx, [0x00019760]
call fcn.00011870
cmp qword [rsp + 0x70], 0
je 0x17419
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x100
mov r9d, 7
xor r8d, r8d
mov edx, 0x148
mov rcx, qword [0x000131e8]
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x172cf
mov edx, dword [rsp + 0x50]
lea rcx, [0x00019780]
call sub.ntoskrnl.exe_DbgPrint
mov eax, dword [rsp + 0x50]
jmp 0x17427
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 0x30]
or ecx, 0x10
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x30], ecx
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x48], rax
mov rdi, qword [rsp + 0x48]
xor eax, eax
mov ecx, 0x148
rep stosb byte [rdi], al
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x70]
mov qword [rdx + 0x10], rax
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_IoAttachDeviceToDeviceStack]
mov rdx, rax
mov rax, qword [rsp + 0x48]
mov qword [rax + 8], rdx
mov rax, qword [rsp + 0x48]
cmp qword [rax + 8], 0
jne 0x1735f
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x40]
lea rcx, [0x000197c0]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc000000e
jmp 0x17427
mov rcx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x48]
add rcx, 0x58
mov r8b, 1
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
mov rcx, qword [rsp + 0x40]
call fcn.00015180
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x173a1
lea rcx, [0x00019810]
call sub.ntoskrnl.exe_DbgPrint
mov rax, qword [rsp + 0x70]
mov edx, dword [rax + 0x30]
and edx, 0x14
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 0x30]
or ecx, edx
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x30], ecx
mov rax, qword [rsp + 0x70]
mov edx, dword [rax + 0x30]
and edx, 0x2000
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 0x30]
or ecx, edx
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x30], ecx
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 0x30]
and ecx, 0xffffff7f
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x30], ecx
mov edx, dword [0x00013438]
lea rcx, [0x00013460]
mov rax, qword [rsp + 0x40]
mov qword [rcx + rdx*8], rax
mov eax, dword [0x00013438]
add eax, 1
mov dword [0x00013438], eax
lea rcx, [0x00019850]
call fcn.00011870
xor eax, eax
add rsp, 0x60
pop rdi
ret
Function at 0x17550
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x20], 0
cmp qword [rsp + 0x68], 0
jne 0x17584
xor eax, eax
jmp 0x17705
mov rcx, qword [rsp + 0x68]
call fcn.00011070
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x68]
call fcn.000110e0
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x88]
test eax, eax
jne 0x175c5
lea rcx, [0x000198a0]
call fcn.00011870
xor eax, eax
jmp 0x17705
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x88]
test eax, eax
je 0x17703
cmp qword [rsp + 0x48], 0
je 0x17703
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
cmp eax, 4
jne 0x17703
mov rax, qword [rsp + 0x48]
cmp dword [rax + 8], 0
jbe 0x17703
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 8]
mov dword [rsp + 0x38], eax
mov r8d, 0x5450454b
mov edx, 0x30
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x176f7
mov rcx, qword [rsp + 0x20]
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x18]
mov dword [rcx + 0x10], eax
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x30]
mov rax, qword [rsp + 0x20]
mov qword [rax + 0x18], rcx
mov rcx, qword [rsp + 0x20]
mov rax, qword [rsp + 0x28]
mov qword [rcx + 0x20], rax
mov rcx, qword [rsp + 0x20]
mov eax, dword [rsp + 0x38]
mov dword [rcx + 0x28], eax
mov r8, qword [0x000131e0]
mov r8, qword [r8 + 0x40]
add r8, 0x28
mov rcx, qword [0x000131e0]
mov rcx, qword [rcx + 0x40]
add rcx, 0x18
mov rdx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ExInterlockedInsertTailList]
mov rcx, qword [0x000131e0]
mov rcx, qword [rcx + 0x40]
add rcx, 0x10
mov eax, 1
lock xadd dword [rcx], eax
add eax, 1
cmp eax, 1
jne 0x176f5
mov rcx, qword [0x000131e0]
mov rcx, qword [rcx + 0x40]
mov r9, qword [0x000131e0]
mov r9, qword [r9 + 0x40]
mov r8d, 1
lea rdx, [0x00017710]
mov rcx, qword [rcx + 8]
call qword [sym.imp.ntoskrnl.exe_IoQueueWorkItem]
jmp 0x17703
lea rcx, [0x000198c0]
call sub.ntoskrnl.exe_DbgPrint
xor eax, eax
add rsp, 0x58
ret