Function at 0x401560
Capabilities:
Create thread
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40bb68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x358
push ebx
push esi
push edi
lea eax, [ebp - 0x1d]
mov dword [ebp - 0x10], esp
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], 0x104
xor edi, edi
xor ebx, ebx
call fcn.00402fb0
push 0x20
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
call fcn.004012e0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov ecx, 0x4123c8
push edx
call fcn.00402fe0
push str.SYSTEMCurrentControlSetServices_
lea ecx, [ebp - 0x30]
call fcn.00402fe0
push 0x4123c8
lea ecx, [ebp - 0x30]
call fcn.00402ff0
push str.Parameters
lea ecx, [ebp - 0x30]
call fcn.00403000
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00403010
lea ecx, [ebp - 0x14]
push ecx
push 1
push edi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401640
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Cannot_open_registry_key
lea ecx, [ebp - 0x80]
call fcn.004033f0
mov ecx, 0x14
mov esi, eax
lea edi, [ebp - 0x210]
lea edx, [ebp - 0x210]
push 0x40cbb0
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.00404ff7
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x364]
push eax
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x1c]
push ecx
push edx
push edi
push str.FireStarter
push eax
call esi
test eax, eax
je 0x401699
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Cannot_read_registry_value_FireStarter
lea ecx, [ebp - 0x80]
call fcn.004033f0
mov ecx, 0x14
mov esi, eax
lea edi, [ebp - 0xd0]
push 0x40cbb0
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0xd0]
push ecx
call fcn.00404ff7
lea edx, [ebp - 0x364]
mov ecx, 0x412380
push edx
call fcn.00402fe0
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x364]
push eax
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x1c]
push ecx
push edx
push edi
push str.WorkingDir
push eax
call esi
test eax, eax
je 0x4016fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Cannot_read_registry_value_WorkingDir
lea ecx, [ebp - 0x80]
call fcn.004033f0
mov ecx, 0x14
mov esi, eax
lea edi, [ebp - 0x260]
push 0x40cbb0
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x260]
push ecx
call fcn.00404ff7
lea edx, [ebp - 0x364]
mov ecx, 0x412390
push edx
call fcn.00402fe0
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
push 0x4123a0
push ecx
push edi
push str.ProcessMonitorEnabled
push edx
call esi
test eax, eax
jne 0x4017a1
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
push 0x4123a4
push ecx
push edi
push str.ProcessMonitorFrequency
push edx
call esi
test eax, eax
je 0x40177c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Cannot_read_registry_value_ProcessMonitorFrequency
lea ecx, [ebp - 0x80]
call fcn.004033f0
mov esi, eax
mov ecx, 0x14
lea edi, [ebp - 0x1c0]
lea eax, [ebp - 0x1c0]
push 0x40cbb0
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00404ff7
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x1c]
push 0x4123a8
push edx
push edi
push str.ProcessAutoRestart
push eax
call esi
test eax, eax
je 0x4017b3
mov dword [0x4123a8], edi
jmp 0x4017b3
mov dword [0x4123a4], edi
mov dword [0x4123a8], edi
mov dword [0x4123a0], edi
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x1c]
push 0x4123ac
push edx
push edi
push str.ProcessAffinityMask
push eax
call esi
test eax, eax
je 0x4017d6
mov dword [0x4123ac], edi
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x1c]
push 0x4123b0
push edx
push edi
push str.ProcessPriority
push eax
call esi
test eax, eax
je 0x4017f9
mov dword [0x4123b0], edi
push 0x412380
call fcn.00401920
add esp, 4
cmp eax, edi
jne 0x40183e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.subprocess_could_not_be_spawned
lea ecx, [ebp - 0x80]
call fcn.004033f0
mov ecx, 0x14
mov esi, eax
lea edi, [ebp - 0x120]
push 0x40cbb0
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x120]
push ecx
call fcn.00404ff7
cmp dword [0x4123a0], edi
je 0x401897
push edi
push edi
push 0x412380
push 0x401b00
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [0x4123b4], eax
jne 0x4018de
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.monitoring_thread_could_not_be_started
lea ecx, [ebp - 0x80]
call fcn.004033f0
mov ecx, 0x14
mov esi, eax
lea edi, [ebp - 0x170]
lea edx, [ebp - 0x170]
push 0x40cbb0
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.00404ff7
push edi
push edi
push 0x32
push 2
mov dword [0x4123b4], edi
call fcn.004011c0
add esp, 0x10
jmp 0x4018de
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.004012e0
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0xffffffff
call fcn.00402fd0
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret