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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [0x100396e0]
sub esp, 0x14
lea eax, [edx + 0x375460]
push ebx
mov dword [0x10039354], eax
lea ecx, [edx + 0x22fee0]
lea eax, [edx + 0x22ff30]
mov dword [0x10039368], ecx
push esi
push edi
mov dword [0x10039350], eax
lea eax, [edx + 0x2300c0]
push 0x10039374
mov edx, 0x10003ca0
mov dword [0x10039364], eax
call fcn.1000ae8d
mov ecx, dword [0x10039350]
mov edx, 0x10003cd0
push 0x10039358
call fcn.1000ae8d
mov ecx, dword [0x10039364]
mov edx, 0x100044d0
push 0x10039370
call fcn.1000ae8d
mov ecx, dword [0x10039354]
mov edx, 0x100044f0
push 0x10039360
call fcn.1000ae8d
mov ebx, dword [0x10039368]
xor edi, edi
mov ecx, 1
mov edx, 0x100396a4
xor eax, eax
lock cmpxchg dword [edx], ecx
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x10004852
nop dword [eax]
cmp edi, 0x20
jae 0x10004839
push 0
jmp 0x1000483b
push 1
call esi
inc edi
mov ecx, 1
xor eax, eax
mov edx, 0x100396a4
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x10004830
cmp dword [0x100396a8], 0
je 0x1000493e
test ebx, ebx
jne 0x1000486d
call fcn.1000add7
jmp 0x1000493e
mov ecx, dword [0x10039728]
xor edx, edx
test ecx, ecx
je 0x1000493e
mov eax, dword [0x10039720]
cmp ebx, dword [eax]
je 0x10004893
inc edx
add eax, 0x2c
cmp edx, ecx
jb 0x10004882
jmp 0x1000493e
cmp edx, 0xffffffff
je 0x1000493e
mov eax, dword [0x10039720]
imul edi, edx, 0x2c
test byte [edi + eax + 0x14], 2
jne 0x1000493e
push 1
lea ecx, [ebp - 0x14]
call fcn.1000ac97
add esp, 4
test eax, eax
jne 0x1000493e
mov ebx, dword [0x10039720]
add ebx, edi
mov eax, dword [ebx]
mov cl, byte [ebx + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ecx, [ebp - 4]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10004936
mov byte [edi], 0xe9
mov eax, dword [ebx + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [ebx + 0x14], 1
je 0x10004910
mov eax, dword [ebx]
mov word [eax], 0xf9eb
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [ebx + 0x14], 6
lea ecx, [ebp - 0x14]
call fcn.1000ad08
xor eax, eax
mov edx, 0x100396a4
xchg dword [edx], eax
mov ebx, dword [0x10039350]
xor edi, edi
mov ecx, 1
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x10004982
nop
cmp edi, 0x20
jae 0x10004969
push 0
jmp 0x1000496b
push 1
call esi
inc edi
mov ecx, 1
xor eax, eax
mov edx, 0x100396a4
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x10004960
cmp dword [0x100396a8], 0
je 0x10004a6e
test ebx, ebx
jne 0x1000499d
call fcn.1000add7
jmp 0x10004a6e
mov ecx, dword [0x10039728]
xor edx, edx
test ecx, ecx
je 0x10004a6e
mov eax, dword [0x10039720]
cmp ebx, dword [eax]
je 0x100049c3
inc edx
add eax, 0x2c
cmp edx, ecx
jb 0x100049b2
jmp 0x10004a6e
cmp edx, 0xffffffff
je 0x10004a6e
mov eax, dword [0x10039720]
imul edi, edx, 0x2c
test byte [eax + edi + 0x14], 2
jne 0x10004a6e
push 1
lea ecx, [ebp - 0x14]
call fcn.1000ac97
add esp, 4
test eax, eax
jne 0x10004a6e
mov ebx, dword [0x10039720]
add ebx, edi
mov eax, dword [ebx]
mov cl, byte [ebx + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ecx, [ebp - 8]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10004a66
mov byte [edi], 0xe9
mov eax, dword [ebx + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [ebx + 0x14], 1
je 0x10004a40
mov eax, dword [ebx]
mov word [eax], 0xf9eb
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [ebx + 0x14], 6
lea ecx, [ebp - 0x14]
call fcn.1000ad08
xor eax, eax
mov edx, 0x100396a4
xchg dword [edx], eax
mov ebx, dword [0x10039364]
xor edi, edi
mov ecx, 1
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x10004ab2
nop
cmp edi, 0x20
jae 0x10004a99
push 0
jmp 0x10004a9b
push 1
call esi
inc edi
mov ecx, 1
xor eax, eax
mov edx, 0x100396a4
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x10004a90
cmp dword [0x100396a8], 0
je 0x10004b9e
test ebx, ebx
jne 0x10004acd
call fcn.1000add7
jmp 0x10004b9e
mov ecx, dword [0x10039728]
xor edx, edx
test ecx, ecx
je 0x10004b9e
mov eax, dword [0x10039720]
cmp ebx, dword [eax]
je 0x10004af3
inc edx
add eax, 0x2c
cmp edx, ecx
jb 0x10004ae2
jmp 0x10004b9e
cmp edx, 0xffffffff
je 0x10004b9e
mov eax, dword [0x10039720]
imul edi, edx, 0x2c
test byte [edi + eax + 0x14], 2
jne 0x10004b9e
push 1
lea ecx, [ebp - 0x14]
call fcn.1000ac97
add esp, 4
test eax, eax
jne 0x10004b9e
mov ebx, dword [0x10039720]
add ebx, edi
mov eax, dword [ebx]
mov cl, byte [ebx + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ecx, [ebp - 8]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10004b96
mov byte [edi], 0xe9
mov eax, dword [ebx + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [ebx + 0x14], 1
je 0x10004b70
mov eax, dword [ebx]
mov word [eax], 0xf9eb
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [ebx + 0x14], 6
lea ecx, [ebp - 0x14]
call fcn.1000ad08
xor eax, eax
mov edx, 0x100396a4
xchg dword [edx], eax
mov ebx, dword [0x10039354]
xor edi, edi
mov ecx, 1
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x10004be2
nop
cmp edi, 0x20
jae 0x10004bc9
push 0
jmp 0x10004bcb
push 1
call esi
inc edi
mov ecx, 1
xor eax, eax
mov edx, 0x100396a4
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x10004bc0
cmp dword [0x100396a8], 0
je 0x10004cd2
test ebx, ebx
jne 0x10004bfd
call fcn.1000add7
jmp 0x10004cd2
mov ecx, dword [0x10039728]
xor edx, edx
test ecx, ecx
je 0x10004cd2
mov eax, dword [0x10039720]
cmp ebx, dword [eax]
je 0x10004c23
inc edx
add eax, 0x2c
cmp edx, ecx
jb 0x10004c12
jmp 0x10004cd2
cmp edx, 0xffffffff
je 0x10004cd2
mov eax, dword [0x10039720]
imul edi, edx, 0x2c
test byte [edi + eax + 0x14], 2
jne 0x10004cd2
push 1
lea ecx, [ebp - 0x14]
call fcn.1000ac97
add esp, 4
test eax, eax
jne 0x10004cd2
mov ebx, dword [0x10039720]
add ebx, edi
mov eax, dword [ebx]
mov cl, byte [ebx + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ecx, [ebp - 8]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10004cca
mov byte [edi], 0xe9
mov eax, dword [ebx + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [ebx + 0x14], 1
je 0x10004ca4
mov eax, dword [ebx]
mov word [eax], 0xf9eb
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [ebx + 0x14], 6
lea ecx, [ebp - 0x14]
call fcn.1000ad08
xor eax, eax
mov ecx, 0x100396a4
xchg dword [ecx], eax
mov ecx, dword [0x100396e0]
mov edx, 0x100045f0
add ecx, 0x6cf530
push 0x1003935c
mov dword [0x1003936c], ecx
call fcn.1000ae8d
mov ebx, dword [0x1003936c]
xor edi, edi
mov ecx, 1
xor eax, eax
mov edx, 0x100396a4
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x10004d3a
cmp edi, 0x20
jae 0x10004d21
push 0
jmp 0x10004d23
push 1
call esi
inc edi
mov ecx, 1
xor eax, eax
mov edx, 0x100396a4
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x10004d18
cmp dword [0x100396a8], 0
je 0x10004e1e
test ebx, ebx
jne 0x10004d55
call fcn.1000add7
jmp 0x10004e1e
mov ecx, dword [0x10039728]
xor edx, edx
test ecx, ecx
je 0x10004e1e
mov esi, dword [0x10039720]
mov eax, esi
nop dword [eax]
cmp ebx, dword [eax]
je 0x10004d81
inc edx
add eax, 0x2c
cmp edx, ecx
jb 0x10004d70
jmp 0x10004e1e
cmp edx, 0xffffffff
je 0x10004e1e
imul edi, edx, 0x2c
test byte [edi + esi + 0x14], 2
jne 0x10004e1e
push 1
lea ecx, [ebp - 0x14]
call fcn.1000ac97
add esp, 4
test eax, eax
jne 0x10004e1e
add edi, dword [0x10039720]
mov eax, dword [edi]
mov cl, byte [edi + 0x14]
and cl, 1
lea esi, [eax - 5]
cmove esi, eax
movzx eax, cl
lea ebx, [eax*2 + 5]
lea eax, [ebp - 8]
push eax
push 0x40
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10004e16
mov byte [esi], 0xe9
mov eax, dword [edi + 4]
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
test byte [edi + 0x14], 1
je 0x10004df4
mov eax, dword [edi]
mov word [eax], 0xf9eb
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [edi + 0x14], 6
lea ecx, [ebp - 0x14]
call fcn.1000ad08
xor eax, eax
mov ecx, 0x100396a4
xchg dword [ecx], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret