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

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
sub rsp, 0x4e0
mov qword [rsp + 0x98], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x18001f090]
xor rax, rsp
mov qword [rsp + 0x4d0], rax
mov r12, rcx
call fcn.180006050
xor r13d, r13d
mov word [rsp + 0xb0], r13w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0xb2]
call fcn.18000b450
mov r8d, 0x104
lea rdx, [rsp + 0xb0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x1800055c6
mov eax, 0x80004005
jmp 0x1800059d8
mov edx, 0x5c
lea rcx, [rsp + 0xb0]
call fcn.18000ab94
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 0x180005621
mov eax, 0x80004005
jmp 0x1800059d8
mov eax, dword [rsp + 0x78]
cmp dword [rsp + 0x7c], eax
je 0x180005635
mov eax, 0x80004005
jmp 0x1800059d8
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 0x18000565f
mov eax, 0x80004005
jmp 0x1800059d8
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 0x180005856
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 0x1800056dd
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 0x1800059d8
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 0x18000571e
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 0x1800059d8
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 0x180005804
mov eax, dword [rsp + 0x78]
cmp dword [rsp + 0x80], eax
jne 0x180005804
mov byte [rsp + 0x70], 0
mov rax, qword [r12]
lea rdx, [rsp + 0x70]
mov rcx, r12
call qword [rax + 0x18]
test eax, eax
je 0x1800057a4
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 0x1800059d8
cmp byte [rsp + 0x70], 0
je 0x1800057cf
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 0x1800059d8
lea rdx, str.KuaiZipDrive
mov rcx, r12
call fcn.180005bf0
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 0x1800059d8
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 0x18000584d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
mov eax, ebp
jmp 0x1800059d8
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 0x1800058c2
test rdi, rdi
je 0x1800058aa
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
test rbx, rbx
je 0x1800058b8
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 0x80004005
jmp 0x1800059d8
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x180005901
test rdi, rdi
je 0x1800058e9
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
test rbx, rbx
je 0x1800058f7
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 0x80004005
jmp 0x1800059d8
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 0x180005996
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
test rdi, rdi
je 0x180005981
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
test rbx, rbx
je 0x18000598f
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 0x80004005
jmp 0x1800059d8
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.180005bf0
mov esi, eax
test rdi, rdi
je 0x1800059c8
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
test rbx, rbx
je 0x1800059d6
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
mov rcx, qword [rsp + 0x4d0]
xor rcx, rsp
call fcn.18000a310
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