Function at 0x405b60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49debc
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0xa57200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x13c], ecx
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], 0
call fcn.004155e0
mov byte [ebp - 4], 1
xor ecx, ecx
mov dword [ebp - 0x1c], 0x6100943
mov dword [ebp - 0x18], 0x802180c
mov word [ebp - 0x14], 0x50
mov byte [ebp - 0x12], 1
mov dword [ebp - 0x15c], 0x5060843
mov dword [ebp - 0x158], 0x100570c
mov dword [ebp - 0x16c], 0x1b021543
mov dword [ebp - 0x168], 0x204031a
mov dword [ebp - 0x164], 0x520a04
mov byte [ebp - 0x160], 1
mov dword [ebp - 0x154], 0x1100e43
mov dword [ebp - 0x150], 0x100570d
mov dword [ebp - 0x138], 0x11020d43
mov word [ebp - 0x134], 0x54
mov byte [ebp - 0x132], 1
mov dword [ebp - 0x14c], 0xd171f11
mov dword [ebp - 0x148], 0xf020654
mov dword [ebp - 0x144], 0x151c0008
mov word [ebp - 0x140], 0x100
nop
mov al, cl
add al, 0x65
xor byte [ebp + ecx - 0x138], al
inc ecx
cmp ecx, 5
jb 0x405c50
lea eax, [ebp - 0x125]
mov byte [ebp - 0x132], 0
push eax
lea eax, [ebp - 0x133]
push eax
lea eax, [ebp - 0x138]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00409c90
lea eax, [ebp - 0x19c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x14c]
call fcn.00405ac0
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 3
push ecx
push eax
push dword [ebp - 0x130]
lea ecx, [ebp - 0x184]
call fcn.0040b560
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x188]
cmp ecx, 0x10
jb 0x405cef
mov edx, dword [ebp - 0x19c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405ce5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405d34
push ecx
push edx
call fcn.00452e8b
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x18c], 0
mov dword [ebp - 0x188], 0xf
mov byte [ebp - 0x19c], 0
cmp ecx, 0x10
jb 0x405d44
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405d3a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x405d3a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00452e8b
add esp, 8
mov byte [ebp - 4], 4
lea ecx, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
mov edx, dword [ebp - 0x174]
cmovae ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x170]
mov edi, dword [ebp + 0x18]
sub eax, edx
mov dword [ebp - 0x12c], edx
push edi
push ecx
cmp edi, eax
ja 0x405dae
cmp dword [ebp - 0x170], 0x10
lea esi, [ebp - 0x184]
lea eax, [edx + edi]
cmovae esi, dword [ebp - 0x184]
mov dword [ebp - 0x174], eax
lea eax, [esi + edx]
push eax
call sub.VCRUNTIME140.dll_memmove
mov ecx, dword [ebp - 0x12c]
lea eax, [edi + esi]
add esp, 0xc
mov byte [eax + ecx], 0
lea eax, [ebp - 0x184]
jmp 0x405dc7
mov byte [ebp - 0x12c], 0
lea ecx, [ebp - 0x184]
push dword [ebp - 0x12c]
push edi
call fcn.0040a210
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x1b4], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x1a4], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x154]
mov byte [ebp - 4], 5
push eax
lea edx, [ebp - 0x1b4]
lea ecx, [ebp - 0x214]
call fcn.00404f90
add esp, 4
mov esi, eax
mov byte [ebp - 4], 6
lea edx, [ebp - 0x74]
cmp dword [ebp - 0x60], 0x10
mov ecx, dword [esi + 0x10]
cmovae edx, dword [ebp - 0x74]
mov eax, dword [esi + 0x14]
mov edi, dword [ebp - 0x64]
sub eax, ecx
mov dword [ebp - 0x130], ecx
cmp edi, eax
ja 0x405e71
cmp dword [esi + 0x14], 0x10
lea eax, [edi + ecx]
mov dword [esi + 0x10], eax
mov eax, esi
mov dword [ebp - 0x12c], esi
jb 0x405e50
mov eax, dword [esi]
mov dword [ebp - 0x12c], eax
push edi
add eax, ecx
push edx
push eax
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x12c]
add esp, 0xc
mov ecx, dword [ebp - 0x130]
add eax, edi
mov byte [eax + ecx], 0
jmp 0x405e8a
push edi
push edx
mov byte [ebp - 0x130], 0
mov ecx, esi
push dword [ebp - 0x130]
push edi
call fcn.0040a210
mov esi, eax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x244], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x234], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
lea eax, [ebp - 0x16c]
mov byte [ebp - 4], 7
push eax
lea edx, [ebp - 0x244]
lea ecx, [ebp - 0x1fc]
call fcn.004059b0
add esp, 4
mov esi, dword [ebp - 0x13c]
mov byte [ebp - 4], 8
lea ecx, [esi + 0x1a8]
push ecx
mov ecx, eax
call fcn.004086e0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x22c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x21c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x15c]
mov byte [ebp - 4], 9
push eax
lea edx, [ebp - 0x22c]
lea ecx, [ebp - 0x1e4]
call fcn.00404f90
add esp, 4
push esi
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.004086e0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x19c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x18c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0xb
push eax
lea edx, [ebp - 0x19c]
lea ecx, [ebp - 0x1cc]
call fcn.00405220
add esp, 4
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 0xc
push ecx
mov ecx, eax
call fcn.004086e0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x4c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x3c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x1b8]
cmp ecx, 0x10
jb 0x405fef
mov edx, dword [ebp - 0x1cc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405fe5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406239
push ecx
push edx
call fcn.00452e8b
add esp, 8
mov dword [ebp - 0x1bc], 0
mov dword [ebp - 0x1b8], 0xf
mov byte [ebp - 0x1cc], 0
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x188]
cmp ecx, 0x10
jb 0x406048
mov edx, dword [ebp - 0x19c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40603e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406239
push ecx
push edx
call fcn.00452e8b
add esp, 8
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x1d0]
cmp ecx, 0x10
jb 0x406086
mov edx, dword [ebp - 0x1e4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40607c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406239
push ecx
push edx
call fcn.00452e8b
add esp, 8
mov dword [ebp - 0x1d4], 0
mov dword [ebp - 0x1d0], 0xf
mov byte [ebp - 0x1e4], 0
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x218]
cmp ecx, 0x10
jb 0x4060df
mov edx, dword [ebp - 0x22c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4060d5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406239
push ecx
push edx
call fcn.00452e8b
add esp, 8
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x1e8]
cmp ecx, 0x10
jb 0x40611d
mov edx, dword [ebp - 0x1fc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406113
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406239
push ecx
push edx
call fcn.00452e8b
add esp, 8
mov dword [ebp - 0x1ec], 0
mov dword [ebp - 0x1e8], 0xf
mov byte [ebp - 0x1fc], 0
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x230]
cmp ecx, 0x10
jb 0x406176
mov edx, dword [ebp - 0x244]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40616c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406239
push ecx
push edx
call fcn.00452e8b
add esp, 8
mov byte [ebp - 4], 0x14
mov ecx, dword [ebp - 0x200]
cmp ecx, 0x10
jb 0x4061b4
mov edx, dword [ebp - 0x214]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4061aa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406239
push ecx
push edx
call fcn.00452e8b
add esp, 8
mov dword [ebp - 0x204], 0
mov dword [ebp - 0x200], 0xf
mov byte [ebp - 0x214], 0
mov byte [ebp - 4], 0x15
mov ecx, dword [ebp - 0x1a0]
cmp ecx, 0x10
jb 0x406209
mov edx, dword [ebp - 0x1b4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4061ff
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406239
push ecx
push edx
call fcn.00452e8b
add esp, 8
mov byte [ebp - 4], 0x16
mov ecx, dword [ebp - 0x170]
cmp ecx, 0x10
jb 0x406249
mov edx, dword [ebp - 0x184]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40623f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40623f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00452e8b
add esp, 8
sub esp, 0x18
mov dword [ebp - 0x174], 0
lea eax, [esi + 0x60]
mov dword [ebp - 0x130], esp
mov ecx, esp
mov dword [ebp - 0x170], 0xf
mov byte [ebp - 0x184], 0
push eax
call fcn.004088a0
sub esp, 0x18
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0x4c]
mov ecx, esp
push eax
call fcn.004088a0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x16
call fcn.00407070
add esp, 0x30
push 0
push 1
sub esp, 0x28
mov byte [ebp - 4], 0x18
mov eax, esp
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x5c]
mov dword [eax + 0x24], 0
call fcn.00409db0
push 0xb0
lea eax, [ebp - 0x124]
mov byte [ebp - 4], 0x19
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x38
lea ecx, [ebp - 0x124]
call fcn.004080b0
mov byte [ebp - 4], 0x1a
xorps xmm0, xmm0
push 0x20
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
call fcn.00453454
mov edi, eax
xorps xmm0, xmm0
add esp, 4
mov dword [ebp - 0x1c], edi
lea esi, [edi + 0x20]
movups xmmword [edi], xmm0
mov dword [ebp - 0x14], esi
movups xmmword [edi + 0x10], xmm0
mov dword [ebp - 0x18], esi
mov eax, dword [ebp - 0x13c]
lea edx, [ebp - 0x34]
mov byte [ebp - 4], 0x1b
lea ecx, [eax + 0x1c0]
cmp dword [ebp - 0x20], 0x10
cmovae edx, dword [ebp - 0x34]
cmp dword [ecx + 0x14], 0x10
jb 0x406335
mov ecx, dword [ecx]
push 0x20
push edi
push dword [ebp - 0x24]
push edx
mov edx, dword [eax + 0x1d0]
call fcn.00415cd0
add esp, 0x10
mov dword [ebp - 0x12c], edi
mov eax, edi
cmp edi, esi
je 0x4063cf
mov edi, dword [ebp - 0x14]
nop dword [eax]
mov al, byte [eax]
lea ecx, [ebp - 0x114]
push 0x4026a0
mov byte [ebp - 0x125], al
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::ios_base_____cdecl___class_std::ios_base___]
mov esi, eax
lea eax, [ebp - 0x14c]
push 0
push 2
push eax
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
mov byte [ecx + esi + 0x40], 0x30
call dword [sym.imp.MSVCP140.dll_struct_std::_Smanip_long_long___int64_____cdecl_std::setw_long_long___int64__]
push dword [eax + 0xc]
mov ecx, dword [eax]
push dword [eax + 8]
mov eax, dword [esi]
mov eax, dword [eax + 4]
add eax, esi
push eax
call ecx
movzx eax, byte [ebp - 0x125]
add esp, 0x18
mov ecx, esi
push 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___int_]
mov eax, dword [ebp - 0x12c]
inc eax
mov dword [ebp - 0x12c], eax
cmp eax, edi
jne 0x406360
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x1b4]
push eax
lea ecx, [ebp - 0x124]
call fcn.00407fc0
cmp dword [0xa572a8], 0x10
mov ecx, 0xa57294
cmovae ecx, dword [0xa57294]
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x4063ff
mov eax, dword [eax]
push dword [0xa572a4]
push ecx
mov ecx, eax
call fcn.004113d0
mov ecx, dword [ebp - 0x1a0]
add esp, 8
mov byte [ebp - 0x125], al
cmp ecx, 0x10
jb 0x406458
mov edx, dword [ebp - 0x1b4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406448
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x406448
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00452e8b
mov al, byte [ebp - 0x125]
add esp, 8
test al, al
jne 0x406462
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x14c]
call fcn.00408190
push str.success
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 0x1c
call fcn.00409b00
mov esi, dword [ebp - 0x13c]
xor edx, edx
push str.message
cmp byte [eax], 4
lea ecx, [eax + 8]
cmovne ecx, edx
mov al, byte [ecx]
lea ecx, [ebp - 0x14c]
mov byte [esi + 0x18c], al
call fcn.00409b00
cmp byte [eax], 3
jne 0x4064b8
mov eax, dword [eax + 8]
jmp 0x4064ba
xor eax, eax
cmp dword [eax + 0x14], 0x10
mov ecx, eax
jb 0x4064c4
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [esi + 0x190]
call fcn.00409710
lea ecx, [ebp - 0x14c]
mov byte [ebp - 4], 0x1b
call fcn.00408170
push str.success
lea ecx, [ebp - 0x5c]
call fcn.00409b00
xor edx, edx
cmp byte [eax], 4
lea ecx, [eax + 8]
cmovne ecx, edx
cmp byte [ecx], dl
je 0x406523
sub esp, 0x10
lea ecx, [ebp - 0x5c]
mov esi, esp
push 0x4e8608
call fcn.00409b00
push eax
mov ecx, esi
call fcn.00408190
mov ecx, dword [ebp - 0x13c]
call fcn.00403400
test edi, edi
je 0x406554
mov ecx, dword [ebp - 0x14]
sub ecx, edi
cmp ecx, 0x1000
jb 0x40654a
mov edx, dword [edi - 4]
add ecx, 0x23
sub edi, edx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x406674
mov edi, edx
push ecx
push edi
call fcn.00452e8b
add esp, 8
mov eax, dword [ebp - 0x124]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0x124]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x128], eax
lea ecx, [ebp - 0x10c]
call fcn.00407f10
lea ecx, [ebp - 0x104]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0xbc]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x5c]
call fcn.00408170
mov ecx, dword [ebp - 0x20]
cmp ecx, 0x10
jb 0x4065da
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4065d0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406674
push ecx
push edx
call fcn.00452e8b
add esp, 8
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
cmp ecx, 0x10
jb 0x40661c
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406612
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406674
push ecx
push edx
call fcn.00452e8b
add esp, 8
mov eax, dword [ebp - 0x60]
cmp eax, 0x10
jb 0x40664e
mov edx, dword [ebp - 0x74]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x406644
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406674
push ecx
push edx
call fcn.00452e8b
add esp, 8
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x406684
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40667a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40667a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00452e8b
add esp, 8
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.00452bc2
mov esp, ebp
pop ebp
ret 0x18