Function at 0x140055580
Capabilities:
Delete file
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400555af
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp - 0x60]
call fcn.1400544e0
mov rdi, rax
lea rcx, [0x14017d338]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
test rax, rax
jne 0x1400555d7
mov bl, 1
jmp 0x1400556d9
mov r8, rdi
lea rdx, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rsp + 0x50]
call fcn.140059d00
nop
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rdx, qword [rsp + 0x50]
lea rcx, [rbp - 0x70]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov r8, rdi
lea rdx, str.SYSTEMCurrentControlSetServices_
lea rcx, [rsp + 0x30]
call fcn.140059d00
nop
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdx, qword [rsp + 0x30]
lea r8, [rbp + 0xe0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x140055663
cmp eax, 2
lea rcx, [rsp + 0x30]
je 0x1400556c7
call fcn.140028d40
nop
lea rcx, [rsp + 0x50]
call fcn.140028d40
mov bl, 1
jmp 0x1400556d9
mov rcx, qword [rbp + 0xe0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.NtUnloadDriver
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rbp - 0x70]
call rax
lea rdx, [rsp + 0x30]
mov rcx, 0xffffffff80000002
test eax, eax
je 0x1400556b0
cmp qword [rsp + 0x48], 8
cmovae rdx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
nop
lea rcx, [rsp + 0x30]
jmp 0x14005564f
cmp qword [rsp + 0x48], 8
cmovae rdx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
nop
test eax, eax
jmp 0x140055648
call fcn.140028d40
nop
lea rcx, [rsp + 0x50]
call fcn.140028d40
xor bl, bl
lea rcx, [rbp - 0x60]
call fcn.140028d40
test bl, bl
je 0x1400556ed
xor al, al
jmp 0x14005585c
lea rcx, [rsp + 0x70]
call fcn.140054670
nop
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rdx, qword [rsp + 0x70]
lea rcx, [rbp - 0x40]
call fcn.140057a30
nop
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movsxd rbx, eax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movsxd rcx, eax
imul rcx, rbx
movabs rax, 0x431bde82d7b634db
imul rcx
sar rdx, 0x13
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rax, rdx, 0x1e8480
sub rcx, rax
add ecx, 0x8af0
movsxd rsi, ecx
mov rcx, rsi
call fcn.14015865c
mov rdi, rax
xor ebx, ebx
test rsi, rsi
je 0x14005579b
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r9d, eax
mov eax, 0x80808081
imul r9d
add edx, r9d
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul ecx, edx, 0xff
sub r9d, ecx
mov byte [rbx + rdi], r9b
inc rbx
cmp rbx, rsi
jb 0x140055768
mov r8, rsi
mov rdx, rdi
lea rcx, [rbp - 0x40]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const____ptr64__long_long___int64_____ptr64]
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator__void_const___ptr64]
lea rcx, [rbp - 0x38]
call fcn.140028c80
test rax, rax
jne 0x1400557e5
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x40]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov rcx, rdi
call fcn.1401582b8
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
nop
test eax, eax
sete bl
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x40], rax
mov rcx, qword [rbp - 0x40]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0xa8]
mov dword [rbp + rdx - 0x44], r8d
lea rcx, [rbp - 0x38]
call fcn.140027fa0
lea rcx, [rbp - 0x30]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x68]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x70]
call fcn.140028d40
movzx eax, bl
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret