Function at 0x580c87
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x67f429
call fcn.0062921c
sub esp, 0x80
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0xcc]
mov eax, dword [ecx]
call dword [eax + 0x3c]
test al, al
je 0x580ef3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x15c]
test al, 2
jne 0x580ef3
mov ecx, dword [esi + 0xcc]
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [ecx]
push edi
call dword [eax + 0x74]
test eax, eax
jne 0x580ce2
mov ecx, dword [esi + 0xcc]
push 0xffffffffffffffff
mov eax, dword [ecx]
call dword [eax + 0x50]
mov ecx, dword [esi + 0xd8]
xor ebx, ebx
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], ebx
mov byte [ebp - 0x44], bl
imul eax, edi, 0x9c
mov dword [ebp - 4], ebx
add eax, dword [ecx + 4]
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x44]
push ecx
push eax
call fcn.0057f1c5
test al, al
je 0x580ee6
xor eax, eax
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], ebx
mov word [ebp - 0x5c], ax
cmp dword [ebp - 0x30], 0x10
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 1
jae 0x580d39
lea eax, [ebp - 0x44]
push str.btapp:
push eax
call fcn.00478171
mov bl, al
call fcn.00486bbd
push 0
push 0
lea ecx, [ebp - 0x5c]
movzx eax, word [eax + 4]
push ecx
push dword [ebp + 8]
mov dword [ebp + 0xc], eax
push eax
push edi
push esi
call fcn.0058044f
push 0x31
pop eax
push 8
pop esi
mov word [ebp - 0x14], ax
mov eax, dword [ebp - 0x5c]
cmp dword [ebp - 0x48], esi
jae 0x580d7a
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x10], eax
test bl, bl
jne 0x580ed7
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.0043beee
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], esi
jb 0x580da0
mov eax, dword [eax]
xor edi, edi
lea ecx, [ebp - 0x14]
inc edi
push edi
push ecx
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0047dbdb
xor ebx, ebx
mov byte [ebp - 4], 4
push ebx
push edi
lea ecx, [ebp - 0x8c]
call fcn.0042386b
cmp byte [ebp + 8], bl
je 0x580e3e
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.0043bead
cmp dword [eax + 0x14], 0x10
jb 0x580ddf
mov eax, dword [eax]
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
push ebx
push edi
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.0040abbf
cmp esi, 0x20
jg 0x580ecb
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x580e08
lea eax, [ebp - 0x2c]
push eax
push 0x389
call fcn.0057b788
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.004607f4
add esp, 0xc
push eax
push 0x132
mov byte [ebp - 4], 5
call fcn.004871c8
push ebx
push edi
lea ecx, [ebp - 0x74]
call fcn.0042386b
jmp 0x580ecb
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x580e49
lea eax, [ebp - 0x2c]
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x74]
push str._Shttp:__localhost:_d
push eax
call fcn.004607cf
add esp, 0x10
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 6
cmp dword [ebp - 0x18], esi
jae 0x580e6d
lea eax, [ebp - 0x2c]
push edi
push ebx
push ebx
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x580ec1
cmp dword [ebp - 0x60], 0x10
mov eax, dword [ebp - 0x74]
jae 0x580e8a
lea eax, [ebp - 0x74]
push eax
push 0x38a
call fcn.0057b788
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.004607f4
add esp, 0xc
push eax
push 0x132
mov byte [ebp - 4], 7
call fcn.004871c8
push ebx
push edi
lea ecx, [ebp - 0x8c]
call fcn.0042386b
push ebx
push edi
lea ecx, [ebp - 0x74]
call fcn.0040abbf
push ebx
push edi
lea ecx, [ebp - 0x2c]
call fcn.0042386b
jmp 0x580edc
xor edi, edi
xor ebx, ebx
inc edi
push ebx
push edi
lea ecx, [ebp - 0x5c]
call fcn.0042386b
push ebx
push 1
lea ecx, [ebp - 0x44]
call fcn.0040abbf
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8