Function at 0x4b0a84
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffff57c
push ebx
push esi
push edi
mov dword [ebp - 0x410], eax
lea edi, [ebp - 0x10fe]
xor eax, eax
mov dword [ebp - 0x1a58], eax
push ebp
call fcn.004b06b4
pop ecx
push ebp
call fcn.004ae528
pop ecx
push ebp
call fcn.004aeeb4
pop ecx
push ebp
call fcn.004b01a0
pop ecx
xor eax, eax
mov dword [ebp - 0x1a80], eax
mov bx, 2
xor esi, esi
mov eax, dword [ebp - 0x410]
cmp dword [eax + 0x188], 3
jg 0x4b0af0
push ebp
call fcn.004b0780
pop ecx
jmp 0x4b0e10
cmp word [ebp - 0x1a5a], 0
je 0x4b0dde
cmp word [ebp - 0x1a5a], 3
jb 0x4b0b9e
movzx eax, word [edi]
add eax, 3
mov edx, dword [ebp - 0x410]
mov edx, dword [edx + 0xb64]
movzx eax, byte [edx + eax - 1]
mov dx, word [ebp - 0x1a6c]
shl edx, 5
xor ax, dx
and ax, 0x7fff
mov word [ebp - 0x1a6c], ax
movzx eax, word [ebp - 0x1a6c]
mov edx, dword [ebp - 0x410]
mov edx, dword [edx + 0xb6c]
mov ax, word [edx + eax*2]
mov dx, word [edi]
and dx, 0x7fff
movzx edx, dx
mov ecx, dword [ebp - 0x410]
mov ecx, dword [ecx + 0xb68]
mov word [ecx + edx*2], ax
movzx eax, word [ebp - 0x1a6c]
mov edx, dword [ebp - 0x410]
mov edx, dword [edx + 0xb6c]
mov si, word [edx + eax*2]
movzx eax, word [ebp - 0x1a6c]
mov edx, dword [ebp - 0x410]
mov edx, dword [edx + 0xb6c]
mov cx, word [edi]
mov word [edx + eax*2], cx
mov word [ebp - 0x1a6e], bx
mov ax, word [ebp - 0x1a5e]
mov word [ebp - 0x1a7a], ax
mov bx, 2
test si, si
je 0x4b0c13
mov ax, word [ebp - 0x1a6e]
cmp ax, word [ebp - 0x1a62]
jae 0x4b0c13
movzx eax, word [edi]
movzx edx, si
sub eax, edx
cmp eax, 0x7efa
jg 0x4b0c13
push ebp
mov eax, esi
call fcn.004b0370
pop ecx
mov ebx, eax
cmp bx, word [ebp - 0x1a5a]
jbe 0x4b0bf6
mov bx, word [ebp - 0x1a5a]
cmp bx, 3
jne 0x4b0c13
movzx eax, word [edi]
movzx edx, word [ebp - 0x1a5e]
sub eax, edx
cmp eax, 0x1000
jle 0x4b0c13
mov bx, 2
cmp word [ebp - 0x1a6e], 3
jb 0x4b0d28
cmp bx, word [ebp - 0x1a6e]
ja 0x4b0d28
push ebp
movzx eax, word [edi]
dec eax
movzx edx, word [ebp - 0x1a7a]
sub eax, edx
movzx edx, word [ebp - 0x1a6e]
sub edx, 3
call fcn.004aeefc
pop ecx
mov byte [ebp - 0x1a7b], al
mov ax, word [ebp - 0x1a6e]
dec eax
sub word [ebp - 0x1a5a], ax
sub word [ebp - 0x1a6e], 2
inc word [edi]
movzx eax, word [edi]
add eax, 3
mov edx, dword [ebp - 0x410]
mov edx, dword [edx + 0xb64]
movzx eax, byte [edx + eax - 1]
mov dx, word [ebp - 0x1a6c]
shl edx, 5
xor ax, dx
and ax, 0x7fff
mov word [ebp - 0x1a6c], ax
movzx eax, word [ebp - 0x1a6c]
mov edx, dword [ebp - 0x410]
mov edx, dword [edx + 0xb6c]
mov ax, word [edx + eax*2]
mov dx, word [edi]
and dx, 0x7fff
movzx edx, dx
mov ecx, dword [ebp - 0x410]
mov ecx, dword [ecx + 0xb68]
mov word [ecx + edx*2], ax
movzx eax, word [ebp - 0x1a6c]
mov edx, dword [ebp - 0x410]
mov edx, dword [edx + 0xb6c]
mov cx, word [edi]
mov word [edx + eax*2], cx
dec word [ebp - 0x1a6e]
cmp word [ebp - 0x1a6e], 0
jne 0x4b0c69
xor eax, eax
mov dword [ebp - 0x1a80], eax
mov bx, 2
inc word [edi]
cmp byte [ebp - 0x1a7b], 0
je 0x4b0d84
push ebp
xor eax, eax
call fcn.004b0644
pop ecx
movzx eax, word [edi]
mov dword [ebp - 0x1104], eax
jmp 0x4b0d84
cmp dword [ebp - 0x1a80], 0
je 0x4b0d70
push ebp
movzx eax, word [edi]
mov edx, dword [ebp - 0x410]
mov edx, dword [edx + 0xb64]
movzx edx, byte [edx + eax - 1]
xor eax, eax
call fcn.004aeefc
pop ecx
test al, al
je 0x4b0d64
push ebp
xor eax, eax
call fcn.004b0644
pop ecx
movzx eax, word [edi]
mov dword [ebp - 0x1104], eax
inc word [edi]
dec word [ebp - 0x1a5a]
jmp 0x4b0d84
mov dword [ebp - 0x1a80], 1
inc word [edi]
dec word [ebp - 0x1a5a]
mov eax, dword [ebp - 0x410]
mov eax, dword [eax + 0x234]
movzx edx, word [edi]
cmp eax, edx
jl 0x4b0dae
mov eax, dword [ebp - 0x410]
mov eax, dword [eax + 0x234]
movzx edx, word [ebp - 0x1a5a]
cmp eax, edx
jge 0x4b0db2
xor eax, eax
jmp 0x4b0db4
mov al, 1
mov edx, 0x4b0e20
call fcn.0047e5b8
cmp word [ebp - 0x1a5a], 0x106
jae 0x4b0dd0
push ebp
call fcn.004affc8
pop ecx
cmp word [ebp - 0x1a5a], 0
jne 0x4b0afe
cmp dword [ebp - 0x1a80], 0
je 0x4b0e04
push ebp
movzx eax, word [edi]
mov edx, dword [ebp - 0x410]
mov edx, dword [edx + 0xb64]
movzx edx, byte [edx + eax - 1]
xor eax, eax
call fcn.004aeefc
pop ecx
push ebp
mov eax, 1
call fcn.004b0644
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret