Function at 0x10005780
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1074
call fcn.10019da0
mov eax, dword [0x100385e0]
xor eax, esp
mov dword [esp + 0x1070], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, 0x10
mov esi, ecx
cmp dword [eax + 0x14], edi
jb 0x100057b2
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esp + 0x1c], eax
cmp dword [esi + 0x14], edi
jb 0x100057c4
mov esi, dword [esi]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, eax
xor ebx, ebx
mov dword [esp + 0xc], edx
cmp edx, ebx
je 0x100058f8
mov esi, dword [0x1003c554]
mov ecx, dword [esi]
cmp ecx, esi
je 0x10005838
jmp 0x100057f0
cmp dword [ecx + 0x10], edx
je 0x100059c7
cmp byte [ecx + 0x21], bl
jne 0x10005834
mov eax, dword [ecx + 8]
cmp byte [eax + 0x21], bl
jne 0x1000581b
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x21], bl
jne 0x10005834
nop
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x21], bl
je 0x10005810
jmp 0x10005834
mov eax, dword [ecx + 4]
cmp byte [eax + 0x21], bl
jne 0x10005832
cmp ecx, dword [eax + 8]
jne 0x10005832
mov ecx, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x21], bl
je 0x10005823
mov ecx, eax
cmp ecx, esi
jne 0x100057f0
lea eax, [esp + 0x10]
push eax
push 0x14
lea ecx, [esp + 0x40]
push ecx
push 1
push 0x1e
push edx
push ebx
push ebx
mov dword [esp + 0x30], ebx
call fcn.1001ed80
add esp, 0x20
cmp eax, 1
jne 0x10005903
mov dword [0x1003c544], 4
cmp dword [esp + 0x10], ebx
jbe 0x100058f8
lea edi, [esp + 0x7c]
push 4
lea esi, [edi - 0x40]
push str.PUSH
push esi
call fcn.10011976
add esp, 0xc
test eax, eax
jne 0x100058a9
mov al, byte [edi]
cmp al, 0x45
jne 0x1000589e
add dword [0x1003c544], 4
jmp 0x100058a9
cmp al, 0x52
jne 0x100058a9
add dword [0x1003c544], 8
push 3
push 0x100288d8
push esi
call fcn.10011976
add esp, 0xc
test eax, eax
jne 0x100058d7
mov al, byte [edi]
cmp al, 0x45
jne 0x100058cc
sub dword [0x1003c544], 4
jmp 0x100058d7
cmp al, 0x52
jne 0x100058d7
sub dword [0x1003c544], 8
push 4
push str.CALL
push esi
call fcn.10011976
add esp, 0xc
test eax, eax
je 0x1000591c
inc ebx
add edi, 0xd0
cmp ebx, dword [esp + 0x10]
jb 0x10005878
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1070]
xor ecx, esp
call fcn.10010f62
mov esp, ebp
pop ebp
ret 4
mov edi, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
imul edi, edi, 0xd0
mov esi, dword [esp + edi + 0x100]
add esi, dword [esp + 0xc]
lea ecx, [esp + 0x20]
mov edx, dword [esi + 2]
mov eax, dword [edx]
push ecx
push 0x40
push 0xf
push esi
mov dword [0x1003b7fc], eax
mov dword [esp + 0x30], 0
call ebx
test eax, eax
je 0x10005903
mov edx, 0x10004ce0
sub edx, esi
sub edx, 5
mov dword [esp + 0x15], edx
mov cl, byte [esp + 0x18]
mov byte [esp + 0x14], 0xe8
mov eax, dword [esp + 0x14]
mov dword [esi], eax
mov byte [esi + 4], cl
cmp dword [esp + edi + 0xf8], 6
jne 0x10005985
mov byte [esi + 5], 0x90
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x24]
push edx
push eax
push 0xf
push esi
call ebx
mov ebx, dword [esp + 0xc]
lea eax, [esp + 0xc]
xor esi, esi
xor edi, edi
mov dword [esp + 0x2c], 0x10004ce0
call fcn.10005b70
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
mov dword [eax], ebx
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
push edx
mov dword [eax + 0xc], edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x107c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.10010f62
mov esp, ebp
pop ebp
ret 4