Function at 0x506db0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xe4
call fcn.00627fd0
mov eax, dword [0x70b514]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xb4], edx
mov edx, ecx
mov ecx, dword [ebp + 0xc]
push ebx
push edi
mov ebx, dword [edx + 0x60]
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xc0], edx
mov dword [ebp - 0xd8], ecx
mov edi, dword [ebx + 0xc8]
mov dword [ebp - 0xe4], ebx
mov dword [ebp - 0xd0], edi
lea eax, [edi + 0x10]
cmp ecx, eax
je 0x506e18
pop edi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00627eaa
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xa4]
mov dword [ebx + 0x20], 0
neg eax
lea ecx, [ebp - 0xa4]
and eax, 0xf
lea edx, [ebx + 0xd0]
add eax, ecx
mov dword [ebp - 0xac], edx
mov dword [ebp - 0xa8], eax
push esi
lea ecx, [eax + 0x30]
mov dword [ebp - 0xb8], ecx
lea ecx, [ebx + 0x20]
lea esi, [eax + 0x40]
mov dword [ebp - 0xbc], esi
push ecx
push ebx
cmp edi, 0x40
ja 0x5070fc
push 0x80
push 0x6b72d0
push eax
mov dword [ebp - 0xd4], 0x80
call fcn.00442b40
mov edx, dword [ebp - 0xa8]
lea ecx, [ebx + 0xd0]
add esp, 0x14
call fcn.00500670
mov eax, dword [ebp - 0xb8]
movups xmm0, xmmword [ebx + 0x94]
mov dword [ebx + 0x70], 0
movups xmmword [eax], xmm0
mov eax, dword [ebp - 0xc0]
mov dword [ebx + 0xa8], 0xd
mov dword [ebx + 0xac], 0
mov dword [ebx + 0xb0], edi
mov dword [ebx + 0xb4], 0
xor ebx, ebx
cmp dword [eax + 8], ebx
je 0x506f11
test edi, edi
je 0x5070c5
mov ecx, dword [ebp - 0xb0]
mov ebx, edi
mov edx, dword [ebp - 0xb4]
sub ecx, esi
sub edx, esi
movzx eax, byte [ecx + esi]
lea esi, [esi + 1]
xor byte [esi - 1], al
movzx eax, byte [esi - 1]
mov byte [edx + esi - 1], al
sub edi, 1
jne 0x506ef5
jmp 0x5070c5
mov dword [ebp - 0xac], ebx
test edi, edi
je 0x5070c5
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xb4]
cmp edi, 0x40
jb 0x5070f1
xor ebx, ebx
lea edx, [eax + 0x3f]
mov dword [ebp - 0xac], ebx
add edx, edi
lea ebx, [ecx - 1]
mov dword [ebp - 0xc4], edx
add ebx, edi
mov dword [ebp - 0xcc], ebx
cmp esi, ebx
mov ebx, 0
ja 0x506f63
cmp edx, ecx
jae 0x5070f1
mov edx, dword [ebp - 0xb0]
lea eax, [edx - 1]
add eax, edi
mov dword [ebp - 0xc8], eax
cmp esi, eax
mov eax, dword [ebp - 0xa8]
ja 0x506f8a
cmp dword [ebp - 0xc4], edx
jae 0x507078
cmp ecx, dword [ebp - 0xc8]
ja 0x506f9e
cmp dword [ebp - 0xcc], edx
jae 0x507078
add eax, 0x50
mov ebx, edi
mov dword [ebp - 0xcc], eax
and ebx, 0xffffffc0
mov eax, ecx
mov dword [ebp - 0xe0], ebx
sub eax, esi
lea ebx, [ecx + 0x20]
mov dword [ebp - 0xdc], eax
mov eax, edx
mov dword [ebp - 0xc8], ebx
sub eax, ecx
mov ebx, dword [ebp - 0xac]
mov edi, eax
mov ecx, dword [ebp - 0xcc]
mov esi, dword [ebp - 0xc8]
nop dword [eax]
movups xmm0, xmmword [ecx - 0x10]
mov eax, dword [ebp - 0xdc]
lea esi, [esi + 0x40]
movups xmm2, xmmword [edx + ebx]
add eax, ecx
movups xmmword [ecx - 0x10], xmm2
movaps xmm1, xmm2
movups xmm2, xmmword [eax + edi]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx]
movups xmmword [esi - 0x60], xmm1
movups xmmword [ecx], xmm2
movaps xmm1, xmm2
movups xmm2, xmmword [edi + esi - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx + 0x10]
movups xmmword [eax], xmm1
movups xmmword [ecx + 0x10], xmm2
movaps xmm1, xmm2
movups xmm2, xmmword [edx + ebx + 0x30]
add ebx, 0x40
pxor xmm1, xmm0
mov eax, ebx
movups xmm0, xmmword [ecx + 0x20]
movups xmmword [esi - 0x40], xmm1
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [ecx + 0x20], xmm2
add ecx, 0x40
movups xmmword [esi - 0x30], xmm1
cmp ebx, dword [ebp - 0xe0]
jb 0x506fe0
mov edi, dword [ebp - 0xd0]
mov esi, dword [ebp - 0xbc]
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0xac], ebx
cmp eax, edi
jae 0x5070c5
mov eax, dword [ebp - 0xa8]
sub edx, ecx
add ebx, 0x40
sub ecx, esi
mov dword [ebp - 0xbc], edx
mov esi, edi
mov dword [ebp - 0xd0], ecx
add ebx, eax
sub esi, dword [ebp - 0xac]
mov dword [ebp - 0xac], edi
nop dword [eax + eax]
mov al, byte [ebx]
add ecx, ebx
mov dl, byte [ecx + edx]
xor al, dl
mov byte [ebx], dl
mov edx, dword [ebp - 0xbc]
inc ebx
mov byte [ecx], al
mov ecx, dword [ebp - 0xd0]
sub esi, 1
jne 0x5070a0
mov ebx, dword [ebp - 0xac]
mov edi, dword [ebp - 0xa8]
mov esi, ebx
neg esi
and esi, 0xf
push esi
lea eax, [edi + 0x40]
add eax, ebx
push 0
push eax
call fcn.0062b100
lea eax, [esi + ebx]
add esp, 0xc
lea ecx, [eax + 0x20]
lea edx, [eax + edi]
jmp 0x5071f7
mov edx, dword [ebp - 0xb0]
jmp 0x507078
push 0x40
push 0x6b72d0
push eax
mov dword [ebp - 0xd4], 0x40
call fcn.00442b40
mov edx, dword [ebp - 0xa8]
lea ecx, [ebx + 0xd0]
call fcn.00500670
push 0x10
lea edx, [ebx + 0x94]
mov dword [ebx + 0x20], 1
lea ecx, [ebx + 0xd0]
mov dword [ebx + 0x70], 0
call fcn.00500740
mov eax, dword [ebp - 0xc0]
add esp, 0x18
mov dword [ebx + 0xa8], 0xd
mov dword [ebx + 0xac], 0
mov dword [ebx + 0xb0], edi
mov dword [ebx + 0xb4], 0
cmp dword [eax + 8], 0
mov dword [ebp - 0xb8], esi
je 0x5071a6
lea eax, [ebx + 0x20]
push eax
push ebx
mov ebx, dword [ebp - 0xb4]
push edi
push dword [ebp - 0xb0]
push ebx
call fcn.00442b40
mov ecx, dword [ebp - 0xac]
mov edx, ebx
push edi
call fcn.00500740
jmp 0x5071cc
mov esi, dword [ebp - 0xb0]
lea ecx, [ebx + 0xd0]
push edi
mov edx, esi
call fcn.00500740
lea eax, [ebx + 0x20]
push eax
push ebx
push edi
push esi
push dword [ebp - 0xb4]
call fcn.00442b40
mov ecx, dword [ebp - 0xac]
mov eax, edi
add esp, 0x18
neg eax
and eax, 0xf
mov edx, 0x6b72d0
push eax
call fcn.00500740
mov edx, dword [ebp - 0xa8]
add esp, 4
mov ebx, edi
mov ecx, 0x10
mov esi, dword [ebp - 0xb0]
mov edi, dword [ebp - 0xb4]
add esi, ebx
mov dword [ebp - 0xbc], esi
add edi, ebx
mov esi, dword [ebp - 0xe4]
push ecx
movups xmm0, xmmword [esi + 0xa8]
lea ecx, [esi + 0xd0]
movups xmmword [edx + 0x40], xmm0
mov edx, dword [ebp - 0xb8]
call fcn.00500740
push dword [ebp - 0xd4]
push dword [ebp - 0xa8]
call fcn.00401320
mov eax, dword [ebp - 0xc0]
lea edx, [esi + 0x84]
add esp, 0xc
lea ecx, [esi + 0xd0]
cmp dword [eax + 8], 0
cmove edx, dword [ebp - 0xb8]
call fcn.00500810
mov eax, dword [ebp - 0xc0]
mov dword [esi + 0xc8], 0xffffffff
cmp dword [eax + 8], 0
je 0x50729d
movups xmm0, xmmword [esi + 0x84]
movups xmmword [edi], xmm0
mov eax, dword [ebp - 0xd8]
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00627eaa
mov esp, ebp
pop ebp
ret
push 0x10
push dword [ebp - 0xbc]
push dword [ebp - 0xb8]
call fcn.00401390
add esp, 0xc
test eax, eax
je 0x507286
mov ecx, dword [ebp - 0xd8]
sub edi, ecx
add edi, 0x10
lea eax, [ecx - 0x10]
push eax
push 0
push edi
call fcn.0062b100
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
or eax, 0xffffffff
pop esi
pop edi
pop ebx
call fcn.00627eaa
mov esp, ebp
pop ebp
ret