Function at 0x5886bc
Capabilities:
Create directory
Create process on windows
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
mov ecx, 9
push 0
push 0
dec ecx
jne 0x5886c4
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x588a3a
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x588a08
push dword fs:[edx]
mov dword fs:[edx], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
lea edx, [ebp - 0xc]
mov eax, dword [0x59ba7c]
call fcn.00579cec
lea edx, [ebp - 0x34]
mov eax, 3
call fcn.00576760
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0x18]
mov ecx, 0x588a50
call fcn.0057386c
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, 6
mov edx, 0x65
mov eax, dword [0x59c65c]
call fcn.0057c0d0
test al, al
je 0x588791
mov esi, dword [ebp - 0x24]
add esi, 2
mov eax, esi
call fcn.00576510
test al, al
je 0x58875d
lea edx, [ebp - 0x20]
mov eax, esi
call fcn.005764cc
jmp 0x588767
lea edx, [ebp - 0x20]
mov eax, esi
call fcn.00576530
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0x20]
call fcn.00583578
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x20]
call fcn.00573604
push 0
lea eax, [ebp - 0x20]
mov ecx, 0x588a60
mov edx, 0x588a6c
call fcn.00575584
mov eax, 0x588a70
call fcn.0057bee4
test al, al
jne 0x5889fe
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
mov ecx, 0xa
mov edx, 0x67
mov eax, dword [0x59c65c]
call fcn.0057c0d0
test bl, bl
jne 0x5888ce
mov edx, dword [ebp - 0x20]
mov eax, 0x588a88
call fcn.00573b08
test eax, eax
jne 0x5888ce
lea eax, [ebp - 4]
push eax
call fcn.005855b8
test al, al
je 0x5888ce
mov edx, dword [ebp - 4]
mov eax, 0x588a60
call fcn.00573b08
test eax, eax
jle 0x58887a
mov dl, 0x7c
mov eax, dword [ebp - 4]
call fcn.00576034
mov esi, eax
test esi, esi
jbe 0x5888ce
mov edi, 1
lea eax, [ebp - 8]
push eax
mov cl, 0x7c
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.005760a8
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.005882ec
test al, al
je 0x588874
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 8]
call fcn.00579cec
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
call fcn.0057386c
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00573a20
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
call fcn.00588578
test al, al
je 0x588874
mov bl, 1
inc edi
dec esi
jne 0x588817
jmp 0x5888ce
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00573604
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.005882ec
test al, al
je 0x5888ce
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 8]
call fcn.00579cec
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
call fcn.0057386c
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00573a20
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
call fcn.00588578
mov ebx, eax
test bl, bl
jne 0x5889d9
lea edx, [ebp - 0x44]
mov eax, 5
call fcn.00576760
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x14]
call fcn.00579c60
lea eax, [ebp - 0x48]
call fcn.00587c50
push dword [ebp - 0x48]
push 0x588aac
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.005738e0
push 0
lea eax, [ebp - 0x10]
mov ecx, 0x588aac
mov edx, 0x588ab8
call fcn.00575584
push 0
mov eax, dword [ebp - 0x10]
call fcn.00573a20
push eax
call sub.kernel32.dll_CreateDirectoryA
push dword [ebp - 0x10]
push 0x588aac
push dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.005738e0
push 0x588ac4
push dword [ebp - 0x1c]
push 0x588ad8
lea eax, [ebp - 8]
mov edx, 3
call fcn.005738e0
mov eax, dword [ebp - 0x1c]
call fcn.00573a20
mov esi, eax
push esi
mov eax, dword [0x59ba7c]
call fcn.00573a20
mov cl, 1
pop edx
call fcn.0057a7b8
test al, al
je 0x5889d9
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, esi
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
call fcn.00588578
mov ebx, eax
test bl, bl
je 0x5889d9
call fcn.0057affc
test al, al
je 0x5889b4
mov esi, 0x80000002
jmp 0x5889b9
mov esi, 0x80000001
lea eax, [ebp - 0x14]
mov edx, 0x588ae8
call fcn.00573828
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 0x588af8
push esi
call fcn.0057a418
test bl, bl
je 0x5889fe
mov edx, dword [ebp - 0x20]
mov eax, 0x588b30
call fcn.00573b08
test eax, eax
jne 0x5889fe
push 0
mov eax, dword [ebp - 8]
call fcn.00573a20
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x588a12
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x588a41
lea eax, [ebp - 0x48]
mov edx, 6
call fcn.00573590
lea eax, [ebp - 0x20]
mov edx, 8
call fcn.00573590
ret