Function at 0x10019440
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x38
mov ecx, dword [0x100ad2f4]
mov al, cl
or al, 0x60
dec ecx
mov byte [esp + 3], al
mov eax, 0x6acd2795
mul dword [0x100ad2b4]
mov eax, dword [esp + 0x3c]
push ebx
mov ebx, dword [esp + 0x44]
push ebp
mov ebp, edx
cdq
push esi
idiv dword [ebx + 0x16a0]
push edi
mov edi, dword [esp + 0x54]
xor edx, edx
mov dword [esp + 0x30], eax
mov eax, dword [0x100ad2e4]
shr ebp, 0xb
mov dword [esp + 0x2c], ebp
movzx esi, word [edi + eax*4]
dec eax
mov dword [0x100ad2e4], eax
or esi, 0x530
mov dword [esp + 0x38], eax
mov eax, 0xda9
div ecx
mov dword [0x100ad2f4], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x40], edx
mov edx, dword [0x100ad2c0]
mov dword [esp + 0x14], esi
lea eax, [ecx + ecx*2]
inc ecx
mov eax, dword [ebx + eax*4]
mov dword [esp + 0x20], eax
mov dword [esp + 0x4c], ecx
movzx ecx, word [edi]
mov eax, ecx
add eax, eax
sub edx, dword [ebx + eax*8]
movzx eax, word [edi + ecx*2]
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0x105c]
mov dword [esp + 0x24], edx
cdq
idiv dword [esp + 0x4c]
mov ecx, dword [0x100ad2f0]
xor edx, edx
mov dword [esp + 0x44], eax
movzx eax, word [0x100ad2d4]
imul eax, ecx
dec ecx
mov dword [0x100ad2f0], ecx
mov dword [esp + 0x18], eax
mov al, byte [edi + 0xc98]
mov byte [esp + 0x11], al
movzx eax, word [edi + 0xc78]
mov edi, 0x17ef
div edi
mov edi, dword [esp + 0x4c]
mov eax, ecx
imul eax, edi
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], eax
mov eax, edi
cdq
idiv ecx
mov eax, dword [0x100ad2cc]
add eax, edi
mov byte [esp + 0x12], dl
mov edx, dword [esp + 0x54]
mov dword [esp + 0x34], eax
mov eax, 0xffff
add word [edx], ax
movzx eax, word [edx]
movzx edi, word [edx + eax*2]
mov eax, dword [0x100ad2f4]
dec eax
mov dword [0x100ad2f4], eax
cmp edi, eax
jb 0x10019658
nop
inc byte [ebp]
movzx eax, byte [ebp]
lea ecx, [edx + eax*8]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x1c]
movzx eax, word [eax + edx*8]
inc edx
sub ax, di
mov dword [esp + 0x4c], edx
or word [ecx], ax
mov eax, dword [0x100ad2fc]
mov ecx, dword [esp + 0x34]
lea ecx, [ecx + eax*4]
mov eax, dword [esp + 0x28]
movzx eax, byte [eax + edi*2]
add al, byte [0x100ad2e4]
and al, dl
sub al, byte [ecx]
mov byte [ecx], al
mov eax, dword [esp + 0x20]
movzx ecx, byte [0x100ad2c9]
mov esi, dword [0x100ad2e4]
add esi, esi
mov edx, dword [eax + edi*4]
mov eax, dword [0x100ad300]
sub edx, dword [eax + ecx*4]
mov eax, dword [esp + 0x18]
add edx, eax
or dword [ebx + esi*8], edx
inc eax
mov dword [esp + 0x18], eax
xor edx, edx
movzx eax, word [0x100ad2d0]
mov esi, 0xaca
lea ecx, [ebx + eax*4]
mov eax, dword [esp + 0x18]
div dword [ecx]
mov dword [ecx], edx
xor edx, edx
movzx eax, byte [ebp]
mov ecx, dword [esp + 0x1c]
lea ecx, [ecx + eax*2]
movzx eax, word [0x100ad2fc]
sub ax, word [ecx]
mov word [ecx], ax
mov eax, dword [0x100ad2b8]
movzx ecx, word [eax + 0x1eaa]
movzx eax, byte [esp + 0x11]
xor ecx, edi
div esi
dec byte [esp + 0x11]
push edx
push 0x17ec
push ecx
call fcn.10019ec0
mov edx, dword [esp + 0x60]
inc edi
mov dword [esp + 0x30], eax
add esp, 0xc
mov eax, dword [0x100ad2f4]
dec eax
mov dword [0x100ad2f4], eax
cmp edi, eax
jae 0x10019570
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
movzx ecx, byte [ebp]
mov eax, dword [eax + esi*4]
dec esi
mov dword [esp + 0x14], esi
cmp dword [ebx + ecx*4], eax
je 0x1001971d
mov eax, dword [0x100ad2bc]
mov ecx, dword [esp + 0x30]
movzx eax, byte [ecx + eax*2]
mov ecx, dword [0x100ad2dc]
mov dword [esp + 0x14], eax
lea edi, [ebx + ecx*4]
mov eax, dword [0x100ad2c4]
movzx esi, word [edx + ecx*2]
mov eax, dword [eax + ecx*4 + 0x84]
cdq
idiv esi
movzx eax, byte [0x100ad2c8]
xor eax, edx
mov ecx, dword [esp + 0x24]
cdq
idiv dword [edi]
mov dword [edi], edx
mov eax, dword [0x100ad2e8]
cmp ecx, eax
jne 0x10019722
movzx edx, byte [esp + 0x12]
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0x28]
mov dword [esp + 0x4c], edx
nop word [eax + eax]
mov eax, dword [esp + 0x1c]
movzx eax, word [eax + ecx*2]
and dword [0x100ad2e0], eax
movzx eax, byte [ebp]
xor dword [ebx + eax*4], 0x177f
mov eax, edx
cdq
idiv ecx
xor edx, edx
div dword [0x100ad2e0]
mov eax, dword [esp + 0x14]
imul eax, edx
movzx edx, word [esi]
mov dword [esp + 0x14], eax
mov ax, word [ebx + ecx*4]
inc ecx
mov word [edi + edx*2 + 0x14], ax
mov eax, dword [0x100ad2e8]
mov edx, dword [esp + 0x4c]
cmp ecx, eax
je 0x100196d0
jmp 0x10019722
mov eax, dword [0x100ad2e8]
mov ebx, dword [esp + 0x54]
inc eax
mov dword [0x100ad2e8], eax
mov eax, 0xffff
add word [ebx], ax
movzx ecx, word [ebx]
mov eax, dword [0x100ad300]
add ecx, ecx
mov edx, dword [0x100ad2e8]
and edx, dword [esp + 0x38]
mov dword [eax + ecx*8], edx
xor edx, edx
movzx eax, word [ebx]
mov esi, dword [0x100ad2e4]
dec esi
movzx ecx, word [ebx + eax*2]
add ebx, 2
movzx eax, byte [esp + 0x13]
div dword [0x100ad2b4]
dec dword [0x100ad2f8]
inc dword [0x100ad2fc]
mov ebp, eax
mov ax, word [0x100ad2d0]
movzx edi, ax
inc ax
mov word [0x100ad2d0], ax
mov eax, dword [0x100ad304]
mov dword [0x100ad2e4], esi
dec esi
mov dword [esp + 0x54], ebx
mov ebx, eax
dec eax
mov dword [0x100ad304], eax
movzx eax, word [ecx]
movzx ecx, word [0x100ad2dc]
lea eax, [eax + eax*2]
or ecx, dword [eax*4 + 0xaca]
mov eax, ecx
mov dword [0x100ad2e4], esi
cdq
idiv edi
mov edi, dword [esp + 0x54]
mov dword [0x100ad2c0], edx
mov dword [0x100ad2cc], edx
xor edx, edx
mov eax, dword [0xaae]
movzx eax, word [ebx + eax*4]
and word [ebp + esi*2], ax
mov esi, dword [esp + 0x2c]
inc byte [esi]
movzx eax, byte [esi]
mov ebx, dword [0x100ad304]
mov ebp, dword [0x100ad2e4]
movzx ecx, word [edi + eax*8]
mov eax, dword [0x100ad2e8]
or eax, 0x70a
inc byte [0x100ad2c9]
xor ecx, eax
movzx eax, word [0x100ad2d8]
and eax, ebx
and dword [0x100ad2c0], ecx
imul eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
movzx ecx, cx
sub eax, 0x8e
div dword [0x100ad2e0]
mov dword [0x100ad2e0], edx
movzx eax, byte [esi]
movzx eax, word [edi + eax*2]
mov edi, ebx
dec dword [0x100ad2f8]
imul eax, ecx
movzx ecx, ax
mov eax, dword [0x100ad2f0]
xor eax, ebp
mov dword [esp + 0x4c], eax
mov ax, word [0x100ad2d0]
movzx esi, ax
inc ax
mov word [0x100ad2d0], ax
dec ebx
mov dword [0x100ad304], ebx
dec ebp
mov dword [0x100ad2e4], ebp
dec ebp
movzx eax, word [0x13ef]
lea eax, [eax + eax*2]
or ecx, dword [eax*4 + 0xaca]
mov eax, ecx
mov dword [0x100ad2e4], ebp
cdq
idiv esi
mov ecx, dword [esp + 0x4c]
mov esi, dword [esp + 0x54]
mov dword [0x100ad2c0], edx
mov dword [0x100ad2cc], edx
mov eax, dword [0xaae]
mov edx, dword [esp + 0x20]
movzx eax, word [edi + eax*4]
and word [ecx + ebp*2], ax
mov ecx, dword [0x100ad2e4]
mov eax, dword [0x100ad30c]
dec ecx
mov dword [0x100ad2e4], ecx
cmp dword [edx + eax*4], ecx
jae 0x1001990f
mov eax, dword [esp + 0x24]
xor edx, edx
div dword [0x100ad308]
mov ecx, dword [esp + 0x2c]
mov dword [0x100ad308], edx
mov edx, dword [esp + 0x50]
movzx eax, byte [ecx]
mov ecx, dword [esp + 0x14]
mov eax, dword [edx + eax*4 + 0x74]
movzx ecx, word [esi + ecx*2 - 2]
cdq
idiv ecx
mov ecx, dword [esp + 0x40]
movzx eax, dl
mov edx, dword [esp + 0x44]
imul eax, eax, 0x8d
xor byte [ecx + edx*4], al
movzx eax, word [esi]
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
movzx eax, word [ecx + eax*2]
mov ecx, dword [esp + 0x24]
pop ebx
movzx ecx, byte [ecx + 0x1db6]
sub eax, ecx
add esp, 0x38
ret