Function at 0x6b5960
Capabilities:
Encode data using xor
Get thread local storage value
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xb8
push esi
mov esi, dword [ebp + 8]
xorps xmm2, xmm2
push edi
mov dword [esp + 0x38], ecx
movaps xmm1, xmmword [esi]
addps xmm1, xmmword [ecx + 0x40]
mulps xmm1, xmmword [ecx + 0x60]
minps xmm1, xmmword [0x87afb0]
maxps xmm1, xmm2
addps xmm1, xmmword [0x87afe0]
movd eax, xmm1
movaps xmm0, xmm1
psrldq xmm0, 4
shr eax, 7
movzx eax, ax
mov dword [esp + 0x50], eax
movd eax, xmm0
movaps xmm0, xmm1
psrldq xmm0, 8
psrldq xmm1, 0xc
shr eax, 7
movzx eax, ax
mov dword [esp + 0x54], eax
movd eax, xmm0
shr eax, 7
movzx eax, ax
mov dword [esp + 0x58], eax
movd eax, xmm1
shr eax, 7
movzx eax, ax
mov dword [esp + 0x5c], eax
mov eax, dword [ecx + 0xa4]
add eax, 0x10
je 0x6b5a13
mov dword [esp + 0x4c], eax
mov ecx, 0x7d8950
lea eax, [esp + 0x4c]
push eax
mov eax, dword [0x7d8950]
mov eax, dword [eax + 0xc]
call eax
mov edi, eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x4c]
xorps xmm2, xmm2
jmp 0x6b5a19
xor edi, edi
mov dword [esp + 0x3c], edi
test eax, eax
mov ecx, connect
cmovne ecx, eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x80], ecx
mov ecx, edi
mov edx, dword [eax + 0xa4]
sar edx, 4
test edx, edx
js 0x6b5a51
nop dword [eax]
mov eax, ecx
add ecx, 0x10
sub edx, 1
movaps xmmword [eax], xmm2
jns 0x6b5a40
mov eax, dword [esp + 0x38]
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x18], ecx
test ecx, ecx
jne 0x6b5a66
lea ecx, [eax + 0xac]
mov dword [esp + 0x18], ecx
xor esi, esi
mov edx, 0x11
mov dword [esp + 0x20], esi
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
mov esi, dword [esp + esi + 0x50]
sar eax, 1
movzx eax, word [ecx + eax*4]
cmp esi, eax
jae 0x6b5af3
mov edi, dword [esp + 0x18]
mov eax, dword [edi + 4]
mov edi, dword [esp + 0x3c]
add eax, 0xfffffffc
lea eax, [ecx + eax*4]
add ecx, 4
mov dword [esp + 0x14], eax
cmp ecx, eax
jae 0x6b5acd
movzx eax, word [ecx + 0xc]
cmp eax, esi
ja 0x6b5acd
movzx eax, word [ecx + 2]
xor byte [eax + edi], dl
movzx eax, word [ecx + 6]
xor byte [eax + edi], dl
movzx eax, word [ecx + 0xa]
xor byte [eax + edi], dl
movzx eax, word [ecx + 0xe]
add ecx, 0x10
xor byte [eax + edi], dl
cmp ecx, dword [esp + 0x14]
jb 0x6b5aa0
movzx eax, word [ecx]
cmp eax, esi
ja 0x6b5b59
nop dword [eax + eax]
movzx eax, word [ecx + 2]
add ecx, 4
xor byte [eax + edi], dl
movzx eax, word [ecx]
cmp eax, esi
jbe 0x6b5ae0
jmp 0x6b5b59
lea eax, [ecx + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
mov edi, dword [eax + 4]
lea ecx, [ecx + edi*4]
mov edi, dword [esp + 0x3c]
add ecx, 0xfffffff8
cmp ecx, dword [esp + 0x14]
jb 0x6b5b3e
movzx eax, word [ecx - 0xc]
cmp eax, esi
jbe 0x6b5b3e
movzx eax, word [ecx + 2]
xor byte [eax + edi], dl
movzx eax, word [ecx - 2]
xor byte [eax + edi], dl
movzx eax, word [ecx - 6]
xor byte [eax + edi], dl
movzx eax, word [ecx - 0xa]
sub ecx, 0x10
xor byte [eax + edi], dl
cmp ecx, dword [esp + 0x14]
jae 0x6b5b11
movzx eax, word [ecx]
cmp eax, esi
jbe 0x6b5b56
movzx eax, word [ecx + 2]
sub ecx, 4
xor byte [eax + edi], dl
movzx eax, word [ecx]
cmp eax, esi
ja 0x6b5b45
add ecx, 4
mov esi, dword [esp + 0x20]
add edx, edx
mov dword [esp + esi + 0x84], ecx
add esi, 4
mov ecx, dword [esp + 0x18]
add ecx, 0xc
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], ecx
cmp esi, 0xc
jl 0x6b5a71
mov eax, dword [ebp + 8]
push dword [0x884adc]
mov esi, dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea esi, [esi*4 + 0x7f]
and esi, 0xffffff80
mov dword [esp + 0x7c], esi
mov edx, dword [eax + 0xc]
mov dword [esp + 0x1c], edx
lea ecx, [edx + esi]
cmp esi, dword [eax + 8]
jg 0x6b5bba
cmp ecx, dword [eax + 0x10]
ja 0x6b5bba
mov dword [eax + 0xc], ecx
jmp 0x6b5bc8
push esi
mov ecx, eax
call fcn.0046a3c0
mov edx, eax
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp dword [eax + 0x10], ecx
jle 0x6b5bdf
mov dword [edx + ecx*4], 0x3f800000
inc ecx
cmp ecx, dword [eax + 0x10]
jl 0x6b5bd2
mov esi, dword [esp + 0x38]
mov ecx, edi
mov dword [esp + 0x14], ecx
mov eax, dword [esi + 0xa4]
sar eax, 2
inc eax
lea eax, [edi + eax*4]
mov dword [esp + 0x34], eax
cmp edi, eax
jae 0x6b5ea7
mov eax, dword [esi + 0xa0]
lea edx, [eax + 0x3c]
lea esi, [eax + 0x2c]
mov dword [esp + 0x20], edx
lea edi, [eax + 0x1c]
mov dword [esp + 0x18], esi
add eax, 0xc
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], eax
mov eax, dword [ecx]
add eax, 0x1010101
test eax, 0x8080808
jne 0x6b5cac
lea eax, [ecx + 4]
mov dword [esp + 0x14], eax
mov eax, dword [eax]
add eax, 0x1010101
test eax, 0x8080808
jne 0x6b5c95
lea eax, [ecx + 8]
mov dword [esp + 0x14], eax
mov eax, dword [eax]
add eax, 0x1010101
test eax, 0x8080808
jne 0x6b5c7e
add dword [esp + 0x24], 0xc0
add edi, 0xc0
add esi, 0xc0
add edx, 0xc0
add ecx, 0xc
jmp 0x6b5e85
sub dword [esp + 0x24], 0xffffff80
sub edi, 0xffffff80
mov ecx, dword [esp + 0x14]
sub esi, 0xffffff80
sub edx, 0xffffff80
jmp 0x6b5e85
add dword [esp + 0x24], 0x40
add edi, 0x40
mov ecx, dword [esp + 0x14]
add esi, 0x40
add edx, 0x40
jmp 0x6b5e85
cmp byte [ecx], 0x77
jne 0x6b5d22
mov edx, dword [esp + 0x24]
test byte [edx], 1
jne 0x6b5d22
mov eax, dword [ebp + 8]
xor esi, esi
mov edi, dword [ebp + 0xc]
cmp dword [eax + 0x10], esi
mov eax, dword [esp + 0x1c]
jle 0x6b5d1c
nop dword [eax + eax]
movss xmm0, dword [eax + esi*4]
mov ecx, edi
mov eax, dword [edi]
push esi
push dword [edx]
movss dword [esp + 0x30], xmm0
mov eax, dword [eax + 4]
call eax
movss xmm0, dword [esp + 0x28]
fstp dword [esp + 0x30]
movss xmm1, dword [esp + 0x30]
comiss xmm1, xmm0
ja 0x6b5cff
movaps xmm0, xmm1
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 8]
add edi, dword [ebp + 0x10]
mov edx, dword [esp + 0x24]
movss dword [eax + esi*4], xmm0
inc esi
cmp esi, dword [ecx + 0x10]
jl 0x6b5cd0
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x2c]
jmp 0x6b5d26
mov eax, dword [esp + 0x1c]
cmp byte [ecx + 1], 0x77
jne 0x6b5d8c
test byte [edi], 1
jne 0x6b5d8c
mov edx, dword [ebp + 8]
xor esi, esi
mov edi, dword [ebp + 0xc]
cmp dword [edx + 0x10], esi
jle 0x6b5d8c
nop
movss xmm0, dword [eax + esi*4]
mov ecx, dword [esp + 0x2c]
mov eax, dword [edi]
push esi
movss dword [esp + 0x34], xmm0
push dword [ecx]
mov eax, dword [eax + 4]
mov ecx, edi
call eax
movss xmm0, dword [esp + 0x30]
fstp dword [esp + 0x28]
movss xmm1, dword [esp + 0x28]
comiss xmm1, xmm0
ja 0x6b5d73
movaps xmm0, xmm1
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 8]
add edi, dword [ebp + 0x10]
movss dword [eax + esi*4], xmm0
inc esi
cmp esi, dword [ecx + 0x10]
jl 0x6b5d40
mov ecx, dword [esp + 0x14]
cmp byte [ecx + 2], 0x77
jne 0x6b5dfc
mov edx, dword [esp + 0x18]
test byte [edx], 1
jne 0x6b5dfc
mov eax, dword [ebp + 8]
xor esi, esi
mov edi, dword [ebp + 0xc]
cmp dword [eax + 0x10], esi
mov eax, dword [esp + 0x1c]
jle 0x6b5dfc
nop dword [eax]
movss xmm0, dword [eax + esi*4]
mov ecx, edi
mov eax, dword [edi]
push esi
push dword [edx]
movss dword [esp + 0x38], xmm0
mov eax, dword [eax + 4]
call eax
movss xmm0, dword [esp + 0x30]
fstp dword [esp + 0x28]
movss xmm1, dword [esp + 0x28]
comiss xmm1, xmm0
ja 0x6b5ddf
movaps xmm0, xmm1
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 8]
add edi, dword [ebp + 0x10]
mov edx, dword [esp + 0x18]
movss dword [eax + esi*4], xmm0
inc esi
cmp esi, dword [ecx + 0x10]
jl 0x6b5db0
mov ecx, dword [esp + 0x14]
cmp byte [ecx + 3], 0x77
mov edx, dword [esp + 0x20]
jne 0x6b5e6c
test byte [edx], 1
jne 0x6b5e6c
mov eax, dword [ebp + 8]
xor esi, esi
mov edi, dword [ebp + 0xc]
cmp dword [eax + 0x10], esi
mov eax, dword [esp + 0x1c]
jle 0x6b5e6c
nop dword [eax]
movss xmm0, dword [eax + esi*4]
mov ecx, edi
mov eax, dword [edi]
push esi
push dword [edx]
movss dword [esp + 0x38], xmm0
mov eax, dword [eax + 4]
call eax
movss xmm0, dword [esp + 0x30]
fstp dword [esp + 0x28]
movss xmm1, dword [esp + 0x28]
comiss xmm1, xmm0
ja 0x6b5e4f
movaps xmm0, xmm1
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 8]
add edi, dword [ebp + 0x10]
mov edx, dword [esp + 0x20]
movss dword [eax + esi*4], xmm0
inc esi
cmp esi, dword [ecx + 0x10]
jl 0x6b5e20
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x2c]
add edx, 0x40
mov esi, dword [esp + 0x18]
add edi, 0x40
add dword [esp + 0x24], 0x40
add esi, 0x40
add ecx, 4
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x2c], edi
cmp ecx, dword [esp + 0x34]
jb 0x6b5c24
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov edx, dword [ebp + 8]
xor ecx, ecx
mov byte [edi], 0x88
mov eax, dword [esi + 0xa4]
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], ecx
cmp dword [edx + 0x10], ecx
jle 0x6b62d6
movss xmm7, dword [0x77f9a4]
nop
mov eax, dword [esp + 0x1c]
movss xmm1, dword [esi + 0x40]
movss xmm5, dword [esi + 0x60]
movaps xmm6, xmm1
addss xmm6, dword [edx]
movss xmm0, dword [eax + ecx*4]
movaps xmm2, xmm5
mov eax, dword [edx + 0x18]
imul eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x8c]
movss dword [esp + 0x14], xmm0
movq xmm0, qword [esp + 0x84]
movq qword [esp + 0x40], xmm0
add eax, dword [edx + 0x14]
mulss xmm6, xmm5
mov dword [esp + 0x48], ecx
movups xmm4, xmmword [eax]
movaps xmm0, xmm4
movaps xmmword [esp + 0xb0], xmm4
subps xmm0, xmmword [edx]
mulss xmm2, xmm0
movaps xmmword [esp + 0xa0], xmm0
movaps xmm0, xmm6
mulss xmm0, xmm7
movaps xmm3, xmm2
andps xmm3, xmmword [0x719120]
comiss xmm0, xmm3
ja 0x6b5fa0
addss xmm1, xmm4
mulss xmm1, xmm5
mulss xmm1, xmm7
comiss xmm1, xmm3
ja 0x6b5fa0
movss xmm7, dword [0x718824]
xorps xmm0, xmm0
comiss xmm0, xmm2
mov dword [esp + 0x70], 4
divss xmm7, xmm2
jbe 0x6b5f92
mov eax, dword [esp + 0x84]
add eax, 0xfffffffc
mov dword [esp + 0x70], 0xfffffffc
mov dword [esp + 0x40], eax
subss xmm6, dword [esi + 0xdc]
mulss xmm6, xmm7
jmp 0x6b5fab
movss xmm6, dword [0x7800e4]
xorps xmm7, xmm7
movss xmm1, dword [esi + 0x44]
movss xmm5, dword [esi + 0x64]
movaps xmm2, xmm1
addss xmm2, dword [edx + 4]
movaps xmm3, xmm5
movss dword [esp + 0x50], xmm6
mulss xmm3, dword [esp + 0xa4]
movss dword [esp + 0x90], xmm7
mulss xmm2, xmm5
movaps xmm4, xmm3
andps xmm4, xmmword [0x719120]
movaps xmm0, xmm2
mulss xmm0, dword [0x77f9a4]
comiss xmm0, xmm4
ja 0x6b6050
addss xmm1, dword [esp + 0xb4]
mulss xmm1, xmm5
mulss xmm1, dword [0x77f9a4]
comiss xmm1, xmm4
ja 0x6b6050
movss xmm5, dword [0x718824]
xorps xmm0, xmm0
comiss xmm0, xmm3
mov dword [esp + 0x74], 4
divss xmm5, xmm3
jbe 0x6b6042
mov eax, dword [esp + 0x88]
add eax, 0xfffffffc
mov dword [esp + 0x74], 0xfffffffc
mov dword [esp + 0x44], eax
subss xmm2, dword [esi + 0xdc]
mulss xmm2, xmm5
jmp 0x6b605b
movss xmm2, dword [0x7800e4]
xorps xmm5, xmm5
movss xmm1, dword [esi + 0x48]
movss xmm0, dword [esi + 0x68]
movaps xmm3, xmm1
addss xmm3, dword [edx + 8]
mulss xmm0, dword [esp + 0xa8]
movss dword [esp + 0x54], xmm2
movss dword [esp + 0x94], xmm5
mulss xmm3, dword [esi + 0x68]
movaps xmm4, xmm0
andps xmm4, xmmword [0x719120]
movss dword [esp + 0x34], xmm0
movaps xmm0, xmm3
mulss xmm0, dword [0x77f9a4]
comiss xmm0, xmm4
ja 0x6b6109
addss xmm1, dword [esp + 0xb8]
mulss xmm1, dword [esi + 0x68]
mulss xmm1, dword [0x77f9a4]
comiss xmm1, xmm4
ja 0x6b6109
movss xmm4, dword [0x718824]
xorps xmm1, xmm1
comiss xmm1, dword [esp + 0x34]
mov dword [esp + 0x78], 4
divss xmm4, dword [esp + 0x34]
jbe 0x6b60fb
mov ecx, dword [esp + 0x8c]
add ecx, 0xfffffffc
mov dword [esp + 0x78], 0xfffffffc
mov dword [esp + 0x48], ecx
subss xmm3, dword [esi + 0xdc]
mulss xmm3, xmm4
jmp 0x6b6114
movss xmm3, dword [0x7800e4]
xorps xmm4, xmm4
mov eax, dword [esp + 0x40]
movss dword [esp + 0x58], xmm3
movss dword [esp + 0x98], xmm4
movzx eax, word [eax]
movd xmm0, eax
mov eax, dword [esp + 0x44]
cvtdq2ps xmm0, xmm0
movzx eax, word [eax]
mulss xmm0, xmm7
movd xmm1, eax
movzx eax, word [ecx]
cvtdq2ps xmm1, xmm1
subss xmm0, xmm6
mulss xmm1, xmm5
subss xmm1, xmm2
movss dword [esp + 0x60], xmm0
movd xmm2, eax
cvtdq2ps xmm2, xmm2
movss dword [esp + 0x64], xmm1
mulss xmm2, xmm4
subss xmm2, xmm3
movss dword [esp + 0x68], xmm2
comiss xmm1, xmm0
jbe 0x6b6181
comiss xmm2, xmm0
jbe 0x6b6190
xor esi, esi
jmp 0x6b6198
comiss xmm2, xmm1
jbe 0x6b6190
movaps xmm0, xmm1
mov esi, 1
jmp 0x6b6198
movaps xmm0, xmm2
mov esi, 2
comiss xmm0, dword [esp + 0x14]
ja 0x6b6257
mov eax, dword [esp + esi*4 + 0x40]
lea edx, [esi + 4]
movzx ecx, word [eax + 2]
movzx eax, byte [edi + ecx]
btc eax, edx
mov byte [edi + ecx], al
cmp al, 0x70
jb 0x6b6201
test ecx, ecx
je 0x6b624d
mov eax, dword [esp + 0x38]
shl ecx, 4
add ecx, dword [eax + 0xa0]
mov ecx, dword [ecx + 0xc]
test cl, 1
jne 0x6b6201
mov edx, dword [ebp + 0xc]
push dword [esp + 0x18]
push ecx
mov eax, dword [edx]
mov ecx, edx
mov eax, dword [eax + 4]
call eax
fstp dword [esp + 0x34]
movss xmm0, dword [esp + 0x34]
comiss xmm0, dword [esp + 0x14]
ja 0x6b6201
movss dword [esp + 0x14], xmm0
mov edx, dword [esp + esi*4 + 0x40]
mov eax, dword [esp + esi*4 + 0x70]
add eax, edx
mov dword [esp + esi*4 + 0x40], eax
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x6b61a3
movzx eax, word [eax]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [esp + esi*4 + 0x90]
subss xmm0, dword [esp + esi*4 + 0x50]
movss dword [esp + esi*4 + 0x60], xmm0
movss xmm2, dword [esp + 0x68]
movss xmm1, dword [esp + 0x64]
movss xmm0, dword [esp + 0x60]
jmp 0x6b6173
mov dword [esp + esi*4 + 0x60], 0x40000000
jmp 0x6b6236
mov edx, dword [ebp + 8]
mov ecx, dword [esp + 0x18]
mov eax, dword [edx + 0x10]
dec eax
cmp ecx, eax
jge 0x6b62b6
mov eax, dword [esp + 0x28]
mov esi, edi
sar eax, 2
inc eax
lea eax, [edi + eax*4]
mov dword [esp + 0x34], eax
cmp edi, eax
jae 0x6b62b6
mov edi, eax
nop dword [eax]
mov ecx, dword [esi]
mov edx, dword [esi + 4]
and ecx, 0xf0f0f0f
mov eax, ecx
and edx, 0xf0f0f0f
shl eax, 4
or eax, ecx
mov dword [esi], eax
mov eax, edx
shl eax, 4
or eax, edx
mov dword [esi + 4], eax
add esi, 8
cmp esi, edi
jb 0x6b6280
mov edi, dword [esp + 0x3c]
mov edx, dword [ebp + 8]
mov ecx, dword [esp + 0x18]
mov eax, dword [ebp + 0x10]
inc ecx
add dword [ebp + 0xc], eax
movss xmm7, dword [0x77f9a4]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x18], ecx
cmp ecx, dword [edx + 0x10]
jl 0x6b5ed0
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 0x7c]
mov esi, dword [esp + 0x1c]
lea edx, [ecx + 0xf]
and edx, 0xfffffff0
cmp ecx, dword [eax + 8]
jg 0x6b6307
lea ecx, [edx + esi]
cmp ecx, dword [eax + 0xc]
jne 0x6b6307
cmp dword [eax + 0x14], esi
je 0x6b6307
mov dword [eax + 0xc], esi
jmp 0x6b6310
push edx
push esi
mov ecx, eax
call fcn.0046a590
mov eax, dword [esp + 0x80]
test eax, eax
js 0x6b632f
and eax, 0x3fffffff
mov ecx, 0x7d8950
push eax
mov eax, dword [0x7d8950]
push edi
call dword [eax + 0x10]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc