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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x407008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0xc]
mov edi, 1
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], edi
nop dword [eax]
cmp byte [ecx + edi], 0x2a
je 0x40355a
inc edi
mov dword [ebp - 0x14], edi
cmp edi, 0x104
jl 0x403530
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str._nLENGTH:_Failed_To_Read_Length_Of_Array_n
call fcn.00402e80
mov eax, dword [ebp - 0x10]
xor edi, edi
mov dword [ebp - 0x14], edi
mov esi, 1
nop
cmp byte [eax + esi], 0x2a
je 0x403584
inc esi
cmp esi, 0x104
jl 0x403560
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str._nLENGTH:_Failed_To_Read_Length_Of_Array_n
call fcn.00402e80
mov eax, dword [ebp - 0x10]
xor esi, esi
cmp dword [ebx + 0x18], 0
jne 0x4036c0
cmp esi, 5
jle 0x40369d
cmp esi, 6
jle 0x4035c4
mov edi, 6
push 0
push 1
lea eax, [ebp - 8]
mov byte [ebp - 8], 0x90
push eax
mov eax, dword [ebp + 8]
add eax, edi
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
inc edi
cmp edi, esi
jl 0x4035a1
mov edi, dword [ebp - 0x14]
push 0x40
push 0x3000
lea eax, [edi + 5]
push eax
push 0
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ecx, eax
mov eax, dword [ebp + 8]
sub esi, ecx
mov dword [ebx + 0x10], ecx
lea edx, [eax - 5]
add edx, esi
xor esi, esi
mov dword [ebp - 0x14], edx
mov edx, ecx
sub edx, eax
sub edx, 5
mov dword [ebp - 0x10], edx
test edi, edi
js 0x403628
nop dword [eax]
mov eax, dword [ebp - 0xc]
push 0
push 1
mov al, byte [eax + esi]
mov byte [ebp - 8], al
lea eax, [ebp - 8]
push eax
mov eax, dword [ebx + 0x10]
add eax, esi
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
inc esi
cmp esi, edi
jle 0x403600
mov ecx, dword [ebx + 0x10]
cmp dword [ebp + 0x14], 0
lea eax, [ebp - 8]
mov esi, dword [ebp - 0x18]
push 0
push 1
push eax
lea eax, [ecx + edi]
setne bl
push eax
push dword [esi + 4]
add bl, 0xe8
mov byte [ebp - 8], bl
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [ebp - 0x14]
push 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push 4
push eax
mov eax, dword [esi + 0x10]
inc eax
add eax, edi
push eax
push dword [esi + 4]
mov esi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call esi
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
push 0
push 1
mov byte [ebp - 8], bl
mov ebx, dword [ebp - 0x18]
push eax
push edi
push dword [ebx + 4]
call esi
mov eax, dword [ebp - 0x10]
push 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push 4
push eax
lea eax, [edi + 1]
push eax
push dword [ebx + 4]
call esi
jmp 0x403709
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str._nINJECTION:_Default_Bytes_Must_Be_More_Than_5_n
call fcn.00402e80
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004038ec
mov esp, ebp
pop ebp
ret 0x10
test esi, esi
jle 0x4036f4
mov edi, dword [ebp + 8]
sub eax, edi
mov dword [ebp - 0x10], eax
nop dword [eax]
mov al, byte [eax + edi]
push 0
push 1
mov byte [ebp - 8], al
lea eax, [ebp - 8]
push eax
push edi
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [ebp - 0x10]
inc edi
sub esi, 1
jne 0x4036d0
mov edi, dword [ebp - 0x14]
push 0x4000
lea eax, [edi + 5]
push eax
push dword [ebx + 0x10]
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebx + 0x18], eax
pop edi
sete al
xor ecx, ebp
pop esi
mov dword [ebx + 0x18], eax
pop ebx
call fcn.004038ec
mov esp, ebp
pop ebp
ret 0x10