Function at 0x46aff0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x34
mov eax, dword [0x551e00]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x40]
push ebp
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x10], ebp
mov dword [esp + 4], eax
push esi
push edi
mov edi, dword [esp + 0x50]
mov dword [esp + 0x14], edi
test ebp, ebp
je 0x46b228
mov esi, dword [esp + 0x48]
test esi, esi
je 0x46b228
test edi, edi
je 0x46b228
push ebx
mov ebx, eax
shr ebx, 4
test ebx, ebx
je 0x46b097
lea eax, [ebp + 0x28]
lea ecx, [esp + 0x30]
push ecx
push eax
mov eax, dword [ebp + 0x10]
push ebp
call eax
mov eax, dword [esi]
add esp, 0xc
xor eax, dword [esp + 0x30]
mov dword [edi], eax
mov eax, dword [esi + 4]
xor eax, dword [esp + 0x34]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
xor eax, dword [esp + 0x38]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
add esi, 0x10
xor eax, dword [esp + 0x3c]
mov dword [edi + 0xc], eax
lea eax, [ebp + 0x28]
movdqu xmm0, xmmword [edi]
add edi, 0x10
movdqu xmmword [eax], xmm0
dec ebx
jne 0x46b042
mov eax, dword [esp + 0x10]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x18], edi
mov ebx, eax
and ebx, 0xf
mov dword [esp + 0x14], ebx
je 0x46b20f
lea ecx, [esp + 0x30]
push ecx
lea eax, [ebp + 0x28]
push eax
mov eax, dword [ebp + 0x10]
push ebp
call eax
add esp, 0xc
xor edx, edx
test ebx, ebx
je 0x46b1a7
cmp ebx, 0x20
jb 0x46b176
lea ecx, [edi - 1]
lea eax, [esp + ebx + 0x2f]
add ecx, ebx
cmp edi, eax
ja 0x46b0e4
lea eax, [esp + 0x30]
cmp ecx, eax
jae 0x46b176
lea eax, [esi - 1]
add eax, ebx
cmp edi, eax
ja 0x46b0f5
cmp ecx, esi
jae 0x46b176
mov eax, ebx
mov ecx, ebx
lea ebx, [esp + 0x30]
and eax, 0x1f
sub ebx, esi
mov ebp, edi
mov dword [esp + 0x20], ebx
sub ebp, esi
sub ecx, eax
mov dword [esp + 0x28], ebp
lea ebx, [esp + 0x40]
mov eax, esi
sub ebx, esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x2c], ebx
lea ebx, [edi + 0x10]
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x24], ebx
mov ebx, ebp
lea ecx, [ecx]
movdqu xmm0, xmmword [eax]
mov ebp, dword [esp + 0x24]
lea eax, [eax + 0x20]
movdqu xmm1, xmmword [esi + eax - 0x20]
pxor xmm1, xmm0
movdqu xmmword [ebx + eax - 0x20], xmm1
movdqu xmm0, xmmword [eax - 0x10]
movdqu xmm1, xmmword [edi + eax - 0x20]
pxor xmm1, xmm0
movdqu xmmword [edx + ebp], xmm1
mov ebp, dword [esp + 0x1c]
add edx, 0x20
cmp edx, ecx
jb 0x46b130
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x4c]
mov ebx, dword [esp + 0x14]
cmp edx, ebx
jae 0x46b1a7
lea eax, [esp + 0x30]
sub esi, eax
lea ecx, [esp + 0x30]
mov eax, edi
sub eax, ecx
mov dword [esp + 0x14], eax
mov ebp, eax
mov edi, edi
lea ecx, [esp + 0x30]
add ecx, edx
inc edx
mov al, byte [esi + ecx]
xor al, byte [ecx]
mov byte [ecx + ebp], al
cmp edx, ebx
jb 0x46b190
mov ebp, dword [esp + 0x1c]
add edi, ebx
mov ebx, dword [esp + 0x10]
cmp ebx, 0x10
jae 0x46b1f0
mov esi, 0x10
lea eax, [ebx + 0x28]
sub esi, ebx
add eax, ebp
push esi
push eax
lea eax, [ebp + 0x28]
push eax
call fcn.004f94d0
push ebx
sub edi, ebx
lea eax, [esi + 0x28]
add eax, ebp
push edi
push eax
call fcn.004fa290
add esp, 0x18
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004f9e32
add esp, 0x34
ret
movdqu xmm0, xmmword [edi - 0x10]
mov eax, ebx
pop ebx
pop edi
pop esi
movdqu xmmword [ebp + 0x28], xmm0
pop ebp
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004f9e32
add esp, 0x34
ret
mov ebx, dword [esp + 0x10]
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004f9e32
add esp, 0x34
ret
mov ecx, dword [esp + 0x3c]
xor eax, eax
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004f9e32
add esp, 0x34
ret