Function at 0x42bc60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5920a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x2c
xor edi, edi
mov esi, ecx
push edi
push esi
call fcn.004ae070
mov ecx, dword [ebx + 4]
add esp, 0xc
test ecx, ecx
jle 0x42bca0
mov eax, dword [ebx + 8]
cmp dword [eax], 0
jle 0x42bc98
add edi, 1
add eax, 4
sub ecx, 1
jne 0x42bc90
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov dword [esi + 8], edi
mov ecx, dword [ebx]
mov dword [esi], ecx
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 8]
push edi
push edx
push eax
mov dword [ebp - 8], edi
call fcn.0042bad0
mov dword [ebp - 0x10], eax
lea eax, [edi*4]
add esp, 0xc
mov dword [ebp - 0x14], eax
call fcn.004bae70
mov edx, dword [ebp - 0x10]
test edx, edx
je 0x4df5d5
test edi, edi
mov eax, esp
mov dword [ebp - 0xc], eax
jle 0x42bd6a
mov ecx, dword [ebp - 8]
mov edi, eax
sub edi, edx
mov dword [ebp - 0x18], ecx
mov ecx, dword [edx]
rol ecx, 0x10
mov eax, ecx
mov ebx, ecx
shr eax, 8
shl ecx, 8
shl ebx, 8
xor eax, ebx
and eax, 0xff00ff
xor eax, ecx
mov ecx, eax
shr ecx, 4
mov ebx, eax
shl ebx, 4
xor ecx, ebx
and ecx, 0xf0f0f0f
shl eax, 4
xor ecx, eax
mov eax, ecx
lea ebx, [ecx*4]
shr eax, 2
add ecx, ecx
xor eax, ebx
add ecx, ecx
and eax, 0x33333333
xor eax, ecx
mov ecx, eax
shr ecx, 1
lea ebx, [eax + eax]
xor ecx, ebx
and ecx, 0x55555555
add eax, eax
xor ecx, eax
mov dword [edx], ecx
mov dword [edi + edx], edx
add edx, 4
sub dword [ebp - 0x18], 1
jne 0x42bcf5
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
push 0x4a9810
push 4
push edi
push eax
call fcn.004c0f50
mov eax, dword [ebp - 0x14]
add esp, 0x10
call fcn.004bae70
mov ecx, dword [ebp - 0x14]
mov edi, esp
push ecx
call fcn.004abd4e
mov edx, dword [ebp - 8]
add esp, 4
test edx, edx
mov dword [esi + 0x14], eax
jle 0x42bdea
xor eax, eax
lea ecx, [ecx]
mov edx, dword [ebp - 0xc]
mov ecx, dword [edx + eax*4]
sub ecx, dword [ebp - 0x10]
sar ecx, 2
mov dword [edi + ecx*4], eax
add eax, 1
cmp eax, dword [ebp - 8]
jl 0x42bda0
mov edx, dword [ebp - 8]
test edx, edx
jle 0x42bdea
mov ecx, dword [ebp - 0x10]
sub ecx, edi
mov eax, edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0xc], edx
jmp 0x42bdd6
mov ecx, dword [ebp - 0x1c]
add eax, 4
sub dword [ebp - 0xc], 1
mov edx, dword [eax]
mov ebx, dword [esi + 0x14]
mov ecx, dword [ecx + eax]
mov dword [ebx + edx*4], ecx
jne 0x42bdd0
mov ebx, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
push edx
call fcn.004ac286
mov eax, dword [ebp - 8]
add esp, 4
push edi
push eax
push ebx
call fcn.0042c190
mov ecx, dword [ebp - 0x14]
add esp, 0xc
push ecx
mov dword [esi + 0x10], eax
call fcn.004abd4e
xor ecx, ecx
add esp, 4
mov dword [esi + 0x18], eax
cmp dword [ebx + 4], ecx
jle 0x42be45
mov dword [ebp - 8], ecx
xor eax, eax
mov edx, dword [ebx + 8]
cmp dword [edx + eax*4], 0
jle 0x42be3d
mov ecx, dword [edi + ecx*4]
mov edx, dword [esi + 0x18]
mov dword [edx + ecx*4], eax
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
add eax, 1
cmp eax, dword [ebx + 4]
jl 0x42be22
push ecx
call fcn.004abd4e
xor ecx, ecx
add esp, 4
mov dword [esi + 0x1c], eax
cmp dword [ebx + 4], ecx
mov dword [ebp - 8], ecx
jle 0x42be8c
mov dword [ebp - 0x10], ecx
mov edi, edi
mov eax, dword [ebx + 8]
cmp dword [eax + ecx*4], 0
lea eax, [eax + ecx*4]
jle 0x42be81
mov ecx, dword [ebp - 8]
mov edx, dword [edi + ecx*4]
mov ecx, dword [esi + 0x1c]
mov al, byte [eax]
add dword [ebp - 8], 1
mov byte [edx + ecx], al
mov ecx, dword [ebp - 0x10]
add ecx, 1
cmp ecx, dword [ebx + 4]
mov dword [ebp - 0x10], ecx
jl 0x42be60
mov eax, dword [esi + 8]
xor ecx, ecx
test eax, eax
je 0x42be9c
add ecx, 1
shr eax, 1
jne 0x42be95
lea eax, [ecx - 4]
cmp eax, 5
mov dword [esi + 0x24], eax
jge 0x42beae
mov dword [esi + 0x24], 5
cmp dword [esi + 0x24], 8
jg 0x4df5e2
mov ecx, dword [esi + 0x24]
mov ebx, 1
shl ebx, cl
push 4
push ebx
mov dword [ebp - 0x1c], ebx
call fcn.004ac432
mov edi, dword [ebp - 8]
xor edx, edx
add esp, 8
cmp edi, edx
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], edx
jle 0x42bf0a
nop
mov ecx, dword [esi + 0x1c]
lea eax, [ecx + edx]
movsx ecx, byte [eax]
cmp dword [esi + 0x28], ecx
jl 0x42c180
movsx ebx, byte [eax]
cmp ebx, dword [esi + 0x24]
jle 0x42bfcf
add edx, 1
cmp edx, edi
jl 0x42bee0
mov ebx, dword [ebp - 0x1c]
xor edx, edx
cmp ebx, edx
jle 0x42bfb9
mov ecx, 0x1f
sub ecx, dword [esi + 0x24]
mov eax, 0xfffffffe
shl eax, cl
xor edi, edi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x10], edi
nop
mov ecx, 0x20
sub ecx, dword [esi + 0x24]
shl edi, cl
mov edx, edi
rol edx, 0x10
mov eax, edx
shr eax, 8
mov ecx, edx
shl ecx, 8
xor eax, ecx
and eax, 0xff00ff
mov ecx, edx
shl ecx, 8
xor eax, ecx
mov ecx, eax
shr ecx, 4
mov ebx, eax
shl eax, 4
shl ebx, 4
xor ecx, ebx
and ecx, 0xf0f0f0f
xor ecx, eax
mov eax, ecx
lea ebx, [ecx*4]
shr eax, 2
add ecx, ecx
xor eax, ebx
add ecx, ecx
and eax, 0x33333333
xor eax, ecx
mov ecx, eax
shr ecx, 1
lea ebx, [eax + eax]
xor ecx, ebx
add eax, eax
and ecx, 0x55555555
xor ecx, eax
mov eax, dword [esi + 0x20]
cmp dword [eax + ecx*4], 0
je 0x42c08d
mov edi, dword [ebp - 0x10]
add edi, 1
cmp edi, dword [ebp - 0x1c]
mov dword [ebp - 0x10], edi
jl 0x42bf30
xor eax, eax
lea esp, [ebp - 0x34]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aa882
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14]
mov edi, dword [eax + edx*4]
rol edi, 0x10
mov eax, edi
mov ecx, edi
shr eax, 8
shl ecx, 8
xor eax, ecx
shl edi, 8
and eax, 0xff00ff
xor eax, edi
mov edi, eax
mov ecx, eax
shr edi, 4
shl ecx, 4
xor edi, ecx
shl eax, 4
and edi, 0xf0f0f0f
xor edi, eax
mov eax, edi
lea ecx, [edi*4]
shr eax, 2
xor eax, ecx
lea ecx, [edi*4]
and eax, 0x33333333
xor eax, ecx
mov edi, eax
shr edi, 1
lea ecx, [eax + eax]
xor edi, ecx
mov ecx, dword [esi + 0x24]
sub ecx, ebx
mov ebx, 1
shl ebx, cl
test ebx, ebx
jle 0x42c085
and edi, 0x55555555
add eax, eax
xor edi, eax
xor eax, eax
mov dword [ebp - 0xc], eax
lea esp, [esp]
mov ecx, dword [esi + 0x1c]
mov cl, byte [edx + ecx]
mov ebx, eax
shl ebx, cl
mov ecx, dword [esi + 0x20]
lea eax, [edx + 1]
or ebx, edi
mov dword [ecx + ebx*4], eax
mov ecx, dword [esi + 0x1c]
movzx ebx, byte [edx + ecx]
mov ecx, dword [esi + 0x24]
mov eax, dword [ebp - 0xc]
sub ecx, ebx
mov ebx, 1
shl ebx, cl
add eax, 1
mov dword [ebp - 0xc], eax
cmp eax, ebx
jl 0x42c050
mov edi, dword [ebp - 8]
jmp 0x42befe
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
lea eax, [ebx + 1]
cmp eax, ecx
jge 0x42c0c8
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x14]
lea ebx, [eax + ebx*4 + 4]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], ebx
lea ebx, [ebx]
cmp dword [ebx], edi
ja 0x42c0c8
mov ebx, dword [ebp - 0xc]
add dword [ebp - 0x14], 1
add ebx, 4
add eax, 1
cmp eax, ecx
mov dword [ebp - 0xc], ebx
jl 0x42c0b0
mov eax, dword [ebp - 0x18]
cmp eax, ecx
jge 0x42c0f4
mov ebx, dword [esi + 0x14]
lea ebx, [ebx + eax*4]
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebx]
and ebx, dword [ebp - 0x24]
cmp edi, ebx
jb 0x42c0f1
mov ebx, dword [ebp - 0xc]
add eax, 1
add ebx, 4
cmp eax, ecx
mov dword [ebp - 0xc], ebx
jl 0x42c0d8
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x14]
sub ecx, eax
cmp edi, 0x7fff
ja 0x4df5ee
cmp ecx, 0x7fff
ja 0x4df5f8
mov eax, edx
shr eax, 8
mov ebx, edx
shl edx, 8
shl ebx, 8
xor eax, ebx
and eax, 0xff00ff
xor eax, edx
mov edx, eax
mov ebx, eax
shr edx, 4
shl eax, 4
shl ebx, 4
xor edx, ebx
and edx, 0xf0f0f0f
xor edx, eax
mov eax, edx
shr eax, 2
lea ebx, [edx*4]
xor eax, ebx
add edx, edx
and eax, 0x33333333
or edi, 0xffff0000
add edx, edx
xor eax, edx
shl edi, 0xf
or edi, ecx
mov ecx, eax
shr ecx, 1
lea edx, [eax + eax]
xor ecx, edx
add eax, eax
and ecx, 0x55555555
xor ecx, eax
mov eax, dword [esi + 0x20]
mov dword [eax + ecx*4], edi
jmp 0x42bfa7
mov dword [esi + 0x28], ecx
jmp 0x42bef2
call fcn.00412d10
or eax, 0xffffffff
jmp 0x42bfbb
mov dword [esi + 0x24], 8
jmp 0x42beb8
mov edi, 0x7fff
jmp 0x42c105
mov ecx, 0x7fff
jmp 0x42c111