Function at 0x4018d0
Capabilities:
Encode data using xor
Terminate process

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4518ca
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xf0
mov eax, dword [0x45e00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0xfc], esi
mov dword [ebp - 0x100], esi
xorps xmm0, xmm0
mov dword [ebp - 0xf8], 0
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push 0xb8
lea eax, [ebp - 0xe8]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0xf8], 1
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0xf3]
mov dword [ebp - 0xf4], 0x6c61764c
push eax
lea ecx, [ebp - 0xe8]
mov dword [ebp - 0xf0], 0x2e736575
mov dword [ebp - 0xec], 0x747874
call fcn.00405ec0
mov dword [ebp - 4], 1
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xe8]
mov eax, dword [ebp - 0xe8]
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::ios_base::fail_void_const]
test al, al
je 0x401a4b
lea eax, [ebp - 0xf4]
push eax
call fcn.00401c30
mov ecx, eax
lea edi, [ecx + 1]
mov al, byte [ecx]
xor byte [edi], al
xor byte [ecx + 2], al
xor byte [ecx + 3], al
xor byte [ecx + 4], al
xor byte [ecx + 5], al
xor byte [ecx + 6], al
xor byte [ecx + 7], al
lea eax, [ebp - 0x2c]
push eax
mov byte [ecx + 8], 0
call fcn.00401bf0
mov edx, eax
mov esi, 0xb
lea ecx, [edx + 2]
nop word [eax + eax]
mov al, byte [edx]
lea ecx, [ecx + 2]
xor byte [ecx - 3], al
mov al, byte [edx]
xor byte [ecx - 2], al
sub esi, 1
jne 0x401a20
push esi
push edi
lea eax, [edx + 1]
mov byte [edx + 0x17], 0
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov eax, dword [ebp - 0xe8]
lea ecx, [ebp - 0xe8]
push 0xa
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_char___thiscall_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const]
movzx eax, al
lea edx, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xe8]
call fcn.004073c0
mov edx, eax
add esp, 4
mov eax, dword [edx]
mov ecx, dword [eax + 4]
add ecx, edx
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::ios_base::operator_bool_void_const]
test al, al
je 0x401af0
nop word [eax + eax]
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x2c]
push ecx
cmp eax, dword [esi + 8]
je 0x401aa9
mov ecx, eax
call fcn.00406040
add dword [esi + 4], 0x18
jmp 0x401ab1
push eax
mov ecx, esi
call fcn.00407760
mov eax, dword [ebp - 0xe8]
lea ecx, [ebp - 0xe8]
push 0xa
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_char___thiscall_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const]
movzx eax, al
lea edx, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xe8]
call fcn.004073c0
mov edx, eax
add esp, 4
mov eax, dword [edx]
mov ecx, dword [eax + 4]
add ecx, edx
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::ios_base::operator_bool_void_const]
test al, al
jne 0x401a90
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x401b2a
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401b20
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401b20
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00450872
add esp, 8
mov eax, dword [ebp - 0xe8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe8], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xe8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0xec], eax
mov dword [ebp - 4], 3
cmp dword [ebp - 0x8c], 0
mov dword [ebp - 0xd8], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
je 0x401b9b
mov eax, dword [ebp - 0xcc]
lea ecx, [ebp - 0x9c]
cmp dword [eax], ecx
jne 0x401b9b
mov edx, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x88]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebp - 0xbc]
mov dword [eax], ecx
mov eax, dword [ebp - 0xac]
mov dword [eax], edx
cmp byte [ebp - 0x90], 0
je 0x401baf
lea ecx, [ebp - 0xd8]
call fcn.00406310
lea ecx, [ebp - 0xd8]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0xd0]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x78]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004505de
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret