Function at 0x10024c99
Capabilities:
Encode data using xor

Disassembly:
push 0xac
mov eax, 0x10077a75
call fcn.1004605f
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x4c], eax
mov al, byte [ebp + 0x10]
mov byte [ebp - 0x41], al
call fcn.100103ba
test al, al
je 0x10024faf
cmp dword [ebp + 8], 0
je 0x10024faf
cmp byte [ebp - 0x41], 4
jae 0x10024faf
mov ecx, 0xd78c9c
call fcn.10010f34
cmp byte [eax + 0x64c], 0
je 0x10024faf
cmp dword [0x1009e6f0], 0
je 0x10024faf
mov eax, dword [esi]
mov eax, dword [eax + 0x144]
mov dword [ebp - 0x50], eax
test eax, eax
je 0x10024faf
call fcn.1000ccb0
movzx ecx, byte [ebp - 0x41]
mov edi, eax
mov ecx, dword [esi + ecx*4 + 4]
test ecx, ecx
je 0x10024faf
push edx
mov edx, edi
call fcn.10010164
pop ecx
test al, al
je 0x10024faf
mov eax, dword [0x1009e6f0]
mov edx, ebx
push 0x2c
cmp dword [eax + 0x44], ebx
jae 0x10024e41
lea ecx, [ebp - 0xa0]
call fcn.1000d6e8
pop ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [eax + 0x14], 0x10
jb 0x10024d66
mov eax, dword [eax]
movaps xmm0, xmmword [0x1008ed80]
mov ecx, ebx
push eax
movups xmmword [ebp - 0x6c], xmm0
mov dword [ebp - 0x5c], 0xf090318
mov dword [ebp - 0x58], 0x4f4a504a
mov word [ebp - 0x54], 0x19
mov al, byte [ebp - 0x6c]
xor byte [ebp + ecx - 0x6b], al
inc ecx
cmp ecx, 0x18
jb 0x10024d88
sub esp, 0x18
mov byte [ebp - 0x53], bl
lea eax, [ebp - 0x6b]
mov ecx, esp
push eax
call fcn.10001f6a
lea eax, [ebp - 0x28]
push eax
call fcn.10007414
add esp, 0x20
push ebx
push 1
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 2
call fcn.10001e1f
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10024dd2
sub ecx, edx
mov dword [ebp - 0x48], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.10045abb
push esi
mov edi, eax
push ebx
push edi
call fcn.1005ddd0
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
push dword [ebp - 0x48]
cmovae ecx, dword [ebp - 0x28]
lea esi, [edi + 0x20]
push ecx
push esi
call fcn.1005e370
mov eax, dword [ebp - 0x48]
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 0x4c]
mov dword [edi + 4], esi
mov dword [edi + 0x18], 0x1f
push edi
mov dword [eax], edi
call fcn.10045ab6
mov edx, dword [ebp - 0x50]
add esp, 0x20
mov ecx, dword [ebp + 8]
mov edx, dword [edx + 0x144]
call fcn.10010cf9
push ebx
lea ecx, [ebp - 0x28]
jmp 0x10024fa8
lea ecx, [ebp - 0xb8]
call fcn.1000d6e8
pop ecx
mov dword [ebp - 4], 3
cmp dword [eax + 0x14], 0x10
jb 0x10024e5c
mov eax, dword [eax]
movaps xmm0, xmmword [0x1008ed80]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x88], xmm0
mov dword [ebp - 0x78], 0xf090318
mov dword [ebp - 0x74], 0x4f4a504a
mov word [ebp - 0x70], 0x19
mov al, byte [ebp - 0x88]
xor byte [ebp + ecx - 0x87], al
inc ecx
cmp ecx, 0x18
jb 0x10024e81
sub esp, 0x18
mov byte [ebp - 0x6f], 0
lea eax, [ebp - 0x87]
mov ecx, esp
push eax
call fcn.10001f6a
lea eax, [ebp - 0x40]
push eax
call fcn.10007414
add esp, 0x20
push 0
push 1
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 5
call fcn.10001e1f
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x40]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10024ed6
sub ecx, edx
mov dword [ebp - 0x48], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.10045abb
push esi
mov edi, eax
push 0
push edi
call fcn.1005ddd0
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x40]
push dword [ebp - 0x48]
cmovae ecx, dword [ebp - 0x40]
lea esi, [edi + 0x20]
push ecx
push esi
call fcn.1005e370
mov eax, dword [ebp - 0x48]
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 0x4c]
mov dword [edi + 4], esi
mov dword [edi + 0x18], 0x1f
push edi
mov dword [eax], edi
call fcn.10045ab6
mov edx, dword [ebp - 0x50]
add esp, 0x20
mov edx, dword [edx + 0x140]
cmp ebx, 0x3b9aca00
jl 0x10024f44
mov edx, 0xff00fff6
jmp 0x10024f9b
cmp ebx, 0x5f5e100
jl 0x10024f53
mov edx, 0xffff00ea
jmp 0x10024f9b
cmp ebx, 0x989680
jl 0x10024f62
mov edx, 0xfffc9601
jmp 0x10024f9b
cmp ebx, 0xf4240
jl 0x10024f71
mov edx, 0xff00d939
jmp 0x10024f9b
cmp ebx, 0x186a0
jge 0x10024f9b
cmp ebx, 0x2710
jge 0x10024f3d
cmp ebx, 0x3e8
jge 0x10024f4c
cmp ebx, 0x64
jge 0x10024f5b
cmp ebx, 0xa
mov eax, 0xff00d939
cmovl eax, edx
mov edx, eax
mov ecx, dword [ebp + 8]
call fcn.10010cf9
push 0
lea ecx, [ebp - 0x40]
push 1
call fcn.10001e1f
call fcn.10046009
ret 0x10