Function at 0x413570
Capabilities:
Get common file path
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
mov byte [ebp - 0x38], 0
lea eax, [ebp - 0x1c]
push eax
push 0x5a2424
push 0
push 0xf003f
push 0
push 0
push 0
push 0x53b268
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [0x5a2000], eax
cmp dword [0x5a2000], 0
je 0x4135cc
push 0x10007
call fcn.0040435c
add esp, 4
mov eax, 0xffffffff
jmp 0x413921
push 1
lea eax, [ebp - 0x38]
push eax
push 3
push 0
push 0x53b298
mov eax, dword [0x5a2424]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [0x5a2000], eax
cmp dword [0x5a2000], 0
je 0x413610
push 0x10003
call fcn.0040435c
add esp, 4
mov eax, 0xffffffff
jmp 0x413921
push 0x53b2a0
lea eax, [ebp - 0x18]
push eax
call fcn.0041bfa0
add esp, 8
lea eax, [ebp - 0x18]
push eax
call fcn.0041bdf0
add esp, 4
push eax
lea eax, [ebp - 0x18]
push eax
push 1
push 0
push 0x53b2ac
mov eax, dword [0x5a2424]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [0x5a2000], eax
cmp dword [0x5a2000], 0
je 0x413670
push 0x10003
call fcn.0040435c
add esp, 4
mov eax, 0xffffffff
jmp 0x413921
push 0x53b2b8
lea eax, [ebp - 0x18]
push eax
call fcn.0041bfa0
add esp, 8
lea eax, [ebp - 0x18]
push eax
call fcn.0041bdf0
add esp, 4
push eax
lea eax, [ebp - 0x18]
push eax
push 1
push 0
push 0x53b2c0
mov eax, dword [0x5a2424]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [0x5a2000], eax
cmp dword [0x5a2000], 0
je 0x4136d0
push 0x10003
call fcn.0040435c
add esp, 4
mov eax, 0xffffffff
jmp 0x413921
push 2
call fcn.004128a8
add esp, 4
cmp eax, 2
jne 0x4136ef
mov dword [ebp - 0x20], 2
jmp 0x4136f6
mov dword [ebp - 0x20], 1
push 4
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push 0x53b2c8
mov eax, dword [0x5a2424]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [0x5a2000], eax
cmp dword [0x5a2000], 0
je 0x41373a
push 0x10003
call fcn.0040435c
add esp, 4
mov eax, 0xffffffff
jmp 0x413921
push 0x53b2d0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x5a2428], eax
cmp dword [0x5a2428], 0
jne 0x41376b
push 1
call fcn.0040435c
add esp, 4
mov eax, 0xffffffff
jmp 0x413921
push 0x53b2e0
mov eax, dword [0x5a2428]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5a2420], eax
cmp dword [0x5a2420], 0
jne 0x4137a2
push 2
call fcn.0040435c
add esp, 4
mov eax, 0xffffffff
jmp 0x413921
push 0x14
lea eax, [ebp - 0x34]
push eax
push 0x53b2f0
push 0
push 0
push 0x409
call dword [0x5a2420]
mov dword [ebp - 4], eax
mov eax, dword [0x5a2428]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
jne 0x4137f4
push 0x2001000
call fcn.004042f8
add esp, 4
push 3
call fcn.0040435c
add esp, 4
mov eax, 0xffffffff
jmp 0x413921
cmp dword [ebp - 4], 0
jne 0x413812
push 6
call fcn.0040435c
add esp, 4
mov eax, 0xffffffff
jmp 0x413921
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0041bfa0
add esp, 8
lea eax, [ebp - 0x18]
push eax
call fcn.0041bdf0
add esp, 4
push eax
lea eax, [ebp - 0x18]
push eax
push 1
push 0
push 0x53b300
mov eax, dword [0x5a2424]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [0x5a2000], eax
cmp dword [0x5a2000], 0
je 0x413871
push 0x10003
call fcn.0040435c
add esp, 4
mov eax, 0xffffffff
jmp 0x413921
push 0x200
push 0x5a2220
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x53b308
push 0x5a2220
call fcn.0041bfb0
add esp, 8
push 0x5a2220
call fcn.0041bdf0
add esp, 4
inc eax
push eax
push 0x5a2220
push 1
push 0
push 0x53b314
mov eax, dword [0x5a2424]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [0x5a2000], eax
cmp dword [0x5a2000], 0
je 0x4138e5
push 0x10003
call fcn.0040435c
add esp, 4
mov eax, 0xffffffff
jmp 0x413921
mov eax, dword [0x5a2424]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x5a2000], eax
cmp dword [0x5a2000], 0
je 0x41391a
push 0x10002
call fcn.0040435c
add esp, 4
mov eax, 0xffffffff
jmp 0x413921
xor eax, eax
jmp 0x413921
pop edi
pop esi
pop ebx
leave
ret