joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800293c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test r9d, 0xff000000
je 0x180029551
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
movss xmm3, dword [rsp + 0x70]
xorps xmm0, xmm0
comiss xmm3, xmm0
mov edi, r9d
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
jbe 0x180029430
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
call fcn.180028d80
mov r8d, dword [rbx + 0x80]
mov r9d, edi
mov rdx, qword [rbx + 0x88]
mov rcx, rbx
call fcn.1800283e0
mov dword [rbx + 0x80], 0
jmp 0x18002953d
mov edx, 6
movaps xmmword [rsp + 0x30], xmm6
lea r8d, [rdx - 2]
call fcn.180027480
movzx edx, word [rbx + 0x4c]
mov rax, qword [rbx + 0x38]
movss xmm1, dword [rsi]
movss xmm2, dword [rbp + 4]
movss xmm3, dword [rbp]
lea ecx, [rdx + 1]
movss xmm6, dword [rax + 4]
movss xmm5, dword [rax]
movss xmm4, dword [rsi + 4]
mov rax, qword [rbx + 0x58]
mov word [rax], dx
mov rax, qword [rbx + 0x58]
mov word [rax + 2], cx
lea ecx, [rdx + 2]
mov rax, qword [rbx + 0x58]
mov word [rax + 4], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 6], dx
add dx, 3
mov rax, qword [rbx + 0x58]
mov word [rax + 8], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 0xa], dx
movsd xmm0, qword [rbp]
mov rax, qword [rbx + 0x50]
movsd qword [rax], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 8], xmm5
movss dword [rax + 0xc], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x10], edi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x14], xmm1
movss dword [rax + 0x18], xmm2
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x1c], xmm5
movss dword [rax + 0x20], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x24], edi
movsd xmm0, qword [rsi]
mov rax, qword [rbx + 0x50]
movsd qword [rax + 0x28], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x30], xmm5
movss dword [rax + 0x34], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x38], edi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x3c], xmm3
movss dword [rax + 0x40], xmm4
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x44], xmm5
movss dword [rax + 0x48], xmm6
mov rax, qword [rbx + 0x50]
movaps xmm6, xmmword [rsp + 0x30]
mov dword [rax + 0x4c], edi
add qword [rbx + 0x50], 0x50
add dword [rbx + 0x4c], 4
add qword [rbx + 0x58], 0xc
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x18004ce5c
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.180066710
sub rsp, rax
mov rax, qword [0x18008b040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180059d6c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18004ceab
mov rax, rbp
jmp 0x18004cfb3
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 + 0xce720]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180059ffc
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0xce720]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18004cfaf
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 0x18004cfaf
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180059ffc
test rax, rax
js 0x18004cfaf
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18004cfaf
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18004cfa1
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18004cfa1
cmp byte [rcx], 0xd
jne 0x18004cf87
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18004cf96
cmp byte [rcx + 1], 0xa
jne 0x18004cf96
inc rcx
jmp 0x18004cf96
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x8b350]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18004cf69
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18004cfb3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180045720
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 0x18005a0a8
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, [0x1800ce720]
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 0x18005a0ff
cmp word [rdx], r13w
jne 0x18005a0ff
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18005a104
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18005a229
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18005a24a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18005a13d
mov rdx, r9
mov word [rbx], cx
jmp 0x18005a164
cmp r9, r8
jae 0x18005a174
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 0x18005a11e
jmp 0x18005a229
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 0x18005a21e
cmp dword [rsp + 0x80], esi
je 0x18005a21e
lea r8, [0x1800ce720]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18005a1f6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18005a1c6
mov word [rbx], r13w
jmp 0x18005a226
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 0x18005a1d3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18005a226
cmp word [rsp + 0x70], r13w
jne 0x18005a203
cmp rbx, r14
je 0x18005a1c0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18005a004
cmp word [rsp + 0x70], r13w
je 0x18005a229
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, [0x1800ce720]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18005a223
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18005a229
Function at 0x18005c6f8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18005c70e
mov al, 1
jmp 0x18005c76e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18005c71f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18005c76c
mov ecx, dword [rcx + 0x18]
nop
call fcn.1800616e8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18005c76c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18005c76c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18005c76c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18005c76e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1800603b0
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 0x1800603e0
xor eax, eax
jmp 0x1800604a3
mov rbp, rbx
cmp word [rax], si
je 0x180060405
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800603ec
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800603e8
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.1800602d0
movsxd r14, eax
test eax, eax
jne 0x180060443
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800603d9
mov rcx, r14
call fcn.18005d094
mov rdi, rax
test rax, rax
jne 0x18006045c
xor ecx, ecx
call fcn.18005ad8c
jmp 0x180060438
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.1800602d0
test eax, eax
jne 0x18006048d
mov rcx, rdi
call fcn.18005ad8c
jmp 0x180060497
xor ecx, ecx
call fcn.18005ad8c
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 0x180064ef8
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.18005a004
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18005a004
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180065048
cmp rax, 0xffffffffffffffff
je 0x180065048
xor edi, edi
test rbp, rbp
jle 0x180064ff3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18005ad14
mov rbx, rax
test rax, rax
jne 0x180064f80
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180064fe9
mov edx, 0x8000
mov ecx, r14d
call fcn.180064d7c
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.18005bef4
cmp eax, 0xffffffff
je 0x180064fc9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180064f90
mov edx, r15d
mov ecx, r14d
call fcn.180064d7c
jmp 0x180064fe9
cmp byte [rsi + 0x38], dil
je 0x180064fe0
cmp dword [rsi + 0x34], 5
jne 0x180064fe0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180064fe9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18005ad8c
jmp 0x18006505c
jns 0x18006505c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18005a004
cmp rax, 0xffffffffffffffff
jne 0x180065014
cmp byte [rsi + 0x30], dil
je 0x18006505c
mov edi, dword [rsi + 0x2c]
jmp 0x18006505c
mov ecx, r14d
call fcn.1800616e8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18006505c
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 0x18006505c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180065055
mov eax, dword [rsi + 0x2c]
jmp 0x18006505a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18005a004
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 0x180066640
Capabilities:
Parse pe header

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

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
and qword [rax - 0x58], 0
lea r9, [rbp + 0x17]
and qword [rbp + 0x2f], 0
lea r8, [rbp + 0x27]
mov dword [rax - 0x60], 0x100
xorps xmm0, xmm0
and qword [rax - 0x68], 0
mov edi, 0x110000
and dword [rax - 0x70], 0
mov edx, edi
and dword [rax - 0x78], 0
and qword [rax - 0x80], 0
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 4
mov qword [rbp + 0x37], rcx
lea rcx, [rbp + 0x67]
mov dword [rsp + 0x28], 0x80
and qword [rsp + 0x20], 0
mov dword [rbp + 0x27], 0x30
mov dword [rbp + 0x3f], 0x240
movdqu xmmword [rbp + 0x47], xmm0
call qword [sym.imp.ntoskrnl.exe_IoCreateFileEx]
mov ebx, eax
test eax, eax
jns 0x1400013ce
mov edx, eax
lea rcx, [0x140001ff0]
call sub.ntoskrnl.exe_DbgPrint
mov eax, ebx
jmp 0x140001468
mov r8, qword [sym.imp.ntoskrnl.exe_IoFileObjectType]
lea rax, [rbp + 0x6f]
and qword [rsp + 0x30], 0
xor r9d, r9d
mov rcx, qword [rbp + 0x67]
mov edx, edi
mov qword [rsp + 0x28], rax
mov r8, qword [r8]
mov dword [rsp + 0x20], 0x656c6946
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandleWithTag]
xor edx, edx
mov edi, eax
test eax, eax
jns 0x140001419
mov rcx, qword [rbp + 0x67]
call qword [sym.imp.ntoskrnl.exe_ObCloseHandle]
lea rcx, [0x140002010]
jmp 0x14000145f
mov rax, qword [rbp + 0x6f]
mov rcx, qword [rax + 0x28]
and qword [rcx + 0x10], 0
call qword [sym.imp.ntoskrnl.exe_MmFlushImageSection]
mov rcx, qword [rbp + 0x6f]
mov bl, al
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rbp + 0x67]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ObCloseHandle]
test bl, bl
je 0x140001466
lea rcx, [rbp + 0x27]
call qword [sym.imp.ntoskrnl.exe_ZwDeleteFile]
mov edi, eax
test eax, eax
jns 0x140001466
lea rcx, [0x140002040]
mov edx, edi
call sub.ntoskrnl.exe_DbgPrint
mov eax, edi
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1400014bc
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rdx
lea r9, [rax + 0x18]
xor edx, edx
xor r8d, r8d
mov rsi, rcx
call qword [sym.imp.ntoskrnl.exe_ObQueryNameString]
mov ebx, eax
mov eax, 0x80000000
lea r8d, [rbx + rax]
test eax, r8d
jne 0x140001514
cmp ebx, 0xc0000004
je 0x140001514
mov r8d, ebx
lea rcx, [0x140001fc0]
mov rdx, rsi
call sub.ntoskrnl.exe_DbgPrint
mov eax, ebx
jmp 0x140001578
mov edx, dword [rsp + 0x40]
xor ecx, ecx
mov r8d, 0x33304246
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
jne 0x140001535
mov eax, 0xc000009a
jmp 0x140001578
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ObQueryNameString]
mov edi, eax
test eax, eax
jns 0x140001575
mov r8d, eax
lea rcx, [0x140001fc0]
mov rdx, rsi
call sub.ntoskrnl.exe_DbgPrint
mov edx, 0x33304246
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, edi
jmp 0x140001578
mov qword [r14], rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14000189c
Capabilities:
Create device object
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rbx, rcx
lea rcx, [0x140002200]
call sub.ntoskrnl.exe_DbgPrint
lea rax, [fcn.140001a6c]
mov rcx, rbx
mov qword [rbx + 0x68], rax
lea rdx, [rsp + 0x70]
lea rax, [0x1400019e4]
mov qword [rbx + 0xe0], rax
lea rax, [0x140001868]
mov qword [rbx + 0x70], rax
lea rax, [0x140001868]
mov qword [rbx + 0x80], rax
call fcn.1400014ac
mov rcx, qword [rsp + 0x70]
call fcn.140001320
test eax, eax
js 0x1400019d7
lea rdx, [0x140002250]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [0x140004fa0]
mov r9d, 0x22
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x40]
mov byte [rsp + 0x28], 0
xor edx, edx
and dword [rsp + 0x20], 0
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov edi, eax
test eax, eax
jns 0x140001964
cmp eax, 0xc0000035
jne 0x1400019ac
lea rdx, [0x140002250]
lea rcx, [0x140002270]
call sub.ntoskrnl.exe_DbgPrint
lea rdx, [0x1400022d0]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov rcx, rbx
call fcn.140001590
mov edi, eax
test eax, eax
jns 0x1400019be
lea rcx, [0x140002300]
mov edx, edi
call sub.ntoskrnl.exe_DbgPrint
mov rcx, rbx
call fcn.140001a6c
jmp 0x1400019ba
mov edx, edi
lea rcx, [0x1400022b0]
call sub.ntoskrnl.exe_DbgPrint
mov eax, edi
jmp 0x1400019d7
mov rcx, rbx
call fcn.140001ac4
mov edi, eax
test eax, eax
jns 0x1400019d5
lea rcx, [0x140002320]
jmp 0x14000199b
xor eax, eax
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x140001a6c
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
call fcn.140001dd8
call fcn.140001dd8
lea rdx, [0x1400022d0]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
cmp qword [rbx + 8], 0
je 0x140001ab0
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_IoDeleteSymbolicLink]
mov rcx, qword [0x140004fa0]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
lea rcx, [0x140002210]
call sub.ntoskrnl.exe_DbgPrint
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x140001ac4
Capabilities:
Create device object
Print debug messages

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [rcx + 0xe8]
lea rdx, [0x140002360]
mov qword [0x1400040e8], rax
mov rsi, rcx
lea rax, [0x140001d1c]
xor edi, edi
mov qword [rcx + 0xe8], rax
lea rcx, [rbp - 0x20]
mov qword [rbp + 0x28], rdi
mov qword [rbp + 0x20], rdi
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [0x1400040d0]
xor r9d, r9d
mov qword [rsp + 0x38], rax
lea edx, [rdi + 0x40]
mov rax, qword [sym.imp.ntoskrnl.exe_IoDriverObjectType]
xor r8d, r8d
mov qword [rsp + 0x30], rdi
mov byte [rsp + 0x28], dil
mov rcx, qword [rax]
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x20]
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByName]
mov ebx, eax
test eax, eax
jns 0x140001b60
mov edx, eax
lea rcx, [0x140002390]
call sub.ntoskrnl.exe_DbgPrint
mov eax, ebx
jmp 0x140001cbd
mov rcx, qword [0x1400040d0]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
lea rdx, [0x1400023d0]
lea rcx, [rbp - 0x10]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rbp + 0x20]
mov r9d, 0x22
mov qword [rsp + 0x30], rax
lea r8, [rbp - 0x10]
mov byte [rsp + 0x28], dil
xor edx, edx
mov rcx, rsi
mov dword [rsp + 0x20], 0x100
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov rax, qword [rbp + 0x20]
or dword [rax + 0x30], 4
mov rax, qword [rbp + 0x20]
btr dword [rax + 0x30], 7
mov rax, qword [0x1400040d0]
mov rbx, qword [rax + 8]
test rbx, rbx
je 0x140001c10
lea rdx, [rbp + 0x30]
mov rcx, rbx
call fcn.1400014bc
mov r8, qword [rbp + 0x30]
lea rcx, [0x140002160]
mov rdx, rbx
call sub.ntoskrnl.exe_DbgPrint
lea rdx, [rbp + 0x28]
mov rcx, rbx
call fcn.140001480
mov rdx, qword [rbp + 0x28]
test rdx, rdx
jne 0x140001c14
mov rbx, qword [rbx + 0x10]
inc word [0x1400040e0]
test rbx, rbx
jne 0x140001bca
jmp 0x140001c14
mov rdx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov qword [0x1400040d8], rbx
mov rcx, qword [rax + 0x138]
mov rdi, qword [rcx + 0x28]
mov qword [rcx + 0x28], rdx
mov rax, qword [0x1400040d8]
mov rdx, qword [rbp + 0x20]
mov rcx, qword [rax + 8]
mov rax, qword [rcx + 0x30]
call qword [rax + 8]
mov rcx, qword [rbp + 0x20]
lea rdx, [rbp + 0x30]
call fcn.1400014bc
mov r8, qword [rbp + 0x30]
lea rcx, [0x140002400]
mov rdx, qword [rbp + 0x20]
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.ntoskrnl.exe_IoGetAttachedDevice]
mov rdx, rax
lea rcx, [0x1400021e0]
mov rbx, rax
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rcx + 0x138]
mov qword [rdx + 0x28], rdi
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.ntoskrnl.exe_IoDetachDevice]
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov rax, qword [0x1400040e8]
mov qword [rsi + 0xe8], rax
xor eax, eax
mov rbx, qword [rsp + 0x98]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x411b40
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x411ccb
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.0042d7e0
xorps xmm15, xmm15
mov r14, qword [0x0059d240]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x411ba5
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x411bb4
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x411bd3
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x411be3
cmp rbx, 0x1000
jae 0x411bab
jmp 0x411c4d
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x411bf5
xor edx, edx
jmp 0x411c44
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.0042d7e0
xorps xmm15, xmm15
mov r14, qword [0x0059d240]
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 0x411bd9
jmp 0x411bc8
call fcn.0045aa00
xorps xmm15, xmm15
mov r14, qword [0x0059d240]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.00431b40
lea rax, [0x004802ad]
mov ebx, 0x18
nop dword [rax]
call fcn.004323c0
mov rax, qword [rsp + 0x38]
call fcn.00432100
lea rax, [0x00480573]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.004323c0
mov rax, qword [rsp + 0x30]
call fcn.00432100
call fcn.00431d80
call fcn.00431ba0
lea rax, [0x00481d8b]
mov ebx, 0x21
call fcn.004301a0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00457360
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00411b40