Function at 0x5a8041
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x6c575e
call fcn.0066bd6c
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 0x5a833c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x15c]
test al, 2
jne 0x5a833c
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 0x5a809c
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 - 0x5c], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], bl
imul eax, edi, 0xa0
mov dword [ebp - 4], ebx
add eax, dword [ecx + 4]
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
push eax
call fcn.005a63dd
test al, al
je 0x5a8305
xor eax, eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
cmp dword [ebp - 0x48], 0x10
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 1
jb 0x5a80f9
mov eax, dword [ebp - 0x5c]
push str.btapp:
push eax
call fcn.0047e321
mov bl, al
call fcn.0048e707
push 0
push 0
lea ecx, [ebp - 0x44]
movzx eax, word [eax + 4]
push ecx
push dword [ebp + 8]
mov dword [ebp + 0xc], eax
push eax
push edi
push esi
call fcn.005a77d4
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x44]
push 0x31
pop eax
push 8
pop edi
mov word [ebp - 0x14], ax
mov eax, dword [ebp - 0x44]
cmp ecx, edi
jb 0x5a813e
mov edx, eax
mov dword [ebp - 0x10], edx
test bl, bl
jne 0x5a82bf
cmp dword [ebp - 0x48], 0x10
lea eax, [ebp - 0x5c]
jb 0x5a8155
mov eax, dword [ebp - 0x5c]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.0047e836
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x60], edi
jb 0x5a816e
mov eax, dword [ebp - 0x74]
push 1
lea ecx, [ebp - 0x14]
push ecx
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0048758d
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 4
call fcn.0042756c
cmp byte [ebp + 8], 0
lea eax, [ebp - 0x2c]
je 0x5a8222
cmp dword [ebp - 0x18], edi
jb 0x5a819f
mov eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.0047e71e
cmp dword [ebp - 0x78], 0x10
lea eax, [ebp - 0x8c]
jb 0x5a81be
mov eax, dword [ebp - 0x8c]
push 1
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
lea ecx, [ebp - 0x8c]
mov esi, eax
call fcn.004102c8
cmp esi, 0x20
jg 0x5a82b1
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jb 0x5a81e8
mov eax, dword [ebp - 0x2c]
push eax
push 0x39b
call fcn.005a1454
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.004646d1
add esp, 0xc
push eax
push 0x132
mov byte [ebp - 4], 5
call fcn.0048ed1c
lea ecx, [ebp - 0x8c]
call fcn.0042756c
jmp 0x5a82b1
cmp dword [ebp - 0x18], edi
jb 0x5a822a
mov eax, dword [ebp - 0x2c]
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x8c]
push str._Shttp:__localhost:_d
push eax
call fcn.004646b3
add esp, 0x10
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 6
cmp dword [ebp - 0x18], edi
jb 0x5a8251
mov eax, dword [ebp - 0x2c]
push 1
xor ecx, ecx
push ecx
push ecx
push eax
push ecx
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x5a82a6
cmp dword [ebp - 0x78], 0x10
lea eax, [ebp - 0x8c]
jb 0x5a8277
mov eax, dword [ebp - 0x8c]
push eax
push 0x39c
call fcn.005a1454
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.004646d1
add esp, 0xc
push eax
push 0x132
mov byte [ebp - 4], 7
call fcn.0048ed1c
lea ecx, [ebp - 0x74]
call fcn.0042756c
lea ecx, [ebp - 0x8c]
call fcn.004102c8
lea ecx, [ebp - 0x2c]
call fcn.0042756c
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x44]
cmp ecx, edi
jb 0x5a82f4
lea ecx, [ecx*2 + 2]
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], ecx
cmp ecx, 0x1000
jb 0x5a82eb
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.0042741e
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ecx
push eax
call fcn.0066bb0a
pop ecx
pop ecx
and dword [ebp - 0x34], 0
xor eax, eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov eax, dword [ebp - 0x48]
pop edi
pop ebx
cmp eax, 0x10
jb 0x5a833c
mov ecx, dword [ebp - 0x5c]
inc eax
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], ecx
cmp eax, 0x1000
jb 0x5a8333
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.0042741e
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call fcn.0066bb0a
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8