Function at 0x4b0350
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov ecx, dword [ebp + 8]
push ebx
sar eax, 1
push esi
xor esi, esi
cmp edx, 4
lea ebx, [ecx + eax*4]
push edi
mov dword [ebp - 8], ecx
mov dword [ebp + 8], ebx
jl 0x4b037b
mov eax, edx
sar eax, 1
lea edi, [eax*4 + 0x4f8788]
jmp 0x4b0380
mov edi, 0x4f9790
lea ecx, [edi + 0x1000]
shl edx, 2
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x18], edx
nop
mov eax, esi
sar eax, 4
and eax, 0xf
movzx eax, byte [eax + 0x51436c]
mov ecx, esi
and ecx, 0xf
movzx edx, byte [ecx + 0x51436c]
shl edx, 4
or eax, edx
shl eax, 4
mov ecx, esi
sar ecx, 8
movzx edx, byte [ecx + 0x51436c]
mov ecx, dword [ebp + 0xc]
or eax, edx
mov edx, eax
xor edx, 0xfff
sar edx, cl
mov ecx, dword [ebp + 8]
inc esi
lea edx, [ecx + edx*4 - 4]
mov ecx, dword [ebp + 0xc]
sar eax, cl
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax*4]
mov ecx, dword [edx]
mov edx, dword [edx + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
add ecx, eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0x20], eax
sub eax, edx
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x1c], edx
cdq
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
mov eax, ecx
mov ecx, dword [ebp - 0x3c]
cdq
push edx
push eax
mov dword [ebp - 0x4c], edx
mov edx, dword [ebp - 0x40]
push ecx
push edx
mov dword [ebp - 0x50], eax
call fcn.004c4840
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x54], edx
cdq
mov ecx, eax
mov eax, dword [edi]
mov dword [ebp - 0x44], edx
cdq
mov dword [ebp - 0x34], edx
mov edx, dword [ebp - 0x44]
push edx
push ecx
mov dword [ebp - 0x48], ecx
mov ecx, dword [ebp - 0x34]
push ecx
push eax
mov dword [ebp - 0x38], eax
call fcn.004c4840
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x54]
add edx, eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 4], edx
mov edx, dword [ebp - 0x48]
push ecx
push edx
push eax
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.004c4840
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x5c], edx
mov edx, dword [ebp - 0x4c]
push edx
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x50]
push eax
push ecx
push edx
call fcn.004c4840
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x5c]
sub eax, edx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
add edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
add eax, ecx
mov ecx, dword [ebp - 0x24]
sub ecx, edx
mov edx, dword [ebp - 4]
sar ecx, 1
sar eax, 1
add edx, eax
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 8]
mov dword [ecx], edx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
add edx, ecx
mov ecx, dword [ebp - 8]
mov dword [ecx + 4], edx
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
sub eax, ecx
mov dword [ebx - 8], eax
mov eax, dword [ebp - 0x10]
sub eax, edx
sub ebx, 0x10
mov dword [ebx + 0xc], eax
mov edx, esi
sar edx, 4
and edx, 0xf
movzx eax, byte [edx + 0x51436c]
mov ecx, esi
and ecx, 0xf
movzx edx, byte [ecx + 0x51436c]
shl edx, 4
or eax, edx
shl eax, 4
mov ecx, esi
sar ecx, 8
movzx edx, byte [ecx + 0x51436c]
mov ecx, dword [ebp + 0xc]
or eax, edx
mov edx, eax
xor edx, 0xfff
sar edx, cl
mov ecx, dword [ebp + 8]
inc esi
lea edx, [ecx + edx*4 - 4]
mov ecx, dword [ebp + 0xc]
sar eax, cl
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax*4]
mov ecx, dword [edx]
mov edx, dword [edx + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
add ecx, eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0x20], eax
sub eax, edx
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x1c], edx
cdq
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
mov eax, ecx
mov ecx, dword [ebp - 0x3c]
cdq
push edx
push eax
mov dword [ebp - 0x4c], edx
mov edx, dword [ebp - 0x40]
push ecx
push edx
mov dword [ebp - 0x50], eax
call fcn.004c4840
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x64], edx
cdq
mov ecx, eax
mov eax, dword [edi]
mov dword [ebp - 0x44], edx
cdq
mov dword [ebp - 0x34], edx
mov edx, dword [ebp - 0x44]
push edx
push ecx
mov dword [ebp - 0x48], ecx
mov ecx, dword [ebp - 0x34]
push ecx
push eax
mov dword [ebp - 0x38], eax
call fcn.004c4840
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x64]
add edx, eax
mov eax, dword [ebp - 0x3c]
push ecx
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 4], edx
mov edx, dword [ebp - 0x48]
push edx
push eax
push ecx
call fcn.004c4840
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x6c], edx
mov edx, dword [ebp - 0x4c]
push edx
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x50]
push eax
push ecx
push edx
call fcn.004c4840
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x6c]
sub eax, edx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
add eax, ecx
mov ecx, dword [ebp - 0x24]
add edi, edx
sub ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 4]
sar ecx, 1
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 8]
sar eax, 1
add edx, eax
mov dword [ecx + 8], edx
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
add edx, ecx
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc], edx
sub eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [ebx], eax
mov eax, dword [ebp - 0x10]
sub eax, edx
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x2c]
add ecx, 0x10
cmp edi, eax
mov dword [ebp - 8], ecx
jb 0x4b0390
mov edx, esi
sar edx, 4
and edx, 0xf
movzx eax, byte [edx + 0x51436c]
mov ecx, esi
and ecx, 0xf
movzx edx, byte [ecx + 0x51436c]
shl edx, 4
or eax, edx
shl eax, 4
mov ecx, esi
sar ecx, 8
movzx edx, byte [ecx + 0x51436c]
mov ecx, dword [ebp + 0xc]
or eax, edx
mov edx, eax
xor edx, 0xfff
sar edx, cl
mov ecx, dword [ebp + 8]
inc esi
lea edx, [ecx + edx*4 - 4]
mov ecx, dword [ebp + 0xc]
sar eax, cl
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax*4]
mov ecx, dword [edx]
mov edx, dword [edx + 4]
mov dword [ebp - 0x28], eax
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
add eax, ecx
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x24], ecx
sub ecx, edx
mov dword [ebp - 0x28], edx
cdq
mov dword [ebp - 0xc], ecx
sub edi, dword [ebp - 0x18]
mov ecx, eax
mov eax, dword [edi]
mov dword [ebp - 0x44], edx
cdq
push edx
mov dword [ebp - 0x34], edx
mov edx, dword [ebp - 0x44]
push eax
push edx
push ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x38], eax
call fcn.004c4840
mov dword [ebp - 0x70], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x6c], edx
cdq
mov ecx, eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x3c], edx
cdq
push edx
push eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x3c]
push eax
push ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x4c], edx
call fcn.004c4840
mov ecx, dword [ebp - 0x6c]
add edx, ecx
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 4], edx
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x38]
push edx
push eax
push ecx
mov edx, dword [ebp - 0x50]
push edx
call fcn.004c4840
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x64], edx
mov edx, dword [ebp - 0x3c]
push ecx
push edx
push eax
call fcn.004c4840
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x64]
sub eax, edx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
lea eax, [ecx + edx]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
sub ecx, edx
sar ecx, 1
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 4]
sar eax, 1
lea edx, [eax + ecx]
mov ecx, dword [ebp - 8]
mov dword [ecx], edx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
add edx, ecx
mov ecx, dword [ebp - 8]
mov dword [ecx + 4], edx
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
sub eax, ecx
mov dword [ebx - 8], eax
mov eax, dword [ebp - 0x10]
sub eax, edx
sub ebx, 0x10
mov dword [ebx + 0xc], eax
mov edx, esi
sar edx, 4
and edx, 0xf
movzx eax, byte [edx + 0x51436c]
mov ecx, esi
and ecx, 0xf
movzx edx, byte [ecx + 0x51436c]
shl edx, 4
or eax, edx
mov ecx, esi
sar ecx, 8
movzx edx, byte [ecx + 0x51436c]
mov ecx, dword [ebp + 0xc]
shl eax, 4
or eax, edx
mov edx, eax
xor edx, 0xfff
sar edx, cl
mov ecx, dword [ebp + 8]
inc esi
lea edx, [ecx + edx*4 - 4]
mov ecx, dword [ebp + 0xc]
sar eax, cl
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax*4]
mov ecx, dword [edx]
mov edx, dword [edx + 4]
mov dword [ebp - 0x28], eax
mov eax, dword [eax]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
add eax, ecx
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edx
sub ecx, edx
cdq
mov dword [ebp - 0xc], ecx
sub edi, dword [ebp - 0x18]
mov ecx, eax
mov eax, dword [edi]
mov dword [ebp - 0x44], edx
cdq
push edx
mov dword [ebp - 0x34], edx
mov edx, dword [ebp - 0x44]
push eax
push edx
push ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x38], eax
call fcn.004c4840
mov dword [ebp - 0x60], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x5c], edx
cdq
mov ecx, eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x3c], edx
cdq
push edx
push eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x3c]
push eax
push ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x4c], edx
call fcn.004c4840
mov ecx, dword [ebp - 0x5c]
add edx, ecx
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 4], edx
mov edx, dword [ebp - 0x34]
push edx
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x38]
push eax
push ecx
push edx
call fcn.004c4840
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x54], edx
mov edx, dword [ebp - 0x3c]
push ecx
push edx
push eax
call fcn.004c4840
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x54]
sub eax, edx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
lea eax, [ecx + edx]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
sub ecx, edx
sar ecx, 1
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 4]
sar eax, 1
lea edx, [eax + ecx]
mov ecx, dword [ebp - 8]
mov dword [ecx + 8], edx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
add edx, ecx
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc], edx
sub eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [ebx], eax
mov eax, dword [ebp - 0x10]
add ecx, 0x10
sub eax, edx
cmp ecx, ebx
mov dword [ebx + 4], eax
mov dword [ebp - 8], ecx
jb 0x4b0638
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret