Function at 0x10045890
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x288
mov eax, dword [0x100e3008]
xor eax, esp
mov dword [esp + 0x284], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push esi
push edi
push edx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x14]
push ecx
lea ecx, [esp + 0xf8]
mov dword [esp + 0x14], eax
movlpd qword [esp + 0x110], xmm0
mov dword [esp + 0x118], 0
movlpd qword [esp + 0x178], xmm0
mov dword [esp + 0x180], 0
call fcn.100466e0
cmp dword [ebp + 0x18], 0
mov dword [esp + 0x10], 1
jbe 0x10045b49
nop word [eax + eax]
push dword [ebp + 0xc]
mov ecx, 0x34
lea esi, [esp + 0xf4]
push dword [esp + 0x1c]
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x28]
call fcn.100469d0
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c0], eax
xorps xmm0, xmm0
mov eax, 5
cmp dword [ebp + 0x18], eax
push 1
cmovb eax, dword [ebp + 0x18]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c4]
push eax
movups xmmword [esp + 0x1cc], xmm0
call fcn.100469d0
lea eax, [esp + 0x1e0]
push eax
lea ecx, [esp + 0x24]
call fcn.10046a20
mov ecx, dword [esp + 0xa8]
lea edi, [esp + 0x1e0]
mov esi, 5
nop
mov eax, dword [edi]
lea edi, [edi + 4]
mov dword [esp + ecx*4 + 0xac], eax
dec esi
mov ecx, dword [esp + 0xa8]
inc ecx
mov dword [esp + 0xa8], ecx
cmp ecx, 0x10
jne 0x100459f0
push ecx
lea eax, [esp + 0x8c]
mov dword [esp + 0xac], 0
push eax
lea eax, [esp + 0xb4]
push eax
lea ecx, [esp + 0x94]
call fcn.10045d80
add dword [esp + 0xa0], 1
mov ecx, dword [esp + 0xa8]
adc dword [esp + 0xa4], 0
test esi, esi
jne 0x10045990
lea eax, [esp + 0x1e0]
push eax
lea ecx, [esp + 0x8c]
call fcn.10046a20
movaps xmm1, xmmword [esp + 0x1e0]
lea esi, [esp + 0xf0]
mov ecx, 0x34
movaps xmmword [esp + 0x1c0], xmm1
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
push ecx
lea eax, [esp + 0x204]
push eax
lea ecx, [esp + 0x28]
call fcn.10046690
push ecx
lea eax, [esp + 0x24c]
push eax
lea ecx, [esp + 0x90]
call fcn.10046690
mov esi, dword [esp + 0x1f0]
mov edi, dword [esp + 0x1cc]
movaps xmmword [esp + 0x200], xmm1
mov dword [esp + 0x210], esi
mov dword [esp + 0x14], 0x3e7
push ecx
lea eax, [esp + 0x24c]
push eax
lea eax, [esp + 0x208]
push eax
lea ecx, [esp + 0x2c]
call fcn.10045d80
push ecx
lea eax, [esp + 0x204]
push eax
lea eax, [esp + 0x250]
push eax
lea ecx, [esp + 0x94]
call fcn.10045d80
mov eax, dword [esp + 0x1c0]
xor eax, dword [esp + 0x200]
xor edi, dword [esp + 0x20c]
xor esi, dword [esp + 0x210]
mov dword [esp + 0x1c0], eax
mov eax, dword [esp + 0x1c4]
xor eax, dword [esp + 0x204]
mov dword [esp + 0x1c4], eax
mov eax, dword [esp + 0x1c8]
xor eax, dword [esp + 0x208]
sub dword [esp + 0x14], 1
mov dword [esp + 0x1c8], eax
jne 0x10045a76
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x1d0], esi
mov dword [esp + 0x1cc], edi
test eax, eax
je 0x10045b2a
mov edi, dword [esp + 0xc]
lea esi, [esp + 0x1c0]
mov ecx, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xc]
inc dword [esp + 0x10]
lea ecx, [ecx + eax*4]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp + 0x18]
sub ecx, eax
mov dword [ebp + 0x18], ecx
test ecx, ecx
jne 0x10045910
mov ecx, dword [esp + 0x28c]
pop edi
pop esi
xor ecx, esp
call fcn.1009bd8a
mov esp, ebp
pop ebp
ret