Function at 0x45d1b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x30
mov edi, dword [ecx + 0x1c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
test edi, edi
jne 0x45d1e0
mov dword [eax + 4], 0
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, ecx
lea ecx, [edi + edi]
mov dword [esp], edx
mov esi, edx
mov dword [esp + 4], ecx
mov dword [esp + 0x24], ecx
call fcn.0045c2d0
test eax, eax
je 0x45d3f8
mov eax, dword [ebx + 0x24]
xor dword [esi + 0xc], eax
mov eax, dword [ebx + 0x18]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x28], eax
mov eax, esi
mov esi, dword [esi]
mov edx, dword [eax + 4]
mov dword [esp + 0x2c], edx
test ecx, ecx
jle 0x45d500
lea eax, [ecx - 1]
cmp eax, 2
jbe 0x45d554
movdqu xmm1, xmmword [0x668f00]
movd xmm7, edx
mov edx, ecx
mov eax, esi
shr edx, 2
pshufd xmm3, xmm7, 0
movdqu xmm2, xmmword [0x668f10]
shl edx, 4
add edx, esi
lea esi, [esi]
movdqa xmm0, xmm1
movdqu xmm4, xmmword [eax]
add eax, 0x10
paddd xmm1, xmm2
psubd xmm0, xmm3
psrad xmm0, 0x1f
pand xmm0, xmm4
movups xmmword [eax - 0x10], xmm0
cmp eax, edx
jne 0x45d258
mov eax, ecx
and eax, 0xfffffffc
mov dword [esp + 0x24], eax
test cl, 3
je 0x45d2df
lea edx, [eax*4]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x2c]
sub eax, edx
mov edx, eax
mov eax, dword [esp + 0x18]
sar edx, 0x1f
and dword [esi + eax], edx
mov eax, dword [esp + 0x24]
lea edx, [eax + 1]
cmp ecx, edx
jle 0x45d2df
mov eax, dword [esp + 0x2c]
sub edx, eax
mov eax, dword [esp + 0x18]
sar edx, 0x1f
and dword [esi + eax + 4], edx
mov eax, dword [esp + 0x24]
add eax, 2
cmp ecx, eax
jle 0x45d2df
mov edx, dword [esp + 0x2c]
sub eax, edx
mov edx, dword [esp + 0x18]
sar eax, 0x1f
and dword [esi + edx + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x2c], 0
mov dword [eax + 4], ecx
mov eax, dword [ebx + 0x40]
xor ebx, ebx
mov dword [esp + 0x24], eax
lea esi, cs:[esi]
nop
mov eax, dword [esp + 0x24]
imul eax, dword [esi]
mov dword [esp], esi
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
call fcn.00585ec0
mov ecx, dword [esi + edi*4]
xor edx, edx
add eax, ebx
add eax, ecx
cmp ecx, eax
mov dword [esi + edi*4], eax
setne dl
or edx, ebx
xor ebx, ebx
cmp ecx, eax
setae bl
add dword [esp + 0x2c], 1
mov eax, dword [esp + 0x2c]
add esi, 4
and ebx, edx
cmp edi, eax
jne 0x45d300
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.0045c2d0
test eax, eax
je 0x45d3f8
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov eax, dword [edx + 0xc]
mov edx, dword [edx]
mov dword [ecx + 4], edi
mov esi, dword [ecx]
mov dword [ecx + 0xc], eax
lea ecx, [edi*4]
lea eax, [edx + ecx]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0xc], edi
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], esi
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], eax
call fcn.00586600
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
sub ebx, eax
lea eax, [edi - 1]
cmp eax, 2
jbe 0x45d3c9
lea eax, [edx + ecx + 0x10]
cmp esi, eax
jae 0x45d408
lea eax, [esi + 0x10]
cmp dword [esp + 0x2c], eax
jae 0x45d408
mov edx, dword [esp + 0x2c]
lea edi, [edx + ecx]
mov ecx, dword [esi]
mov eax, dword [edx]
add edx, 4
add esi, 4
xor eax, ecx
and eax, ebx
xor eax, ecx
mov dword [esi - 4], eax
mov dword [edx - 4], 0
cmp edi, edx
jne 0x45d3d0
jmp 0x45d1d2
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x2c]
mov ecx, edi
movd xmm7, ebx
mov edx, esi
shr ecx, 2
pshufd xmm2, xmm7, 0
pxor xmm1, xmm1
mov dword [esp + 0x28], eax
shl ecx, 4
add ecx, eax
lea esi, [esi]
movdqu xmm5, xmmword [edx]
movdqu xmm0, xmmword [eax]
add eax, 0x10
add edx, 0x10
pxor xmm0, xmm5
pand xmm0, xmm2
pxor xmm0, xmm5
movups xmmword [edx - 0x10], xmm0
movups xmmword [eax - 0x10], xmm1
cmp eax, ecx
jne 0x45d430
mov eax, edi
and eax, 0xfffffffc
test edi, 3
je 0x45d1d2
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
shl eax, 2
add ecx, eax
add eax, esi
mov edx, dword [eax]
xor edx, dword [ecx]
and edx, ebx
xor edx, dword [eax]
mov dword [eax], edx
mov eax, dword [esp + 0x28]
mov dword [ecx], 0
add eax, 1
cmp eax, edi
jge 0x45d1d2
mov edx, dword [esp + 0x2c]
lea ecx, [eax*4]
mov dword [esp + 0x20], ecx
add edx, ecx
mov eax, edx
lea edx, [esi + ecx]
mov ecx, dword [edx]
xor ecx, dword [eax]
mov dword [esp + 0x24], eax
mov eax, ecx
and eax, ebx
xor eax, dword [edx]
mov dword [edx], eax
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
add eax, 2
mov dword [edx], 0
cmp edi, eax
jle 0x45d1d2
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
add ecx, 4
add edx, ecx
add ecx, esi
mov esi, dword [ecx]
mov eax, dword [edx]
xor eax, esi
and eax, ebx
xor eax, esi
mov dword [ecx], eax
mov dword [edx], 0
jmp 0x45d1d2
mov eax, dword [esp + 0x20]
mov dword [eax + 4], ecx
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.0045c2d0
test eax, eax
je 0x45d3f8
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esi + 0xc]
mov dword [ebx + 4], edi
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov eax, dword [esi]
lea eax, [eax + edi*4]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.00586600
jmp 0x45d1d2
mov eax, edx
mov dword [esp + 0x18], 0
mov edx, 1
neg eax
mov dword [esp + 0x24], 0
sar eax, 0x1f
and dword [esi], eax
jmp 0x45d2b2