Function at 0x706bb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov edi, dword [eax + 0x64]
mov ebp, dword [edi + 0x70]
test ebp, ebp
mov dword [esp + 8], edi
je 0x706c73
mov eax, ecx
test ebx, ebx
sete cl
cmp ebp, 0x40
setae dl
or dl, cl
jne 0x706c52
lea edx, [ebx - 1]
mov ecx, 0x3f
sub ecx, ebp
cmp edx, ecx
cmovb ecx, edx
cmp ecx, 0xf
jae 0x706e39
mov ecx, eax
mov dword [esp], ecx
lea ecx, [edi + ebp]
add ecx, 0x30
mov dword [esp + 0xc], ebx
lea edx, [ebx - 1]
xor ebx, ebx
nop word cs:[eax + eax]
movzx eax, byte [ecx + ebx]
xor al, byte [esi + ebx]
mov edi, dword [esp]
mov byte [edi + ebx], al
lea edi, [ebx + 1]
cmp edx, ebx
je 0x706c3d
add ebx, ebp
cmp ebx, 0x3f
mov ebx, edi
jb 0x706c20
add ebp, edi
mov ecx, dword [esp]
add ecx, edi
mov ebx, dword [esp + 0xc]
sub ebx, edi
add esi, edi
mov edi, dword [esp + 8]
jmp 0x706c54
mov ecx, eax
mov dword [edi + 0x70], ebp
test ebx, ebx
je 0x706e2c
cmp ebp, 0x40
jne 0x706c73
mov dword [edi + 0x70], 0
inc dword [edi + 0x20]
jne 0x706c73
inc dword [edi + 0x24]
mov eax, ebx
and eax, 0x3f
mov dword [esp + 0x10], eax
lea eax, [edi + 0x20]
mov dword [esp + 4], eax
mov dword [esp + 0xc], ebx
mov ebp, ebx
and ebp, 0xffffffc0
je 0x706cf6
mov edi, dword [edi + 0x20]
jmp 0x706cb1
sub ebp, ebx
mov eax, dword [esp]
add eax, ebx
add esi, ebx
test ebp, ebp
mov ecx, esi
mov esi, eax
je 0x706cf6
mov dword [esp], esi
mov eax, ebp
shr eax, 6
mov ebx, edi
neg ebx
add edi, eax
mov edx, 0
cmovb edi, edx
cmovae ebx, eax
shl ebx, 6
push dword [esp + 4]
push dword [esp + 0xc]
push ebx
push esi
push ecx
mov esi, ecx
call fcn.006b3d40
add esp, 0x14
mov eax, dword [esp + 8]
mov dword [eax + 0x20], edi
test edi, edi
jne 0x706ca0
mov eax, dword [esp + 8]
inc dword [eax + 0x24]
jmp 0x706ca0
mov eax, dword [esp + 0x10]
test eax, eax
mov ebp, dword [esp + 8]
mov ebx, dword [esp + 0xc]
je 0x706e2c
mov dword [esp], ecx
lea ecx, [ebp + 0x30]
xorps xmm0, xmm0
movups xmmword [ebp + 0x60], xmm0
movups xmmword [ebp + 0x50], xmm0
movups xmmword [ebp + 0x40], xmm0
movups xmmword [ebp + 0x30], xmm0
push dword [esp + 4]
push ebp
push 0x40
push ecx
mov dword [esp + 0x24], ecx
push ecx
mov edi, eax
call fcn.006b3d40
add esp, 0x14
xor eax, eax
cmp edi, 0x10
jae 0x706d46
mov edx, dword [esp]
jmp 0x706dad
mov edx, dword [esp]
mov ecx, edx
sub ecx, esi
cmp ecx, 0x10
jb 0x706dad
mov ecx, edx
sub ecx, ebp
add ecx, 0xffffffd0
cmp ecx, 0x10
mov edi, dword [esp + 0x10]
jb 0x706dad
mov ecx, ebx
and ecx, 0xf
mov eax, edi
sub eax, ecx
mov ebx, edx
xor edx, edx
nop
movsd xmm0, qword [esi + edx]
movsd xmm1, qword [esi + edx + 8]
movsd xmm2, qword [ebp + edx + 0x30]
xorps xmm2, xmm0
movsd xmm0, qword [ebp + edx + 0x38]
xorps xmm0, xmm1
movlhps xmm2, xmm0
movups xmmword [ebx + edx], xmm2
add edx, 0x10
cmp eax, edx
jne 0x706d70
test ecx, ecx
mov edx, ebx
mov ebx, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
je 0x706e29
sub ebx, eax
mov dword [esp + 4], eax
mov ecx, eax
and ebx, 3
mov eax, dword [esp + 0x14]
je 0x706de1
mov ecx, dword [esp + 4]
mov edi, dword [esp]
nop word cs:[eax + eax]
movzx edx, byte [eax + ecx]
xor dl, byte [esi + ecx]
mov byte [edi + ecx], dl
mov edx, dword [esp]
inc ecx
dec ebx
jne 0x706dd0
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 4]
sub eax, edi
cmp eax, 0xfffffffc
ja 0x706e29
movzx eax, byte [ebp + ecx + 0x30]
xor al, byte [esi + ecx]
mov byte [edx + ecx], al
movzx eax, byte [ebp + ecx + 0x31]
xor al, byte [esi + ecx + 1]
mov byte [edx + ecx + 1], al
movzx eax, byte [ebp + ecx + 0x32]
xor al, byte [esi + ecx + 2]
mov byte [edx + ecx + 2], al
movzx eax, byte [ebp + ecx + 0x33]
xor al, byte [esi + ecx + 3]
mov byte [edx + ecx + 3], al
add ecx, 4
cmp edi, ecx
jne 0x706df0
mov dword [ebp + 0x70], edi
mov eax, 1
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, eax
sub edx, esi
cmp edx, 0x10
jb 0x706c02
lea edx, [edi + ebp]
neg edx
add edx, eax
add edx, 0xffffffd0
cmp edx, 0x10
jb 0x706c02
inc ecx
mov edx, ecx
and edx, 0x70
movups xmm0, xmmword [esi]
movups xmm1, xmmword [edi + ebp + 0x30]
xorps xmm1, xmm0
movups xmmword [eax], xmm1
cmp edx, 0x10
je 0x706e97
movups xmm0, xmmword [esi + 0x10]
movups xmm1, xmmword [edi + ebp + 0x40]
xorps xmm1, xmm0
movups xmmword [eax + 0x10], xmm1
cmp edx, 0x20
je 0x706e97
movups xmm0, xmmword [esi + 0x20]
movups xmm1, xmmword [edi + ebp + 0x50]
xorps xmm1, xmm0
movups xmmword [eax + 0x20], xmm1
add ebp, edx
add eax, edx
sub ebx, edx
add esi, edx
cmp ecx, edx
mov ecx, eax
jne 0x706c04
jmp 0x706c54