Function at 0x46a0b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
xor edx, edx
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [esp + 0x50]
mov esi, dword [esp + 0x5c]
mov ecx, dword [esp + 0x54]
mov eax, dword [ebx + 0x174]
mov dword [esp + 0x24], eax
mov eax, esi
add eax, dword [ebx + 0x38]
adc edx, dword [ebx + 0x3c]
cmp edx, 0xf
jbe 0x46a0e6
add esp, 0x3c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
jae 0x46a2bd
mov dword [ebx + 0x38], eax
mov eax, dword [ebx + 0x16c]
mov dword [ebx + 0x3c], edx
test eax, eax
jne 0x46a2da
movzx eax, byte [ebx + 0xd]
movzx ebp, byte [ebx + 0xc]
mov byte [esp + 0x1c], al
movzx eax, byte [ebx + 0xe]
mov byte [esp + 0x28], al
movzx eax, byte [ebx + 0xf]
mov byte [esp + 0x2c], al
mov eax, dword [ebx + 0x168]
test eax, eax
je 0x46a1af
test esi, esi
je 0x46a182
mov edx, ebp
mov byte [esp + 0x20], dl
mov edx, dword [esp + 0x58]
mov dword [esp + 0x54], ecx
jmp 0x46a144
test esi, esi
je 0x46a171
add dword [esp + 0x54], 1
add edx, 1
mov edi, dword [esp + 0x54]
sub esi, 1
movzx ebp, byte [ebx + eax + 0x10]
movzx edi, byte [edi - 1]
xor ebp, edi
mov ecx, ebp
mov byte [edx - 1], cl
mov ecx, edi
xor byte [ebx + eax + 0x40], cl
add eax, 1
and eax, 0xf
jne 0x46a140
test eax, eax
movzx ebp, byte [esp + 0x20]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x58], edx
je 0x46a195
mov dword [ebx + 0x168], eax
add esp, 0x3c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebx + 0x60]
mov dword [esp + 4], eax
lea eax, [ebx + 0x40]
mov dword [esp], eax
mov dword [esp + 0x20], ecx
call fcn.00468ae0
mov ecx, dword [esp + 0x20]
mov eax, ebp
shl eax, 0x18
mov dword [esp + 0x20], eax
movzx eax, byte [esp + 0x1c]
shl eax, 0x10
or dword [esp + 0x20], eax
movzx eax, byte [esp + 0x2c]
or dword [esp + 0x20], eax
movzx eax, byte [esp + 0x28]
shl eax, 8
or dword [esp + 0x20], eax
mov eax, esi
and eax, 0xfffffff0
mov dword [esp + 0x2c], eax
je 0x46a2a6
shr eax, 4
test eax, eax
mov dword [esp + 0x28], eax
je 0x46a24b
lea edi, [ebx + 0x40]
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x28]
lea eax, [ebx + 0x60]
mov dword [esp + 0x5c], esi
mov ebp, eax
mov esi, ecx
mov dword [esp + 0x54], ecx
lea esi, [esi]
xor eax, eax
movzx edx, byte [esi + eax]
xor byte [ebx + eax + 0x40], dl
add eax, 1
cmp eax, 0x10
jne 0x46a212
mov eax, dword [esp + 0x1c]
add esi, 0x10
mov dword [esp + 4], ebp
mov dword [esp], eax
call fcn.00468ae0
sub edi, 1
jne 0x46a210
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x54]
mov esi, dword [esp + 0x5c]
shl eax, 4
add ecx, eax
mov eax, dword [esp + 0x24]
mov edi, ecx
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
sub edi, ebp
sub esi, ebp
mov dword [esp + 4], ecx
mov dword [esp], edi
mov dword [esp + 8], eax
call dword [esp + 0x60]
mov eax, dword [esp + 0x28]
add dword [esp + 0x20], eax
mov ecx, dword [esp + 0x20]
add dword [esp + 0x58], ebp
mov eax, ecx
shr eax, 0x18
mov byte [ebx + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 0xd], al
mov eax, ecx
shr eax, 8
mov byte [ebx + 0xf], cl
lea ecx, [edi + ebp]
mov byte [ebx + 0xe], al
test esi, esi
jne 0x46a303
mov dword [ebx + 0x168], esi
add esp, 0x3c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 0xffffffe0
ja 0x46a0dc
mov dword [ebx + 0x38], eax
mov eax, dword [ebx + 0x16c]
mov dword [ebx + 0x3c], edx
test eax, eax
je 0x46a100
lea eax, [ebx + 0x60]
mov dword [esp + 4], eax
lea eax, [ebx + 0x40]
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.00468ae0
mov ecx, dword [esp + 0x1c]
mov dword [ebx + 0x16c], 0
jmp 0x46a100
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], ecx
mov dword [esp], ebx
mov dword [esp + 8], eax
lea eax, [ebx + 0x10]
mov dword [esp + 4], eax
call dword [ebx + 0x170]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x58]
add eax, 1
mov edx, eax
mov edi, ecx
shr edx, 0x18
mov byte [ebx + 0xc], dl
mov edx, eax
shr edx, 0x10
mov byte [ebx + 0xd], dl
mov edx, eax
shr edx, 8
mov byte [ebx + 0xe], dl
mov edx, ebx
mov byte [ebx + 0xf], al
xor eax, eax
nop
movzx ecx, byte [edi + eax]
xor byte [edx + 0x40], cl
add edx, 1
xor cl, byte [edx + 0xf]
mov byte [ebp + eax], cl
add eax, 1
cmp eax, esi
jne 0x46a350
jmp 0x46a2aa