Function at 0x405ce4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub eax, 0x80
push esi
je 0x405d1a
sub eax, 0x40
je 0x405d0f
sub eax, 0x40
je 0x405d04
push 0xffffffffffffffe0
pop eax
jmp 0x405f4d
mov esi, dword [ebp + 8]
mov dword [esi], 0xe
jmp 0x405d23
mov esi, dword [ebp + 8]
mov dword [esi], 0xc
jmp 0x405d23
mov esi, dword [ebp + 8]
mov dword [esi], 0xa
push ebx
push edi
xor edi, edi
cmp dword [0x461d4c], edi
jne 0x405d3e
call fcn.004075e4
mov dword [0x461d4c], 1
mov ecx, dword [ebp + 0x10]
lea eax, [esi + 8]
shr ecx, 5
mov dword [esi + 4], eax
mov dword [ebp + 0x10], ecx
je 0x405d7a
mov ecx, dword [ebp + 0xc]
add ecx, 2
movzx ebx, byte [ecx - 1]
xor edx, edx
mov dh, byte [ecx + 1]
mov dl, byte [ecx]
add ecx, 4
shl edx, 8
or edx, ebx
movzx ebx, byte [ecx - 6]
shl edx, 8
or edx, ebx
mov dword [eax + edi*4], edx
inc edi
cmp edi, dword [ebp + 0x10]
jb 0x405d55
mov esi, dword [esi]
sub esi, 0xa
je 0x405edd
dec esi
dec esi
je 0x405e5f
dec esi
dec esi
jne 0x405f49
xor edi, edi
movzx edx, byte [eax + 0x1c]
movzx ecx, byte [eax + 0x1f]
movzx ecx, byte [ecx + 0x45fb24]
xor ebx, ebx
mov bh, byte [edx + 0x45fb24]
movzx edx, byte [eax + 0x1e]
movzx edx, byte [edx + 0x45fb24]
xor ecx, ebx
shl ecx, 8
xor ecx, edx
movzx edx, byte [eax + 0x1d]
movzx edx, byte [edx + 0x45fb24]
shl ecx, 8
xor ecx, edx
xor ecx, dword [edi + 0x460424]
mov edx, dword [eax + 4]
xor ecx, dword [eax]
lea esi, [eax + 0x20]
xor edx, ecx
mov dword [esi], ecx
mov ecx, dword [eax + 8]
xor ecx, edx
mov dword [eax + 0x24], edx
mov edx, dword [eax + 0xc]
xor edx, ecx
mov dword [eax + 0x2c], edx
mov dword [eax + 0x28], ecx
movzx ecx, byte [eax + 0x2f]
xor edx, edx
mov dh, byte [ecx + 0x45fb24]
movzx ecx, byte [eax + 0x2e]
movzx ecx, byte [ecx + 0x45fb24]
xor edx, ecx
movzx ecx, byte [eax + 0x2d]
movzx ecx, byte [ecx + 0x45fb24]
shl edx, 8
xor edx, ecx
movzx ecx, byte [eax + 0x2c]
movzx ecx, byte [ecx + 0x45fb24]
shl edx, 8
xor ecx, edx
xor ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
xor edx, ecx
mov dword [eax + 0x30], ecx
mov ecx, dword [eax + 0x18]
xor ecx, edx
mov dword [eax + 0x34], edx
mov edx, dword [eax + 0x1c]
xor edx, ecx
add edi, 4
cmp edi, 0x1c
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], edx
mov eax, esi
jb 0x405d97
jmp 0x405f49
xor edi, edi
movzx ecx, byte [eax + 0x14]
xor edx, edx
mov dh, byte [ecx + 0x45fb24]
movzx ecx, byte [eax + 0x17]
movzx ecx, byte [ecx + 0x45fb24]
xor edx, ecx
movzx ecx, byte [eax + 0x16]
movzx ecx, byte [ecx + 0x45fb24]
shl edx, 8
xor edx, ecx
movzx ecx, byte [eax + 0x15]
movzx ecx, byte [ecx + 0x45fb24]
shl edx, 8
xor edx, ecx
xor edx, dword [edi + 0x460424]
lea esi, [eax + 0x18]
mov ecx, edx
xor ecx, dword [eax]
mov edx, dword [eax + 4]
xor edx, ecx
mov dword [esi], ecx
mov ecx, dword [eax + 8]
xor ecx, edx
mov dword [eax + 0x1c], edx
mov edx, dword [eax + 0xc]
xor edx, ecx
mov dword [eax + 0x20], ecx
mov ecx, dword [eax + 0x10]
xor ecx, edx
mov dword [eax + 0x24], edx
mov edx, dword [eax + 0x14]
xor edx, ecx
add edi, 4
cmp edi, 0x20
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], edx
mov eax, esi
jb 0x405e61
jmp 0x405f49
xor edi, edi
movzx ecx, byte [eax + 0xc]
xor edx, edx
mov dh, byte [ecx + 0x45fb24]
movzx ecx, byte [eax + 0xf]
movzx ecx, byte [ecx + 0x45fb24]
xor edx, ecx
movzx ecx, byte [eax + 0xe]
movzx ecx, byte [ecx + 0x45fb24]
shl edx, 8
xor edx, ecx
movzx ecx, byte [eax + 0xd]
movzx ecx, byte [ecx + 0x45fb24]
shl edx, 8
xor edx, ecx
xor edx, dword [edi + 0x460424]
lea esi, [eax + 0x10]
mov ecx, edx
xor ecx, dword [eax]
mov edx, dword [eax + 4]
xor edx, ecx
mov dword [esi], ecx
mov ecx, dword [eax + 8]
xor ecx, edx
mov dword [eax + 0x14], edx
mov edx, dword [eax + 0xc]
xor edx, ecx
add edi, 4
cmp edi, 0x28
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], edx
mov eax, esi
jb 0x405edf
pop edi
xor eax, eax
pop ebx
pop esi
pop ebp
ret