Function at 0x10013510
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x10206f54]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x5c], 0
push esi
push edi
mov edi, edx
mov dword [ebp - 0x78], ebx
mov esi, dword [ebx + 0x85b8]
mov edx, dword [ebx + 0x8614]
mov ecx, edx
shl ecx, 4
mov ebx, dword [ebx + 0x6c]
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x58], eax
mov eax, dword [esi + 0x1c]
inc eax
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x60], eax
mov eax, dword [esi + 0x24]
sub eax, ecx
mov dword [ebp - 0x54], ebx
add eax, 0x11
mov ecx, 0x10
cmp eax, ecx
cmovb ecx, eax
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebp - 0x78]
mov al, byte [ecx + 0x808c]
mov byte [ebp - 0x45], al
mov al, byte [ecx + 0x808d]
mov byte [ebp - 0x81], al
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x8c], eax
lea eax, [edx - 1]
shl eax, 4
xor edx, edx
div dword [ebp - 0x58]
mov ecx, dword [esi + 0x2c]
mov esi, dword [ebp - 0x58]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x88], eax
cmp esi, 1
jbe 0x100135c1
mov eax, 1
xor ecx, ecx
rol eax, 1
inc ecx
cmp eax, esi
jb 0x100135b7
mov dword [ebp - 0x5c], ecx
xor edx, edx
test ebx, ebx
je 0x100135e6
mov esi, dword [ebp - 0x78]
add esi, 0x86dc
mov eax, dword [esi]
lea esi, [esi + 4]
mov ecx, edx
inc edx
and ecx, 0xf
mov dword [ebp + ecx*4 - 0x44], eax
cmp edx, ebx
jb 0x100135d0
mov esi, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x78]
cmp dword [ecx + 0x85c0], 0
je 0x10013604
mov eax, dword [ecx + 0x87dc]
mov dword [ebp - 0x40], eax
mov eax, dword [ecx + 0x87e0]
mov dword [ebp - 0x3c], eax
mov eax, dword [ecx + 0x10]
dec eax
cmp eax, 6
ja case.default.0x10013611
jmp dword [eax*4 + 0x10013e3c]
mov ecx, dword [ebp + 8]
mov eax, 0x80
shl eax, cl
cdq
idiv edi
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x50], eax
cmp eax, dword [ebp - 0x64]
jae case.default.0x10013611
mov ecx, esi
mov dword [ebp - 0x6c], 0xff
mov esi, dword [ebp + 0x10]
mov edx, eax
shl ecx, 4
shl edx, 4
add edx, 0x101f08e0
mov dword [ebp - 0x70], ecx
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x4c], edx
nop word [eax + eax]
mov ebx, dword [ebp - 0x88]
mov edi, esi
shr eax, cl
mov dword [ebp - 0x7c], edi
mov eax, dword [ebx + eax*4]
mov ebx, dword [ebp - 0x54]
mov dword [ebp - 0x68], eax
cmp esi, dword [ebp - 0x60]
jae 0x100136fc
nop
mov edx, dword [ebp - 0x8c]
mov eax, edi
shr eax, cl
mov esi, dword [edx + eax*4]
xor edx, edx
mov eax, dword [ebp - 0x78]
add esi, dword [ebp - 0x68]
add esi, dword [eax + 0x80a8]
test ebx, ebx
je 0x100136eb
mov ecx, dword [ebp - 0x4c]
and edi, 0xf
mov eax, dword [ebp - 0x7c]
and eax, 0xfffffff0
shl eax, 4
movzx edi, byte [edi + ecx]
mov ecx, dword [ebp + 8]
add edi, eax
mov eax, edx
and eax, 0xf
mov eax, dword [ebp + eax*4 - 0x44]
mov eax, dword [eax + edi*4]
add eax, dword [ebp - 0x74]
imul eax, dword [ebp - 0x80]
sar eax, cl
test eax, eax
jns 0x100136d4
xor eax, eax
jmp 0x100136dd
cmp eax, 0xff
cmovg eax, dword [ebp - 0x6c]
mov byte [esi + edx], al
inc edx
cmp edx, ebx
jb 0x100136b7
mov edi, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x5c]
add edi, dword [ebp - 0x58]
mov dword [ebp - 0x7c], edi
cmp edi, dword [ebp - 0x60]
jb 0x10013680
mov edx, dword [ebp - 0x4c]
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp - 0x50]
add eax, dword [ebp - 0x58]
add edx, dword [ebp - 0x70]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
cmp eax, dword [ebp - 0x64]
jb 0x10013660
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a8b60
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov eax, 0x8000
shl eax, cl
cdq
idiv edi
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x54], ecx
cmp ecx, dword [ebp - 0x64]
jae case.default.0x10013611
movzx eax, byte [ebp - 0x45]
mov dword [ebp - 0x68], eax
mov eax, esi
mov esi, ecx
shl eax, 4
shl esi, 4
add esi, 0x101f08e0
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x4c], esi
mov edx, dword [ebp - 0x88]
mov edi, eax
mov eax, ecx
mov dword [ebp - 0x50], edi
mov ecx, dword [ebp - 0x5c]
shr eax, cl
mov edx, dword [edx + eax*4]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x74], edx
cmp eax, dword [ebp - 0x60]
jae 0x10013829
nop dword [eax + eax]
mov eax, edi
shr eax, cl
mov ecx, dword [ebp - 0x8c]
mov ecx, dword [ecx + eax*4]
mov eax, dword [ebp - 0x78]
add ecx, edx
xor edx, edx
mov eax, dword [eax + 0x80a8]
lea eax, [eax + ecx*2]
mov dword [ebp - 0x70], eax
test ebx, ebx
je 0x10013811
mov eax, edi
and eax, 0xf
movzx esi, byte [eax + esi]
mov eax, edi
mov edi, dword [ebp - 0x70]
and eax, 0xfffffff0
shl eax, 4
add esi, eax
nop word [eax + eax]
mov ecx, dword [ebp + 8]
mov eax, edx
and eax, 0xf
mov eax, dword [ebp + eax*4 - 0x44]
mov eax, dword [eax + esi*4]
add eax, dword [ebp - 0x6c]
imul eax, dword [ebp - 0x80]
sar eax, cl
mov ecx, dword [ebp - 0x68]
shl eax, cl
test eax, eax
jns 0x100137f5
xor eax, eax
jmp 0x10013802
cmp eax, 0xffff
mov ecx, 0xffff
cmovg eax, ecx
mov word [edi + edx*2], ax
inc edx
cmp edx, ebx
jb 0x100137d0
mov edi, dword [ebp - 0x50]
mov esi, dword [ebp - 0x4c]
add edi, dword [ebp - 0x58]
mov edx, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x50], edi
cmp edi, dword [ebp - 0x60]
jb 0x10013790
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x54]
add ecx, dword [ebp - 0x58]
add esi, dword [ebp - 0x7c]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x4c], esi
cmp ecx, dword [ebp - 0x64]
jb 0x10013764
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a8b60
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x54], ecx
cmp ecx, dword [ebp - 0x64]
jae case.default.0x10013611
movzx eax, byte [ebp - 0x45]
mov dword [ebp - 0x6c], eax
mov eax, esi
mov esi, ecx
shl eax, 4
shl esi, 4
add esi, 0x101f08e0
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x4c], esi
nop
mov edx, dword [ebp - 0x88]
mov eax, ecx
mov ecx, dword [ebp - 0x5c]
mov edi, dword [ebp + 0x10]
shr eax, cl
mov dword [ebp - 0x50], edi
mov edx, dword [edx + eax*4]
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x68], edx
cmp edi, eax
jae 0x1001393d
mov eax, edi
shr eax, cl
mov ecx, dword [ebp - 0x8c]
mov ecx, dword [ecx + eax*4]
mov eax, dword [ebp - 0x78]
add ecx, edx
xor edx, edx
mov eax, dword [eax + 0x80a8]
lea eax, [eax + ecx*2]
mov dword [ebp - 0x70], eax
test ebx, ebx
je 0x10013924
mov eax, edi
and eax, 0xf
movzx esi, byte [eax + esi]
mov eax, edi
mov edi, dword [ebp - 0x70]
and eax, 0xfffffff0
shl eax, 4
add esi, eax
nop
mov ecx, dword [ebp + 8]
mov eax, edx
and eax, 0xf
mov eax, dword [ebp + eax*4 - 0x44]
mov eax, dword [eax + esi*4]
imul eax, dword [ebp - 0x80]
sar eax, cl
mov ecx, dword [ebp - 0x6c]
shl eax, cl
cmp eax, 0xffff8000
jge 0x10013908
mov eax, 0xffff8000
jmp 0x10013915
cmp eax, 0x7fff
mov ecx, 0x7fff
cmovg eax, ecx
mov word [edi + edx*2], ax
inc edx
cmp edx, ebx
jb 0x100138e0
mov edi, dword [ebp - 0x50]
mov esi, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x58]
add edi, eax
mov edx, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x50], edi
cmp edi, dword [ebp - 0x60]
jb 0x100138a4
jmp 0x10013940
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
add esi, dword [ebp - 0x74]
add ecx, eax
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x4c], esi
cmp ecx, dword [ebp - 0x64]
jb 0x10013880
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a8b60
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x54], ecx
cmp ecx, dword [ebp - 0x64]
jae case.default.0x10013611
mov edi, ecx
mov eax, esi
shl eax, 4
shl edi, 4
add edi, 0x101f08e0
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x4c], edi
nop dword [eax]
mov esi, dword [ebp - 0x88]
mov eax, ecx
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp + 0x10]
shr eax, cl
mov dword [ebp - 0x50], edx
mov esi, dword [esi + eax*4]
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x6c], esi
cmp edx, eax
jae 0x10013a42
mov eax, edx
shr eax, cl
mov ecx, dword [ebp - 0x8c]
mov ecx, dword [ecx + eax*4]
mov eax, dword [ebp - 0x78]
add ecx, esi
xor esi, esi
mov eax, dword [eax + 0x80a8]
lea eax, [eax + ecx*2]
mov dword [ebp - 0x70], eax
test ebx, ebx
je 0x10013a29
mov eax, edx
and eax, 0xf
movzx edi, byte [eax + edi]
mov eax, edx
and eax, 0xfffffff0
shl eax, 4
add edi, eax
nop dword [eax + eax]
mov ecx, dword [ebp + 8]
mov eax, esi
and eax, 0xf
mov eax, dword [ebp + eax*4 - 0x44]
mov edx, dword [eax + edi*4]
imul edx, dword [ebp - 0x80]
sar edx, cl
mov eax, edx
and edx, 0x7fff
sar eax, 0x1f
movzx eax, ax
xor edx, eax
sub edx, eax
mov eax, dword [ebp - 0x70]
mov word [eax + esi*2], dx
inc esi
cmp esi, ebx
jb 0x100139f0
mov edx, dword [ebp - 0x50]
mov edi, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x58]
add edx, eax
mov esi, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x50], edx
cmp edx, dword [ebp - 0x60]
jb 0x100139b4
jmp 0x10013a45
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
add edi, dword [ebp - 0x68]
add ecx, eax
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x4c], edi
cmp ecx, dword [ebp - 0x64]
jb 0x10013990
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a8b60
mov esp, ebp
pop ebp
ret
movzx ecx, byte [ebp - 0x45]
mov eax, 0x80000000
sar eax, cl
mov dword [ebp - 0x68], ecx
mov ecx, dword [ebp + 8]
shl eax, cl
cdq
idiv edi
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x54], eax
cmp eax, dword [ebp - 0x64]
jae case.default.0x10013611
mov ecx, esi
mov esi, eax
shl ecx, 4
shl esi, 4
add esi, 0x101f08e0
mov dword [ebp - 0x7c], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x4c], esi
nop
mov edi, ecx
mov ecx, dword [ebp - 0x5c]
shr eax, cl
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x50], edi
mov edx, dword [ecx + eax*4]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x74], edx
cmp ecx, dword [ebp - 0x60]
jae 0x10013b4c
nop
mov ecx, dword [ebp - 0x5c]
mov eax, edi
shr eax, cl
mov ecx, dword [ebp - 0x8c]
mov ecx, dword [ecx + eax*4]
mov eax, dword [ebp - 0x78]
add ecx, edx
xor edx, edx
mov eax, dword [eax + 0x80a8]
lea eax, [eax + ecx*4]
mov dword [ebp - 0x70], eax
test ebx, ebx
je 0x10013b3b
mov eax, edi
and eax, 0xf
movzx esi, byte [eax + esi]
mov eax, edi
mov edi, dword [ebp - 0x70]
and eax, 0xfffffff0
shl eax, 4
add esi, eax
nop dword [eax]
mov ecx, dword [ebp + 8]
mov eax, edx
and eax, 0xf
mov eax, dword [ebp + eax*4 - 0x44]
mov eax, dword [eax + esi*4]
add eax, dword [ebp - 0x6c]
imul eax, dword [ebp - 0x80]
sar eax, cl
mov ecx, dword [ebp - 0x68]
shl eax, cl
mov dword [edi + edx*4], eax
inc edx
cmp edx, ebx
jb 0x10013b10
mov edi, dword [ebp - 0x50]
mov esi, dword [ebp - 0x4c]
add edi, dword [ebp - 0x58]
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x50], edi
cmp edi, dword [ebp - 0x60]
jb 0x10013ad0
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x54]
add eax, dword [ebp - 0x58]
add esi, dword [ebp - 0x7c]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x4c], esi
cmp eax, dword [ebp - 0x64]
jb 0x10013ab0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a8b60
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x54], ecx
cmp ecx, dword [ebp - 0x64]
jae case.default.0x10013611
movzx eax, byte [ebp - 0x45]
mov dword [ebp - 0x6c], eax
mov eax, esi
mov esi, ecx
shl eax, 4
shl esi, 4
add esi, 0x101f08e0
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x4c], esi
mov edx, dword [ebp - 0x88]
mov eax, ecx
mov ecx, dword [ebp - 0x5c]
mov edi, dword [ebp + 0x10]
shr eax, cl
mov dword [ebp - 0x50], edi
mov edx, dword [edx + eax*4]
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x68], edx
cmp edi, eax
jae 0x10013c3d
mov eax, edi
shr eax, cl
mov ecx, dword [ebp - 0x8c]
mov ecx, dword [ecx + eax*4]
mov eax, dword [ebp - 0x78]
add ecx, edx
xor edx, edx
mov eax, dword [eax + 0x80a8]
lea eax, [eax + ecx*4]
mov dword [ebp - 0x70], eax
test ebx, ebx
je 0x10013c28
mov eax, edi
and eax, 0xf
movzx esi, byte [eax + esi]
mov eax, edi
mov edi, dword [ebp - 0x70]
and eax, 0xfffffff0
shl eax, 4
add esi, eax
nop
mov ecx, dword [ebp + 8]
mov eax, edx
and eax, 0xf
mov eax, dword [ebp + eax*4 - 0x44]
mov eax, dword [eax + esi*4]
imul eax, dword [ebp - 0x80]
sar eax, cl
mov ecx, dword [ebp - 0x6c]
shl eax, cl
mov dword [edi + edx*4], eax
inc edx
cmp edx, ebx
jb 0x10013c00
mov edi, dword [ebp - 0x50]
mov esi, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x58]
add edi, eax
mov edx, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x50], edi
cmp edi, dword [ebp - 0x60]
jb 0x10013bc5
jmp 0x10013c40
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
add esi, dword [ebp - 0x74]
add ecx, eax
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x4c], esi
cmp ecx, dword [ebp - 0x64]
jb 0x10013ba1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a8b60
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x68], eax
cmp eax, dword [ebp - 0x64]
jae case.default.0x10013611
movzx eax, byte [ebp - 0x45]
mov ecx, 0x17
sub ecx, eax
mov dword [ebp - 0x50], eax
mov eax, esi
mov dword [ebp - 0x90], ecx
mov ecx, dword [ebp + 0xc]
mov esi, ecx
shl eax, 4
shl esi, 4
add esi, 0x101f08e0
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x4c], esi
nop word [eax + eax]
mov edi, dword [ebp - 0x88]
mov eax, ecx
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp + 0x10]
shr eax, cl
mov dword [ebp - 0x74], edx
mov eax, dword [edi + eax*4]
mov edi, dword [ebp - 0x80]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x60]
cmp edx, eax
jae 0x10013e0d
mov eax, edx
xor esi, esi
shr eax, cl
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x7c], esi
mov ecx, dword [ecx + eax*4]
mov eax, dword [ebp - 0x78]
add ecx, dword [ebp - 0x70]
mov eax, dword [eax + 0x80a8]
lea eax, [eax + ecx*4]
mov dword [ebp - 0x98], eax
test ebx, ebx
je 0x10013df4
mov ecx, dword [ebp - 0x50]
mov ebx, 1
shl ebx, cl
mov eax, edx
mov ecx, dword [ebp - 0x4c]
and eax, 0xf
movzx ecx, byte [eax + ecx]
mov eax, edx
and eax, 0xfffffff0
shl eax, 4
add ecx, eax
movsx eax, byte [ebp - 0x81]
shl ecx, 2
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0x6c], eax
nop dword [eax]
and esi, 0xf
mov eax, dword [ebp + esi*4 - 0x44]
lea esi, [ebx - 1]
mov eax, dword [eax + ecx]
mov ecx, dword [ebp + 8]
imul eax, edi
sar eax, cl
mov ecx, eax
sar ecx, 0x1f
mov edx, ecx
mov dword [ebp - 0x94], ecx
xor edx, eax
sub edx, ecx
mov ecx, dword [ebp - 0x50]
mov edi, edx
and esi, edx
shr edi, cl
or esi, ebx
test edi, edi
jne 0x10013d7c
xor esi, ebx
mov edi, 1
mov eax, 0x7f
sub eax, dword [ebp - 0x6c]
add edi, eax
cmp esi, ebx
jge 0x10013da0
nop word [eax + eax]
cmp edi, 1
jle 0x10013da0
test esi, esi
jle 0x10013da0
add esi, esi
dec edi
cmp esi, ebx
jl 0x10013d90
mov ecx, dword [ebp - 0x90]
mov eax, esi
xor eax, ebx
mov edx, esi
cmp esi, ebx
cmovge edx, eax
xor eax, eax
shl edx, cl
cmp esi, ebx
mov esi, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x9c]
cmovge eax, edi
mov edi, dword [ebp - 0x80]
shl eax, 0x17
or edx, eax
mov eax, dword [ebp - 0x94]
and eax, 0x80000000
or edx, eax
mov eax, dword [ebp - 0x98]
mov dword [eax + esi*4], edx
inc esi
mov dword [ebp - 0x7c], esi
cmp esi, dword [ebp - 0x54]
jb 0x10013d40
mov ebx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x58]
add edx, eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x74], edx
cmp edx, dword [ebp - 0x60]
jb 0x10013cd7
mov esi, dword [ebp - 0x4c]
jmp 0x10013e10
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x68]
add esi, dword [ebp - 0xa0]
add ecx, eax
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x4c], esi
cmp ecx, dword [ebp - 0x64]
jb 0x10013cb0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101a8b60
mov esp, ebp
pop ebp
ret