Function at 0xb3d020
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002ab00
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x10034150]
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
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x30], 0
call fcn.00b3ca30
mov edx, dword [edx]
push 0
push 0x8000000
push 3
push 0
push 3
push connect
push edx
call dword [0x1002c10c]
mov edi, eax
push 0
push edi
call dword [0x1002c050]
mov esi, eax
push esi
push 0x20
lea ecx, [ebp - 0x2c]
call fcn.00b3c410
mov dword [ebp - 4], 0
test esi, esi
jns 0xb3d0a8
push 0x80070057
call fcn.00b29570
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0xb3d0c8
push esi
lea ecx, [ebp - 0x2c]
call fcn.00b2a640
mov edx, dword [ebp - 0x2c]
push 0
lea eax, [ebp - 0x40]
push eax
push esi
push edx
push edi
call dword [0x1002c04c]
push edi
call dword [0x1002c0fc]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.00b43149
add esp, 8
test eax, eax
js 0xb3d09e
mov ecx, dword [ebp - 0x2c]
cmp eax, dword [ecx - 8]
jg 0xb3d09e
mov dword [ecx - 0xc], eax
mov edx, dword [ebp - 0x2c]
xor ecx, ecx
mov word [edx + eax*2], cx
mov edx, dword [ebp - 0x2c]
or eax, 0xffffffff
mov ecx, esi
test esi, esi
je 0xb3d12d
movzx edi, byte [edx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
xor eax, dword [esi*4 + 0x100356c8]
inc edx
dec ecx
jne 0xb3d112
xor ecx, ecx
mov dword [ebp - 0x23], ecx
mov dword [ebp - 0x1f], ecx
mov dword [ebp - 0x1b], ecx
mov dword [ebp - 0x17], ecx
mov word [ebp - 0x13], cx
mov byte [ebp - 0x11], cl
push 0x10
lea ecx, [ebp - 0x24]
not eax
push ecx
push eax
mov byte [ebp - 0x24], 0
call fcn.00b51b87
add esp, 0xc
lea edx, [ebp - 0x24]
push edx
call dword [0x1002c094]
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jg 0xb3d198
lea eax, [esi + esi]
call fcn.00b43ea0
mov edi, esp
test edi, edi
je 0xb3d198
push esi
push edi
push 0xffffffffffffffff
lea ecx, [ebp - 0x24]
xor eax, eax
push ecx
push eax
push 3
mov word [edi], ax
call dword [0x1002c0f0]
neg eax
sbb eax, eax
and eax, edi
jmp 0xb3d19a
xor eax, eax
push eax
lea ecx, [ebp - 0x28]
call fcn.00b2c690
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx - 0xc]
mov byte [ebp - 4], 1
cmp edx, 8
jge 0xb3d29f
mov eax, 8
sub eax, edx
test eax, eax
jle 0xb3d29f
mov dword [ebp - 0x30], eax
jmp 0xb3d1d0
push 0x1002d9b4
lea ecx, [ebp - 0x38]
call fcn.00b2c690
lea edx, [ebp - 0x28]
push edx
push eax
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 2
call fcn.00b2bcd0
add esp, 0xc
mov ecx, dword [eax]
mov esi, dword [ebp - 0x28]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
mov byte [ebp - 4], 3
cmp eax, esi
je 0xb3d24a
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0xb3d23d
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0xb3d23d
push eax
call fcn.00b2a6a0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0xb3d235
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [ebp - 0x28], ebx
jmp 0xb3d24a
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00b2aeb0
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0xb3d26d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0xb3d290
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
dec dword [ebp - 0x30]
jne 0xb3d1d0
mov ecx, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x3c]
mov esi, dword [ecx - 0xc]
test esi, esi
jns 0xb3d2b0
push 0x80070057
call fcn.00b29570
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, esi
or eax, edx
jge 0xb3d2cd
push esi
lea ecx, [ebp - 0x28]
call fcn.00b2a640
mov ecx, dword [ebp - 0x28]
lea edx, [esi + 1]
push edx
push ecx
call fcn.00b42b01
mov eax, dword [ebp - 0x28]
add esp, 8
cmp esi, dword [eax - 8]
jg 0xb3d09e
mov dword [eax - 0xc], esi
mov ecx, dword [ebp - 0x28]
xor eax, eax
mov word [ecx + esi*2], ax
mov esi, dword [ebp - 0x28]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi - 4], 0
lea ecx, [esi - 4]
jl 0xb3d31b
cmp eax, dword [esi - 0x10]
jne 0xb3d31b
lea edi, [esi - 0x10]
mov edx, 1
lock xadd dword [ecx], edx
jmp 0xb3d354
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0xb3d334
call fcn.00b29c30
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov eax, dword [esi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.00b43169
add esp, 0x10
mov eax, dword [ebp - 0x28]
add edi, 0x10
add eax, 0xfffffff0
mov dword [ebx], edi
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0xb3d37c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0xb3d3a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
lea esp, [ebp - 0x50]
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.00b4258e
mov esp, ebp
pop ebp
ret