Function at 0x180037f30
Capabilities:
Delete file
Delete registry key
Install driver
Set registry value
Unload driver

Disassembly:
mov byte [rsp + 0x20], r9b
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x3e0
lea rax, [rsp + 0x140]
mov rdi, rax
xor eax, eax
mov ecx, 0xc8
rep stosb byte [rdi], al
lea rax, [rsp + 0x2e0]
mov rdi, rax
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
lea rax, [rsp + 0x60]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
lea rax, [rsp + 0x88]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
mov qword [rsp + 0x50], 0
mov byte [rsp + 0x38], 1
mov byte [rsp + 0x39], 0
mov byte [rsp + 0x3a], 0
mov byte [rsp + 0x3b], 0
mov dl, 1
mov ecx, 0xa
call fcn.180037ee0
xor r9d, r9d
lea r8, [rsp + 0x2e0]
mov edx, 0x100
mov rcx, qword [rsp + 0x3f8]
call qword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x180037fee
mov eax, 1
jmp 0x18003850b
lea rdx, [rsp + 0x279]
lea rcx, [rsp + 0x40]
call fcn.180038590
mov rcx, rax
call fcn.18003a510
mov r8, qword [rsp + 0x3f0]
mov rdx, rax
lea rcx, [rsp + 0x140]
call fcn.18003a950
mov dword [rsp + 0x30], eax
movzx eax, byte [rsp + 0x408]
test eax, eax
jne 0x180038239
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x140]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
je 0x180038063
mov eax, 2
jmp 0x18003850b
lea rdx, [rsp + 0xf5]
lea rcx, [rsp + 0x41]
call fcn.180038630
mov rcx, rax
call fcn.18003a4d0
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x3c], eax
lea rdx, [rsp + 0x122]
lea rcx, [rsp + 0x42]
call fcn.1800386d0
mov rcx, rax
call fcn.18003a490
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x3c], eax
lea rdx, [rsp + 0xfa]
lea rcx, [rsp + 0x43]
call fcn.180038770
mov rcx, rax
call fcn.18003a450
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x3c], eax
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x44]
call fcn.180038810
mov rcx, rax
call fcn.18003a410
lea r8, [rsp + 0x2e0]
mov rdx, rax
lea rcx, [rsp + 0x140]
call fcn.18003a950
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x5c], eax
lea rdx, [rsp + 0x10e]
lea rcx, [rsp + 0x45]
call fcn.1800388b0
mov rcx, rax
call fcn.18003a3d0
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xc8], rax
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x140]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x3c], eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rsp + 0x29e]
lea rcx, [rsp + 0x46]
call fcn.180038950
mov rcx, rax
call fcn.18003a390
mov r8, qword [rsp + 0x3f0]
mov rdx, rax
lea rcx, [rsp + 0x140]
call fcn.18003a950
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x140]
mov qword [rsp + 0x90], rax
movzx eax, word [rsp + 0x30]
mov word [rsp + 0x88], ax
mov r8b, 1
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlAnsiStringToUnicodeString]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jl 0x180038327
movzx eax, byte [rsp + 0x400]
test eax, eax
je 0x1800382ca
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
mov dword [rsp + 0x58], eax
jmp 0x1800382d9
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x34], eax
movzx eax, byte [rsp + 0x400]
test eax, eax
je 0x18003831c
cmp dword [rsp + 0x34], 0xc000010e
jne 0x18003831c
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jl 0x18003831c
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
mov dword [rsp + 0x34], eax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
movzx eax, byte [rsp + 0x408]
test eax, eax
jne 0x1800384b7
lea rdx, [rsp + 0x210]
lea rcx, [rsp + 0x47]
call fcn.180038a20
mov rcx, rax
call fcn.18003a350
mov qword [rsp + 0xd0], rax
lea rdx, [rsp + 0x118]
lea rcx, [rsp + 0x48]
call fcn.180038980
mov rcx, rax
call fcn.18003a3d0
mov qword [rsp + 0xd8], rax
mov r9, qword [rsp + 0x3f0]
mov r8, qword [rsp + 0xd0]
mov rdx, qword [rsp + 0xd8]
lea rcx, [rsp + 0x140]
call fcn.18003a950
mov dword [rsp + 0x30], eax
lea rdx, [rsp + 0x140]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea rdx, [rsp + 0x233]
lea rcx, [rsp + 0x49]
call fcn.180038a20
mov rcx, rax
call fcn.18003a350
mov qword [rsp + 0xe0], rax
lea rdx, [rsp + 0x12f]
lea rcx, [rsp + 0x4a]
call fcn.180038ac0
mov rcx, rax
call fcn.18003a310
mov qword [rsp + 0xe8], rax
mov r9, qword [rsp + 0x3f0]
mov r8, qword [rsp + 0xe0]
mov rdx, qword [rsp + 0xe8]
lea rcx, [rsp + 0x140]
call fcn.18003a950
mov dword [rsp + 0x30], eax
lea rdx, [rsp + 0x140]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea rdx, [rsp + 0x256]
lea rcx, [rsp + 0x4b]
call fcn.180038a20
mov rcx, rax
call fcn.18003a350
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0x4c]
call fcn.180038af0
mov rcx, rax
call fcn.18003a4d0
mov qword [rsp + 0x80], rax
mov r9, qword [rsp + 0x3f0]
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x140]
call fcn.18003a950
mov dword [rsp + 0x30], eax
lea rdx, [rsp + 0x140]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
movzx eax, byte [rsp + 0x400]
test eax, eax
jne 0x180038507
lea rdx, [rsp + 0x107]
lea rcx, [rsp + 0x4d]
call fcn.180038b20
mov rcx, rax
call fcn.18003a410
mov r8, qword [rsp + 0x3f0]
mov rdx, rax
lea rcx, [rsp + 0x140]
call fcn.18003a950
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x3f8]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [rsp + 0x34]
add rsp, 0x3e0
pop rdi
ret