Function at 0x100a4520
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x104
mov eax, dword [0x101e6040]
xor eax, esp
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x11c]
xorps xmm0, xmm0
push ebx
mov ebx, dword [esp + 0x11c]
push ebp
mov ebp, dword [esp + 0x11c]
push esi
mov dword [esp + 0x40], eax
mov esi, ecx
mov eax, dword [esp + 0x12c]
push edi
mov edi, edx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x40], eax
movups xmmword [esp + 0x90], xmm0
movups xmmword [esp + 0xa0], xmm0
movups xmmword [esp + 0xb0], xmm0
movups xmmword [esp + 0xc0], xmm0
nop word [eax + eax]
mov eax, dword [ecx]
lea ecx, [ecx + 4]
inc dword [esp + eax*4 + 0x90]
sub edx, 1
jne 0x100a4590
cmp dword [esp + 0x90], edi
jne 0x100a45b6
mov dword [ebp], edx
mov dword [ebx], edx
xor eax, eax
jmp 0x100a4956
mov edx, dword [ebx]
mov ecx, 1
nop dword [eax]
cmp dword [esp + ecx*4 + 0x90], 0
jne 0x100a45d0
inc ecx
cmp ecx, 0xf
jbe 0x100a45c0
cmp edx, ecx
mov dword [esp + 0x1c], ecx
mov eax, 0xf
cmovb edx, ecx
nop
cmp dword [esp + eax*4 + 0x90], 0
jne 0x100a45ef
sub eax, 1
jne 0x100a45e0
cmp edx, eax
mov dword [esp + 0x30], eax
cmova edx, eax
mov dword [esp + 0x18], edx
mov dword [ebx], edx
mov edx, 1
shl edx, cl
cmp ecx, eax
jae 0x100a4624
nop dword [eax]
sub edx, dword [esp + ecx*4 + 0x90]
js 0x100a4953
inc ecx
add edx, edx
cmp ecx, eax
jb 0x100a4610
lea ebx, [eax*4]
mov ecx, edx
sub edx, dword [esp + ebx + 0x90]
mov dword [esp + 0x50], edx
js 0x100a4953
xor edx, edx
mov dword [esp + ebx + 0x90], ecx
mov dword [esp + 0xd4], edx
sub eax, 1
je 0x100a466b
xor ecx, ecx
add edx, dword [esp + ecx + 0x94]
lea ecx, [ecx + 4]
mov dword [esp + ecx + 0xd4], edx
sub eax, 1
jne 0x100a4655
xor ecx, ecx
nop dword [eax]
mov edx, dword [esi]
lea esi, [esi + 4]
test edx, edx
je 0x100a468f
mov eax, dword [esp + edx*4 + 0xd0]
mov dword [eax*4 + 0x101fb1a8], ecx
inc eax
mov dword [esp + edx*4 + 0xd0], eax
inc ecx
cmp ecx, edi
jb 0x100a4670
mov eax, dword [esp + ebx + 0xd0]
xor edx, edx
mov ecx, dword [esp + 0x18]
xor ebx, ebx
mov esi, dword [esp + 0x1c]
neg ecx
mov dword [esp + 0x4c], eax
xor edi, edi
or eax, 0xffffffff
mov dword [esp + 0x20], edx
mov dword [esp + 0xd0], edx
mov dword [esp + 0x34], 0x101fb1a8
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x38], ebx
cmp esi, dword [esp + 0x30]
jg 0x100a493d
lea edx, [esp + 0x90]
lea edx, [edx + esi*4]
mov dword [esp + 0x2c], edx
mov edx, ebx
nop
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x14]
je 0x100a4929
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x3c], ebp
dec ebp
mov dword [esp + 0x28], ebp
mov ebp, dword [esp + 0x18]
add ebp, ecx
cmp esi, ebp
jle 0x100a480c
mov edi, dword [esp + 0x30]
inc eax
sub edi, ebp
mov dword [esp + 0x14], eax
cmp edi, dword [esp + 0x18]
mov edx, esi
mov eax, 1
cmova edi, dword [esp + 0x18]
sub edx, ebp
mov ecx, edx
shl eax, cl
cmp eax, dword [esp + 0x3c]
jbe 0x100a4773
mov esi, dword [esp + 0x2c]
or ecx, 0xffffffff
sub ecx, dword [esp + 0x28]
add eax, ecx
cmp edx, edi
jae 0x100a4773
inc edx
cmp edx, edi
jae 0x100a4773
nop
mov ecx, dword [esi + 4]
lea esi, [esi + 4]
add eax, eax
cmp eax, ecx
jbe 0x100a4773
inc edx
sub eax, ecx
cmp edx, edi
jb 0x100a4760
mov ecx, edx
mov edi, 1
shl edi, cl
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx]
lea esi, [eax + edi]
cmp esi, 0x5a0
ja 0x100a4953
mov ebx, dword [esp + 0x44]
mov dword [ecx], esi
lea ebx, [ebx + eax*4]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x38], ebx
mov dword [esp + eax*4 + 0x54], ebx
test eax, eax
je 0x100a47ec
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x10], dl
mov edx, esi
mov dword [esp + eax*4 + 0xd0], esi
mov eax, dword [esp + 0x18]
shr edx, cl
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x11], al
mov eax, ebx
mov ecx, dword [esp + ecx*4 + 0x50]
sub eax, ecx
sar eax, 2
sub eax, edx
mov word [esp + 0x12], ax
mov eax, dword [esp + 0x10]
mov dword [ecx + edx*4], eax
mov eax, dword [esp + 0x14]
jmp 0x100a47f2
mov ecx, dword [esp + 0x48]
mov dword [ecx], ebx
mov esi, dword [esp + 0x1c]
mov ecx, ebp
add ebp, dword [esp + 0x18]
mov dword [esp + 0x24], ecx
cmp esi, ebp
jg 0x100a4721
mov edx, dword [esp + 0x20]
mov al, byte [esp + 0x1c]
mov esi, dword [esp + 0x34]
sub al, cl
mov byte [esp + 0x11], al
mov eax, dword [esp + 0x4c]
lea eax, [eax*4 + 0x101fb1a8]
cmp esi, eax
jb 0x100a4830
mov byte [esp + 0x10], 0xc0
jmp 0x100a4881
mov ecx, dword [esi]
add esi, 4
mov eax, dword [esp + 0x118]
mov dword [esp + 0x34], esi
cmp ecx, eax
jae 0x100a485b
cmp ecx, 0x100
mov word [esp + 0x12], cx
sbb al, al
and al, 0xa0
add al, 0x60
mov byte [esp + 0x10], al
jmp 0x100a4881
sub ecx, eax
mov dword [esp + 0x34], esi
mov eax, dword [esp + 0x120]
mov al, byte [eax + ecx*2]
add al, 0x50
mov byte [esp + 0x10], al
mov eax, dword [esp + 0x11c]
mov ax, word [eax + ecx*2]
mov word [esp + 0x12], ax
mov ecx, dword [esp + 0x1c]
mov esi, 1
sub ecx, dword [esp + 0x24]
shl esi, cl
mov ecx, dword [esp + 0x24]
shr edx, cl
cmp edx, edi
jae 0x100a48a9
mov eax, dword [esp + 0x10]
nop
mov dword [ebx + edx*4], eax
add edx, esi
cmp edx, edi
jb 0x100a48a0
mov ecx, dword [esp + 0x1c]
mov eax, 1
mov esi, dword [esp + 0x20]
lea ecx, [ecx - 1]
shl eax, cl
test esi, eax
je 0x100a48c8
nop
xor esi, eax
shr eax, 1
test esi, eax
jne 0x100a48c0
mov ecx, dword [esp + 0x24]
xor esi, eax
mov edx, dword [esp + 0x14]
mov eax, 1
shl eax, cl
dec eax
mov dword [esp + 0x20], esi
and eax, esi
cmp eax, dword [esp + edx*4 + 0xd0]
je 0x100a4912
mov ebx, dword [esp + 0x18]
nop dword [eax]
sub ecx, ebx
mov eax, 1
shl eax, cl
dec edx
dec eax
and eax, esi
cmp eax, dword [esp + edx*4 + 0xd0]
jne 0x100a48f0
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], ecx
cmp dword [esp + 0x28], 0
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
jne 0x100a4706
add dword [esp + 0x2c], 4
inc esi
mov dword [esp + 0x1c], esi
cmp esi, dword [esp + 0x30]
jle 0x100a46f0
cmp dword [esp + 0x50], 0
je 0x100a45af
cmp dword [esp + 0x30], 1
je 0x100a45af
or eax, 0xffffffff
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10151433
add esp, 0x104
ret