Function at 0x514e80
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xfc
mov eax, dword [0x59b000]
xor eax, esp
mov dword [esp + 0xf8], eax
mov eax, dword [esp + 0x104]
mov ecx, dword [esp + 0x100]
push ebx
mov ebx, dword [esp + 0x118]
push ebp
mov dword [esp + 0x10], eax
xor ebp, ebp
cmp dword [esp + 0x118], 0x1c
mov eax, dword [esp + 0x114]
push edi
mov edi, dword [esp + 0x128]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
jae 0x514eec
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.0054a992
add esp, 0xfc
ret
push esi
mov esi, dword [esp + 0x128]
mov edx, 0x20
cmp esi, edx
cmova esi, edx
lea edx, [esp + 0x94]
push edx
push eax
push ecx
call fcn.004b7250
add esp, 0xc
test eax, eax
js 0x515144
push 0x3f
xorps xmm0, xmm0
mov byte [esp + 0x23], 4
lea eax, [esp + 0x55]
mov dword [esp + 0x24], 0x1000000
push 0
push eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
movdqu xmmword [esp + 0x40], xmm0
mov dword [esp + 0x58], ebp
movq qword [esp + 0x50], xmm0
mov byte [esp + 0x5c], 0
call fcn.0054b440
lea eax, [esp + 0x30]
mov dword [esp + 0x9c], ebp
push eax
call fcn.004b45e0
push 1
lea eax, [esp + 0x33]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.004b4630
push 0x38
lea eax, [esp + 0xb4]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.004b4630
add esp, 0x28
test edi, edi
je 0x514ff0
push 0x40
push 0
push edi
call fcn.0054b440
movdqu xmm0, xmmword [esp + 0xa0]
mov eax, dword [esp + 0xb8]
add esp, 0xc
movdqu xmmword [edi], xmm0
movq xmm0, qword [esp + 0xa4]
movq qword [edi + 0x10], xmm0
movdqu xmm0, xmmword [esp + 0xb0]
mov dword [edi + 0x18], eax
mov eax, dword [esp + 0xc8]
movdqu xmmword [edi + 0x20], xmm0
movq xmm0, qword [esp + 0xc0]
movq qword [edi + 0x30], xmm0
mov dword [edi + 0x38], eax
mov ecx, dword [esp + 0x18]
push 0
mov eax, dword [ecx + 0x18]
movdqu xmm0, xmmword [ecx]
mov dword [esp + 0xb0], eax
mov eax, dword [ecx + 0x38]
mov dword [esp + 0xcc], eax
lea eax, [esp + 0xf0]
movdqu xmmword [esp + 0x98], xmm0
push eax
movq xmm0, qword [ecx + 0x10]
lea eax, [esp + 0x9c]
movq qword [esp + 0xac], xmm0
movdqu xmm0, xmmword [ecx + 0x20]
push eax
push dword [esp + 0x20]
movdqu xmmword [esp + 0xc0], xmm0
movq xmm0, qword [ecx + 0x30]
push dword [esp + 0x20]
movq qword [esp + 0xd4], xmm0
call fcn.004b7010
add esp, 0x14
test eax, eax
je 0x515144
push 0x1c
lea eax, [esp + 0xf0]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.004b4630
push 4
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.004b4630
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0xe8]
push eax
call fcn.004b44f0
add esp, 0x20
xor edx, edx
test esi, esi
je 0x51513f
cmp esi, 0x20
jb 0x515121
lea ecx, [ebx - 1]
lea eax, [esp + esi + 0xcb]
add ecx, esi
cmp ebx, eax
ja 0x5150cd
lea eax, [esp + 0xcc]
cmp ecx, eax
jae 0x515121
mov eax, esi
lea edi, [esp + 0xcc]
and eax, 0x1f
lea ebp, [esp + 0xdc]
mov ecx, esi
sub edi, ebx
sub ecx, eax
mov eax, ebx
sub ebp, ebx
lea ebx, [ebx]
movdqu xmm0, xmmword [eax]
add edx, 0x20
lea eax, [eax + 0x20]
movdqu xmm1, xmmword [edi + eax - 0x20]
pxor xmm1, xmm0
movdqu xmmword [eax - 0x20], xmm1
movdqu xmm0, xmmword [eax - 0x10]
movdqu xmm1, xmmword [eax + ebp - 0x20]
pxor xmm1, xmm0
movdqu xmmword [eax - 0x10], xmm1
cmp edx, ecx
jb 0x5150f0
cmp edx, esi
jae 0x51513f
lea edi, [esp + 0xcc]
sub edi, ebx
lea ecx, [ebx + edx]
sub esi, edx
mov al, byte [ecx + edi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
dec esi
jne 0x515133
mov ebp, 1
mov ecx, dword [esp + 0x108]
mov eax, ebp
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.0054a992
add esp, 0xfc
ret