Function at 0x4963f0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x2c
call fcn.00508bc0
mov eax, dword [0x5b1fe4]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
push ebx
mov ebx, dword [esp + 0x38]
push esi
mov esi, dword [esp + 0x38]
mov edx, dword [esi + 0x2c]
mov dword [esp + 0x14], eax
mov al, byte [esi]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0x28]
push edi
mov byte [esp + 0xf], al
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], edx
test al, 0x40
jne 0x49644f
push edx
lea edx, [esi + 0x10]
push edx
push esi
call ecx
mov al, byte [esp + 0x1b]
add esp, 0xc
add dword [esi + 0x20], 1
adc dword [esi + 0x24], 0
movzx eax, al
and eax, 7
mov edx, 0xf
sub edx, eax
mov byte [esi], al
mov eax, edx
xor ecx, ecx
mov dword [esp + 0x14], edx
cmp eax, 0xf
jae 0x496483
jmp 0x496470
movzx edi, byte [esi + eax]
or ecx, edi
mov byte [esi + eax], 0
inc eax
shl ecx, 8
cmp eax, 0xf
jb 0x496470
movzx eax, byte [esi + 0xf]
mov edi, dword [esp + 0x48]
or ecx, eax
mov byte [esi + 0xf], 1
cmp ecx, edi
je 0x4964aa
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0050804f
add esp, 0x2c
ret
lea ecx, [edi + 0xf]
or ecx, 8
shr ecx, 3
add dword [esi + 0x20], ecx
adc dword [esi + 0x24], 0
cmp dword [esi + 0x24], 0x20000000
jb 0x4964e2
ja 0x4964cb
cmp dword [esi + 0x20], 0
jbe 0x4964e2
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0050804f
add esp, 0x2c
ret
push ebp
mov ebp, edi
shr ebp, 4
test ebp, ebp
je 0x496521
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
lea edx, [esi + 0x10]
push edx
push esi
push eax
push ebp
push ecx
push ebx
call dword [esp + 0x3c]
shl ebp, 4
mov edx, ebp
add dword [esp + 0x34], edx
add esp, 0x18
add ebx, edx
sub edi, edx
je 0x496585
shr edx, 4
mov ecx, esi
call fcn.004963b0
mov edx, dword [esp + 0x18]
test edi, edi
je 0x496589
xor eax, eax
test edi, edi
je 0x49653c
jmp 0x496530
mov dl, byte [ebx + eax]
xor byte [esi + eax + 0x10], dl
inc eax
cmp eax, edi
jb 0x496530
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
lea eax, [esi + 0x10]
push ecx
push eax
push eax
call ebp
mov edx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push esi
call ebp
add esp, 0x18
xor ecx, ecx
test edi, edi
je 0x496585
lea edx, [esp + 0x28]
mov ebp, ebx
sub ebp, edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x28]
sub edx, eax
lea eax, [esp + ecx + 0x28]
mov bl, byte [eax + ebp]
xor bl, byte [eax]
inc ecx
mov byte [edx + eax], bl
cmp ecx, edi
jb 0x496574
mov edx, dword [esp + 0x18]
pop ebp
cmp edx, 0x10
jae 0x4965a5
mov ecx, 0x10
sub ecx, edx
push ecx
lea eax, [esi + edx]
push 0
push eax
call fcn.005205c0
add esp, 0xc
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x28]
push eax
push esi
call dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
xor dword [esi + 0x10], ecx
mov edx, dword [esp + 0x34]
xor dword [esi + 0x14], edx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
xor dword [esi + 0x1c], ecx
xor dword [esi + 0x18], eax
mov dl, byte [esp + 0x1b]
mov ecx, dword [esp + 0x40]
add esp, 0xc
pop edi
mov byte [esi], dl
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0050804f
add esp, 0x2c
ret