Function at 0x1800055b0
Capabilities:
Copy file
Create service
Get common file path
Persist via windows service

Disassembly:
mov r11, rsp
push rdi
push r12
push r13
sub rsp, 0x4e0
mov qword [rsp + 0x98], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov rax, qword [0x18001f090]
xor rax, rsp
mov qword [rsp + 0x4d0], rax
mov r12, rcx
xor r13d, r13d
mov word [r11 - 0x448], r13w
xor edx, edx
mov r8d, 0x206
lea rcx, [r11 - 0x446]
call fcn.18000b230
mov r8d, 0x104
lea rdx, [rsp + 0xb0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x18000562f
mov eax, 0x80004005
jmp 0x180005a41
mov edx, 0x5c
lea rcx, [rsp + 0xb0]
call fcn.18000a974
mov word [rax], r13w
lea rdx, str.KuaiZipDrive.sys
lea rcx, [rsp + 0xb0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov dword [rsp + 0x7c], r13d
mov dword [rsp + 0x78], r13d
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x7c]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.imagehlp.dll_MapFileAndCheckSumW]
test eax, eax
je 0x18000568a
mov eax, 0x80004005
jmp 0x180005a41
mov eax, dword [rsp + 0x78]
cmp dword [rsp + 0x7c], eax
je 0x18000569e
mov eax, 0x80004005
jmp 0x180005a41
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
mov qword [rsp + 0x90], rax
test rax, rax
jne 0x1800056c8
mov eax, 0x80004005
jmp 0x180005a41
mov r8d, 0xf01ff
lea rdx, str.KuaiZipDrive
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
mov qword [rsp + 0x88], rax
test rax, rax
je 0x1800058bf
mov dword [rsp + 0x74], r13d
lea r9, [rsp + 0x74]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
mov edx, dword [rsp + 0x74]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
mov qword [rsp + 0xa0], rax
test rax, rax
jne 0x180005746
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 0x80004005
jmp 0x180005a41
lea r9, [rsp + 0x74]
mov r8d, dword [rsp + 0x74]
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x180005787
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 0x80004005
jmp 0x180005a41
mov dword [rsp + 0x84], r13d
mov dword [rsp + 0x80], r13d
mov rcx, qword [rsi + 0x10]
add rcx, 8
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x84]
call qword [sym.imp.imagehlp.dll_MapFileAndCheckSumW]
test eax, eax
jne 0x18000586d
mov eax, dword [rsp + 0x78]
cmp dword [rsp + 0x80], eax
jne 0x18000586d
mov byte [rsp + 0x70], 0
mov rax, qword [r12]
lea rdx, [rsp + 0x70]
mov rcx, r12
call qword [rax + 0x18]
test eax, eax
je 0x18000580d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 0x80004005
jmp 0x180005a41
cmp byte [rsp + 0x70], 0
je 0x180005838
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x180005a41
lea rdx, str.KuaiZipDrive
mov rcx, r12
call fcn.180005bc0
mov ebp, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebp
jmp 0x180005a41
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, r13
mov qword [rsp + 0x88], r13
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, r13
mov qword [rsp + 0x90], rbx
mov rax, qword [r12]
mov rcx, r12
call qword [rax + 0x28]
mov ebp, eax
test eax, eax
je 0x1800058b6
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
mov eax, ebp
jmp 0x180005a41
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, 0x104
lea rcx, [rsp + 0x2c0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rdx, str.driversKuaiZipDrive.sys
lea rcx, [rsp + 0x2c0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
xor r8d, r8d
lea rdx, [rsp + 0x2c0]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x18000592b
test rdi, rdi
je 0x180005913
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
test rbx, rbx
je 0x180005921
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 0x80004005
jmp 0x180005a41
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x18000596a
test rdi, rdi
je 0x180005952
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
test rbx, rbx
je 0x180005960
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 0x80004005
jmp 0x180005a41
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x58], r13
lea rax, str.RPCSS
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
lea rax, [rsp + 0x2c0]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 1
mov r9d, 0xf01ff
lea r8, str.KuaiZipDrive
lea rdx, str.KuaiZipDrive
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
test rax, rax
jne 0x1800059ff
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
test rdi, rdi
je 0x1800059ea
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
test rbx, rbx
je 0x1800059f8
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 0x80004005
jmp 0x180005a41
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rdx, str.KuaiZipDrive
mov rcx, r12
call fcn.180005bc0
mov esi, eax
test rdi, rdi
je 0x180005a31
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
test rbx, rbx
je 0x180005a3f
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
mov rcx, qword [rsp + 0x4d0]
xor rcx, rsp
call fcn.18000a150
lea r11, [rsp + 0x4e0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret