Function at 0x140004900
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x100
xor r13d, r13d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0xc0000000
mov r8d, 3
lea rcx, str..Silence
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x140017bc0], rax
inc rax
test rax, 0xfffffffffffffffe
jne 0x1400050b4
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov r15d, r13d
mov qword [rsp + 0x50], r13
lea rbx, [0x1400127d0]
lea r14, [0x14000cd50]
sub rbx, r14
movabs rdi, 0x7fffffffffffffff
je 0x1400049fc
cmp rbx, rdi
ja 0x1400051c0
cmp rbx, 0x1000
jb 0x1400049cb
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x1400051c6
call fcn.140009e98
test rax, rax
je 0x14000519a
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x1400049d6
mov rcx, rbx
call fcn.140009e98
mov rsi, rax
mov qword [rsp + 0x40], rsi
lea r15, [rsi + rbx]
mov qword [rsp + 0x50], r15
mov r8, rbx
mov rdx, r14
mov rcx, rsi
call sub.VCRUNTIME140.dll_memmove
mov rbx, r15
mov qword [rsp + 0x48], rbx
jmp 0x140004a06
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
sub rbx, rsi
jne 0x140004a2a
lea rcx, str.Invalid_drv_buffer_size_n
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_istream_char__struct_std::char_traits_char__::get_void____ptr64]
jmp 0x140005171
cmp rbx, rdi
ja 0x1400051cc
cmp rbx, 0x1000
jb 0x140004a65
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x1400051ba
call fcn.140009e98
test rax, rax
je 0x14000515e
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140004a70
mov rcx, rbx
call fcn.140009e98
mov rdi, rax
lea r12, [rdi + rbx]
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov qword [rbp - 0x69], rdi
mov qword [rbp - 0x61], r12
mov qword [rbp - 0x59], r12
mov r14, r13
mov qword [rbp - 0x51], r13
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x49], xmm0
mov qword [rbp - 0x39], rdi
movsxd r13, dword [rdi + 0x3c]
add r13, rdi
mov qword [rbp - 0x31], r13
movzx eax, word [r13 + 0x14]
add rax, 0x18
add rax, r13
mov qword [rbp - 0x29], rax
movdqu xmmword [rsp + 0x58], xmm0
mov qword [rbp - 0x71], 0
mov ecx, 0x36a7
call fcn.140009e98
test rax, rax
je 0x1400051b3
lea rcx, [rax + 0x27]
and rcx, 0xffffffffffffffe0
mov qword [rcx - 8], rax
mov qword [rsp + 0x58], rcx
lea rbx, [rcx + 0x3680]
mov qword [rbp - 0x71], rbx
mov r8d, 0x3680
lea rdx, [0x14000f150]
call sub.VCRUNTIME140.dll_memmove
mov qword [rbp - 0x79], rbx
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x19]
call fcn.140003c50
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140004b5a
mov rdx, qword [rbp - 0x71]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004b54
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400051b3
call fcn.140009edc
nop
lea rdx, [rbp - 0x19]
cmp qword [rbp - 1], 0xf
cmova rdx, qword [rbp - 0x19]
mov r8, qword [rbp - 9]
call fcn.1400066e0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, str..AsUpdateio
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
mov qword [0x140017c20], rax
mov rdx, qword [rbp - 1]
cmp rdx, 0xf
jbe 0x140004be7
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004be2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400051b3
call fcn.140009edc
test rbx, rbx
jne 0x140004c0b
lea rcx, str.Unable_to_load_driver...._n
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_istream_char__struct_std::char_traits_char__::get_void____ptr64]
jmp 0x140005100
lea rcx, [rbp + 0x67]
call fcn.140008a90
lea rax, vtable.std::_Func_impl_no_alloc_class__bool___cdecl_Initialize_void_::_5::_lambda_1___unsigned_long_long_unsigned___int64___char_const____ptr64__char_const____ptr64_.0
mov qword [rbp - 0x19], rax
lea rax, [rbp - 0x19]
mov qword [rbp + 0x1f], rax
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x69]
call fcn.140001650
mov edx, dword [r13 + 0x50]
xor ebx, ebx
test rdx, rdx
je 0x140004c54
lea rcx, [rbp - 0x51]
call fcn.140001820
mov r13, qword [rbp - 0x31]
mov r14, qword [rbp - 0x51]
mov rdi, qword [rbp - 0x69]
mov eax, dword [r13 + 0x54]
test eax, eax
je 0x140004c6a
mov r8d, eax
mov rdx, rdi
mov rcx, r14
call sub.VCRUNTIME140.dll_memmove
mov rsi, rbx
cmp bx, word [r13 + 6]
jae 0x140004caa
mov rbx, qword [rbp - 0x29]
add rbx, 0x10
nop dword [rax]
mov ecx, dword [rbx - 4]
add rcx, r14
mov r8d, dword [rbx]
mov edx, dword [rbx + 4]
add rdx, rdi
test r8d, r8d
je 0x140004c99
call sub.VCRUNTIME140.dll_memmove
inc rsi
add rbx, 0x28
movzx eax, word [r13 + 6]
cmp rsi, rax
jb 0x140004c80
mov esi, dword [r13 + 0x50]
mov ebx, 4
mov rax, qword gs:[0x58]
add rbx, qword [rax]
mov eax, dword [rbx]
cmp dword [0x140017cb8], eax
jle 0x140004d00
lea rcx, [0x140017cb8]
call fcn.140009fb8
cmp dword [0x140017cb8], 0xffffffff
jne 0x140004d00
xor r8d, r8d
lea rdx, str.ExAllocatePool
call fcn.1400084b0
mov qword [0x140017c80], rax
lea rcx, [0x140017cb8]
call fcn.140009f4c
mov rdi, qword [0x140017c80]
mov eax, dword [rbx]
cmp dword [0x140017ca0], eax
jle 0x140004d56
lea rcx, [0x140017ca0]
call fcn.140009fb8
cmp dword [0x140017ca0], 0xffffffff
jne 0x140004d56
lea rcx, [0x14000ca50]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtShutdownSystem
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140017c90], rax
lea rcx, [0x140017ca0]
call fcn.140009f4c
mov rcx, qword [0x140017c18]
mov rdx, rdi
call fcn.140004610
mov rax, qword [0x140017c90]
mov rdx, rsi
xor ecx, ecx
call rax
mov r12, rax
mov rcx, qword [0x140017c18]
call fcn.140004800
mov r13, qword [rbp - 0x31]
mov r15, qword [rbp - 0x51]
test byte [r13 + 0x16], 1
jne 0x140004e73
mov rcx, r15
call qword [sym.imp.dbghelp.dll_ImageNtHeader]
mov r14, rax
mov r8d, 5
lea r9, [rbp + 0x6f]
mov dl, 1
mov rcx, rax
call qword [sym.imp.dbghelp.dll_ImageDirectoryEntryToData]
mov rbx, rax
mov rdi, r12
sub rdi, qword [r14 + 0x30]
je 0x140004e73
mov ecx, dword [rbp + 0x6f]
test ecx, ecx
je 0x140004e73
lea rsi, [rax + rcx]
cmp rax, rsi
jae 0x140004e73
xor r13d, r13d
xor r9d, r9d
mov r8d, dword [rbx]
mov rdx, r15
mov rcx, r14
call qword [sym.imp.dbghelp.dll_ImageRvaToVa]
mov r8, rax
mov r10d, dword [rbx + 4]
sub r10d, 8
shr r10d, 1
lea rbx, [rbx + 8]
mov r9d, r13d
je 0x140004e66
lea r11, [0x140000000]
movzx edx, word [rbx]
mov ecx, edx
shr ecx, 0xc
cmp ecx, 0xa
ja case.0x140004e29.5
mov ecx, dword [r11 + rcx*4 + 0x51d4]
add rcx, r11
jmp rcx
and edx, 0xfff
add rdx, r8
mov rax, rdi
shr rax, 0x10
add word [rdx], ax
jmp case.0x140004e29.0
and edx, 0xfff
add rdx, r8
add word [rdx], di
jmp case.0x140004e29.0
and edx, 0xfff
add rdx, r8
add qword [rdx], rdi
inc r9d
add rbx, 2
cmp r9d, r10d
jb 0x140004e11
cmp rbx, rsi
jb 0x140004de1
mov r13, qword [rbp - 0x31]
mov r9d, dword [r13 + 0x50]
mov r8, r15
mov rdx, r12
call fcn.140009130
mov edi, dword [r13 + 0x28]
add rdi, r12
mov esi, dword [r13 + 0x50]
mov rax, qword gs:[0x58]
mov rbx, qword [rax]
mov r14d, 4
mov ecx, dword [r14 + rbx]
cmp dword [0x140017c68], ecx
jle 0x140004ef0
lea rcx, [0x140017c68]
call fcn.140009fb8
cmp dword [0x140017c68], 0xffffffff
jne 0x140004ef0
lea rcx, [0x14000ca50]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtShutdownSystem
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140017c50], rax
lea rcx, [0x140017c68]
call fcn.140009f4c
mov rcx, qword [0x140017c18]
mov rdx, rdi
call fcn.140004610
mov rdx, rsi
mov rcx, r12
call qword [0x140017c50]
mov rcx, qword [0x140017c18]
call fcn.140004800
mov rax, qword [rbp - 0x31]
mov esi, dword [rax + 0x54]
mov ecx, dword [r14 + rbx]
cmp dword [0x140017c88], ecx
jle 0x140004f61
lea rcx, [0x140017c88]
call fcn.140009fb8
cmp dword [0x140017c88], 0xffffffff
jne 0x140004f61
xor r8d, r8d
lea rdx, str.RtlZeroMemory
call fcn.1400084b0
mov qword [0x140017c70], rax
lea rcx, [0x140017c88]
call fcn.140009f4c
mov rdi, qword [0x140017c70]
mov r8d, dword [r14 + rbx]
cmp dword [0x140017d08], r8d
jle 0x140004fba
lea rcx, [0x140017d08]
call fcn.140009fb8
cmp dword [0x140017d08], 0xffffffff
jne 0x140004fba
lea rcx, [0x14000ca50]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtShutdownSystem
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140017c78], rax
lea rcx, [0x140017d08]
call fcn.140009f4c
mov rcx, qword [0x140017c18]
mov rdx, rdi
call fcn.140004610
mov rdx, rsi
mov rcx, r12
call qword [0x140017c78]
mov rcx, qword [0x140017c18]
call fcn.140004800
mov rcx, qword [0x140017c20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1400050dd
call fcn.140004150
test al, al
je 0x1400050dd
mov rcx, qword [rbp - 0x51]
test rcx, rcx
je 0x14000503d
mov rdx, qword [rbp - 0x41]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005038
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000515e
call fcn.140009edc
mov rcx, qword [rbp - 0x69]
test rcx, rcx
je 0x140005078
mov rdx, qword [rbp - 0x59]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005072
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000515e
call fcn.140009edc
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400050b4
mov rdx, qword [rsp + 0x50]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400050af
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000519a
call fcn.140009edc
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400071c0
xor al, al
mov rbx, qword [rsp + 0x150]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.Unable_to_unload_driver..._all_handles_closed__n
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
mov r15, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x40]
mov r14, qword [rbp - 0x51]
mov r12, qword [rbp - 0x59]
mov rdi, qword [rbp - 0x69]
test r14, r14
je 0x140005135
mov rdx, qword [rbp - 0x41]
sub rdx, r14
mov rax, r14
cmp rdx, 0x1000
jb 0x14000512d
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000515e
mov rcx, r14
call fcn.140009edc
test rdi, rdi
je 0x140005171
sub r12, rdi
mov rax, rdi
cmp r12, 0x1000
jb 0x140005165
add r12, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005165
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, r12
mov rcx, rdi
call fcn.140009edc
nop
test rsi, rsi
je 0x1400051ac
sub r15, rsi
mov rax, rsi
cmp r15, 0x1000
jb 0x1400051a1
add r15, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400051a1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, r15
mov rcx, rsi
call fcn.140009edc
mov al, 1
jmp 0x1400050c2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1400015b0
nop
call fcn.140001970
int3
call fcn.1400015b0
nop
call fcn.140001970
int3