Function at 0x71b17c
Capabilities:
Copy file
Create service
Delete file
Delete service
Get common file path
Persist via windows service
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc68
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x398], ebx
mov dword [ebp - 0x394], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov word [ebp - 2], ax
xor eax, eax
push ebp
push 0x71b4d4
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, 0x71b4e8
lea edi, [ebp - 0x271]
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
xor ebx, ebx
cmp dword [0x74b748], 0xffffffff
jne 0x71b437
call sub.kernel32.dll_GetVersion_1
mov esi, eax
cmp esi, 0x80000000
jae 0x71b1e5
mov edi, 0x71b5e8
jmp 0x71b1ea
mov edi, 0x71b5f8
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push edi
call sub.kernel32.dll_CreateFileA_1
mov dword [0x74b748], eax
cmp dword [0x74b748], 0xffffffff
jne 0x71b437
cmp esi, 0x80000000
jb 0x71b271
mov edi, 0x71b608
push 0
push 0x4000000
push 1
push 0
push 0
push 0
push edi
call sub.kernel32.dll_CreateFileA_1
mov dword [0x74b748], eax
cmp dword [0x74b748], 0xffffffff
jne 0x71b437
call sub.kernel32.dll_GetLastError_1
mov word [ebp - 0x12], ax
cmp word [ebp - 0x12], 0x32
jne 0x71b25e
push edi
call sub.kernel32.dll_DeleteFileA
mov bx, 2
mov dword [0x74b748], 0xffffffff
jmp 0x71b4b6
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x71b291
mov bx, 0xffff
jmp 0x71b4b6
push pe_nt_image_headers32
lea eax, [ebp - 0x171]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov edx, 0x71b61c
lea eax, [ebp - 0x171]
call fcn.0040bf3c
lea eax, [ebp - 0x394]
lea edx, [ebp - 0x171]
mov ecx, pe_nt_image_headers32
call fcn.004053d4
mov eax, dword [ebp - 0x394]
call fcn.0040b470
test al, al
je 0x71b313
push 0xf01ff
lea eax, [ebp - 0x271]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_OpenServiceA
mov esi, eax
test esi, esi
je 0x71b380
lea eax, [ebp - 0x390]
push eax
push 1
push esi
call sub.advapi32.dll_ControlService
push esi
call sub.advapi32.dll_DeleteService
push esi
call sub.advapi32.dll_CloseServiceHandle
jmp 0x71b380
lea eax, [ebp - 0x371]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetCurrentDirectoryA_1
mov edx, 0x71b634
lea eax, [ebp - 0x371]
call fcn.0040bf3c
lea eax, [ebp - 0x398]
lea edx, [ebp - 0x371]
mov ecx, pe_nt_image_headers32
call fcn.004053d4
mov eax, dword [ebp - 0x398]
call fcn.0040b470
test al, al
jne 0x71b36b
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov bx, 2
jmp 0x71b4b6
push 0
lea eax, [ebp - 0x171]
push eax
lea eax, [ebp - 0x371]
push eax
call sub.kernel32.dll_CopyFileA
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x171]
push eax
push 1
push 2
push 1
push 0xf01ff
lea eax, [ebp - 0x271]
push eax
lea eax, [ebp - 0x271]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_CreateServiceA
push 0xf01ff
lea eax, [ebp - 0x271]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_OpenServiceA
mov esi, eax
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 0
push esi
call sub.advapi32.dll_StartServiceA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x71b3e9
mov bx, 0xffff
push esi
call sub.advapi32.dll_CloseServiceHandle
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_CloseServiceHandle
push 0x3e8
call sub.kernel32.dll_Sleep
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push 0x71b644
call sub.kernel32.dll_CreateFileA_1
mov dword [0x74b748], eax
cmp dword [0x74b748], 0xffffffff
jne 0x71b430
mov bx, 0xffff
cmp word [ebp - 0x12], 0
jne 0x71b4b6
movzx eax, word [ebp - 2]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
lea edx, [ebp - 0x71]
lea eax, [ebp - 0x48]
call fcn.0071af40
mov eax, 0xa410e400
mov word [ebp - 0x12], 0
push 0
lea edx, [ebp - 0x10]
push edx
push 2
lea edx, [ebp - 0x12]
push edx
push 0x28
lea edx, [ebp - 0x71]
push edx
push eax
mov eax, dword [0x74b748]
push eax
call sub.kernel32.dll_DeviceIoControl
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x71b4b2
mov bx, 0xffff
jmp 0x71b4b6
mov bx, word [ebp - 0x12]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x71b4db
lea eax, [ebp - 0x398]
mov edx, 2
call fcn.00405178
ret