Function at 0x10087690
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101cb026
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x10205ac8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, word [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14c], edi
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ecx
mov ecx, dword [edi]
lea eax, [ebp - 0x120]
xorps xmm0, xmm0
mov dword [ebp - 4], 0
push eax
movups xmmword [ebp - 0x120], xmm0
mov dword [ebp - 0x110], 0
call fcn.10189600
mov eax, dword [ebp - 0x120]
xorps xmm0, xmm0
mov esi, dword [edi]
mov ecx, dword [edi + 4]
mov dword [ebp - 0x12c], eax
mov eax, 0x8000
movq qword [ebp - 0x138], xmm0
mov word [ebp - 0x130], 0
mov word [ebp - 0x134], ax
movups xmmword [ebp - 0x148], xmm0
mov byte [ebp - 0x12f], 9
mov eax, dword [esi]
shr eax, 1
mov dword [ebp - 0x124], ecx
test al, 1
je 0x10087754
mov eax, dword [esi + 0x14]
jmp 0x10087757
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x13c], eax
lea eax, [ebp - 0x13c]
push dword [ecx + 0xc]
push eax
call fcn.100babf0
mov eax, dword [ebp - 0x12c]
add esp, 8
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x140], eax
mov eax, dword [esi + 8]
shr eax, 2
test al, 1
je 0x10087790
mov eax, dword [ecx + 0x1c]
jmp 0x10087793
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x148], eax
mov eax, dword [ecx + 0x20]
mov dword [ebp - 0x144], eax
movups xmm0, xmmword [ebp - 0x148]
mov ax, word [ebp - 0x130]
push 0x2c
mov word [ebp - 0xb8], ax
lea eax, [ebp - 0xfc]
movups xmmword [ebp - 0xd0], xmm0
push 0
movq xmm0, qword [ebp - 0x138]
push eax
movq qword [ebp - 0xc0], xmm0
call fcn.101b66d0
add esp, 0xc
lea eax, [ebp - 0x11c]
lea ecx, [ebp - 0xfc]
push 0x10
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.100c5f00
mov byte [ebp - 0x38], 0
mov eax, dword [edi + 8]
mov byte [ebp - 4], 1
test dword [eax], 0x4000000
je 0x1008784d
push dword [edi + 0xc]
push dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x17c]
push eax
call fcn.10087460
add esp, 0x10
cmp byte [ebp - 0x38], 0
movq xmm0, qword [eax]
movq qword [ebp - 0x34], xmm0
mov eax, dword [eax + 8]
mov dword [ebp - 0x2c], eax
jne 0x1008783e
mov byte [ebp - 0x38], 1
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0xfc]
call fcn.100c6530
mov eax, dword [ebp + 0x3c]
test eax, eax
je 0x10087dcc
mov eax, dword [eax]
lea ecx, [ebp - 0xfc]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x101fc4ac]
mov ecx, dword [ebp + 0x3c]
call esi
mov esi, dword [edi]
xorps xmm0, xmm0
add esi, 0x40
movups xmmword [ebp - 0x50], xmm0
push 0x10
mov dword [ebp - 0x128], esi
mov byte [ebp - 0x50], 0
call fcn.101b44b7
mov edi, eax
xorps xmm0, xmm0
mov dword [ebp - 0x12c], edi
mov dword [ebp - 0x4c], edi
lea eax, [edi + 0x10]
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x44], eax
movups xmmword [edi], xmm0
mov dword [ebp - 0x48], eax
movups xmm0, xmmword [esi + 4]
push 0x20
mov byte [ebp - 4], 2
movups xmmword [edi], xmm0
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
mov byte [ebp - 0x28], 0
call fcn.101b44b7
mov esi, eax
xorps xmm0, xmm0
add esp, 8
mov dword [ebp - 0x24], esi
lea edx, [esi + 0x20]
movups xmmword [esi], xmm0
mov dword [ebp - 0x1c], edx
movups xmmword [esi + 0x10], xmm0
mov dword [ebp - 0x20], edx
sub edx, esi
mov byte [ebp - 4], 3
mov dword [ebp - 0x18], 0
cmp edx, 0x10
jae 0x100879a1
mov ecx, edx
mov eax, closesocket
shr ecx, 1
sub eax, ecx
cmp edx, eax
jbe 0x1008791e
mov dword [ebp - 0x124], getpeername
jmp 0x10087931
lea eax, [ecx + edx]
mov ecx, 0x10
cmp eax, ecx
cmovb eax, ecx
mov dword [ebp - 0x124], eax
test esi, esi
je 0x10087990
mov eax, edx
mov ecx, esi
test edx, edx
je 0x1008794b
nop dword [eax]
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub eax, 1
jne 0x10087940
mov byte [ebp - 4], 4
cmp edx, 0x1000
jb 0x1008796d
mov ecx, dword [esi - 4]
add edx, 0x23
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x10087dd1
mov esi, ecx
push edx
push esi
call fcn.101b44e7
add esp, 8
mov byte [ebp - 4], 3
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
push dword [ebp - 0x124]
lea ecx, [ebp - 0x28]
call fcn.10087de0
mov esi, dword [ebp - 0x24]
push 0x10
push edi
push esi
call fcn.101b6150
add esp, 0xc
lea eax, [esi + 0x10]
mov dword [ebp - 0x20], eax
push 0xffffffffffffffff
call fcn.100c6b60
mov ecx, eax
call fcn.100c6c40
lea ecx, [esi + 0x10]
mov dword [ebp - 0x18], eax
sub ecx, esi
xor edx, edx
mov dword [ebp - 0x124], ecx
mov ecx, eax
not ecx
add ecx, ecx
xor ecx, eax
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x124], edx
jbe 0x10087a09
mov edi, dword [ebp - 0x124]
nop word [eax + eax]
mov eax, edx
lea ecx, [esi + edx]
and eax, 3
inc edx
mov al, byte [ebp + eax - 0x14]
xor byte [ecx], al
cmp edx, edi
jb 0x100879f0
mov edi, dword [ebp - 0x12c]
mov esi, dword [ebp - 0x14c]
xorps xmm0, xmm0
movups xmmword [ebp - 0x90], xmm0
mov byte [ebp - 4], 5
movups xmmword [ebp - 0x80], xmm0
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x170], eax
mov eax, dword [ecx + 0x18]
lea ecx, [ebp - 0x164]
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp - 0x128]
mov eax, dword [eax]
mov dword [ebp - 0x168], eax
lea eax, [ebp - 0x28]
push eax
call fcn.100874d0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x154], eax
mov byte [ebp - 4], 6
call fcn.100c6b60
push eax
lea eax, [ebp - 0x170]
push eax
lea ecx, [ebp - 0x90]
call fcn.100c6540
mov ecx, dword [ebp - 0x160]
mov byte [ebp - 4], 8
test ecx, ecx
je 0x10087ab9
mov eax, dword [ebp - 0x158]
sub eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x164]
call fcn.10087fd0
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x158], 0
mov ecx, dword [esi]
push 0
call fcn.10189f30
mov edx, dword [esi + 4]
mov esi, dword [0x1020d28c]
mov ecx, dword [edx + 0x14]
mov dword [ebp - 0x104], ecx
mov ecx, dword [edx + 0x18]
mov dword [ebp - 0x100], ecx
mov eax, dword [eax + 4]
mov dword [ebp - 0x10c], eax
test esi, esi
jne 0x10087bbc
push 0x5c
call fcn.101b44b7
mov esi, eax
add esp, 4
mov dword [ebp - 0x128], esi
test esi, esi
je 0x10087bb4
push 0x5c
push 0
push esi
call fcn.101b66d0
add esp, 0xc
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov byte [esi + 0x58], 0
jmp 0x10087bb6
xor esi, esi
mov dword [0x1020d28c], esi
xorps xmm0, xmm0
mov dword [ebp - 0x108], esi
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x70]
movups xmmword [ebp - 0x70], xmm0
movups xmmword [ebp - 0x60], xmm0
call fcn.100bbc80
lea eax, [ebp - 0x90]
mov byte [ebp - 4], 9
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x94], 0
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0xb4]
movups xmmword [ebp - 0xb4], xmm0
movups xmmword [ebp - 0xa4], xmm0
call fcn.100bbb60
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0xfc]
push eax
lea ecx, [ebp - 0xb4]
call fcn.100bbf40
mov edx, dword [ebp - 0xac]
mov dword [ebp - 0x128], eax
test edx, edx
je 0x10087c6e
mov ecx, dword [ebp - 0xa4]
sub ecx, edx
push ecx
push edx
lea ecx, [ebp - 0xb0]
call fcn.10087fd0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0
mov ecx, dword [ebp - 0x70]
mov byte [ebp - 4], 0xb
test ecx, ecx
je 0x10087c9d
mov eax, dword [ebp - 0x68]
sub eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x70]
call fcn.10074460
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov ecx, dword [ebp - 0x8c]
test ecx, ecx
je 0x10087cda
mov eax, dword [ebp - 0x84]
sub eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x90]
call fcn.10087fd0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov edx, dword [ebp - 0x24]
test edx, edx
je 0x10087d3c
mov esi, dword [ebp - 0x1c]
mov ecx, edx
sub esi, edx
mov eax, esi
je 0x10087cfb
nop dword [eax]
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub eax, 1
jne 0x10087cf0
mov eax, edx
mov byte [ebp - 4], 0xc
cmp esi, 0x1000
jb 0x10087d1d
mov edx, dword [edx - 4]
add esi, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10087dd1
push esi
push edx
call fcn.101b44e7
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x150]
mov ecx, edi
sub edx, edi
mov eax, edx
je 0x10087d5b
nop word [eax + eax]
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub eax, 1
jne 0x10087d50
mov byte [ebp - 4], 0xd
cmp edx, 0x1000
jb 0x10087d79
mov ecx, dword [edi - 4]
add edx, 0x23
sub edi, ecx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x10087dd1
mov edi, ecx
push edx
push edi
call fcn.101b44e7
mov edi, dword [ebp + 0x3c]
add esp, 8
mov byte [ebp - 0x38], 0
test edi, edi
je 0x10087dab
mov esi, dword [edi]
lea eax, [ebp + 0x18]
cmp edi, eax
setne al
mov esi, dword [esi + 0x10]
mov ecx, esi
movzx eax, al
push eax
call dword [0x101fc4ac]
mov ecx, edi
call esi
mov eax, dword [ebp - 0x128]
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.101b4a00
mov esp, ebp
pop ebp
ret
call fcn.1019f82a
call fcn.100ecc9c
int3