Function at 0x10035120
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ce280
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x10100230]
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
call fcn.1002e1a0
mov esi, dword [0x101082c4]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.WS2_32.dll_shutdown]
test esi, esi
je 0x10035181
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 0x10035181
call edi
mov esi, dword [0x101082cc]
test esi, esi
je 0x100351a3
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 0x100351a3
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax]
mov edi, dword [0x101082c8]
test edi, edi
je 0x100351c0
cmp dword [edi + 4], 1
jg 0x100351d0
mov esi, dword [0x101082d0]
test esi, esi
je 0x100351d6
cmp dword [esi + 4], 1
jle 0x100351d6
push 0xa
call ebx
jmp 0x100351b0
or ebx, 0xffffffff
mov dword [0x101082c4], 0
mov dword [0x101082c8], 0
test edi, edi
je 0x10035216
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x10035210
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, ebx
lock xadd dword [edi + 8], eax
jne 0x10035210
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov esi, dword [0x101082d0]
mov dword [0x101082cc], 0
mov dword [0x101082d0], 0
test esi, esi
je 0x1003524c
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1003524c
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x1003524c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
call fcn.10029260
push ecx
lea ecx, [ebp - 0xf0]
call fcn.100045c0
mov edx, str._TID:
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xe0]
call fcn.10006770
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov ecx, esi
call fcn.1001e850
mov edx, 0x100e846c
mov ecx, eax
call fcn.10006770
movaps xmm0, xmmword [0x100ebfe0]
mov esi, eax
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x30], 0xb16111e
mov word [ebp - 0x2c], 0x5910
mov byte [ebp - 0x2a], 0
mov byte [ebp - 4], 1
xor ecx, ecx
mov al, byte [ebp + ecx - 0x3f]
xor al, byte [ebp - 0x40]
mov byte [ebp + ecx - 0x29], al
inc ecx
cmp ecx, 0x15
jb 0x100352b4
lea edx, [ebp - 0x29]
mov byte [ebp - 0x14], 0
mov ecx, esi
call fcn.10006770
mov byte [ebp - 4], 0
call fcn.100037a0
mov esi, eax
lea ecx, [ebp - 0xf0]
lea eax, [ebp - 0x2c]
push eax
call fcn.100044d0
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 0x10
jb 0x100352f9
mov eax, dword [eax]
sub esp, 8
mov ecx, esi
push eax
push 2
call fcn.10003ef0
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x10035336
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003532c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003535f
push ecx
push edx
call fcn.10091f2c
add esp, 8
lea ecx, [ebp - 0xf0]
call fcn.10004400
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.10091bd4
mov esp, ebp
pop ebp
ret
call fcn.1009dddf
int3