Function at 0x405080
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x467d50
mov eax, dword fs:[0]
push eax
sub esp, 0x1f4
mov eax, dword [0x7b2d00]
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 - 0x130], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x16c], eax
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x168], 0
mov dword [ebp - 4], 0
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 - 0x148], 0x5060843
mov dword [ebp - 0x144], 0x100570c
mov dword [ebp - 0x140], 0x1b021543
mov dword [ebp - 0x13c], 0x204031a
mov dword [ebp - 0x138], 0x520a04
mov byte [ebp - 0x134], 1
mov dword [ebp - 0x128], 0x1a061043
mov dword [ebp - 0x124], 0x560e00
mov byte [ebp - 0x120], 1
mov dword [ebp - 0x11c], 0xd171f11
mov dword [ebp - 0x118], 0x1e0a1c54
mov word [ebp - 0x114], 0x100
nop
mov al, cl
add al, 0x65
xor byte [ebp + ecx - 0x128], al
inc ecx
cmp ecx, 7
jb 0x405160
lea eax, [ebp - 0x10d]
mov byte [ebp - 0x120], 0
push eax
lea eax, [ebp - 0x121]
push eax
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x188]
call fcn.00408330
mov byte [ebp - 4], 1
cmp byte [ebp - 0x113], 0
je 0x4051c8
xor ecx, ecx
nop word [eax + eax]
mov al, cl
add al, 0x65
xor byte [ebp + ecx - 0x11c], al
inc ecx
cmp ecx, 8
jb 0x4051b0
mov byte [ebp - 0x113], 0
lea eax, [ebp - 0x10d]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00408330
lea eax, [ebp - 0x188]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x16c]
lea ecx, [ebp - 0x164]
call fcn.00409c70
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x38]
cmp ecx, 0x10
jb 0x40523d
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405233
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405605
push ecx
push edx
call fcn.0041d132
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x174]
cmp ecx, 0x10
jb 0x40527b
mov edx, dword [ebp - 0x188]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405271
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405605
push ecx
push edx
call fcn.0041d132
add esp, 8
mov byte [ebp - 4], 3
lea ecx, [ebp + 0xc]
cmp dword [ebp + 0x20], 0x10
mov esi, dword [ebp - 0x150]
mov eax, esi
cmovae ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x1c]
mov edx, dword [ebp - 0x154]
sub eax, edx
push edi
push ecx
cmp edi, eax
ja 0x4052d4
lea eax, [edi + edx]
cmp esi, 0x10
mov dword [ebp - 0x154], eax
lea eax, [ebp - 0x164]
cmovae eax, dword [ebp - 0x164]
lea esi, [eax + edx]
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + edi], 0
lea eax, [ebp - 0x164]
jmp 0x4052ed
mov byte [ebp - 0x12c], 0
lea ecx, [ebp - 0x164]
push dword [ebp - 0x12c]
push edi
call fcn.004087a0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x188], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x178], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x140]
mov byte [ebp - 4], 4
push eax
lea edx, [ebp - 0x188]
lea ecx, [ebp - 0x1d0]
call fcn.00404430
add esp, 4
mov ecx, eax
mov esi, dword [ebp - 0x130]
mov byte [ebp - 4], 5
lea eax, [esi + 0x1a8]
push eax
call fcn.00406f50
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x200], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x1f0], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x148]
mov byte [ebp - 4], 6
push eax
lea edx, [ebp - 0x200]
lea ecx, [ebp - 0x1b8]
call fcn.00403d70
add esp, 4
push esi
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.00406f50
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x1e8], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x1d8], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 8
push eax
lea edx, [ebp - 0x1e8]
lea ecx, [ebp - 0x1a0]
call fcn.00403f90
add esp, 4
mov ecx, eax
lea eax, [esi + 0x18]
mov byte [ebp - 4], 9
push eax
call fcn.00406f50
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], 0xb
mov ecx, dword [ebp - 0x18c]
cmp ecx, 0x10
jb 0x405452
mov edx, dword [ebp - 0x1a0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405448
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405605
push ecx
push edx
call fcn.0041d132
add esp, 8
mov dword [ebp - 0x190], 0
mov dword [ebp - 0x18c], 0xf
mov byte [ebp - 0x1a0], 0
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x1d4]
cmp ecx, 0x10
jb 0x4054ab
mov edx, dword [ebp - 0x1e8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4054a1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405605
push ecx
push edx
call fcn.0041d132
add esp, 8
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x1a4]
cmp ecx, 0x10
jb 0x4054e9
mov edx, dword [ebp - 0x1b8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4054df
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405605
push ecx
push edx
call fcn.0041d132
add esp, 8
mov dword [ebp - 0x1a8], 0
mov dword [ebp - 0x1a4], 0xf
mov byte [ebp - 0x1b8], 0
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x1ec]
cmp ecx, 0x10
jb 0x405542
mov edx, dword [ebp - 0x200]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405538
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405605
push ecx
push edx
call fcn.0041d132
add esp, 8
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x1bc]
cmp ecx, 0x10
jb 0x405580
mov edx, dword [ebp - 0x1d0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405576
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405605
push ecx
push edx
call fcn.0041d132
add esp, 8
mov dword [ebp - 0x1c0], 0
mov dword [ebp - 0x1bc], 0xf
mov byte [ebp - 0x1d0], 0
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x174]
cmp ecx, 0x10
jb 0x4055d5
mov edx, dword [ebp - 0x188]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4055cb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405605
push ecx
push edx
call fcn.0041d132
add esp, 8
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x150]
cmp ecx, 0x10
jb 0x405615
mov edx, dword [ebp - 0x164]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40560b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40560b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0041d132
add esp, 8
sub esp, 0x18
mov dword [ebp - 0x154], 0
lea eax, [esi + 0x60]
mov dword [ebp - 0x12c], esp
mov ecx, esp
mov dword [ebp - 0x150], 0xf
mov byte [ebp - 0x164], 0
push eax
call fcn.004070e0
sub esp, 0x18
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x4c]
mov ecx, esp
push eax
call fcn.004070e0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x11
call fcn.00405a70
add esp, 0x30
push 0
push 1
sub esp, 0x28
mov byte [ebp - 4], 0x13
mov eax, esp
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x5c]
mov dword [eax + 0x24], 0
call fcn.00408450
push 0xb0
lea eax, [ebp - 0x10c]
mov byte [ebp - 4], 0x14
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x38
lea ecx, [ebp - 0x10c]
call fcn.00406920
mov byte [ebp - 4], 0x15
xorps xmm0, xmm0
push 0x20
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
call fcn.0041d5a4
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 ecx, dword [ebp - 0x130]
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0x16
cmp dword [ebp - 0x20], 0x10
cmovae eax, dword [ebp - 0x34]
mov edx, dword [ecx + 0x1d0]
add ecx, 0x1c0
cmp dword [ecx + 0x14], 0x10
jb 0x405707
mov ecx, dword [ecx]
push 0x20
push edi
push dword [ebp - 0x24]
push eax
call fcn.004142e0
add esp, 0x10
mov dword [ebp - 0x12c], edi
mov eax, edi
cmp edi, esi
je 0x4057a2
mov edi, dword [ebp - 0x14]
nop dword [eax]
mov al, byte [eax]
lea ecx, [ebp - 0xfc]
push 0x4015f0
mov byte [ebp - 0x10d], 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
push 0
push 2
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov byte [eax + esi + 0x40], 0x30
lea eax, [ebp - 0x140]
push eax
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 - 0x10d]
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 0x405730
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x188]
push eax
lea ecx, [ebp - 0x10c]
call fcn.00406830
cmp dword [0x7b2da8], 0x10
mov ecx, 0x7b2d94
cmovae ecx, dword [0x7b2d94]
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x4057d2
mov eax, dword [eax]
push dword [0x7b2da4]
push ecx
mov ecx, eax
call fcn.0040f9d0
mov ecx, dword [ebp - 0x174]
add esp, 8
mov byte [ebp - 0x10d], al
cmp ecx, 0x10
jb 0x40582b
mov edx, dword [ebp - 0x188]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40581b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40581b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0041d132
mov al, byte [ebp - 0x10d]
add esp, 8
test al, al
jne 0x405835
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x140]
call fcn.00406a00
push str.success
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 0x17
call fcn.004081a0
xor edx, edx
push str.message
cmp byte [eax], 4
lea ecx, [eax + 8]
cmovne ecx, edx
mov al, byte [ecx]
mov ecx, dword [ebp - 0x130]
mov byte [ecx + 0x18c], al
lea ecx, [ebp - 0x140]
call fcn.004081a0
cmp byte [eax], 3
jne 0x40588b
mov eax, dword [eax + 8]
jmp 0x40588d
xor eax, eax
cmp dword [eax + 0x14], 0x10
mov ecx, eax
jb 0x405897
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, dword [ebp - 0x130]
lea ecx, [ecx + 0x190]
call fcn.00407e70
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 0x16
call fcn.004069e0
push str.message
lea ecx, [ebp - 0x5c]
call fcn.004081a0
mov byte [ebp - 4], 0x18
xorps xmm0, xmm0
mov ecx, dword [ebp - 0x14c]
mov dword [ebp - 0x168], 0x7fc
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
cmp byte [eax], 3
jne 0x40590b
mov eax, dword [eax + 8]
jmp 0x40590d
xor eax, eax
cmp ecx, eax
je 0x405923
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x40591c
mov eax, dword [eax]
push edx
push eax
call fcn.00407e70
test edi, edi
je 0x405951
sub esi, edi
cmp esi, 0x1000
jb 0x405947
mov ecx, dword [edi - 4]
add esi, 0x23
sub edi, ecx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x405a3b
mov edi, ecx
push esi
push edi
call fcn.0041d132
add esp, 8
mov eax, dword [ebp - 0x10c]
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 - 0x10c]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x110], eax
lea ecx, [ebp - 0xf4]
call fcn.00406780
lea ecx, [ebp - 0xec]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0xa4]
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.004069e0
mov ecx, dword [ebp - 0x20]
cmp ecx, 0x10
jb 0x4059d3
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4059c9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405a3b
push ecx
push edx
call fcn.0041d132
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 0x405a15
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405a0b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405a3b
push ecx
push edx
call fcn.0041d132
add esp, 8
mov ecx, dword [ebp + 0x20]
cmp ecx, 0x10
jb 0x405a4b
mov edx, dword [ebp + 0xc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405a41
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x405a41
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0041d132
add esp, 8
mov eax, dword [ebp - 0x14c]
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.0041cef6
mov esp, ebp
pop ebp
ret 0x1c