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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
lea edi, [edx + 0x1f]
mov ebx, ecx
and edi, 0xffffffe0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], edi
jne 0x10064d12
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea esi, [ebx + 4]
push esi
mov dword [ebp - 0x2c], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebx + 0x3c]
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 4], edx
mov dword [ebp - 0x30], eax
test edx, edx
je 0x10064e36
mov eax, dword [edx + 0x18]
sub eax, dword [edx + 0x1c]
cmp eax, edi
jb 0x10064e15
mov ecx, dword [edx + 0x28]
cmp ecx, edi
jae 0x10064d50
test ecx, ecx
jne 0x10064e15
mov eax, dword [edx + 0x2c]
xor ecx, ecx
mov edi, dword [edx + 0x20]
xor ebx, ebx
mov dword [ebp - 0x18], eax
mov eax, dword [edx + 0x24]
mov edx, dword [ebp - 0x10]
dec edx
mov dword [ebp - 0x24], eax
add eax, edx
mov dword [ebp - 0x20], edi
xor edx, edx
div dword [ebp - 0x24]
xor edx, edx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
test edi, edi
je 0x10064dfb
nop dword [eax]
mov edi, dword [ebp - 0x18]
mov eax, dword [edi]
add edi, 4
mov dword [ebp - 0x18], edi
lea edi, [edx + 0x20]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], edi
cmp eax, 0xffffffff
jne 0x10064da9
cmp ecx, ebx
mov dword [ebp - 0xc], edi
mov edx, edi
cmovbe ecx, ebx
mov ebx, ecx
xor ecx, ecx
jmp 0x10064df6
mov eax, dword [ebp - 0x20]
mov edi, 0x20
cmp dword [ebp - 0x1c], eax
jbe 0x10064dba
mov edi, eax
sub edi, edx
xor eax, eax
lea edx, [eax + 1]
test edi, edi
je 0x10064df0
mov esi, dword [ebp - 0x2c]
inc eax
test dword [ebp - 0x28], edx
jne 0x10064de1
inc ecx
cmp ecx, dword [ebp - 8]
jne 0x10064dea
sub eax, ecx
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov dword [ebp - 0xc], ecx
jmp 0x10064f5b
cmp ecx, ebx
cmovbe ecx, ebx
mov ebx, ecx
xor ecx, ecx
add edx, edx
cmp eax, edi
jb 0x10064dc3
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], edx
cmp edx, dword [ebp - 0x20]
jb 0x10064d80
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 4]
mov edi, dword [ebp - 0x10]
imul eax, ebx
mov ebx, dword [ebp - 0x14]
mov dword [edx + 0x28], eax
mov edx, dword [edx + 0x14]
mov dword [ebp - 4], edx
jmp 0x10064e2e
mov ecx, dword [edx + 0x14]
cmp eax, dword [ebp - 0x30]
jae 0x10064e29
cmp edx, dword [ebx + 0x3c]
jne 0x10064e29
test ecx, ecx
je 0x10064e29
mov dword [ebx + 0x3c], ecx
mov edx, ecx
mov dword [ebp - 4], ecx
test edx, edx
jne 0x10064d33
mov eax, dword [ebx + 0x1c]
cmp eax, dword [ebp - 0x10]
cmovae edi, eax
mov eax, dword [ebx + 0x20]
mov ebx, dword [ebx]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x30], ebx
test edi, edi
je 0x100650d0
call fcn.10064640
test ebx, ebx
jne 0x10064e60
mov ecx, dword [eax + 8]
jmp 0x10064e63
mov ecx, dword [ebp - 0x30]
mov eax, dword [eax]
push 0x40
push 0x3000
lea ebx, [eax - 1]
neg eax
add ebx, edi
and ebx, eax
push ebx
push 0
push ecx
mov dword [ebp - 0x30], ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x100650d0
mov eax, ebx
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
xor edx, edx
div dword [ebp - 0x24]
push 0x34
mov dword [ebp - 0x2c], eax
lea ebx, [eax + 7]
shr ebx, 3
add ebx, 3
and ebx, 0xfffffffc
mov dword [ebp - 0x1c], ebx
call edi
mov dword [ebp - 4], eax
lea eax, [ebx + ebx]
push eax
mov dword [ebp - 0x28], eax
call edi
mov edi, dword [ebp - 4]
add esp, 8
mov ebx, eax
test edi, edi
je 0x10065090
test ebx, ebx
je 0x10065090
push dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x2c]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x30]
mov dword [edi + 0x20], ecx
mov ecx, dword [ebp - 0x24]
push 0
push ebx
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 0xc], 1
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], 0
mov dword [edi + 0x24], ecx
mov dword [edi + 0x28], eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x1c]
add esp, 0xc
add eax, ebx
mov dword [edi + 0x2c], ebx
mov ebx, dword [ebp - 0x14]
mov edx, edi
mov ecx, ebx
mov dword [edi + 0x30], eax
call fcn.10064800
mov eax, dword [ebp - 0x10]
xor edx, edx
dec eax
mov dword [ebp - 0xc], 0
add eax, dword [edi + 0x24]
div dword [edi + 0x24]
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x18]
add dword [ebx + 0x28], eax
xor ecx, ecx
mov edx, dword [ebp - 8]
test edx, edx
je 0x10064fdc
mov edi, ecx
mov eax, 0x20
and edi, 0x1f
mov ebx, edx
sub eax, edi
cmp eax, edx
mov edx, ecx
mov ecx, 0x20
cmovbe ebx, eax
mov eax, dword [ebp - 4]
shr edx, 5
sub ecx, ebx
mov eax, dword [eax + 0x2c]
lea eax, [eax + edx*4]
mov edx, dword [ebp - 8]
mov dword [ebp - 0x10], eax
sub edx, ebx
or eax, 0xffffffff
shr eax, cl
mov ecx, edi
mov edi, dword [ebp - 0x10]
shl eax, cl
or dword [edi], eax
add edi, 4
mov dword [ebp - 0x10], edi
cmp edx, 0x20
jb 0x10064fca
mov ebx, edx
shr ebx, 5
or eax, 0xffffffff
mov ecx, ebx
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x10]
lea edi, [edi + ebx*4]
nop dword [eax]
sub edx, 0x20
sub ebx, 1
jne 0x10064fc0
jmp 0x10064fcd
or eax, 0xffffffff
test edx, edx
je 0x10064fdc
mov ecx, 0x20
sub ecx, edx
shr eax, cl
or dword [edi], eax
mov ecx, dword [ebp - 8]
add ecx, 0xffffffff
je 0x1006505c
mov edx, dword [ebp - 0xc]
mov eax, 0x20
mov ebx, edx
mov edi, ecx
and ebx, 0x1f
sub eax, ebx
cmp eax, ecx
mov ecx, 0x20
cmovbe edi, eax
mov eax, dword [ebp - 4]
shr edx, 5
sub ecx, edi
mov eax, dword [eax + 0x30]
lea edx, [eax + edx*4]
or eax, 0xffffffff
shr eax, cl
mov ecx, ebx
shl eax, cl
or dword [edx], eax
add edx, 4
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 8]
dec edx
sub edx, edi
mov edi, dword [ebp - 0x10]
cmp edx, 0x20
jb 0x1006504a
mov ebx, edx
shr ebx, 5
or eax, 0xffffffff
mov ecx, ebx
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x10]
lea edi, [edi + ebx*4]
nop
sub edx, 0x20
sub ebx, 1
jne 0x10065040
jmp 0x1006504d
or eax, 0xffffffff
test edx, edx
je 0x1006505c
mov ecx, 0x20
sub ecx, edx
shr eax, cl
or dword [edi], eax
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 0x14]
push esi
mov eax, dword [ecx + 0x24]
imul eax, dword [ebp - 8]
mov dword [ecx + 0x28], 0
add dword [ecx + 0x1c], eax
add dword [edi + 0x2c], eax
mov edi, dword [ecx + 0x24]
imul edi, dword [ebp - 0xc]
add edi, dword [ecx + 8]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x14]
mov edi, dword [edi]
call fcn.10064640
test edi, edi
jne 0x100650a1
mov edi, dword [eax + 8]
mov eax, dword [ebp - 0x20]
push 0x8000
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, dword [ebp - 4]
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test eax, eax
je 0x100650c6
push eax
call edi
add esp, 4
test ebx, ebx
je 0x100650d0
push ebx
call edi
add esp, 4
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret