Function at 0x46c3d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x5fa040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x2c], ecx
push ebx
push esi
push edi
test eax, eax
jne 0x46c41a
mov eax, dword [ebp + 8]
sub esp, 0x18
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
movups xmm0, xmmword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, esp
mov dword [ebp - 8], 0x1010020
movups xmmword [eax], xmm0
jmp 0x46c659
cmp eax, 1
jne 0x46c48d
mov edi, dword [ecx]
cmp word [edi + 0x14], 0x20
jne 0x46c48d
mov edx, dword [edi]
mov esi, dword [ebp + 8]
cmp esi, edx
jne 0x46c44f
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x10], eax
mov dword [edi + 0xc], eax
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00587d99
mov esp, ebp
pop ebp
ret 8
mov eax, edx
mov ecx, 0x1f
xor eax, esi
js 0x46c46b
nop word [eax + eax]
mov eax, edx
dec ecx
xor eax, esi
shr eax, cl
test al, 1
je 0x46c460
mov edx, esi
mov eax, 0x1f
sub eax, ecx
shr edx, cl
and edx, 1
mov word [edi + 0x14], ax
mov eax, dword [ebp + 0xc]
mov dword [edi + edx*4 + 0xc], eax
mov dword [edi + edx*4 + 4], esi
jmp 0x46c668
mov ecx, dword [ecx]
xor edx, edx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x28], ecx
lea edi, [edx + 0x20]
nop word [eax + eax]
lea eax, [edx + edx*2]
lea ebx, [ecx + eax*8]
movzx ecx, word [ebx + 0x14]
movzx eax, cx
sub edi, eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ecx
cmp edi, 0x20
jne 0x46c4c0
xor esi, esi
xor edx, edx
jmp 0x46c4fc
mov edx, dword [ebx]
mov ecx, edi
shr esi, cl
cmp eax, 0x20
jne 0x46c4d3
shr edx, cl
movzx ecx, word [ebx + 0x14]
jmp 0x46c4fc
mov ebx, dword [ebp - 0x20]
mov eax, 1
movzx ecx, bx
shl eax, cl
mov ecx, edi
shr edx, cl
dec eax
and esi, eax
movzx ecx, bx
mov ebx, dword [ebp - 0x24]
mov eax, edx
mov edx, 1
shl edx, cl
mov ecx, dword [ebp - 0x20]
dec edx
and edx, eax
cmp esi, edx
mov esi, dword [ebp + 8]
jne 0x46c5d8
dec edi
mov ebx, esi
mov ecx, edi
shr ebx, cl
mov ecx, dword [ebp - 0x24]
and ebx, 1
cmp byte [ebx + ecx + 0x16], 0
mov edx, dword [ecx + ebx*4 + 4]
mov dword [ebp - 0x20], edx
jne 0x46c52a
mov ecx, dword [ebp - 0x28]
jmp 0x46c4a0
cmp esi, edx
jne 0x46c54a
mov eax, dword [ebp + 0xc]
mov dword [ecx + ebx*4 + 0xc], eax
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00587d99
mov esp, ebp
pop ebp
ret 8
mov eax, edx
lea ecx, [edi - 1]
xor eax, esi
mov dword [ebp - 0x28], ecx
shr eax, cl
test al, 1
jne 0x46c56e
mov dword [ebp - 0x20], edx
nop dword [eax]
mov eax, edx
dec ecx
xor eax, esi
shr eax, cl
test al, 1
je 0x46c560
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp + 0xc]
shr esi, cl
lea ecx, [ebp - 0xc]
and esi, 1
sub edi, dword [ebp - 0x28]
dec edi
lea edx, [esi*4]
mov dword [ebp + edx - 0x10], eax
sub ecx, edx
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + ebx*4 + 0xc]
mov dword [ecx], eax
lea eax, [ebp - 5]
mov ecx, dword [ebp - 0x20]
sub eax, esi
mov byte [eax], 1
lea eax, [ebp - 0x14]
mov byte [ebp + esi - 6], 1
sub eax, edx
mov esi, dword [ebp + 8]
sub esp, 0x18
mov dword [ebp + edx - 0x18], esi
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], ecx
mov dword [eax], ecx
mov ecx, dword [ebp - 0x24]
movups xmm0, xmmword [ebp - 0x1c]
mov word [ebp - 8], di
mov byte [ebx + ecx + 0x16], 0
mov eax, dword [edx + 4]
mov dword [ecx + ebx*4 + 4], eax
mov eax, esp
movups xmmword [eax], xmm0
jmp 0x46c657
mov eax, dword [ebx]
movzx edx, cx
xor eax, esi
dec edx
lea ecx, [edx + edi]
shr eax, cl
test al, 1
jne 0x46c5fc
nop dword [eax]
mov eax, dword [ebx]
dec ecx
xor eax, esi
dec edx
shr eax, cl
test al, 1
je 0x46c5f0
mov cx, word [ebx + 0x14]
movups xmm1, xmmword [ebx]
movzx eax, dx
movq xmm0, qword [ebx + 0x10]
sub cx, ax
dec cx
movq qword [ebp - 0xc], xmm0
mov word [ebx + 0x14], cx
lea ecx, [edx + edi]
mov edx, esi
mov word [ebp - 8], ax
mov eax, dword [ebp + 0xc]
shr edx, cl
mov ecx, 2
and edx, 1
sub ecx, edx
mov dword [ebx + edx*4 + 0xc], eax
mov eax, ebx
sub eax, edx
mov byte [edx + ebx + 0x16], 1
sub esp, 0x18
mov byte [eax + 0x17], 0
mov dword [ebx + edx*4 + 4], esi
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 4]
mov dword [ebx + ecx*4], eax
mov eax, esp
movups xmmword [eax], xmm1
mov ecx, edx
movq xmm0, qword [ebp - 0xc]
movq qword [eax + 0x10], xmm0
call fcn.00439370
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00587d99
mov esp, ebp
pop ebp
ret 8