Function at 0x1001e3e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
lea ecx, [edi + edi*2]
add eax, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x18]
lea edx, [edi + ecx*4]
mov ecx, eax
shl ecx, 8
sub ecx, eax
lea eax, [eax + ecx*4]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + edx*4 + 0x17c]
lea eax, [eax + eax*2]
lea eax, [eax + eax*8]
lea esi, [edx + eax*4]
mov dword [ebp - 8], esi
mov eax, dword [ebp + 0xc]
add dword [ebp + 0xc], 4
mov eax, dword [eax]
mov dword [ebp - 4], 0x20
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [0x10091998]
mov ebx, dword [ebp + 0xc]
mov ecx, eax
and ecx, edx
xor edx, edx
mov dl, byte [ebx]
mov dword [ebp + 0x14], 8
shr eax, 8
shl edx, 0x18
or eax, edx
mov edx, dword [ebp - 4]
inc ebx
add edx, 8
test cl, 1
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edx
mov byte [esi + 0x3c], cl
je 0x1001e49b
mov eax, dword [esi + 0x38]
mov dword [ebp - 0x14], 0xffffffff
or al, 1
mov dword [esi + 0x38], eax
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x14]
add edx, 7
pop edi
shr edx, 3
pop esi
mov dword [ecx], edx
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xb8]
test edx, edx
mov edx, dword [esi + 0x38]
jne 0x1001e4b0
and edx, 0xfffffffc
jmp 0x1001e4b3
and edx, 0xfffffffe
mov dword [esi + 0x38], edx
mov dword [esi + 0x18], 0
test byte [ecx + 0xbe], 0x80
je 0x1001e503
mov edx, dword [0x100919d8]
mov ecx, eax
and ecx, edx
mov edx, dword [ebp - 4]
add edx, 0x18
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x14], 0x20
mov ecx, 3
mov dword [ebp - 4], edx
xor edx, edx
mov dl, byte [ebx]
shr eax, 8
shl edx, 0x18
or eax, edx
inc ebx
dec ecx
jne 0x1001e4e8
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esi + 0x18], ecx
jmp 0x1001e525
test edi, edi
jne 0x1001e525
mov edx, dword [ebp + 0x18]
test edx, edx
jne 0x1001e525
mov edx, dword [ecx + 0xb8]
test edx, edx
jne 0x1001e525
test byte [ecx + 0xbd], 0x20
jne 0x1001e483
mov cl, byte [esi + 0x3c]
mov edx, dword [ebp + 0x14]
test cl, 2
je 0x1001e539
mov dword [esi + 0x34], 1
jmp 0x1001e540
mov dword [esi + 0x34], 0
test cl, 8
je 0x1001e54e
mov dword [esi + 0x30], 1
jmp 0x1001e555
mov dword [esi + 0x30], 0
test cl, 4
je 0x1001e563
mov dword [esi + 0x2c], 1
jmp 0x1001e571
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 1
test edi, edi
jne 0x1001e66c
mov ecx, dword [ebp + 0x18]
test ecx, ecx
jne 0x1001e66c
mov ecx, dword [ebp + 8]
mov edi, dword [ecx + 0xb8]
test edi, edi
jne 0x1001e66f
test byte [ecx + 0xbd], 0x20
je 0x1001e66f
mov eax, dword [ebp - 0x10]
test dl, 1
mov dword [ebp + 0x18], eax
jne 0x1001e486
mov esi, dword [esi + 0x18]
cmp esi, 0x44
jb 0x1001e5c2
mov dword [ebp + 0xc], 0x40
jmp 0x1001e5ca
lea eax, [esi - 4]
and al, 0xfe
mov dword [ebp + 0xc], eax
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
mov esi, dword [ebp - 0x10]
mov eax, dword [edi + 0x48]
mov dword [edi + 0x94], esi
sub ecx, eax
add edi, 0x50
shr ecx, 0x10
mov dword [ebp - 0x18], ecx
xor ecx, ecx
mov cl, ah
and eax, 0xff
shl eax, 8
add ecx, eax
mov eax, 0x51eb851f
shr ecx, 1
add ecx, 0x4000
mul ecx
shr edx, 6
lea eax, [edx + edx*2]
lea ecx, [edx + eax*8]
lea edx, [ecx*8 + 0x15]
mov ecx, dword [ebp + 0xc]
mov dword [edi + 0x40], ecx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jbe 0x1001e651
mov ecx, eax
mov eax, dword [ebp - 0x18]
lea esi, [ecx + 1]
mov ecx, dword [ebp - 0x10]
shr esi, 1
mov edi, edx
add ecx, 2
imul edi, eax
inc edi
and edi, 0xffff
mov eax, edi
xor word [ecx - 2], ax
dec esi
jne 0x1001e639
mov eax, dword [ebp + 0x18]
add dword [ebp + 0x18], 4
mov eax, dword [eax]
mov dword [ebp - 4], 0x20
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 0x14]
jmp 0x1001e679
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x90], 0
mov edi, dword [ebp - 8]
test byte [edi + 0x3c], 0x10
je 0x1001ec65
mov esi, edx
add edx, 8
and esi, 7
mov dword [ebp + 0x14], edx
mov edx, eax
mov ecx, esi
shr edx, cl
mov ecx, dword [0x10091998]
add esi, 8
and edx, ecx
cmp esi, 8
jb 0x1001e6c3
mov ecx, dword [ebp - 4]
shr esi, 3
lea ecx, [ecx + esi*8]
mov dword [ebp - 4], ecx
xor ecx, ecx
mov cl, byte [ebx]
shr eax, 8
shl ecx, 0x18
or eax, ecx
inc ebx
dec esi
jne 0x1001e6b3
cmp edx, 0x3d
ja 0x1001e483
mov edi, dword [ebp - 8]
test edx, edx
mov byte [edi + 0x1a0], dl
jbe 0x1001e77e
add edi, 0x1a2
mov dword [ebp + 0xc], edx
mov ecx, dword [ebp + 0x14]
mov edx, eax
mov esi, ecx
add ecx, 8
and esi, 7
mov dword [ebp + 0x14], ecx
mov ecx, esi
add esi, 8
shr edx, cl
mov ecx, dword [0x10091998]
and edx, ecx
cmp esi, 8
jb 0x1001e726
mov ecx, dword [ebp - 4]
shr esi, 3
lea ecx, [ecx + esi*8]
mov dword [ebp - 4], ecx
xor ecx, ecx
mov cl, byte [ebx]
shr eax, 8
shl ecx, 0x18
or eax, ecx
inc ebx
dec esi
jne 0x1001e716
mov ecx, dword [ebp + 0x14]
mov byte [edi - 1], dl
mov esi, ecx
add ecx, 8
and esi, 7
mov dword [ebp + 0x14], ecx
mov edx, eax
mov ecx, esi
shr edx, cl
mov ecx, dword [0x10091998]
add esi, 8
and edx, ecx
cmp esi, 8
jb 0x1001e769
mov ecx, dword [ebp - 4]
shr esi, 3
lea ecx, [ecx + esi*8]
mov dword [ebp - 4], ecx
xor ecx, ecx
mov cl, byte [ebx]
shr eax, 8
shl ecx, 0x18
or eax, ecx
inc ebx
dec esi
jne 0x1001e759
mov ecx, dword [ebp + 0xc]
mov byte [edi], dl
add edi, 2
dec ecx
mov dword [ebp + 0xc], ecx
jne 0x1001e6e6
mov edi, dword [ebp - 8]
mov edx, dword [ebp + 0x14]
mov cl, byte [edi + 0x3c]
mov dword [edi + 0x1aeb0], 8
test cl, 0x40
je 0x1001e7d6
mov edi, dword [0x10091984]
mov ecx, edx
and ecx, 7
mov esi, eax
shr esi, cl
add ecx, 3
add edx, 3
and esi, edi
cmp ecx, 8
jb 0x1001e7cd
shr ecx, 3
mov edi, ecx
mov ecx, dword [ebp - 4]
lea ecx, [ecx + edi*8]
mov dword [ebp - 4], ecx
xor ecx, ecx
mov cl, byte [ebx]
shr eax, 8
shl ecx, 0x18
or eax, ecx
inc ebx
dec edi
jne 0x1001e7bd
mov edi, dword [ebp - 8]
mov dword [edi + 0x1aeb0], esi
test byte [edi + 0x3c], 0x80
je 0x1001e911
mov edi, dword [0x10091984]
mov ecx, edx
and ecx, 7
mov esi, eax
shr esi, cl
add ecx, 3
add edx, 3
and esi, edi
cmp ecx, 8
jb 0x1001e81a
shr ecx, 3
mov edi, ecx
mov ecx, dword [ebp - 4]
lea ecx, [ecx + edi*8]
mov dword [ebp - 4], ecx
xor ecx, ecx
mov cl, byte [ebx]
shr eax, 8
shl ecx, 0x18
or eax, ecx
inc ebx
dec edi
jne 0x1001e80a
cmp esi, 7
jne 0x1001e8d3
mov esi, edx
add edx, 4
and esi, 7
mov dword [ebp + 0x14], edx
mov edx, eax
mov ecx, esi
shr edx, cl
mov ecx, dword [0x10091988]
add esi, 4
and edx, ecx
cmp esi, 8
mov dword [ebp + 0xc], edx
jb 0x1001e863
mov ecx, dword [ebp - 4]
shr esi, 3
lea ecx, [ecx + esi*8]
mov dword [ebp - 4], ecx
xor ecx, ecx
mov cl, byte [ebx]
shr eax, 8
shl ecx, 0x18
or eax, ecx
inc ebx
dec esi
jne 0x1001e853
mov edi, dword [ebp - 8]
cmp edx, 1
mov dword [ebp + 0x18], 1
mov byte [edi + 0x49], dl
jb 0x1001e95e
mov ecx, dword [ebp + 0x14]
mov edx, eax
mov esi, ecx
add ecx, 4
and esi, 7
mov dword [ebp + 0x14], ecx
mov ecx, esi
add esi, 4
shr edx, cl
mov ecx, dword [0x10091988]
and edx, ecx
cmp esi, 8
jb 0x1001e8b9
mov ecx, dword [ebp - 4]
shr esi, 3
lea ecx, [ecx + esi*8]
mov dword [ebp - 4], ecx
xor ecx, ecx
mov cl, byte [ebx]
shr eax, 8
shl ecx, 0x18
or eax, ecx
inc ebx
dec esi
jne 0x1001e8a9
mov edi, dword [ebp - 8]
mov ecx, dword [ebp + 0x18]
mov byte [edi + ecx + 0x49], dl
mov edx, dword [ebp + 0xc]
inc ecx
cmp ecx, edx
mov dword [ebp + 0x18], ecx
jbe 0x1001e879
jmp 0x1001e95e
mov ecx, esi
mov edi, dword [ebp - 8]
shl ecx, 4
lea ecx, [ecx + esi + 0x10091a90]
mov esi, dword [ebp - 8]
mov dword [ebp + 0x18], ecx
mov cl, byte [ecx]
mov byte [esi + 0x49], cl
mov esi, 1
movsx ecx, cl
cmp ecx, esi
mov dword [ebp + 0xc], ecx
jb 0x1001e961
mov ecx, dword [ebp + 0x18]
inc esi
mov cl, byte [ecx + esi - 1]
mov byte [edi + esi + 0x48], cl
mov ecx, dword [ebp + 0xc]
cmp esi, ecx
jbe 0x1001e8fc
jmp 0x1001e961
mov cl, byte [0x10091b07]
mov byte [edi + 0x49], cl
movsx ecx, byte [0x10091b07]
cmp ecx, 1
mov dword [ebp + 0xc], ecx
jb 0x1001e961
lea ecx, [edi + 0x4a]
mov dword [ebp + 0x18], ecx
mov ecx, 0x10091abe
sub ecx, edi
mov dword [ebp + 0x14], ecx
mov ecx, 0xffffffb7
sub ecx, edi
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
mov cl, byte [ecx + esi]
mov byte [esi], cl
mov ecx, dword [ebp - 0x18]
inc esi
mov dword [ebp + 0x18], esi
add ecx, esi
cmp ecx, dword [ebp + 0xc]
jbe 0x1001e943
jmp 0x1001e961
mov edx, dword [ebp + 0x14]
mov ecx, edx
mov esi, eax
and ecx, 7
inc edx
shr esi, cl
mov dword [ebp + 0xc], ecx
mov ecx, dword [0x1009197c]
and esi, ecx
mov ecx, dword [ebp + 0xc]
inc ecx
cmp ecx, 8
jb 0x1001e9a0
shr ecx, 3
mov edi, ecx
mov ecx, dword [ebp - 4]
lea ecx, [ecx + edi*8]
mov dword [ebp - 4], ecx
xor ecx, ecx
mov cl, byte [ebx]
shr eax, 8
shl ecx, 0x18
or eax, ecx
inc ebx
dec edi
jne 0x1001e98d
mov edi, dword [ebp - 8]
test esi, esi
je 0x1001e9e1
mov edi, dword [0x100919b8]
mov ecx, edx
and ecx, 7
mov esi, eax
shr esi, cl
add ecx, 0x10
add edx, 0x10
and esi, edi
cmp ecx, 8
jb 0x1001e9de
shr ecx, 3
mov edi, ecx
mov ecx, dword [ebp - 4]
lea ecx, [ecx + edi*8]
mov dword [ebp - 4], ecx
xor ecx, ecx
mov cl, byte [ebx]
shr eax, 8
shl ecx, 0x18
or eax, ecx
inc ebx
dec edi
jne 0x1001e9ce
mov edi, dword [ebp - 8]
mov ecx, edx
mov dword [edi + 0x20], esi
mov edi, dword [0x1009198c]
and ecx, 7
mov esi, eax
add edx, 5
shr esi, cl
add ecx, 5
mov dword [ebp + 0x14], edx
and esi, edi
cmp ecx, 8
jb 0x1001ea21
shr ecx, 3
mov edi, ecx
mov ecx, dword [ebp - 4]
lea ecx, [ecx + edi*8]
mov dword [ebp - 4], ecx
xor ecx, ecx
mov cl, byte [ebx]
shr eax, 8
shl ecx, 0x18
or eax, ecx
inc ebx
dec edi
jne 0x1001ea11
mov ecx, dword [ebp - 8]
and esi, 0xff
test byte [ecx + 0x3c], 0x20
mov dword [ecx + 0x40], esi
je 0x1001eb27
mov esi, edx
and esi, 7
je 0x1001ea6a
mov ecx, 8
sub ecx, esi
add esi, ecx
add edx, ecx
cmp esi, 8
jb 0x1001ea6a
mov ecx, dword [ebp - 4]
shr esi, 3
lea ecx, [ecx + esi*8]
mov dword [ebp - 4], ecx
xor ecx, ecx
mov cl, byte [ebx]
shr eax, 8
shl ecx, 0x18
or eax, ecx
inc ebx
dec esi
jne 0x1001ea5a
mov edi, dword [0x1009197c]
mov esi, edx
add edx, 8
and esi, 7
mov dword [ebp + 0x14], edx
mov edx, eax
mov ecx, esi
shr edx, cl
mov ecx, dword [0x10091998]
add esi, 8
and edx, ecx
cmp esi, 8
jb 0x1001eaad
mov ecx, dword [ebp - 4]
shr esi, 3
lea ecx, [ecx + esi*8]
mov dword [ebp - 4], ecx
xor ecx, ecx
mov cl, byte [ebx]
shr eax, 8
shl ecx, 0x18
or eax, ecx
inc ebx
dec esi
jne 0x1001ea9d
test edx, edx
jbe 0x1001eae6
mov ecx, dword [ebp + 0x14]
mov esi, ecx
add ecx, 8
and esi, 7
mov dword [ebp + 0x14], ecx
add esi, 8
cmp esi, 8
jb 0x1001eae3
mov ecx, dword [ebp - 4]
shr esi, 3
lea ecx, [ecx + esi*8]
mov dword [ebp - 4], ecx
xor ecx, ecx
mov cl, byte [ebx]
shr eax, 8
shl ecx, 0x18
or eax, ecx
inc ebx
dec esi
jne 0x1001ead3
dec edx
jne 0x1001eab1
mov ecx, dword [ebp + 0x14]
mov edx, eax
mov esi, ecx
and esi, 7
inc ecx
mov dword [ebp + 0x14], ecx
mov ecx, esi
shr edx, cl
and edx, edi
inc esi
cmp esi, 8
jb 0x1001eb1c
mov ecx, dword [ebp - 4]
shr esi, 3
lea ecx, [ecx + esi*8]
mov dword [ebp - 4], ecx
xor ecx, ecx
mov cl, byte [ebx]
shr eax, 8
shl ecx, 0x18
or eax, ecx
inc ebx
dec esi
jne 0x1001eb0c
test edx, edx
mov edx, dword [ebp + 0x14]
jne 0x1001ea70
mov ecx, dword [ebp + 8]
xor esi, esi
mov eax, dword [ecx + 0xd8]
imul eax, dword [ecx + 0xdc]
cmp eax, esi
mov dword [ebp + 0x18], eax
jbe 0x1001ec2c
mov ebx, dword [ebp - 8]
mov dword [ebp + 0xc], esi
mov edx, dword [ebp + 8]
mov eax, esi
mov ecx, dword [edx + 0xdc]
xor edx, edx
div ecx
mov eax, esi
mov edi, edx
xor edx, edx
div ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebx + 0x1aeb8]
mov ebx, dword [ebp + 8]
add ecx, edx
lea edx, [eax + 1]
cmp edx, dword [ebx + 0xd8]
jne 0x1001eb95
mov edx, dword [ebp - 8]
mov ebx, dword [edx + 0x24]
mov edx, dword [edx + 0x10]
imul edx, eax
mov eax, ebx
sub eax, edx
mov edx, dword [ebp - 8]
mov edx, dword [edx]
lea eax, [eax + edx - 1]
jmp 0x1001eba2
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 0x24]
mov eax, dword [eax + 0x10]
lea eax, [eax + ebx - 1]
xor edx, edx
div ebx
lea edx, [edi + 1]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
cmp edx, dword [eax + 0xdc]
jne 0x1001ebd9
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x14]
mov ebx, dword [eax + 0x24]
imul edx, edi
mov eax, dword [eax + 4]
sub eax, edx
xor edx, edx
shr eax, 1
lea eax, [eax + ebx - 1]
div ebx
mov ebx, dword [ebp - 8]
mov dword [ecx + 4], eax
jmp 0x1001ebef
mov ebx, dword [ebp - 8]
mov edx, dword [ebx + 0x14]
mov edi, dword [ebx + 0x24]
shr edx, 1
lea eax, [edx + edi - 1]
xor edx, edx
div edi
mov dword [ecx + 4], eax
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
mov eax, dword [ebx + 0x24]
mov edx, dword [ebx + 0x28]
cmp eax, edx
je 0x1001ec14
mov edx, dword [ecx + 8]
mov eax, dword [ecx + 0xc]
shl edx, 1
shl eax, 1
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x18]
inc esi
add ecx, 0x1c
cmp esi, eax
mov dword [ebp + 0xc], ecx
jb 0x1001eb4a
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x14], 1
mov eax, dword [ecx + 0x1aeb0]
lea esi, [eax + eax*4]
lea esi, [eax + esi*8]
lea eax, [eax + esi*2]
shl eax, 2
lea esi, [eax + 0x1009c374]
lea eax, [eax + 0x1009c3bc]
mov dword [ecx + 0x198], esi
mov dword [ecx + 0x19c], eax
jmp 0x1001e486
mov byte [edi + 0x1a0], 0
jmp 0x1001e781