Function at 0x412ef0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41536b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x130
mov eax, dword [0x41e008]
xor eax, ebp
mov dword [ebp - 0x24], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
push ecx
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.0040ff50
push 0xb8
lea eax, [ebp - 0x110]
mov byte [ebp - 4], 2
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 8
lea ecx, [ebp - 0x110]
call fcn.004101a0
sub esp, 8
mov byte [ebp - 4], 3
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x110]
push eax
call fcn.00410020
cmp dword [ebp - 0xb4], 0
je 0x41304a
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x110]
call dword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____thiscall_std::basic_istream_char__struct_std::char_traits_char__::tellg_void_]
mov esi, dword [eax + 8]
add esi, dword [eax]
je 0x41301d
push ecx
push esi
lea ecx, [ebp - 0x58]
call fcn.0040fd10
sub esp, 0x18
lea ecx, [ebp - 0x110]
mov eax, esp
xorps xmm0, xmm0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
movq qword [eax + 0x10], xmm0
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_class_std::fpos_struct__Mbstatet__]
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x58]
push 0
cmovae eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x110]
push esi
push eax
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__]
mov esi, 1
jmp 0x41301f
xor esi, esi
lea ecx, [ebp - 0x100]
call fcn.00403ee0
test eax, eax
jne 0x41304c
push eax
mov eax, dword [ebp - 0x110]
lea ecx, [ebp - 0x110]
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
jmp 0x41304c
xor esi, esi
lea ecx, [ebp - 0x110]
call fcn.0040f560
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x413091
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x413087
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x413087
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00413d82
add esp, 8
test esi, esi
je 0x4133bc
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
sub esp, 0x18
mov byte [ebp - 4], 4
lea eax, [ebp - 0x58]
mov ecx, esp
push eax
call fcn.0040ff50
lea ecx, [ebp - 0x40]
call fcn.00412100
add esp, 0x18
mov dword [ebp - 0x28], 0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x28]
cmovae eax, dword [ebp - 0x40]
sub esp, 0x18
push dword [ebp - 0x30]
push eax
call fcn.00404570
test eax, eax
je 0x413348
movups xmm0, xmmword [0x41aadc]
mov al, byte [0x41aaec]
xor ecx, ecx
cmp dword [0x41e5b8], 2
movups xmmword [ebp - 0x124], xmm0
mov byte [ebp - 0x114], al
jl 0x413270
movaps xmm0, xmmword [str.4444444444444444]
mov eax, 5
movaps xmm4, xmmword [0x41aba0]
movaps xmm3, xmmword [0x41abe0]
movaps xmm6, xmmword [str.9999]
movd xmm5, eax
mov eax, 0x1f
movaps xmmword [ebp - 0x140], xmm0
mov edx, dword [ebp - 0x140]
movd xmm7, eax
nop dword [eax + eax]
movd xmm0, ecx
lea eax, [ecx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x41abc0]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [ebp + ecx - 0x124]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [ebp + ecx - 0x124], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
pand xmm1, xmmword [0x41abc0]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [ebp + ecx - 0x120]
pxor xmm1, xmm0
movd dword [ebp + ecx - 0x120], xmm1
add ecx, 8
cmp ecx, 0x10
jl 0x413160
cmp ecx, 0x11
jge 0x41329d
mov eax, 0x8fb823ef
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dl, cl
movsx eax, al
imul eax, eax, 0x39
sub dl, al
add dl, 0x34
xor byte [ebp + ecx - 0x124], dl
inc ecx
cmp ecx, 0x11
jl 0x413270
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x28]
call fcn.00404a00
test eax, eax
je 0x413340
push 0x1e240
call eax
mov byte [ebp - 4], 6
cmp dword [ebp - 0x28], 0
je 0x4132cd
lea ecx, [ebp - 0x28]
call fcn.00404b70
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x413303
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4132f9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4132f9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00413d82
add esp, 8
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x413339
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41332f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41332f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00413d82
add esp, 8
mov al, 1
jmp 0x41340d
lea ecx, [ebp - 0x28]
call fcn.00404b70
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
mov dword [ebp - 0x30], 0
cmovae eax, dword [ebp - 0x40]
mov byte [eax], 0
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 0x10
mov dword [ebp - 0x48], 0
cmovae eax, dword [ebp - 0x58]
mov byte [eax], 0
mov byte [ebp - 4], 7
cmp dword [ebp - 0x28], 0
je 0x413384
lea ecx, [ebp - 0x28]
call fcn.00404b70
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x4133c7
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4133b0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4133b0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00413d82
add esp, 8
jmp 0x4133c7
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.004134f0
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x41340b
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4133f3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4133f3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00413d82
add esp, 8
jmp 0x41340b
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.00413d41
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret