joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140334d20
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.140129a95
sub rsp, rax
mov rax, qword [0x140d145c0]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140d234a0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, listen
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x140334f2d
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x140334e79
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x140334e79
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x140334e59
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, reloc.WS2_32.dll_listen
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x140334de8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140334eed
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, listen
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140334f4c
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x140334f28
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, listen
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140334f4c
jmp 0x140334dbe
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, listen
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.14012c6c3
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x401210
Capabilities:
Create process on windows
Get common file path

Disassembly:
push rbx
sub rsp, 0x6f0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x6e0], rax
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call sub.MSVCR80.dll_memset
xor eax, eax
mov dword [rsp + 0x70], 0x68
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
call section..text
test eax, eax
jne 0x40127b
lea r8, str.Error_Message
lea rdx, str.Can_not_find_HID_Digitizer_Touchscreen_device___
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x401388
lea rcx, [rsp + 0x2e0]
xor edx, edx
mov r8d, 0x400
call sub.MSVCR80.dll_memset
lea rcx, [rsp + 0x2e0]
mov edx, 0x400
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea r9, str.System32_tabcal.exe
lea r8, [rsp + 0x2e0]
lea rdx, str._s_s
lea rcx, [rsp + 0xe0]
call qword [sym.imp.USER32.dll_wsprintfW]
xor ebx, ebx
lea r11, [rsp + 0x58]
mov qword [rsp + 0x48], r11
lea rax, [rsp + 0x70]
lea rdx, str._lincal_novalidate
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0xe0]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x401362
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], rbx
xor edx, edx
mov r8d, eax
lea rax, [rsp + 0x50]
mov r9d, 0x400
mov ecx, 0x1300
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov rdx, qword [rsp + 0x50]
lea r9d, [rbx + 0x40]
lea r8, str.Error
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x401388
mov rcx, qword [rsp + 0x58]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x6e0]
xor rcx, rsp
call fcn.004013c0
add rsp, 0x6f0
pop rbx
ret
Function at 0x401857
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [section..data]
jne 0x4013da
rol rcx, 0x10
test cx, 0xffff
jne 0x4013d6
repz ret
ror rcx, 0x10
jmp 0x4017b0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x00403150]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x00403248]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x401835
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x00403150]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x401857
mov rax, qword [rsp + 0x88]
mov qword [0x00403248], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x004031e8], rax
mov rax, qword [0x00403248]
mov qword [0x004030c0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x004031d0], rax
mov dword [0x004030b0], 0xc0000409
mov dword [0x004030b4], 1
mov rax, qword [section..data]
mov qword [rsp + 0x68], rax
mov rax, qword [0x00403008]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x00403148], eax
mov ecx, 1
call sub.MSVCR80.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x00402210]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x00403148], 0
jne 0x4018de
mov ecx, 1
call sub.MSVCR80.dll___crt_debugger_hook
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x11a20
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [rsp + 0x68]
mov rax, qword [rax + 0xb8]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0xc], 0
jne 0x11ab5
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_PoStartNextPowerIrp]
mov rax, qword [rsp + 0x68]
movzx eax, byte [rax + 0x43]
inc al
mov rcx, qword [rsp + 0x68]
mov byte [rcx + 0x43], al
mov rax, qword [rsp + 0x68]
mov rax, qword [rax + 0xb8]
add rax, 0x48
mov rcx, qword [rsp + 0x68]
mov qword [rcx + 0xb8], rax
mov rdx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.ntoskrnl.exe_PoCallDriver]
jmp 0x11ba0
mov rcx, qword [rsp + 0x60]
call fcn.00011020
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax + 1]
cmp eax, 2
jne 0x11b40
xor eax, eax
test eax, eax
jne 0x11ae4
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x14]
and eax, 0x2000
test eax, eax
je 0x11b40
cmp dword [rsp + 0x30], 0
jne 0x11afb
mov ecx, dword [rsp + 0x20]
call fcn.00011da0
mov qword [rsp + 0x38], rax
jmp 0x11b09
mov ecx, dword [rsp + 0x20]
call fcn.00011e50
mov qword [rsp + 0x38], rax
cmp dword [rsp + 0x30], 0
jne 0x11b1e
lea rax, [0x00013050]
mov qword [rsp + 0x40], rax
jmp 0x11b2a
lea rax, [0x00013040]
mov qword [rsp + 0x40], rax
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
lea rcx, [0x00013020]
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_PoStartNextPowerIrp]
mov rax, qword [rsp + 0x68]
movzx eax, byte [rax + 0x43]
inc al
mov rcx, qword [rsp + 0x68]
mov byte [rcx + 0x43], al
mov rax, qword [rsp + 0x68]
mov rax, qword [rax + 0xb8]
add rax, 0x48
mov rcx, qword [rsp + 0x68]
mov qword [rcx + 0xb8], rax
mov rdx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.ntoskrnl.exe_PoCallDriver]
mov dword [rsp + 0x34], eax
mov rcx, qword [rsp + 0x60]
call fcn.000110b0
mov eax, dword [rsp + 0x34]
add rsp, 0x58
ret
Function at 0x11bb0
Capabilities:
Complete processing asynchronous io request
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
mov rax, qword [rax + 0xb8]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x28]
mov al, byte [rax + 1]
mov byte [rsp + 0x38], al
cmp byte [rsp + 0x38], 2
je 0x11c0a
cmp byte [rsp + 0x38], 3
je 0x11ce2
jmp 0x11cec
xor eax, eax
test eax, eax
jne 0x11c21
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x14]
and eax, 0x2000
test eax, eax
je 0x11c7d
cmp dword [rsp + 0x30], 0
jne 0x11c38
mov ecx, dword [rsp + 0x20]
call fcn.00011da0
mov qword [rsp + 0x40], rax
jmp 0x11c46
mov ecx, dword [rsp + 0x20]
call fcn.00011e50
mov qword [rsp + 0x40], rax
cmp dword [rsp + 0x30], 0
jne 0x11c5b
lea rax, [0x00013050]
mov qword [rsp + 0x48], rax
jmp 0x11c67
lea rax, [0x00013040]
mov qword [rsp + 0x48], rax
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
lea rcx, [0x00013060]
call sub.ntoskrnl.exe_DbgPrint
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x11cc2
cmp dword [rsp + 0x50], 1
je 0x11c95
jmp 0x11cd8
mov r8d, dword [rsp + 0x20]
mov edx, dword [rsp + 0x30]
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call qword [sym.imp.ntoskrnl.exe_PoSetPowerState]
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x20]
mov dword [rax + 0x1c], ecx
mov dword [rsp + 0x34], 0
jmp 0x11ce0
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x20]
mov dword [rax + 0x18], ecx
mov dword [rsp + 0x34], 0
jmp 0x11ce0
mov dword [rsp + 0x34], 0xc00000bb
jmp 0x11cf4
mov dword [rsp + 0x34], 0
jmp 0x11cf4
mov dword [rsp + 0x34], 0xc00000bb
cmp dword [rsp + 0x34], 0xc00000bb
je 0x11d0a
mov rax, qword [rsp + 0x78]
mov ecx, dword [rsp + 0x34]
mov dword [rax + 0x30], ecx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_PoStartNextPowerIrp]
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x30]
mov dword [rsp + 0x34], eax
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov eax, dword [rsp + 0x34]
add rsp, 0x68
ret
Function at 0x11ee0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x40], 0
call fcn.00011010
movzx eax, al
cmp eax, 1
jle 0x11f36
call fcn.00011010
movzx eax, al
mov edx, eax
lea rcx, [0x00012b00]
call sub.ntoskrnl.exe_DbgPrint
xor r9d, r9d
mov r8d, 0x462
lea rdx, [0x000132e0]
lea rcx, [0x00012ad0]
call qword [sym.imp.ntoskrnl.exe_RtlAssert]
mov rax, qword [rsp + 0x68]
mov rax, qword [rax + 0xb8]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 8]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x20], 1
mov r9d, 4
mov r8d, 0x10
lea rdx, [0x00014190]
mov rcx, qword [rsp + 0x48]
call fcn.000128b0
test eax, eax
jne 0x11fea
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x10]
cmp rax, 0x38
jae 0x11fa2
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x12]
cmp eax, 1
je 0x11fa2
mov eax, 0xc000000d
jmp 0x11ffa
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x38]
lea rcx, [fcn.00012010]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x38]
lea rcx, [0x00012030]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x60]
call fcn.00012010
jmp 0x11ff6
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x30]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x12100
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rdx
mov byte [rsp + 8], cl
sub rsp, 0x18
mov dword [rsp], 7
jmp 0x1211e
mov eax, dword [rsp]
dec eax
mov dword [rsp], eax
cmp dword [rsp], 0
jl 0x12186
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax]
shl eax, 1
movzx ecx, byte [rsp + 0x20]
mov dword [rsp + 4], ecx
mov edx, dword [rsp]
movzx ecx, dl
mov edx, dword [rsp + 4]
sar edx, cl
mov ecx, edx
and ecx, 1
or eax, ecx
mov rcx, qword [rsp + 0x28]
mov byte [rcx], al
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax]
and eax, 0x10
test eax, eax
je 0x12172
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax]
xor eax, 0xd
mov rcx, qword [rsp + 0x28]
mov byte [rcx], al
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax]
and eax, 0xf
mov rcx, qword [rsp + 0x28]
mov byte [rcx], al
jmp 0x12116
add rsp, 0x18
ret
Function at 0x121a0
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x1b8
mov rax, qword [0x00015208]
mov qword [rsp + 0x1a8], rax
call fcn.00011010
mov byte [rsp + 0x7c], al
movzx eax, byte [rsp + 0x7c]
test eax, eax
je 0x121e1
mov eax, 1
jmp 0x122f7
mov eax, dword [0x0001529c]
shr eax, 0x10
mov ecx, dword [0x0001529c]
shl ecx, 0x10
or eax, ecx
mov r9d, eax
lea r8, str.RegistryMACHINESystemCurrentControlSetutool
lea rdx, [0x00013300]
lea rcx, [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_swprintf]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x48], 0x30
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x60], 0x40
lea rax, [rsp + 0x38]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
lea r8, [rsp + 0x48]
mov edx, 0x20006
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov dword [rsp + 0x78], eax
cmp dword [rsp + 0x78], 0
jl 0x122d1
mov rdx, qword [rsp + 0x1c0]
lea rcx, [rsp + 0x190]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov eax, dword [rsp + 0x1d0]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x1c8]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
lea rdx, [rsp + 0x190]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
cmp dword [rsp + 0x78], 0
jl 0x122e5
mov dword [rsp + 0x1a0], 0
jmp 0x122f0
mov dword [rsp + 0x1a0], 1
mov eax, dword [rsp + 0x1a0]
mov rcx, qword [rsp + 0x1a8]
call fcn.00012990
add rsp, 0x1b8
ret
Function at 0x12380
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x58
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x48], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 2
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0xc0000034
jne 0x1240c
mov eax, dword [rsp + 0x88]
cmp dword [rsp + 0x48], eax
jae 0x1240c
cmp dword [rsp + 0x48], 0x1000
ja 0x1240c
mov eax, 0xc000000d
jmp 0x124a6
mov eax, dword [rsp + 0x48]
mov r8d, 0x206b6444
mov rdx, rax
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x12438
mov eax, 0xc000009a
jmp 0x124a6
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x30]
mov r8d, 2
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
jge 0x12477
mov eax, 0xc000000d
jmp 0x124a6
mov eax, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x30]
add rcx, 0xc
mov rdi, qword [rsp + 0x80]
mov rsi, rcx
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
add rsp, 0x58
pop rdi
pop rsi
ret
Function at 0x18630
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
call fcn.00011010
movzx eax, al
cmp eax, 1
jle 0x1867e
call fcn.00011010
movzx eax, al
mov edx, eax
lea rcx, [0x0001c650]
call sub.ntoskrnl.exe_DbgPrint
xor r9d, r9d
mov r8d, 0x357
lea rdx, [0x0001c800]
lea rcx, [0x0001c620]
call qword [sym.imp.ntoskrnl.exe_RtlAssert]
mov rax, qword [rsp + 0x40]
add rax, 0xb8
mov dl, 1
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_IoSetDeviceInterfaceState]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jge 0x186d0
xor eax, eax
test eax, eax
jne 0x186b4
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x14]
and eax, 0x20
test eax, eax
je 0x186d0
lea rcx, [0x0001c610]
call sub.ntoskrnl.exe_DbgPrint
mov edx, dword [rsp + 0x20]
lea rcx, [0x0001c960]
call sub.ntoskrnl.exe_DbgPrint
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x1c], 1
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx + 0xc]
mov dword [rax + 0x10], ecx
mov rax, qword [rsp + 0x40]
mov dword [rax + 0xc], 1
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x18710
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
call fcn.00011010
movzx eax, al
cmp eax, 1
jle 0x1875a
call fcn.00011010
movzx eax, al
mov edx, eax
lea rcx, [0x0001c650]
call sub.ntoskrnl.exe_DbgPrint
xor r9d, r9d
mov r8d, 0x38c
lea rdx, [0x0001c800]
lea rcx, [0x0001c620]
call qword [sym.imp.ntoskrnl.exe_RtlAssert]
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0xc0], 0
je 0x187aa
mov rax, qword [rsp + 0x30]
add rax, 0xb8
xor edx, edx
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_IoSetDeviceInterfaceState]
xor edx, edx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0xc0]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, qword [rsp + 0x30]
add rax, 0xb8
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
add rsp, 0x20
pop rdi
ret
Function at 0x187c0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x78
call fcn.00011010
movzx eax, al
cmp eax, 1
jle 0x18810
call fcn.00011010
movzx eax, al
mov edx, eax
lea rcx, [0x0001c650]
call sub.ntoskrnl.exe_DbgPrint
xor r9d, r9d
mov r8d, 0x3ba
lea rdx, [0x0001c800]
lea rcx, [0x0001c620]
call qword [sym.imp.ntoskrnl.exe_RtlAssert]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
mov rax, qword [rsp + 0x98]
mov rax, qword [rax + 0xb8]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x98]
mov rax, qword [rax + 0xb8]
sub rax, 0x48
mov qword [rsp + 0x50], rax
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov ecx, 0x38
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x50]
mov byte [rax + 3], 0
lea rax, [0x00011230]
test rax, rax
jne 0x18899
xor r9d, r9d
mov r8d, 0x3c6
lea rdx, [0x0001c800]
lea rcx, [0x0001c990]
call qword [sym.imp.ntoskrnl.exe_RtlAssert]
mov dword [rsp + 0x68], 0
jmp 0x188a1
mov dword [rsp + 0x68], 1
mov rax, qword [rsp + 0x98]
mov rax, qword [rax + 0xb8]
sub rax, 0x48
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
lea rcx, [0x00011230]
mov qword [rax + 0x38], rcx
mov rax, qword [rsp + 0x60]
lea rcx, [rsp + 0x38]
mov qword [rax + 0x40], rcx
mov rax, qword [rsp + 0x60]
mov byte [rax + 3], 0
xor eax, eax
cmp eax, 1
je 0x188f0
mov rax, qword [rsp + 0x60]
mov byte [rax + 3], 0x40
xor eax, eax
cmp eax, 1
je 0x1890d
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax + 3]
or eax, 0x80
mov rcx, qword [rsp + 0x60]
mov byte [rcx + 3], al
xor eax, eax
cmp eax, 1
je 0x18928
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax + 3]
or eax, 0x20
mov rcx, qword [rsp + 0x60]
mov byte [rcx + 3], al
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_IofCallDriver]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x103
jne 0x18977
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 0x30]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
add rsp, 0x78
pop rdi
pop rsi
ret
Function at 0x18990
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
call fcn.00011010
movzx eax, al
cmp eax, 1
jle 0x189de
call fcn.00011010
movzx eax, al
mov edx, eax
lea rcx, [0x0001c650]
call sub.ntoskrnl.exe_DbgPrint
xor r9d, r9d
mov r8d, 0x415
lea rdx, [0x0001c800]
lea rcx, [0x0001c620]
call qword [sym.imp.ntoskrnl.exe_RtlAssert]
mov rax, qword [rsp + 0x38]
cmp qword [rax + 0x28], 0
je 0x18a08
xor edx, edx
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, qword [rsp + 0x38]
mov qword [rax + 0x28], 0
xor eax, eax
test eax, eax
jne 0x18a1d
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x14]
and eax, 0x40
test eax, eax
je 0x18a2e
mov rdx, qword [rsp + 0x30]
lea rcx, [0x0001c9d0]
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
xor eax, eax
add rsp, 0x28
ret
Function at 0x18a50
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
call fcn.00011010
movzx eax, al
cmp eax, 1
jle 0x18a9e
call fcn.00011010
movzx eax, al
mov edx, eax
lea rcx, [0x0001c650]
call sub.ntoskrnl.exe_DbgPrint
xor r9d, r9d
mov r8d, 0x437
lea rdx, [0x0001c800]
lea rcx, [0x0001c620]
call qword [sym.imp.ntoskrnl.exe_RtlAssert]
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x20], rax
xor eax, eax
test eax, eax
jne 0x18ac1
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x14]
and eax, 1
test eax, eax
je 0x18ae3
lea rcx, [0x0001c610]
call sub.ntoskrnl.exe_DbgPrint
mov r8, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x40]
lea rcx, [0x0001c9f0]
call sub.ntoskrnl.exe_DbgPrint
mov rax, qword [rsp + 0x20]
mov byte [rax + 8], 0
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov qword [rax], rcx
mov rax, qword [rsp + 0x20]
mov ecx, dword [0x00015100]
mov dword [rax + 0x14], ecx
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx]
mov qword [rax + 0x20], rcx
mov rax, qword [rsp + 0x20]
mov byte [rax + 0x48], 1
mov rax, qword [rsp + 0x20]
mov byte [rax + 0x49], 0
mov rax, qword [rsp + 0x20]
mov dword [rax + 0xc], 0
mov rax, qword [rsp + 0x20]
mov dword [rax + 0x10], 0
mov rax, qword [rsp + 0x20]
mov dword [rax + 0x1c], 4
mov rax, qword [rsp + 0x20]
mov dword [rax + 0x18], 1
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x30]
or eax, 0x2000
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 0x30], eax
call qword [sym.imp.ntoskrnl.exe_KeEnterCriticalRegion]
mov rax, qword [rsp + 0x48]
add rax, 0x48
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_ExAcquireFastMutex]
mov rax, qword [rsp + 0x20]
add rax, 0x38
mov rcx, qword [rsp + 0x48]
add rcx, 0x30
mov rdx, rax
call fcn.00011270
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x40]
inc eax
mov rcx, qword [rsp + 0x48]
mov dword [rcx + 0x40], eax
mov rax, qword [rsp + 0x48]
add rax, 0x48
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_ExReleaseFastMutex]
call qword [sym.imp.ntoskrnl.exe_KeLeaveCriticalRegion]
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x30]
and eax, 0xffffff7f
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 0x30], eax
add rsp, 0x38
ret