Function at 0x35abc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x48
mov esi, dword [ebp + 8]
movzx eax, byte [esi]
mov edi, dword [esi + 0x28]
mov ebx, dword [esi + 0x2c]
mov byte [esp + 0xf], al
movzx eax, al
test al, 0x40
jne 0x35abf6
mov dword [esp + 4], eax
lea eax, [esi + 0x10]
push ebx
push eax
push esi
call edi
mov eax, dword [esp + 0x10]
add esp, 0xc
mov dword [esp + 0x1c], edi
and eax, 7
mov byte [esi], al
mov ecx, eax
xor ecx, 0xf
test eax, eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x38], ecx
je 0x35ac96
xor esi, esi
mov eax, 0xe
sub eax, ecx
cmovb eax, esi
lea edi, [eax + 1]
mov ebx, edi
and ebx, 3
cmp eax, 3
jb 0x35ac77
mov dword [esp + 4], ebx
and edi, 0xfffffffc
mov ecx, dword [esp + 0x38]
mov ebx, dword [ebp + 8]
nop dword [eax + eax]
movzx esi, byte [ebx + ecx + 1]
mov word [ebx + ecx], 0
movzx edx, byte [ebx + ecx + 2]
movzx eax, byte [ebx + ecx + 3]
mov word [ebx + ecx + 2], 0
add ecx, 4
add edi, 0xfffffffc
jne 0x35ac40
shl esi, 0x10
shl edx, 8
or edx, esi
or edx, eax
shl edx, 8
mov esi, edx
mov ebx, dword [esp + 4]
test ebx, ebx
je 0x35ac98
add ecx, dword [ebp + 8]
xor edi, edi
movzx edx, byte [ecx + edi]
or edx, esi
mov byte [ecx + edi], 0
shl edx, 8
inc edi
mov esi, edx
cmp ebx, edi
jne 0x35ac80
jmp 0x35ac98
xor edx, edx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0xf]
or ecx, edx
mov byte [eax + 0xf], 1
mov eax, 0xffffffff
mov edx, dword [ebp + 0x14]
cmp ecx, edx
jne 0x35afa3
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x20], eax
mov esi, dword [ebp + 0xc]
cmp edx, 0x10
jb 0x35ada3
mov ebx, dword [ebp + 8]
lea eax, [ebx + 0x10]
mov dword [esp + 0x18], eax
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x10]
jmp 0x35ad49
mov eax, dword [esi]
xor eax, dword [esp + 0x28]
mov ecx, dword [esi + 4]
xor ecx, dword [esp + 0x2c]
mov edi, esi
mov esi, dword [esp + 0x20]
mov dword [esi + 4], ecx
mov dword [esi], eax
xor dword [ebx + 0x14], ecx
xor dword [ebx + 0x10], eax
mov eax, dword [edi + 8]
xor eax, dword [esp + 0x30]
mov ecx, dword [edi + 0xc]
xor ecx, dword [esp + 0x34]
mov dword [esi + 0xc], ecx
mov dword [esi + 8], eax
xor dword [ebx + 0x18], eax
xor dword [ebx + 0x1c], ecx
push dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
push eax
push eax
mov ebx, dword [esp + 0x28]
call ebx
add esp, 0xc
add edi, 0x10
add esi, 0x10
mov dword [esp + 0x20], esi
mov esi, edi
mov edi, ebx
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 4]
add edx, 0xfffffff0
cmp edx, 0xf
jbe 0x35adab
mov dword [esp + 4], edx
push ebx
lea eax, [esp + 0x2c]
push eax
mov ebx, dword [ebp + 8]
push ebx
call edi
add esp, 0xc
inc byte [ebx + 0xf]
jne 0x35ace0
inc byte [ebx + 0xe]
jne 0x35ace0
inc byte [ebx + 0xd]
jne 0x35ace0
inc byte [ebx + 0xc]
jne 0x35ace0
inc byte [ebx + 0xb]
jne 0x35ace0
inc byte [ebx + 0xa]
jne 0x35ace0
inc byte [ebx + 9]
jne 0x35ace0
inc byte [ebx + 8]
jmp 0x35ace0
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x10]
test edx, edx
je 0x35af61
push ebx
lea eax, [esp + 0x2c]
push eax
mov ebx, dword [ebp + 8]
push ebx
mov dword [esp + 0x10], edx
call edi
mov edx, dword [esp + 0x10]
add esp, 0xc
lea eax, [ebx + 0x10]
xor ecx, ecx
cmp edx, 8
jae 0x35ae3e
mov edi, dword [esp + 0x20]
mov ebx, edx
mov edx, ecx
or edx, 1
test bl, 1
je 0x35adf4
movzx ebx, byte [esi + ecx]
xor bl, byte [esp + ecx + 0x28]
mov byte [edi + ecx], bl
xor byte [eax + ecx], bl
mov ecx, edx
cmp dword [esp + 4], edx
mov ebx, dword [ebp + 8]
je 0x35af51
nop word cs:[eax + eax]
movzx edx, byte [esi + ecx]
xor dl, byte [esp + ecx + 0x28]
mov byte [edi + ecx], dl
xor byte [ebx + ecx + 0x10], dl
movzx edx, byte [esi + ecx + 1]
xor dl, byte [esp + ecx + 0x29]
mov byte [edi + ecx + 1], dl
xor byte [ebx + ecx + 0x11], dl
add ecx, 2
cmp dword [esp + 4], ecx
jne 0x35ae10
jmp 0x35af51
mov edi, edx
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x20]
add edx, esi
mov dword [esp + 0x24], edx
lea ebx, [ebx + edi + 0x10]
mov dword [esp + 0x40], ebx
lea edx, [esp + edi]
add edx, 0x28
mov dword [esp + 0x14], edx
cmp esi, ebx
setb byte [esp + 0xe]
mov edx, dword [esp + 0x24]
cmp eax, edx
setb byte [esp + 0xd]
cmp esi, dword [esp + 0x14]
setb byte [esp + 0xc]
lea ebx, [esp + 0x28]
cmp ebx, edx
setb byte [esp + 0xb]
mov ebx, dword [esp + 0x18]
add ebx, edi
mov dword [esp + 0x3c], ebx
mov edi, esi
mov esi, dword [esp + 0x18]
cmp edi, ebx
setb byte [esp + 0xa]
cmp esi, edx
setb byte [esp + 0x24]
cmp eax, dword [esp + 0x14]
setb byte [esp + 0x14]
mov edx, dword [esp + 0x40]
lea ebx, [esp + 0x28]
cmp ebx, edx
setb byte [esp + 9]
cmp eax, dword [esp + 0x3c]
setb bh
cmp esi, edx
setb dl
mov dh, byte [esp + 0xd]
test byte [esp + 0xe], dh
jne 0x35afab
mov dh, byte [esp + 0xb]
and byte [esp + 0xc], dh
jne 0x35afab
mov dh, byte [esp + 0xa]
and dh, byte [esp + 0x24]
jne 0x35afab
mov dh, byte [esp + 9]
and byte [esp + 0x14], dh
jne 0x35afab
and bh, dl
mov edx, dword [esp + 4]
jne 0x35add8
mov ecx, edx
and ecx, 8
xor edx, edx
nop word cs:[eax + eax]
movsd xmm0, qword [esp + edx + 0x28]
movsd xmm1, qword [esi + edx]
xorps xmm1, xmm0
movlps qword [edi + edx], xmm1
movsd xmm0, qword [eax + edx]
xorps xmm0, xmm1
movlps qword [eax + edx], xmm0
add edx, 8
cmp ecx, edx
jne 0x35af20
mov edx, dword [esp + 4]
cmp edx, ecx
jne 0x35add8
mov ebx, dword [esp + 0x10]
push ebx
push eax
push eax
mov edi, dword [esp + 0x28]
call edi
add esp, 0xc
mov esi, dword [ebp + 8]
mov edx, dword [esp + 0x38]
lea eax, [esi + edx]
mov ecx, 0x10
sub ecx, edx
push ecx
push 0
push eax
call fcn.004f8b70
add esp, 0xc
push ebx
lea eax, [esp + 0x2c]
push eax
push esi
call edi
add esp, 0xc
movups xmm0, xmmword [esp + 0x28]
movups xmm1, xmmword [esi + 0x10]
xorps xmm1, xmm0
movups xmmword [esi + 0x10], xmm1
movzx eax, byte [esp + 0xf]
mov byte [esi], al
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [esp + 4]
jmp 0x35add8