Function at 0x1009d708
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov ecx, dword [ebp + 0x28]
mov eax, 0x101bfb40
push esi
push edi
test ecx, ecx
mov dword [ebp - 0x10], 0x20
mov esi, 0x102e1840
mov edx, 0x80
cmove esi, eax
sar edx, cl
push 0x40
pop eax
sar eax, cl
mov dword [ebp - 4], eax
lea edi, [esi + edx*4]
shl eax, 2
mov dword [ebp - 0x60], eax
add eax, esi
mov dword [ebp - 0x1c], eax
mov eax, 0xc0
sar eax, cl
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], edi
mov edi, 0x100
sar edi, cl
lea eax, [esi + eax*4]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], eax
mov eax, 0x1c0
sar eax, cl
mov dword [ebp - 0xc], eax
lea eax, [esi + edi*4]
mov dword [ebp - 0x30], eax
mov edi, 0x200
mov eax, 0x140
sar edi, cl
sar eax, cl
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x34], edi
lea eax, [esi + eax*4]
mov dword [ebp - 0x38], eax
mov eax, 0x2c0
sar eax, cl
mov dword [ebp - 0x3c], eax
mov eax, 0x180
sar eax, cl
lea eax, [esi + eax*4]
mov dword [ebp - 0x40], eax
mov eax, 0x300
sar eax, cl
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0xc]
lea eax, [esi + eax*4]
mov dword [ebp - 0x48], eax
mov eax, 0x3c0
sar eax, cl
mov dword [ebp - 0x4c], eax
lea eax, [esi + edi*4]
mov dword [ebp - 0x50], eax
mov eax, 0x400
sar eax, cl
mov dword [ebp - 0x54], eax
mov eax, 0x240
sar eax, cl
lea eax, [esi + eax*4]
mov dword [ebp - 0x58], eax
mov eax, 0x4c0
sar eax, cl
mov dword [ebp - 0x5c], eax
mov edi, dword [ebp + 0x24]
mov eax, dword [edi]
cmp eax, edx
jge 0x1009d820
mov eax, 0x480
mov esi, 0x900
sar eax, cl
sub esi, eax
shl eax, 2
push eax
mov eax, dword [ebp + 0x20]
push eax
lea eax, [eax + esi*4]
push eax
call fcn.10133dc0
mov ecx, dword [ebp + 0x28]
add esp, 0xc
sub esi, dword [ebp - 0x14]
mov dword [edi], esi
jmp 0x1009d824
sub eax, edx
mov dword [edi], eax
mov eax, dword [edi]
mov edx, dword [ebp + 0x20]
lea edi, [edx + eax*4]
mov dword [ebp - 8], edi
test ecx, ecx
je 0x1009d87c
mov edx, dword [ebp + 0x18]
mov ecx, edx
push 0x20
pop edi
lea esi, [edx + 0x267c]
movss xmm0, dword [ecx]
xorps xmm0, xmmword [0x1015d900]
movss dword [ecx], xmm0
lea ecx, [ecx + 4]
mov eax, dword [esi]
lea esi, [esi - 4]
mov dword [ecx + 0x7c], eax
sub edi, 1
jne 0x1009d841
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x1c]
push edx
push esi
push eax
call dword [eax + 0x2c]
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp - 8]
push esi
push edi
call dword [eax + 0x14]
add esp, 0x14
jmp 0x1009d8b8
mov esi, dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
lea edi, [esi + 0x2600]
push edi
call dword [eax + 8]
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x1c]
push esi
push eax
call dword [eax + 0x2c]
mov eax, dword [ebp + 8]
add esi, 0x100
push edi
push esi
push eax
call dword [eax + 0x2c]
push dword [ebp + 0x1c]
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp - 8]
push esi
push edi
call dword [eax + 0x18]
add esp, 0x28
push dword [ebp - 4]
mov eax, dword [ebp + 0x10]
push dword [ebp - 0x18]
mov esi, dword [ebp + 0x14]
push edi
push esi
call dword [eax]
push dword [ebp - 4]
mov eax, dword [ebp - 0x20]
push esi
push dword [ebp - 0x1c]
lea eax, [edi + eax*4]
push eax
mov eax, dword [ebp + 0x10]
push esi
call dword [eax + 0x14]
push dword [ebp - 4]
mov eax, dword [ebp - 0x28]
push esi
push dword [ebp - 0x24]
lea eax, [edi + eax*4]
push eax
mov eax, dword [ebp + 0x10]
push esi
call dword [eax + 0x14]
push dword [ebp - 4]
mov eax, dword [ebp - 0xc]
push esi
push dword [ebp - 0x2c]
lea eax, [edi + eax*4]
push eax
mov eax, dword [ebp + 0x10]
push esi
call dword [eax + 0x14]
mov eax, dword [ebp - 0x34]
add esp, 0x4c
push dword [ebp - 4]
lea eax, [edi + eax*4]
push esi
push dword [ebp - 0x30]
push eax
mov eax, dword [ebp + 0x10]
push esi
call dword [eax + 0x14]
push dword [ebp - 4]
mov eax, dword [ebp - 0x3c]
push esi
push dword [ebp - 0x38]
lea eax, [edi + eax*4]
push eax
mov eax, dword [ebp + 0x10]
push esi
call dword [eax + 0x14]
push dword [ebp - 4]
mov eax, dword [ebp - 0x44]
push esi
push dword [ebp - 0x40]
lea eax, [edi + eax*4]
push eax
mov eax, dword [ebp + 0x10]
push esi
call dword [eax + 0x14]
push dword [ebp - 4]
mov eax, dword [ebp - 0x4c]
push esi
push dword [ebp - 0x48]
lea eax, [edi + eax*4]
push eax
mov eax, dword [ebp + 0x10]
push esi
call dword [eax + 0x14]
mov eax, dword [ebp - 0x54]
add esp, 0x50
push dword [ebp - 4]
lea eax, [edi + eax*4]
push esi
push dword [ebp - 0x50]
push eax
mov eax, dword [ebp + 0x10]
push esi
call dword [eax + 0x14]
push dword [ebp - 4]
mov eax, dword [ebp - 0x5c]
push esi
push dword [ebp - 0x58]
lea eax, [edi + eax*4]
push eax
mov eax, dword [ebp + 0x10]
push esi
call dword [eax + 0x14]
add esi, dword [ebp - 0x60]
add esp, 0x28
add dword [ebp + 0x18], 0x100
sub dword [ebp - 0x10], 1
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebp - 0x14]
mov dword [ebp + 0x14], esi
jne 0x1009d7eb
pop edi
pop esi
mov esp, ebp
pop ebp
ret