Function at 0x459147
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov eax, dword [0x54c03c]
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
xor eax, ebp
cmp ebx, 0xf
mov dword [esp + 0x78], eax
movdqu xmm5, xmmword [ecx + 0x30]
movdqu xmm6, xmmword [ecx + 0x40]
movdqu xmm7, xmmword [ecx + 0x50]
movdqu xmm1, xmmword [ecx + 0x60]
jg 0x459193
test ebx, ebx
jne 0x45953b
jmp 0x459642
mov eax, esi
neg eax
and eax, 0xf
je 0x459247
movups xmm0, xmmword [esi]
add esi, eax
sub ebx, eax
movdqa xmm3, xmmword [0x505480]
movdqa xmm4, xmm6
movups xmmword [edi], xmm0
add edi, eax
shl eax, 4
movaps xmmword [esp + 0x20], xmm0
movdqa xmm0, xmm1
movdqa xmm1, xmm5
movdqa xmm2, xmmword [eax + 0x5054f0]
pxor xmm3, xmm2
pshufb xmm4, xmm2
pshufb xmm1, xmm2
pshufb xmm5, xmm3
pshufb xmm6, xmm3
por xmm5, xmm4
movdqa xmm4, xmm7
pshufb xmm7, xmm3
pshufb xmm4, xmm2
por xmm6, xmm4
movdqa xmm4, xmm0
pshufb xmm0, xmm3
pshufb xmm4, xmm2
por xmm7, xmm4
movdqa xmm4, xmmword [esp + 0x20]
pshufb xmm4, xmm2
movdqa xmm2, xmmword [0x505490]
por xmm0, xmm4
movdqa xmmword [esp + 0x20], xmm4
pclmulqdq xmm2, xmm1, 1
pclmulqdq xmm1, xmmword [0x5054a0], 1
pxor xmm1, xmm0
pxor xmm1, xmm2
jmp 0x459252
movdqu xmm0, xmmword [ecx + 0x70]
movdqa xmmword [esp + 0x20], xmm0
cmp ebx, 0x40
movdqa xmmword [esp], xmm7
jl 0x45938d
mov eax, ebx
mov ecx, 0xffffff80
movdqa xmm0, xmmword [esp]
movdqa xmm4, xmm1
movdqa xmm7, xmm5
not eax
cmp eax, 0xffffff7f
cmovg ecx, eax
xor edx, edx
lea ecx, [ebx + ecx + 0x40]
and ecx, 0xffffffc0
lea eax, [ecx + 0x40]
mov dword [esp + 0x3c], eax
lea eax, [esi + ecx + 0x40]
mov dword [esp + 0x40], eax
lea eax, [ebx + 0x40]
movaps xmm2, xmmword [esi + edx + 0x20]
movdqa xmm3, xmmword [0x505490]
movdqa xmm1, xmmword [esi + edx]
movdqa xmmword [esp + 0x50], xmm6
movdqa xmm5, xmmword [esi + edx + 0x10]
add eax, 0xffffffc0
movdqa xmm6, xmmword [esp + 0x50]
movaps xmmword [esp + 0x10], xmm2
movaps xmm2, xmmword [esi + edx + 0x30]
movdqu xmmword [edi + edx], xmm1
movdqu xmmword [edi + edx + 0x10], xmm5
movaps xmmword [esp], xmm2
movdqa xmm2, xmm7
pclmulqdq xmm7, xmm3, 0x10
movdqa xmm3, xmmword [0x5054a0]
pxor xmm7, xmm1
movdqa xmm1, xmm6
pclmulqdq xmm2, xmm3, 1
pclmulqdq xmm1, xmm3, 1
pxor xmm7, xmm2
movdqa xmm2, xmmword [0x505490]
pclmulqdq xmm6, xmm2, 0x10
pxor xmm6, xmm5
movdqa xmm5, xmmword [esp + 0x10]
pxor xmm6, xmm1
movdqa xmm1, xmm0
pclmulqdq xmm0, xmm2, 0x10
pclmulqdq xmm1, xmm3, 1
pxor xmm0, xmm5
movdqu xmmword [edi + edx + 0x20], xmm5
pxor xmm0, xmm1
movdqa xmm1, xmm4
pclmulqdq xmm4, xmm2, 0x10
movdqa xmm2, xmmword [esp]
pclmulqdq xmm1, xmm3, 1
pxor xmm4, xmm2
movdqu xmmword [edi + edx + 0x30], xmm2
add edx, 0x40
cmp eax, 0x7f
pxor xmm4, xmm1
jg 0x459299
add ebx, 0xffffffc0
add edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x40]
movdqa xmm1, xmm4
movdqa xmmword [esp], xmm0
movdqa xmmword [esp + 0x10], xmm7
sub ebx, ecx
mov ecx, dword [ebp + 8]
jmp 0x459393
movdqa xmmword [esp + 0x10], xmm5
cmp ebx, 0x30
jl 0x459455
movaps xmm0, xmmword [esi]
movdqa xmmword [esp + 0x40], xmm1
movdqa xmm1, xmmword [esp]
movdqa xmm2, xmmword [0x505490]
movdqa xmm3, xmmword [0x5054a0]
movdqa xmm7, xmmword [esp + 0x10]
add ebx, 0xffffffd0
movaps xmmword [esp + 0x50], xmm0
movdqa xmm0, xmmword [esi + 0x20]
movdqa xmm4, xmm1
movdqa xmm5, xmm1
movdqa xmm1, xmm6
pclmulqdq xmm4, xmm2, 0x10
pclmulqdq xmm5, xmm3, 1
pclmulqdq xmm1, xmm2, 0x10
pxor xmm4, xmm0
pxor xmm4, xmm5
movdqa xmm5, xmm6
movdqa xmm6, xmmword [esi + 0x10]
pclmulqdq xmm5, xmm3, 1
pclmulqdq xmm3, xmm7, 0x10
pclmulqdq xmm7, xmm2, 0x10
movdqa xmm2, xmmword [esp + 0x50]
pxor xmm1, xmm6
pxor xmm7, xmm2
movdqu xmmword [edi], xmm2
movdqu xmmword [edi + 0x10], xmm6
pxor xmm1, xmm5
movdqu xmmword [edi + 0x20], xmm0
movdqa xmm6, xmm7
movdqa xmm0, xmm1
pxor xmm6, xmm3
je 0x459655
movdqa xmm5, xmmword [esp + 0x40]
add edi, 0x30
add esi, 0x30
movdqa xmm1, xmm4
jmp 0x459537
cmp ebx, 0x20
jl 0x4594e0
movdqa xmm3, xmmword [0x5054a0]
movdqa xmm5, xmmword [0x505490]
movdqa xmm7, xmmword [esp + 0x10]
movdqa xmm0, xmm1
movdqa xmm1, xmmword [esi]
movdqa xmm2, xmmword [esi + 0x10]
movdqa xmm4, xmm6
add ebx, 0xffffffe0
pclmulqdq xmm4, xmm3, 1
pclmulqdq xmm3, xmm7, 0x10
pclmulqdq xmm7, xmm5, 0x10
pclmulqdq xmm6, xmm5, 0x10
movdqu xmmword [edi], xmm1
movdqu xmmword [edi + 0x10], xmm2
pxor xmm7, xmm1
pxor xmm6, xmm2
movdqa xmm1, xmm7
pxor xmm1, xmm3
movdqa xmm3, xmm6
pxor xmm3, xmm4
je 0x45967c
movdqa xmm5, xmmword [esp]
movdqa xmm7, xmm1
add edi, 0x20
add esi, 0x20
movdqa xmm6, xmm0
movdqa xmm1, xmm3
jmp 0x45953b
cmp ebx, 0x10
jl 0x459661
movdqa xmm3, xmmword [0x5054a0]
movdqa xmm7, xmmword [esp + 0x10]
movdqa xmm0, xmm1
movdqa xmm1, xmmword [esi]
add ebx, 0xfffffff0
pclmulqdq xmm3, xmm7, 0x10
pclmulqdq xmm7, xmmword [0x505490], 0x10
movdqu xmmword [edi], xmm1
pxor xmm7, xmm1
movdqa xmm1, xmm7
pxor xmm1, xmm3
je 0x459695
movdqa xmm5, xmm6
movdqa xmm6, xmmword [esp]
add edi, 0x10
add esi, 0x10
movdqa xmm7, xmm0
mov eax, 0x10
xor ecx, ecx
movdqa xmmword [esp + 0x40], xmm1
movdqa xmmword [esp], xmm7
movdqa xmmword [esp + 0x10], xmm5
movdqa xmmword [esp + 0x50], xmm6
sub eax, ebx
cmp ebx, 0xf
cmovbe ecx, eax
lea eax, [esp + ebx + 0x68]
push ecx
push 0
push eax
call fcn.004daa90
add esp, 0xc
lea eax, [esp + 0x68]
push ebx
push esi
push eax
mov esi, eax
call fcn.004d9f90
movdqa xmm7, xmmword [esp + 0xc]
movdqa xmm5, xmmword [esp + 0x1c]
movdqa xmm6, xmmword [esp + 0x5c]
mov ecx, dword [ebp + 8]
add esp, 0xc
shl ebx, 4
movdqa xmm0, xmmword [0x505480]
movdqa xmm3, xmm6
movdqa xmm2, xmmword [esp + 0x40]
movdqa xmm1, xmm5
movdqa xmm4, xmmword [ebx + 0x5054f0]
pxor xmm0, xmm4
pshufb xmm3, xmm4
pshufb xmm1, xmm4
pshufb xmm5, xmm0
pshufb xmm6, xmm0
por xmm5, xmm3
movdqa xmm3, xmm7
pshufb xmm7, xmm0
pshufb xmm3, xmm4
por xmm6, xmm3
movdqa xmm3, xmm2
pshufb xmm2, xmm0
pshufb xmm3, xmm4
por xmm7, xmm3
movdqu xmm3, xmmword [esi]
movdqu xmmword [edi], xmm3
pshufb xmm3, xmm4
movdqa xmm4, xmmword [0x505490]
por xmm2, xmm3
pclmulqdq xmm4, xmm1, 1
pclmulqdq xmm1, xmmword [0x5054a0], 1
pxor xmm1, xmm2
pxor xmm1, xmm4
movdqu xmmword [ecx + 0x30], xmm5
movdqu xmmword [ecx + 0x40], xmm6
movdqu xmmword [ecx + 0x50], xmm7
movdqu xmmword [ecx + 0x60], xmm1
movdqu xmmword [ecx + 0x70], xmm3
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.004d45c8
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movdqa xmm5, xmmword [esp + 0x40]
movdqa xmm1, xmm4
jmp 0x45969e
movdqa xmm5, xmmword [esp + 0x10]
movdqa xmm7, xmmword [esp]
movdqa xmm3, xmmword [esp + 0x20]
test ebx, ebx
jne 0x45953b
jmp 0x459629
movdqa xmm7, xmm1
movdqa xmm1, xmm3
movdqa xmm5, xmmword [esp]
movdqa xmm3, xmmword [esp + 0x20]
movdqa xmm6, xmm0
jmp 0x459629
movdqa xmm5, xmm6
movdqa xmm6, xmmword [esp]
movdqa xmm3, xmmword [esp + 0x20]
movdqa xmm7, xmm0
jmp 0x459629