Function at 0x10035e30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cbf20
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x100fd230]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x100fde2d], 0
jne 0x1003605d
call fcn.1002ef10
mov esi, dword [0x101062ac]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.WS2_32.dll_shutdown]
test esi, esi
je 0x10035e9e
push 2
push dword [esi + 0xc]
call ebx
push 0
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CancelIoEx]
test eax, eax
jne 0x10035e9e
call edi
mov esi, dword [0x101062b4]
test esi, esi
je 0x10035ec0
push 2
push dword [esi + 0xc]
call ebx
push 0
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CancelIoEx]
test eax, eax
jne 0x10035ec0
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [0x101062b0]
test edi, edi
je 0x10035ed6
cmp dword [edi + 4], 1
jg 0x10035ee6
mov esi, dword [0x101062b8]
test esi, esi
je 0x10035eec
cmp dword [esi + 4], 1
jle 0x10035eec
push 0xa
call ebx
jmp 0x10035ec6
or ebx, 0xffffffff
mov dword [0x101062ac], 0
mov dword [0x101062b0], 0
test edi, edi
je 0x10035f2c
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x10035f26
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x10035f26
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov esi, dword [0x101062b8]
mov dword [0x101062b4], 0
mov dword [0x101062b8], 0
test esi, esi
je 0x10035f62
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x10035f62
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x10035f62
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
call fcn.10026de0
push ecx
lea ecx, [ebp - 0xe8]
mov byte [0x100fde2d], 1
call fcn.100043e0
mov edx, str._TID:
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xd8]
call fcn.10006590
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov ecx, esi
call fcn.1001c750
mov edx, 0x100e5420
mov ecx, eax
call fcn.10006590
movaps xmm0, xmmword [0x100e8d80]
mov esi, eax
movups xmmword [ebp - 0x38], xmm0
mov word [ebp - 0x28], 0x7f36
mov byte [ebp - 0x26], 0
mov byte [ebp - 4], 1
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x37]
xor al, byte [ebp - 0x38]
mov byte [ebp + ecx - 0x25], al
inc ecx
cmp ecx, 0x11
jb 0x10035fd0
lea edx, [ebp - 0x25]
mov byte [ebp - 0x14], 0
mov ecx, esi
call fcn.10006590
mov byte [ebp - 4], 0
call fcn.100035c0
mov esi, eax
lea ecx, [ebp - 0xe8]
lea eax, [ebp - 0x2c]
push eax
call fcn.100042f0
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 0x10
jb 0x10036015
mov eax, dword [eax]
sub esp, 8
mov ecx, esi
push eax
push 2
call fcn.10003d10
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x10036052
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10036048
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003607b
push ecx
push edx
call fcn.1008f79d
add esp, 8
lea ecx, [ebp - 0xe8]
call fcn.10004220
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008f445
mov esp, ebp
pop ebp
ret
call fcn.1009b8bf
int3