Function at 0x465452
Capabilities:
Encode data using xor

Disassembly:
push 0x170
mov eax, 0x47bfbc
call fcn.00434c50
mov ecx, dword [ebp + 0x28]
mov eax, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x17c], ecx
mov ecx, dword [ebp + 0x2c]
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x170], ecx
mov ecx, dword [ebp + 0x34]
and dword [ecx], 0
mov dword [ebp - 0x174], eax
mov eax, dword [ebp + 0x24]
test eax, eax
mov dword [ebp - 0x178], ecx
je 0x46565e
mov esi, dword [eax]
cmp esi, 0x20
mov eax, dword [eax + 4]
jge 0x4654ce
push esi
push eax
lea eax, [ebp - 0x30]
push eax
call sub.msvcrt.dll_memcpy
push 0x20
pop eax
sub eax, esi
push eax
lea eax, [ebp + esi - 0x30]
push 0x4958a8
push eax
call sub.msvcrt.dll_memcpy
add esp, 0x18
jmp 0x4654d8
push 8
pop ecx
mov esi, eax
lea edi, [ebp - 0x30]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x30]
push eax
push 0x20
push eax
call fcn.00464703
cmp dword [ebp + 0xc], 3
jne 0x4654fc
push 0x32
pop esi
lea eax, [ebp - 0x30]
push eax
push 0x10
push eax
call fcn.00464703
dec esi
jne 0x4654ed
cmp dword [ebp + 0xc], 2
jne 0x46555c
push dword [ebp + 0x10]
lea eax, [ebp - 0x30]
push eax
lea esi, [ebp - 0x160]
call fcn.00464092
mov edi, dword [ebx + 4]
mov byte [ebp - 0x161], 0
mov byte [ebp - 0x162], 0
xor esi, esi
mov al, byte [edi + esi]
mov byte [ebp - 0x168], al
push dword [ebp - 0x168]
lea eax, [ebp - 0x161]
lea edx, [ebp - 0x162]
lea ecx, [ebp - 0x160]
call fcn.00464102
mov byte [ebp + esi - 0x50], al
inc esi
cmp esi, 0x20
jl 0x465527
jmp 0x4655dd
mov esi, dword [ebx + 4]
push 8
pop ecx
lea edi, [ebp - 0x50]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x168], 0x13
xor edi, edi
xor esi, esi
cmp dword [ebp + 0x10], edi
jle 0x46558e
mov al, byte [ebp + esi - 0x30]
xor al, byte [ebp - 0x168]
inc esi
cmp esi, dword [ebp + 0x10]
mov byte [ebp + esi - 0x61], al
jl 0x46557a
push dword [ebp + 0x10]
lea eax, [ebp - 0x60]
push eax
lea esi, [ebp - 0x160]
call fcn.00464092
mov byte [ebp - 0x161], 0
mov byte [ebp - 0x162], 0
lea esi, [ebp + edi - 0x50]
movzx eax, byte [esi]
push eax
lea eax, [ebp - 0x161]
lea edx, [ebp - 0x162]
lea ecx, [ebp - 0x160]
call fcn.00464102
inc edi
cmp edi, 0x20
mov byte [esi], al
jl 0x4655ae
dec dword [ebp - 0x168]
jns 0x465571
push 8
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x168], eax
and dword [ebp - 4], 0
test eax, eax
je 0x465604
push 0x20
lea ecx, [ebp - 0x50]
push ecx
mov ecx, eax
call fcn.0045b60b
mov esi, eax
jmp 0x465606
xor esi, esi
push dword [ebp + 0x30]
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x170]
push esi
push dword [ebp - 0x174]
push dword [ebp + 0x1c]
push dword [ebp - 0x16c]
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00464f0e
test eax, eax
je 0x465651
mov eax, dword [ebp - 0x178]
xor edi, edi
inc edi
test esi, esi
mov dword [eax], edi
je 0x46564d
push edi
mov ecx, esi
call fcn.0045ac95
mov eax, edi
jmp 0x46568b
test esi, esi
je 0x46565e
push 1
mov ecx, esi
call fcn.0045ac95
push dword [ebp + 0x30]
push dword [ebp - 0x170]
push dword [ebp - 0x17c]
push dword [ebp - 0x174]
push dword [ebp + 0x1c]
push dword [ebp - 0x16c]
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00464f0e
call fcn.00434ce2
ret 0x30