Function at 0x42b060
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.004ad470
mov ecx, dword [ebx + 4]
add esp, 0xc
test ecx, ecx
jle 0x42b0a0
mov eax, dword [ebx + 8]
cmp dword [eax], 0
jle 0x42b098
add edi, 1
add eax, 4
sub ecx, 1
jne 0x42b090
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.0042aed0
mov dword [ebp - 0x10], eax
lea eax, [edi*4]
add esp, 0xc
mov dword [ebp - 0x14], eax
call fcn.004ba270
mov edx, dword [ebp - 0x10]
test edx, edx
je 0x4de9d5
test edi, edi
mov eax, esp
mov dword [ebp - 0xc], eax
jle 0x42b16a
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 0x42b0f5
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.004c0350
mov eax, dword [ebp - 0x14]
add esp, 0x10
call fcn.004ba270
mov ecx, dword [ebp - 0x14]
mov edi, esp
push ecx
call fcn.004ab14e
mov edx, dword [ebp - 8]
add esp, 4
test edx, edx
mov dword [esi + 0x14], eax
jle 0x42b1ea
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 0x42b1a0
mov edx, dword [ebp - 8]
test edx, edx
jle 0x42b1ea
mov ecx, dword [ebp - 0x10]
sub ecx, edi
mov eax, edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0xc], edx
jmp 0x42b1d6
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 0x42b1d0
mov ebx, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
push edx
call fcn.004ab686
mov eax, dword [ebp - 8]
add esp, 4
push edi
push eax
push ebx
call fcn.0042b590
mov ecx, dword [ebp - 0x14]
add esp, 0xc
push ecx
mov dword [esi + 0x10], eax
call fcn.004ab14e
xor ecx, ecx
add esp, 4
mov dword [esi + 0x18], eax
cmp dword [ebx + 4], ecx
jle 0x42b245
mov dword [ebp - 8], ecx
xor eax, eax
mov edx, dword [ebx + 8]
cmp dword [edx + eax*4], 0
jle 0x42b23d
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 0x42b222
push ecx
call fcn.004ab14e
xor ecx, ecx
add esp, 4
mov dword [esi + 0x1c], eax
cmp dword [ebx + 4], ecx
mov dword [ebp - 8], ecx
jle 0x42b28c
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 0x42b281
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 0x42b260
mov eax, dword [esi + 8]
xor ecx, ecx
test eax, eax
je 0x42b29c
add ecx, 1
shr eax, 1
jne 0x42b295
lea eax, [ecx - 4]
cmp eax, 5
mov dword [esi + 0x24], eax
jge 0x42b2ae
mov dword [esi + 0x24], 5
cmp dword [esi + 0x24], 8
jg 0x4de9e2
mov ecx, dword [esi + 0x24]
mov ebx, 1
shl ebx, cl
push 4
push ebx
mov dword [ebp - 0x1c], ebx
call fcn.004ab832
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 0x42b30a
nop
mov ecx, dword [esi + 0x1c]
lea eax, [ecx + edx]
movsx ecx, byte [eax]
cmp dword [esi + 0x28], ecx
jl 0x42b580
movsx ebx, byte [eax]
cmp ebx, dword [esi + 0x24]
jle 0x42b3cf
add edx, 1
cmp edx, edi
jl 0x42b2e0
mov ebx, dword [ebp - 0x1c]
xor edx, edx
cmp ebx, edx
jle 0x42b3b9
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 0x42b48d
mov edi, dword [ebp - 0x10]
add edi, 1
cmp edi, dword [ebp - 0x1c]
mov dword [ebp - 0x10], edi
jl 0x42b330
xor eax, eax
lea esp, [ebp - 0x34]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a9c82
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 0x42b485
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 0x42b450
mov edi, dword [ebp - 8]
jmp 0x42b2fe
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
lea eax, [ebx + 1]
cmp eax, ecx
jge 0x42b4c8
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 0x42b4c8
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 0x42b4b0
mov eax, dword [ebp - 0x18]
cmp eax, ecx
jge 0x42b4f4
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 0x42b4f1
mov ebx, dword [ebp - 0xc]
add eax, 1
add ebx, 4
cmp eax, ecx
mov dword [ebp - 0xc], ebx
jl 0x42b4d8
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 0x14]
sub ecx, eax
cmp edi, 0x7fff
ja 0x4de9ee
cmp ecx, 0x7fff
ja 0x4de9f8
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 0x42b3a7
mov dword [esi + 0x28], ecx
jmp 0x42b2f2
call fcn.00412110
or eax, 0xffffffff
jmp 0x42b3bb
mov dword [esi + 0x24], 8
jmp 0x42b2b8
mov edi, 0x7fff
jmp 0x42b505
mov ecx, 0x7fff
jmp 0x42b511