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

Disassembly:
push 0xffffffffffffffff
push 0x10014081
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
mov eax, dword [0x1001a040]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1001a040]
xor eax, esp
push eax
lea eax, [esp + 0x450]
mov dword fs:[0], eax
mov eax, dword [esp + 0x460]
mov dword [esp + 0x24], eax
call fcn.100052b0
push 0x206
xor ebp, ebp
lea edx, [esp + 0x42]
xor ecx, ecx
push ebp
push edx
mov word [esp + 0x48], cx
call fcn.10009900
add esp, 0xc
push 0x104
lea eax, [esp + 0x40]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x10004bc0
lea ecx, [esp + 0x3c]
push 0x5c
push ecx
call fcn.100090a0
add esp, 8
xor edx, edx
mov word [eax], dx
push str.KuaiZipDrive.sys
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x38], ebp
mov dword [esp + 0x28], ebp
call dword [sym.imp.imagehlp.dll_MapFileAndCheckSumW]
test eax, eax
jne 0x10004bc0
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [esp + 0x1c]
jne 0x10004bc0
push 0xf003f
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x458], ebp
cmp edi, ebp
je 0x10004bc0
push 0xf01ff
push str.KuaiZipDrive
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [esp + 0x30], esi
mov byte [esp + 0x458], 1
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp esi, ebp
je 0x10004c92
lea edx, [esp + 0x18]
push edx
push ebp
push ebp
push esi
mov dword [esp + 0x28], ebp
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
mov eax, dword [esp + 0x18]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, eax
mov dword [esp + 0x38], ebp
mov byte [esp + 0x458], 2
test ebp, ebp
je 0x10004bb4
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x18]
push ecx
push edx
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x10004bca
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov eax, 0x80004005
jmp 0x10004d64
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], eax
mov edx, dword [ebp + 0xc]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x38]
push ecx
add edx, 8
push edx
call dword [sym.imp.imagehlp.dll_MapFileAndCheckSumW]
test eax, eax
jne 0x10004c54
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x1c]
jne 0x10004c54
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
lea edx, [esp + 0x17]
push edx
push eax
mov eax, dword [ecx + 0xc]
mov byte [esp + 0x1f], 0
call eax
test eax, eax
jne 0x10004bad
cmp byte [esp + 0x17], al
je 0x10004c33
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
xor eax, eax
jmp 0x10004d64
call fcn.10004f00
push ebp
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov eax, ebx
jmp 0x10004d64
push esi
call ebx
xor esi, esi
push edi
mov dword [esp + 0x34], esi
call ebx
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
xor edi, edi
push eax
mov dword [esp + 0x24], edi
call edx
mov dword [esp + 0x20], eax
push ebp
test eax, eax
je 0x10004c8a
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x20]
jmp 0x10004d64
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor ebp, ebp
push 0x104
lea eax, [esp + 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.driversKuaiZipDrive.sys
lea ecx, [esp + 0x248]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push ebp
lea edx, [esp + 0x248]
push edx
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x10004ce5
cmp esi, ebp
je 0x10004cd7
push esi
call ebx
cmp edi, ebp
je 0x10004cde
push edi
call ebx
mov eax, 0x80004005
jmp 0x10004d64
push 0xf003f
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test ebp, ebp
jne 0x10004d0d
test esi, esi
je 0x10004cff
push esi
call ebx
test edi, edi
je 0x10004cde
push edi
call ebx
mov eax, 0x80004005
jmp 0x10004d64
push 0
push 0
push str.RPCSS
push 0
push 0
lea ecx, [esp + 0x258]
push ecx
push 1
push 2
push 1
push 0xf01ff
push str.KuaiZipDrive
push str.KuaiZipDrive
push ebp
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
jne 0x10004d47
push ebp
call ebx
jmp 0x10004cf8
push eax
call ebx
push ebp
call ebx
call fcn.10004f00
mov ebp, eax
test esi, esi
je 0x10004d5b
push esi
call ebx
test edi, edi
je 0x10004d62
push edi
call ebx
mov eax, ebp
mov ecx, dword [esp + 0x450]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x438]
xor ecx, esp
call fcn.100089b0
add esp, 0x448
ret 4