Function at 0x1400057f0
Capabilities:
Enumerate device drivers on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x298
lea rcx, str.SeLoadDriverPrivilege
call fcn.140002890
lea r8, [rsp + 0x30]
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x30], 0
call sub.PSAPI.DLL_EnumDeviceDrivers
mov r13d, dword [rsp + 0x30]
mov rdx, r13
shr r13, 3
je 0x140005a40
shl r13, 3
mov rcx, r13
call fcn.1400c6c40
xor edx, edx
mov r8, r13
mov rcx, rax
mov r12, rax
call sub.msvcrt.dll_memset
mov edx, dword [rsp + 0x30]
lea r8, [rsp + 0x34]
mov rcx, r12
mov dword [rsp + 0x34], 0
call sub.PSAPI.DLL_EnumDeviceDrivers
test eax, eax
je 0x140005990
mov ecx, dword [rsp + 0x34]
lea rax, [rsp + 0x40]
xor ebx, ebx
lea r15, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rdi, [rsp + 0x80]
lea r14, [rsp + 0x70]
test ecx, ecx
jne 0x1400058cd
jmp 0x140005990
add ebx, 1
cmp dword [rsp + 0x34], ebx
jbe 0x140005990
mov eax, ebx
mov r8d, 0x104
mov rdx, rdi
mov rcx, qword [r12 + rax*8]
call sub.PSAPI.DLL_GetDeviceDriverBaseNameA
test eax, eax
je 0x1400058c0
mov rcx, rdi
mov qword [rsp + 0x60], r14
call sub.msvcrt.dll_wcslen
lea rsi, [rax + rax]
mov rbp, rsi
sar rbp, 1
mov qword [rsp + 0x38], rbp
cmp rsi, 0xe
ja 0x140005a50
mov rcx, qword [rsp + 0x60]
cmp rbp, 1
je 0x140005a30
test rbp, rbp
je 0x14000592f
mov r8, rsi
mov rdx, rdi
call sub.msvcrt.dll_memcpy
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x38]
xor edx, edx
mov qword [rsp + 0x68], rax
mov word [rcx + rax*2], dx
mov rdx, qword [rsp + 0x48]
cmp rdx, qword [rsp + 0x50]
je 0x140005a80
lea rax, [rdx + 0x10]
mov qword [rdx], rax
mov rax, qword [rsp + 0x60]
cmp rax, r14
je 0x140005ab0
mov qword [rdx], rax
mov rax, qword [rsp + 0x70]
mov qword [rdx + 0x10], rax
mov rax, qword [rsp + 0x68]
add rdx, 0x20
add ebx, 1
mov qword [rdx - 0x18], rax
mov qword [rsp + 0x48], rdx
cmp dword [rsp + 0x34], ebx
ja 0x1400058cd
nop
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
cmp rbx, rsi
je 0x1400059b1
nop
mov rcx, rbx
call fcn.140002a50
add rbx, 0x20
cmp rsi, rbx
jne 0x1400059a0
test r12, r12
je 0x1400059c1
mov rdx, r13
mov rcx, r12
call fcn.1400c6c00
mov rbx, qword [rsp + 0x48]
mov r12, qword [rsp + 0x40]
cmp rbx, r12
je 0x1400059fb
mov rcx, qword [r12]
lea rax, [r12 + 0x10]
cmp rcx, rax
je 0x1400059ed
mov rax, qword [r12 + 0x10]
lea rdx, [rax + rax + 2]
call fcn.1400c6c00
add r12, 0x20
cmp rbx, r12
jne 0x1400059d0
mov r12, qword [rsp + 0x40]
test r12, r12
je 0x140005a10
mov rdx, qword [rsp + 0x50]
mov rcx, r12
sub rdx, r12
call fcn.1400c6c00
mov eax, 1
add rsp, 0x298
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
movzx eax, word [rsp + 0x80]
mov word [rcx], ax
jmp 0x14000592f
xor r13d, r13d
xor r12d, r12d
jmp 0x140005872
lea rdx, [rsp + 0x38]
xor r8d, r8d
mov rcx, r15
call fcn.1400ac870
mov qword [rsp + 0x60], rax
mov rcx, rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x70], rax
jmp 0x140005910
mov rcx, qword [rsp + 0x28]
mov r8, r15
call fcn.1400a5a40
mov rcx, qword [rsp + 0x60]
cmp rcx, r14
je 0x1400058c0
mov rax, qword [rsp + 0x70]
lea rdx, [rax + rax + 2]
call fcn.1400c6c00
jmp 0x1400058c0
movdqa xmm0, xmmword [rsp + 0x70]
movups xmmword [rdx + 0x10], xmm0
jmp 0x140005970