Function at 0x8351b8c3
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x64
xor eax, eax
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0xc]
add eax, 0x1f
add ebx, 0x1f
shr eax, 5
shr ebx, 5
push esi
push edi
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], ebx
cmp eax, ebx
jbe 0x8351b8f7
mov ebx, eax
push dword [ebp + 0x20]
mov edi, ebx
imul edi, edi, 5
xor eax, eax
add edi, 4
cmp dword [ebp + 0x18], eax
mov dword [ebp - 0x10], 1
setne al
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x54]
push eax
call fcn.8351d22c
push dword [ebp + 0x20]
mov esi, eax
neg esi
sbb esi, esi
push 0
neg esi
push edi
mov dword [ebp + 0xc], esi
call fcn.83515201
mov dword [ebp - 8], eax
test eax, eax
jne 0x8351b942
xor esi, esi
mov dword [ebp + 0xc], esi
test esi, esi
je 0x8351b96f
test ebx, ebx
jne 0x8351b95c
push dword [ebp + 0x20]
xor esi, esi
push esi
push 0x11
mov dword [ebp + 0xc], esi
call fcn.834f1760
jmp 0x8351b96f
mov eax, edi
shl eax, 2
push eax
push 0
push dword [ebp - 8]
call fcn.834ef434
add esp, 0xc
mov eax, dword [ebp - 8]
mov edi, ebx
shl edi, 2
add eax, edi
mov dword [ebp - 0x18], eax
add eax, edi
mov dword [ebp - 0x34], edi
add edi, eax
lea ebx, [edi + ebx*4 + 8]
add edi, 8
add ebx, 8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], edi
mov dword [ebp + 0x14], ebx
test esi, esi
je 0x8351bd7d
mov eax, dword [ebp - 0x18]
mov dword [eax], 1
mov eax, dword [ebp - 0x24]
shl eax, 2
push eax
push dword [ebp + 8]
push edi
call fcn.834ef428
mov eax, dword [ebp - 4]
shl eax, 2
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0x38], eax
push ebx
call fcn.834ef428
mov ebx, dword [ebp - 0xc]
add esp, 0x18
xor ecx, ecx
mov esi, ebx
mov dword [ebp - 0x1c], esi
cmp ebx, ecx
je 0x8351b9ee
lea eax, [edi + ebx*4 - 4]
cmp dword [eax], ecx
jne 0x8351b9ee
dec esi
sub eax, 4
mov dword [ebp - 0x1c], esi
cmp esi, ecx
jne 0x8351b9df
mov dword [ebp + 8], ebx
cmp ebx, ecx
je 0x8351ba0b
mov eax, dword [ebp + 0x14]
lea ebx, [eax + ebx*4 - 4]
cmp dword [ebx], ecx
jne 0x8351ba0b
dec dword [ebp + 8]
sub ebx, 4
cmp dword [ebp + 8], ecx
jne 0x8351b9fc
cmp esi, dword [ebp + 8]
jbe 0x8351ba17
mov ebx, esi
mov dword [ebp - 0xc], esi
jmp 0x8351ba1d
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
cmp esi, ecx
je 0x8351bce0
cmp dword [ebp + 8], ecx
je 0x8351bce0
mov eax, dword [ebp - 0x1c]
push dword [edi + eax*4 - 4]
call fcn.83513339
mov ecx, dword [ebp + 8]
mov esi, eax
mov eax, dword [ebp - 0x1c]
dec eax
shl eax, 5
add esi, eax
mov eax, dword [ebp + 0x14]
push dword [eax + ecx*4 - 4]
call fcn.83513339
mov ecx, dword [ebp + 8]
dec ecx
shl ecx, 5
add eax, ecx
lea ecx, [eax + 0x10]
mov dword [ebp - 0x2c], eax
cmp esi, ecx
jae 0x8351bbf7
lea ecx, [esi + 0x10]
cmp eax, ecx
jae 0x8351bbf7
mov dword [ebp - 0x1c], esi
cmp esi, eax
ja 0x8351ba80
mov dword [ebp - 0x1c], eax
mov edx, dword [edi + ebx*4 - 8]
mov edi, dword [edi + ebx*4 - 4]
mov eax, ebx
xor ecx, ecx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], ecx
shl eax, 5
sub eax, dword [ebp - 0x1c]
mov ebx, edx
shr ebx, 1
mov ecx, eax
shl edi, cl
mov dword [ebp + 8], 0x1f
sub dword [ebp + 8], eax
mov ecx, dword [ebp + 8]
shr ebx, cl
mov ecx, dword [ebp - 0x28]
or edi, ebx
mov ebx, dword [ebp - 0xc]
mov ebx, dword [ecx + ebx*4 - 0xc]
mov ecx, dword [ebp + 8]
shr ebx, 1
shr ebx, cl
mov ecx, eax
shl edx, cl
mov ecx, dword [ebp - 0xc]
push edi
or ebx, edx
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp + 0x14]
mov edx, dword [ebx + ecx*4 - 8]
mov ebx, dword [ebx + ecx*4 - 4]
mov ecx, eax
shl ebx, cl
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x24], ebx
mov ebx, edx
shr ebx, 1
shr ebx, cl
mov ecx, dword [ebp - 0x24]
or ecx, ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ecx + ebx*4 - 0xc]
mov ecx, dword [ebp + 8]
shr ebx, 1
shr ebx, cl
mov ecx, eax
shl edx, cl
or ebx, edx
call fcn.83513339
sub esi, dword [ebp - 0x1c]
add esi, 0x20
cmp eax, esi
jne 0x8351bb33
push dword [ebp - 0x24]
call fcn.83513339
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [ebp - 0x1c]
add ecx, 0x20
cmp eax, ecx
je 0x8351bb43
push dword [ebp + 0x20]
and dword [ebp + 0xc], 0
push 0
push 5
call fcn.834f1760
xor esi, esi
cmp dword [ebp + 0xc], esi
je 0x8351bb5f
push dword [ebp + 0x20]
lea eax, [ebp - 0x64]
push eax
push ebx
push dword [ebp - 0x24]
push dword [ebp - 0x30]
push edi
call dword [ebp - 0x50]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x5c]
or eax, dword [ebp - 0x60]
jne 0x8351bb75
push dword [ebp + 0x20]
mov dword [ebp + 0xc], esi
push esi
push 5
call fcn.834f1760
cmp dword [ebp + 0xc], esi
je 0x8351bd7d
cmp dword [ebp - 0x20], esi
jne 0x8351bb86
mov dword [ebp - 0x10], esi
push dword [ebp + 0x20]
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x48]
push dword [ebp - 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x14]
lea eax, [ebp - 0x64]
push edi
push eax
call dword [ebp - 0x4c]
test eax, eax
je 0x8351bcd7
mov eax, dword [ebp - 0x44]
or eax, dword [ebp - 0x48]
mov dword [ebp + 0xc], 1
jne 0x8351bd6d
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
or eax, ecx
je 0x8351b9d0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 4]
jae 0x8351bd6d
mov edx, dword [ebp - 0x3c]
mov dword [esi + eax*4], ecx
mov ecx, dword [ebp - 0x14]
mov dword [ecx + eax*4], edx
inc eax
mov dword [ebp - 0x10], eax
jmp 0x8351b9d0
cmp esi, eax
jbe 0x8351bc13
sub esi, eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp + 8], esi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x14]
mov esi, edi
jmp 0x8351bc29
sub eax, esi
mov esi, dword [ebp + 0x14]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, edi
cmp dword [ebp + 0xc], 0
je 0x8351bc4c
push dword [ebp + 0x20]
push ebx
push dword [ebp - 8]
push dword [ebp + 8]
push eax
call fcn.835139fc
test eax, eax
je 0x8351bc4c
mov dword [ebp + 0xc], 1
jmp 0x8351bc50
and dword [ebp + 0xc], 0
test ebx, ebx
je 0x8351bc68
mov ecx, dword [ebp - 8]
mov eax, esi
sub ecx, esi
mov edx, ebx
mov esi, dword [ecx + eax]
xor dword [eax], esi
add eax, 4
dec edx
jne 0x8351bc5d
cmp dword [ebp - 0x20], 0
je 0x8351bcc8
cmp dword [ebp + 0xc], 0
je 0x8351bc95
push dword [ebp + 0x20]
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
push dword [ebp - 0x24]
call fcn.835139fc
test eax, eax
je 0x8351bc95
mov dword [ebp + 0xc], 1
jmp 0x8351bc99
and dword [ebp + 0xc], 0
cmp dword [ebp - 4], 0
je 0x8351bcc8
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
mov esi, dword [ebp - 4]
xor ecx, ecx
inc ecx
sub edx, eax
mov dword [ebp + 8], esi
mov esi, dword [edx + eax]
xor dword [eax], esi
je 0x8351bcbf
cmp dword [ebp - 0x10], ecx
ja 0x8351bcbf
mov dword [ebp - 0x10], ecx
add eax, 4
inc ecx
dec dword [ebp + 8]
jne 0x8351bcb0
cmp dword [ebp + 0xc], 0
jne 0x8351b9d0
jmp 0x8351bd7d
and dword [ebp + 0xc], 0
jmp 0x8351bd7d
cmp dword [ebp + 0xc], ecx
je 0x8351bd7d
cmp dword [ebp + 0x1c], 0
je 0x8351bd05
test esi, esi
jne 0x8351bcf6
mov edi, dword [ebp + 0x14]
push dword [ebp - 0x34]
push edi
push dword [ebp + 0x1c]
call fcn.834ef428
add esp, 0xc
cmp dword [ebp - 0x20], 0
je 0x8351bd7d
test esi, esi
mov esi, dword [ebp - 0x14]
je 0x8351bd15
mov esi, dword [ebp - 0x18]
push dword [ebp + 0x20]
push dword [ebp - 4]
push esi
call fcn.835134bd
push dword [ebp + 0x20]
mov edi, dword [ebp + 0x10]
push dword [ebp - 4]
mov ebx, eax
push edi
call fcn.835134bd
cmp ebx, eax
jne 0x8351bd5a
cmp dword [ebp - 4], 0
je 0x8351bd7d
mov edx, dword [ebp + 0x18]
mov ecx, esi
mov esi, dword [ebp - 4]
sub ecx, edi
mov eax, edi
sub edx, edi
mov edi, dword [ecx + eax]
xor edi, dword [eax]
mov dword [edx + eax], edi
add eax, 4
dec esi
jne 0x8351bd4a
jmp 0x8351bd7d
jae 0x8351bd6d
push dword [ebp - 0x38]
push esi
push dword [ebp + 0x18]
call fcn.834ef428
add esp, 0xc
jmp 0x8351bd7d
push dword [ebp + 0x20]
and dword [ebp + 0xc], 0
push 0
push 5
call fcn.834f1760
cmp dword [ebp - 8], 0
pop edi
pop esi
pop ebx
je 0x8351bd93
push dword [ebp + 0x20]
push 0
push dword [ebp - 8]
call fcn.834f172f
mov eax, dword [ebp + 0xc]
leave
ret 0x1c