Function at 0x1005ba10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d1150
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x100ff230]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x48], edx
mov ebx, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp edi, 0x10000
ja 0x1005bb19
cmp dword [ebp + 0xc], 0
je 0x1005bc15
lea eax, [edi + 0xa]
push 0x100db776
push eax
call fcn.100919c8
mov esi, eax
add esp, 8
test esi, esi
je 0x1005bc15
push 0x35
mov dword [esi], edi
call dword [sym.imp.WS2_32.dll_htons]
cmp ax, word [ebx + 2]
jne 0x1005ba9b
call fcn.1002dc60
mov eax, dword [eax + 0x3bc]
jmp 0x1005ba9e
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov ax, word [ebx + 2]
push edi
push dword [ebp - 0x48]
mov word [esi + 8], ax
lea eax, [esi + 0xa]
push eax
call fcn.10093720
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov edx, dword [ebp + 0xc]
mov ebx, edx
test ecx, ecx
je 0x1005bacf
lock inc dword [ecx + 4]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
sub esp, 0x28
mov byte [ebp - 4], 4
mov eax, esp
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
push 0
mov dword [eax + 8], ecx
mov ecx, ebx
mov dword [eax], vtable.std::_Func_impl_no_alloc_class__void___cdecl_speed::core::SendUdpWrap_char_const___char_const___int__class_std::shared_ptr_class_speed::core::CTCPHandle__::_18::_lambda_1___void__class_speed::core::CTCPHandle___char_const___int_.0
mov dword [eax + 4], edx
mov dword [eax + 0x24], eax
lea eax, [edi + 0xa]
push eax
push esi
call fcn.1005adc0
test al, al
jne 0x1005bc15
push esi
call fcn.100919ab
add esp, 4
jmp 0x1005bc15
push ecx
lea ecx, [ebp - 0xfc]
call fcn.100045c0
mov edx, str._TID:
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xec]
call fcn.10006770
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov ecx, esi
call fcn.1001e810
mov edx, 0x100e746c
mov ecx, eax
call fcn.10006770
movaps xmm0, xmmword [0x100eb150]
mov esi, eax
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], 0x773b6969
mov dword [ebp - 0x30], 0x21757e
mov byte [ebp - 4], 2
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x43]
xor al, byte [ebp - 0x44]
mov byte [ebp + ecx - 0x2c], al
inc ecx
cmp ecx, 0x16
jb 0x1005bb80
lea edx, [ebp - 0x2c]
mov byte [ebp - 0x16], 0
mov ecx, esi
call fcn.10006770
push edi
mov ecx, eax
call fcn.10004920
mov byte [ebp - 4], 1
call fcn.100037a0
mov esi, eax
lea ecx, [ebp - 0xfc]
lea eax, [ebp - 0x30]
push eax
call fcn.100044d0
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 0x10
jb 0x1005bbcd
mov eax, dword [eax]
sub esp, 8
mov ecx, esi
push eax
push 4
call fcn.10003ef0
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0x10
jb 0x1005bc0a
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005bc00
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005bc59
push ecx
push edx
call fcn.1009197a
add esp, 8
lea ecx, [ebp - 0xfc]
call fcn.10004400
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x1005bc3d
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1005bc3d
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x1005bc3d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10091622
mov esp, ebp
pop ebp
ret
call fcn.1009d81f
int3