Function at 0x6d5170
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6f4528
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x70b414]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
shl edx, 2
lea ecx, [edi*4]
mov dword [ebp - 0x9c], edi
cmp edx, ecx
je 0x6d51ee
test edx, edx
jne 0x6d51cb
push ecx
call fcn.006e3fc6
add esp, 4
jmp 0x6d51ee
test ecx, ecx
jne 0x6d51e4
push eax
call fcn.006e3fab
add esp, 4
mov dword [esi + 8], 0
mov dword [esi + 0xc], edi
jmp 0x6d51fc
push ecx
push eax
call fcn.006e3fd1
add esp, 8
mov dword [esi + 8], eax
mov dword [esi + 0xc], edi
test eax, eax
jne 0x6d5488
test edi, edi
je 0x6d5488
push 0x20
mov dword [ebp - 4], 0xffffffff
call fcn.006ba460
mov ecx, eax
mov dword [ebp - 0x6c], 0x1f
mov dword [ebp - 0x70], 0x1b
lea eax, [ebp - 0x80]
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
movq qword [ecx + 0x10], xmm0
mov dword [ecx + 0x18], 0
cmp dword [ebp - 0x6c], 0x10
mov dword [ebp - 0x80], ecx
jb 0x6d5245
movsx edx, byte [ecx]
jmp 0x6d524b
movsx edx, byte [eax]
lea ecx, [ebp - 0x80]
mov edi, 0x705a20
add edx, 0x253a0b3
sub edi, ecx
mov esi, 0x1b
nop dword [eax]
mov eax, edx
lea ecx, [ecx + 1]
imul edx, edx, 0xd3f5
shr eax, 0xb
xor al, byte [edi + ecx - 1]
mov byte [ecx - 1], al
add edx, 0x1e3f7cb0
sub esi, 1
jne 0x6d5260
cmp dword [ebp - 0x6c], 0x10
lea eax, [ebp - 0x80]
push dword [ebp - 0x9c]
cmovae eax, dword [ebp - 0x80]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.006b8850
mov edx, dword [ebp - 0x6c]
add esp, 0xc
cmp edx, 0x10
jb 0x6d52d2
mov ecx, dword [ebp - 0x80]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x6d52c8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x6d54a5
push edx
push ecx
call fcn.006df222
add esp, 8
mov dword [ebp - 0x68], 0
push 0x30
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0xf
mov byte [ebp - 0x68], 0
mov dword [ebp - 4], 0xffffffff
call fcn.006ba460
push 0x27
mov esi, eax
mov dword [ebp - 0x58], 0x27
push 0
push esi
mov dword [ebp - 0x54], 0x2f
call fcn.006e0650
mov byte [esi + 0x27], 0
lea eax, [ebp - 0x68]
add esp, 0xc
mov dword [ebp - 0x68], esi
cmp dword [ebp - 0x54], 0x10
jb 0x6d532b
movsx ecx, byte [esi]
jmp 0x6d5331
movsx ecx, byte [eax]
lea esi, [ebp - 0x68]
mov edi, 0x705a40
add ecx, 0x2552754
sub edi, esi
mov edx, 0x27
mov eax, ecx
lea esi, [esi + 1]
imul ecx, ecx, 0xdff5
shr eax, 4
xor al, byte [edi + esi - 1]
mov byte [esi - 1], al
add ecx, 0x1e5352dd
sub edx, 1
jne 0x6d5343
mov dword [ebp - 4], 2
lea eax, [ebp - 0x68]
cmp dword [ebp - 0x54], 0x10
cmovae eax, dword [ebp - 0x68]
mov dword [ebp - 0x9c], eax
push 0x30
mov byte [ebp - 4], 2
call fcn.006ba460
mov edx, eax
mov dword [ebp - 0x88], 0x25
xorps xmm0, xmm0
mov dword [ebp - 0x84], 0x2f
mov dword [ebp - 0x98], edx
mov edi, 0x7059f0
mov esi, 0x25
movups xmmword [edx], xmm0
movups xmmword [edx + 0x10], xmm0
mov dword [edx + 0x20], 0
mov word [edx + 0x24], 0
movsx ecx, byte [edx]
add ecx, 0x2552754
sub edi, edx
nop
mov eax, ecx
lea edx, [edx + 1]
imul ecx, ecx, 0xddf5
shr eax, 4
xor al, byte [edi + edx - 1]
mov byte [edx - 1], al
add ecx, 0x1e5352dd
sub esi, 1
jne 0x6d53d0
push 0x187
push dword [ebp - 0x9c]
mov byte [ebp - 4], 4
lea edx, [ebp - 0x98]
cmp dword [ebp - 0x84], 0x10
lea ecx, [ebp - 0x50]
push 3
cmovae edx, dword [ebp - 0x98]
push 3
call int.006bcde0
mov edx, dword [ebp - 0x84]
add esp, 0x10
cmp edx, 0x10
jb 0x6d5458
mov ecx, dword [ebp - 0x98]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x6d544e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x6d54aa
push edx
push ecx
call fcn.006df222
add esp, 8
mov edx, dword [ebp - 0x54]
cmp edx, 0x10
jb 0x6d5488
mov ecx, dword [ebp - 0x68]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x6d547e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x6d54aa
push edx
push ecx
call fcn.006df222
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006df1da
mov esp, ebp
pop ebp
ret 4
call fcn.006e3ec2
call fcn.006e3ec2
int3