Function at 0x1009c780
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x34
mov eax, dword [0x101ed004]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
push ebx
push ebp
push esi
mov esi, 0x8000
cmp eax, esi
push edi
mov edi, ecx
cmova eax, esi
push eax
push edx
lea ebp, [edi + 0xe688]
mov dword [esp + 0x2c], edi
push dword [edi + 0xe694]
mov dword [ebp + 4], 0
mov dword [ebp], 0
call fcn.10146160
add esp, 0xc
cmp dword [edi + 0xe664], 0
jne 0x1009c7ea
push 0x40004
call fcn.1015d6d9
add esp, 4
mov dword [edi + 0xe664], eax
test byte [esp + 0x48], 0x80
je 0x1009c80f
mov ecx, ebp
call fcn.100e43d0
mov ebx, eax
mov dword [esp + 0x14], ebx
test ebx, ebx
jne 0x1009c80c
push eax
mov ecx, edi
call fcn.1009d6e0
jmp 0x1009c819
dec ebx
jmp 0x1009c815
mov ebx, dword [edi + 0xe6d4]
mov dword [esp + 0x14], ebx
mov esi, dword [edi + 0xe69c]
mov dword [esp + 0x28], esi
cmp ebx, esi
ja 0x1009c86e
cmp ebx, dword [edi + 0xe6c4]
ja 0x1009c86e
push 0x38
mov dword [edi + 0xe6d4], ebx
call fcn.101427a2
mov ecx, eax
add esp, 4
mov dword [esp + 0x1c], ecx
mov dword [ecx + 0x34], 0
mov dword [ecx + 0x10], 0
cmp ebx, esi
jne 0x1009c9c6
cmp ebx, 0x2000
jbe 0x1009c885
push 0x38
push ecx
call fcn.10142794
add esp, 8
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.10142783
add esp, 0x34
ret 0xc
push ecx
lea ecx, [edi + 0xe698]
call fcn.100a0290
push 0x38
call fcn.101427a2
mov dword [esp + 0x1c], eax
add esp, 4
mov dword [eax + 0x34], 0
mov dword [eax + 0x10], 0
mov edx, dword [edi + 0xe69c]
mov ecx, dword [edi + 0xe698]
mov dword [ecx + edx*4 - 4], eax
mov eax, dword [edi + 0xe69c]
mov ecx, dword [esp + 0x1c]
dec eax
mov dword [ecx + 0xc], eax
inc dword [edi + 0xe6c4]
mov ecx, dword [edi + 0xe6c4]
mov edx, dword [edi + 0xe6c8]
cmp ecx, edx
jbe 0x1009c994
mov eax, dword [edi + 0xe6cc]
test eax, eax
je 0x1009c8f7
cmp ecx, eax
ja 0x1009cdf2
mov eax, edx
shr eax, 2
add eax, 0x20
add eax, edx
cmp ecx, eax
cmova eax, ecx
xor ecx, ecx
mov dword [esp + 0x10], eax
lea edx, [ecx + 4]
cmp byte [edi + 0xe6d0], cl
je 0x1009c9a4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10146843
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
je 0x1009cdf7
mov esi, dword [edi + 0xe6c0]
test esi, esi
je 0x1009c97e
mov ebx, dword [edi + 0xe6c8]
shl ebx, 2
push ebx
push esi
push eax
call fcn.10146160
add esp, 0xc
test ebx, ebx
je 0x1009c971
nop dword [eax + eax]
mov byte [esi], 0
lea esi, [esi + 1]
sub ebx, 1
jne 0x1009c960
mov esi, dword [edi + 0xe6c0]
push esi
call fcn.10146720
mov eax, dword [esp + 0x24]
add esp, 4
mov ecx, dword [edi + 0xe6c4]
mov dword [edi + 0xe6c0], eax
mov eax, dword [esp + 0x10]
mov dword [edi + 0xe6c8], eax
mov eax, dword [edi + 0xe6c0]
mov dword [eax + ecx*4 - 4], 0
jmp 0x1009c9d6
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push dword [edi + 0xe6c0]
call fcn.1014d427
add esp, 8
test eax, eax
je 0x1009cdfc
jmp 0x1009c97e
mov eax, dword [edi + 0xe698]
mov eax, dword [eax + ebx*4]
mov dword [esp + 0x18], eax
mov dword [ecx + 0xc], ebx
mov ecx, dword [edi + 0xe6b0]
xor eax, eax
xor ebx, ebx
test ecx, ecx
je 0x1009ca28
mov edx, dword [edi + 0xe6ac]
mov ecx, ebx
sub ecx, eax
mov esi, eax
mov eax, dword [edx + ebx*4]
mov dword [edx + ecx*4], eax
mov eax, dword [edi + 0xe6ac]
cmp dword [eax + ebx*4], 0
lea ecx, [eax + ebx*4]
lea eax, [esi + 1]
cmovne eax, esi
test eax, eax
je 0x1009ca13
mov dword [ecx], 0
mov ecx, dword [edi + 0xe6b0]
inc ebx
cmp ebx, ecx
jb 0x1009c9e4
lea ebp, [edi + 0xe688]
test eax, eax
jne 0x1009ca56
cmp ecx, 0x2000
jbe 0x1009ca3b
push 0x38
push dword [esp + 0x20]
jmp 0x1009c866
lea esi, [edi + 0xe6ac]
push ecx
mov ecx, esi
call fcn.100a0290
mov ecx, dword [edi + 0xe6b0]
mov eax, 1
jmp 0x1009ca5c
lea esi, [edi + 0xe6ac]
sub ecx, eax
mov eax, dword [esi]
mov esi, dword [esp + 0x1c]
mov dword [eax + ecx*4], esi
mov ecx, ebp
call fcn.100e43d0
mov edx, dword [esp + 0x48]
mov ebx, eax
test dl, 0x40
je 0x1009ca7f
add ebx, 0x102
mov ecx, dword [edi + 0x7c]
add ecx, ebx
and ecx, dword [edi + 0xe6dc]
mov dword [esi], ecx
test dl, 0x20
je 0x1009caae
mov ecx, ebp
call fcn.100e43d0
mov edx, dword [esp + 0x14]
mov dword [esi + 4], eax
mov ecx, dword [edi + 0xe6c0]
mov dword [ecx + edx*4], eax
mov edx, dword [esp + 0x48]
jmp 0x1009caca
mov ecx, dword [esp + 0x14]
cmp ecx, dword [edi + 0xe6c4]
jae 0x1009cac5
mov eax, dword [edi + 0xe6c0]
mov eax, dword [eax + ecx*4]
jmp 0x1009cac7
xor eax, eax
mov dword [esi + 4], eax
mov eax, dword [edi + 0x80]
mov ecx, dword [edi + 0x7c]
cmp eax, ecx
je 0x1009cae7
sub eax, ecx
and eax, dword [edi + 0xe6dc]
cmp eax, ebx
ja 0x1009cae7
mov al, 1
jmp 0x1009cae9
xor al, al
mov byte [esi + 8], al
lea ebx, [esi + 0x14]
xorps xmm0, xmm0
movups xmmword [ebx], xmm0
movq qword [ebx + 0x10], xmm0
mov dword [ebx + 0x18], 0
mov eax, dword [esi + 4]
mov dword [esi + 0x24], eax
test dl, 0x10
je 0x1009cb9b
mov esi, dword [ebp]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 4]
movzx eax, byte [ecx + esi + 1]
mov dword [esp + 0x10], eax
movzx eax, byte [ecx + esi]
shl eax, 8
or dword [esp + 0x10], eax
movzx eax, byte [ecx + esi + 2]
mov ecx, 8
shl dword [esp + 0x10], 8
sub ecx, edx
or dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
shr eax, cl
lea ecx, [edx + 7]
shr eax, 9
mov dword [esp + 0x10], eax
mov eax, ecx
mov edi, dword [esp + 0x10]
shr eax, 3
add eax, esi
and ecx, 7
mov dword [ebp + 4], ecx
mov esi, 1
mov ecx, 7
mov dword [ebp], eax
mov dword [esp + 0x20], ecx
mov eax, edi
and eax, esi
test al, 0x7f
je 0x1009cb89
mov ecx, ebp
call fcn.100e43d0
mov ecx, dword [esp + 0x20]
mov dword [ebx], eax
add ebx, 4
rol esi, 1
sub ecx, 1
mov dword [esp + 0x20], ecx
jne 0x1009cb74
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x14], eax
jne 0x1009cdcd
mov ecx, ebp
call fcn.100e43d0
mov ebx, eax
cmp ebx, 0x10000
jae 0x1009c86e
test ebx, ebx
je 0x1009c86e
mov ecx, dword [ebp]
add ecx, ebx
cmp ecx, dword [esp + 0x50]
ja 0x1009c86e
xor eax, eax
lea ecx, [esp + 0x2c]
push ebx
mov word [esp + 0x41], ax
mov byte [esp + 0x43], al
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov byte [esp + 0x40], al
call fcn.100a0360
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x14], 0
test ebx, ebx
je 0x1009cc74
nop
mov ecx, dword [ebp]
lea eax, [ecx + 3]
cmp eax, 0x8000
jae 0x1009cd85
add ecx, dword [edi + 0xe694]
movzx edx, byte [ecx]
movzx eax, byte [ecx + 1]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 2]
shl edx, 8
mov ecx, 8
sub ecx, dword [edi + 0xe68c]
or edx, eax
mov eax, dword [esp + 0x14]
shr edx, cl
shr edx, 8
mov byte [esi + eax], dl
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x14]
add ecx, 8
mov eax, ecx
inc edx
shr eax, 3
and ecx, 7
add dword [ebp], eax
mov dword [ebp + 4], ecx
mov dword [esp + 0x14], edx
cmp edx, ebx
jb 0x1009cc10
mov eax, 1
lea edx, [ebx - 1]
xor cl, cl
cmp ebx, eax
jbe 0x1009ccfc
cmp edx, 0x20
jb 0x1009ccf4
and edx, 0x1f
mov ecx, ebx
sub ecx, edx
xorps xmm1, xmm1
xorps xmm2, xmm2
nop dword [eax]
nop dword [eax + eax]
movups xmm0, xmmword [esi + eax]
pxor xmm1, xmm0
movups xmm0, xmmword [esi + eax + 0x10]
add eax, 0x20
pxor xmm2, xmm0
cmp eax, ecx
jb 0x1009cca0
pxor xmm1, xmm2
movaps xmm0, xmm1
psrldq xmm0, 8
pxor xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
pxor xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 2
pxor xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 1
pxor xmm1, xmm0
movd ecx, xmm1
cmp eax, ebx
jae 0x1009ccfc
xor cl, byte [esi + eax]
inc eax
cmp eax, ebx
jb 0x1009ccf4
cmp cl, byte [esi]
jne 0x1009cd35
push 0x101f1fd0
push ebx
mov edx, esi
mov ecx, 0xffffffff
call fcn.100d5f20
xor edx, edx
not eax
xor ecx, ecx
cmp dword [ecx + 0x101eec34], eax
jne 0x1009cd2c
cmp dword [ecx + 0x101eec30], ebx
je 0x1009cdb7
add ecx, 0xc
inc edx
cmp ecx, 0x48
jb 0x1009cd18
mov edi, dword [esp + 0x18]
cmp byte [esp + 0x3c], 0
je 0x1009cd5b
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x1009cd5b
mov eax, esi
nop word [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x1009cd50
push esi
call fcn.10146720
mov eax, dword [edi + 0x10]
add esp, 4
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword [ecx + 0x10], eax
mov al, 1
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.10142783
add esp, 0x34
ret 0xc
test esi, esi
je 0x1009c86e
cmp byte [esp + 0x3c], 0
je 0x1009cda9
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x1009cda9
mov eax, esi
nop
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x1009cda0
push esi
call fcn.10146720
add esp, 4
jmp 0x1009c86e
mov edi, dword [esp + 0x18]
lea eax, [edx + edx*2]
mov eax, dword [eax*4 + 0x101eec38]
mov dword [edi + 0x10], eax
jmp 0x1009cd39
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, dword [edi + 0x10]
pop edi
pop esi
mov dword [ecx + 0x10], eax
mov al, 1
mov ecx, dword [esp + 0x38]
pop ebp
pop ebx
xor ecx, esp
call fcn.10142783
add esp, 0x34
ret 0xc
call fcn.10095210
call fcn.10095210
call fcn.10095210
int3