Function at 0x46226c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov ebx, dword [ebp + 0x10]
test ebx, ebx
js 0x462285
shr ebx, 2
mov esi, dword [ecx + ebx*4]
dec ebx
push esi
jns 0x46227e
mov ecx, esp
mov dword [ebp - 9], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 8
mov eax, dword [ebp - 9]
mov edx, dword [ebp + 0xc]
movzx ecx, byte [eax]
mov byte [edx], cl
inc edx
inc eax
dec dword [ebp - 0x10]
jne 0x46229d
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00461c28
cmp byte [ebp - 5], 0
jne 0x46237f
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0x14]
movzx ecx, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x4622d1
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
movzx ecx, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x4622e6
mov eax, dword [ebp - 0x10]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 4]
lea eax, [edx + eax*2 + 0x3c]
push eax
push 5
lea eax, [ebp - 0x18]
push eax
push 3
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0046212c
mov eax, 4
lea edx, [ebp - 0x14]
lea esi, [ebp - 0x18]
mov ecx, dword [ebp + 0xc]
add ecx, 4
movzx ebx, byte [edx]
xor bl, byte [esi]
mov byte [ecx], bl
inc ecx
inc esi
inc edx
dec eax
jne 0x462325
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x10
jne 0x4622c6
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ecx, [ebp - 0x14]
movzx ebx, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x462349
mov eax, 4
mov edx, dword [ebp + 0xc]
movzx ecx, byte [edx]
mov byte [edx + 4], cl
inc edx
dec eax
jne 0x46235b
mov eax, 4
lea edx, [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
movzx ebx, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x462370
jmp 0x462444
cmp byte [ebp - 5], 1
jne 0x462444
mov dword [ebp - 0x10], 0xf
mov eax, 4
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
movzx ebx, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x46239b
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
movzx ecx, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x4623b0
mov eax, dword [ebp - 0x10]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 4]
lea eax, [edx + eax*2 + 0x3c]
push eax
push 5
lea eax, [ebp - 0x18]
push eax
push 3
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0046212c
mov eax, 4
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov esi, dword [ebp + 0xc]
add esi, 4
movzx ebx, byte [edx]
xor bl, byte [ecx]
mov byte [esi], bl
inc esi
inc ecx
inc edx
dec eax
jne 0x4623ef
dec dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0xffffffff
jne 0x462390
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ecx, [ebp - 0x14]
movzx ebx, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x462413
mov eax, 4
mov edx, dword [ebp + 0xc]
movzx ecx, byte [edx]
mov byte [edx + 4], cl
inc edx
dec eax
jne 0x462425
mov eax, 4
lea edx, [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
movzx ebx, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x46243a
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00461ca8
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 0xc