Function at 0x6b3960
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x71aa9c
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x76e964]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0xa4], 0
lea ecx, [edi + 0xa4]
mov dword [ebp - 0x4c], ecx
jne 0x6b3c72
mov eax, dword [edi + 4]
cmp eax, 0x400
je 0x6b39b7
cmp eax, 0x200
jne 0x6b3c9b
mov ecx, dword [edi + 0x94]
test ecx, ecx
je 0x6b3c9b
mov eax, dword [edi + 0x84]
sub eax, dword [edi + 0x80]
je 0x6b3c9b
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x40], eax
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x48], ecx
call fcn.00597280
xorps xmm0, xmm0
mov dword [ebp - 0x44], eax
movups xmmword [ebp - 0x38], xmm0
push 0x10
mov byte [ebp - 0x38], 0
call fcn.006dd216
mov esi, eax
xorps xmm0, xmm0
mov dword [ebp - 0x34], esi
lea eax, [esi + 0x10]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x2c], eax
movups xmmword [esi], xmm0
mov dword [ebp - 0x30], eax
mov eax, dword [edi + 0x80]
push 0x20
mov dword [ebp - 4], 0
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x24], xmm0
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.006dd216
xorps xmm0, xmm0
mov dword [ebp - 0x20], eax
add esp, 8
lea ecx, [eax + 0x20]
mov dword [ebp - 0x18], ecx
movups xmmword [eax], xmm0
movups xmmword [eax + 0x10], xmm0
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x20]
sub edx, edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], 0
cmp edx, 0x10
jae 0x6b3afc
mov ecx, edx
mov eax, accept
shr ecx, 1
sub eax, ecx
cmp edx, eax
jbe 0x6b3aa1
mov dword [ebp - 0x28], accept
jmp 0x6b3ab1
lea eax, [edx + ecx]
mov ecx, 0x10
cmp eax, ecx
cmovb eax, ecx
mov dword [ebp - 0x28], eax
test edi, edi
je 0x6b3aee
mov ecx, edx
test edx, edx
je 0x6b3acb
mov eax, edi
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x6b3ac0
push edx
push edi
call fcn.006dd246
add esp, 8
mov byte [ebp - 4], 1
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push dword [ebp - 0x28]
lea ecx, [ebp - 0x24]
call fcn.005b07f0
mov edi, dword [ebp - 0x20]
push 0x10
push esi
push edi
call fcn.006f3c10
add esp, 0xc
lea eax, [edi + 0x10]
mov dword [ebp - 0x1c], eax
call fcn.00626200
push 0xffffffffffffffff
mov ecx, eax
call fcn.006262e0
mov edx, dword [ebp - 0x1c]
mov ecx, eax
mov edi, dword [ebp - 0x20]
not ecx
add ecx, ecx
mov dword [ebp - 0x14], eax
xor ecx, eax
mov dword [ebp - 0x28], ecx
xor ecx, ecx
sub edx, edi
je 0x6b3b47
mov eax, ecx
and eax, 3
mov al, byte [ebp + eax - 0x28]
xor byte [edi + ecx], al
inc ecx
cmp ecx, edx
jb 0x6b3b36
push 0x50
mov byte [ebp - 4], 3
call fcn.006dd216
mov edi, eax
add esp, 4
mov dword [ebp - 0x50], edi
mov byte [ebp - 4], 4
test edi, edi
je 0x6b3b82
push 0x50
push 0
push edi
call fcn.006f4190
add esp, 0xc
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.005e3ab0
mov edi, eax
jmp 0x6b3b84
xor edi, edi
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x58]
cmp eax, ecx
je 0x6b3ba5
mov ecx, dword [eax]
mov dword [ebp - 0x50], ecx
mov dword [eax], edi
test ecx, ecx
je 0x6b3bbb
call fcn.005e3b50
push 0x50
push dword [ebp - 0x50]
jmp 0x6b3bb3
test edi, edi
je 0x6b3bbb
mov ecx, edi
call fcn.005e3b50
push 0x50
push edi
call fcn.006dd246
add esp, 8
mov edx, dword [ebp - 0x20]
test edx, edx
je 0x6b3c1c
mov edi, dword [ebp - 0x18]
sub edi, edx
mov ecx, edi
je 0x6b3bdb
mov eax, edx
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x6b3bd0
mov byte [ebp - 4], 5
cmp edi, 0x1000
jb 0x6b3bfd
mov ecx, dword [edx - 4]
add edi, 0x23
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x6b3c9f
mov edx, ecx
push edi
push edx
call fcn.006dd246
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x6b3c6f
mov edx, dword [ebp - 0x54]
mov ecx, esi
sub edx, esi
mov eax, edx
je 0x6b3c3d
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub eax, 1
jne 0x6b3c32
mov dword [ebp - 4], 6
cmp edx, 0x1000
jb 0x6b3c5e
mov ecx, dword [esi - 4]
add edx, 0x23
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x6b3c9f
mov esi, ecx
push edx
push esi
call fcn.006dd246
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x4c]
movzx eax, word [ebp + 8]
mov ecx, dword [ecx]
push eax
call fcn.005e3c50
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.006dd760
mov esp, ebp
pop ebp
ret 4
xor eax, eax
jmp 0x6b3c7e
call fcn.0060e3b4
int3