Function at 0x1009a590
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa0
call fcn.10175fd0
mov eax, dword [0x1024ee80]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xa4]
push ebx
mov ebx, dword [esp + 0xb4]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xb0]
push ebp
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xbc]
push esi
mov esi, dword [esp + 0xc4]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xcc]
push edi
mov edi, dword [esp + 0xd8]
push ecx
mov ebp, dword [eax]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], edi
call fcn.100b6b20
push ebp
push 0
push edi
mov dword [esp + 0x2c], eax
call fcn.100dff50
add esp, 0x10
test eax, eax
je 0x1009a7c1
mov edi, dword [esp + 0xcc]
inc ebp
test edi, edi
mov edi, dword [esp + 0x10]
je 0x1009a644
push 0
push esi
push edi
push dword [esp + 0x28]
call fcn.1007f040
add esp, 0x10
test eax, eax
jle 0x1009a7c2
push esi
push edi
push ebx
call fcn.10177320
push esi
lea eax, [esp + 0x7c]
push edi
push eax
call fcn.10177320
lea eax, [esi - 1]
add esp, 0x18
test eax, eax
js 0x1009a66d
add byte [ebx + eax], 1
jne 0x1009a66d
sub eax, 1
jns 0x1009a662
push 0
push dword [esp + 0x18]
lea eax, [esp + 0x34]
push 0
push eax
push esi
push edi
call fcn.1004bdb0
add esp, 0x18
test eax, eax
je 0x1009a7c2
push 0
push dword [esp + 0x18]
lea eax, [esp + 0x74]
push 0
push eax
push esi
push ebx
call fcn.1004bdb0
add esp, 0x18
test eax, eax
je 0x1009a7c2
xor eax, eax
test esi, esi
jle 0x1009a76d
cmp esi, 8
jb 0x1009a760
cmp esi, 0x40
jb 0x1009a72f
mov ecx, esi
and ecx, 0xffffffc0
nop dword [eax + eax]
movups xmm0, xmmword [esp + eax + 0x2c]
movups xmm1, xmmword [esp + eax + 0x6c]
xorps xmm1, xmm0
movups xmmword [esp + eax + 0x2c], xmm1
movups xmm0, xmmword [esp + eax + 0x3c]
movups xmm1, xmmword [esp + eax + 0x7c]
xorps xmm1, xmm0
movups xmmword [esp + eax + 0x3c], xmm1
movups xmm0, xmmword [esp + eax + 0x4c]
movups xmm1, xmmword [esp + eax + 0x8c]
xorps xmm1, xmm0
movups xmmword [esp + eax + 0x4c], xmm1
movups xmm0, xmmword [esp + eax + 0x5c]
movups xmm1, xmmword [esp + eax + 0x9c]
xorps xmm1, xmm0
movups xmmword [esp + eax + 0x5c], xmm1
add eax, 0x40
cmp eax, ecx
jl 0x1009a6d0
mov ecx, esi
and cl, 0x3f
cmp cl, 8
jb 0x1009a75c
mov ecx, esi
and ecx, 0xfffffff8
nop dword [eax]
nop dword [eax + eax]
movq xmm0, qword [esp + eax + 0x2c]
movq xmm1, qword [esp + eax + 0x6c]
xorps xmm1, xmm0
movq qword [esp + eax + 0x2c], xmm1
add eax, 8
cmp eax, ecx
jl 0x1009a740
cmp eax, esi
jge 0x1009a76d
mov cl, byte [esp + eax + 0x6c]
xor byte [esp + eax + 0x2c], cl
inc eax
cmp eax, esi
jl 0x1009a760
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x2c]
or byte [esp + 0x2c], 0x80
or byte [esp + esi + 0x2b], 1
push edi
push esi
push eax
call fcn.1005fc10
add esp, 0xc
test eax, eax
je 0x1009a7c2
push dword [esp + 0x18]
push dword [esp + 0x28]
push edi
call fcn.100dffa0
add esp, 0xc
test eax, eax
jg 0x1009a7e3
jne 0x1009a7c2
push ebp
push 0
push dword [esp + 0x20]
mov edi, 1
call fcn.100dff50
add esp, 0xc
test eax, eax
jne 0x1009a623
inc ebp
xor eax, eax
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov dword [ecx], ebp
mov ecx, dword [esp + 0xa4]
pop ebp
pop ebx
xor ecx, esp
call fcn.10175bf0
add esp, 0xa0
ret
mov eax, 1
jmp 0x1009a7c4