Function at 0x4b88e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1054
call fcn.00584ea0
mov eax, dword [0x6009e4]
xor eax, esp
mov dword [esp + 0x1050], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, edx
mov dword [esp + 0x2c], eax
mov edx, ecx
mov dword [esp + 0x20], ebx
push esi
xor ecx, ecx
mov dword [esp + 0x14], edx
push edi
mov eax, dword [edx + 0xc4]
mov esi, 0xfffffffc
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4b892a
mov ecx, dword [eax]
xor edi, edi
cmp dword [ebp + 0xc], edi
jne 0x4b893e
cmp ebx, 9
je 0x4b893b
cmp ebx, 0xa
jne 0x4b893e
or edi, 0xffffffff
cmp dword [edx + 0xc8], 0
je 0x4b8beb
test ecx, ecx
je 0x4b8beb
call fcn.004b87f0
mov ecx, dword [esp + 0x18]
mov ebx, eax
xor eax, eax
mov dword [esp + 0x1c], 0x80
push 0xffffffffffffffff
mov dword [esp + 0x34], ebx
mov ecx, dword [ecx + 0xc8]
mov edx, dword [ecx + 0x21c]
test edx, edx
push dword [ecx + 0x204]
cmove eax, dword [esp + 0x24]
movzx eax, ax
mov dword [esp + 0x40], edx
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp + 0xc]
cmp edi, edx
jge 0x4b8bd1
mov dword [esp + 0x24], 0x1000
nop dword [eax + eax]
xor ecx, ecx
mov eax, edx
test edi, edi
cmovns ecx, edi
mov edi, dword [esp + 0x34]
sub eax, ecx
add edi, ecx
cmp eax, 0x1000
mov dword [esp + 0x2c], edi
mov esi, eax
cmovg esi, dword [esp + 0x24]
cmovg eax, dword [esp + 0x24]
add eax, ecx
mov dword [esp + 0x1c], esi
cmp eax, edx
mov dword [esp + 0x48], eax
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x4c]
push esi
jl 0x4b8b81
or edx, 0x8000
cmp dword [ebx + 4], 0
jne 0x4b8a03
push dword [esp + 0x2c]
jmp 0x4b8a0c
mov dword [ebx + 4], 0
push 0
call fcn.004c5e80
add esp, 8
mov dword [esp + 0x14], eax
cmp dword [esp + 0x38], 0
jne 0x4b8b9b
lea eax, [esp + 0xc]
push 4
push eax
call fcn.004e2870
mov eax, dword [esp + 0x14]
add esp, 8
movd xmm0, eax
pshufd xmm2, xmm0, 0
test esi, esi
jle 0x4b8b4a
mov ebx, esi
xor ecx, ecx
sar ebx, 2
mov dword [esp + 0x44], ebx
test ebx, ebx
jle 0x4b8b16
cmp ebx, 8
jb 0x4b8af2
lea edx, [ebx - 1]
lea eax, [esp + 0x58]
lea edx, [edi + edx*4]
cmp eax, edx
mov eax, dword [esp + 0xc]
ja 0x4b8a7d
lea edx, [esp + ebx*4 + 0x54]
cmp edx, edi
jae 0x4b8af2
mov edx, ebx
and edx, reloc.WS2_32.dll_getsockopt
jns 0x4b8a8c
dec edx
or edx, 0xfffffff8
inc edx
mov dword [esp + 0x20], ebx
lea eax, [esp + 0x58]
sub dword [esp + 0x20], edx
mov edx, dword [esp + 0x2c]
neg edx
add eax, edx
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x68]
mov esi, dword [esp + 0x3c]
add eax, edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x40]
nop
movups xmm0, xmmword [edi]
lea edi, [edi + 0x20]
add ecx, 8
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [esi + edi - 0x20], xmm1
movups xmm0, xmmword [edi - 0x10]
pxor xmm0, xmm2
movups xmmword [ebx + edi - 0x20], xmm0
cmp ecx, edx
jl 0x4b8ac0
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x44]
mov edi, dword [esp + 0x2c]
cmp ecx, ebx
jge 0x4b8b16
mov esi, edi
lea edx, [esp + 0x58]
sub esi, edx
nop
lea edx, [esi + ecx*4]
mov edx, dword [esp + edx + 0x58]
xor edx, eax
mov dword [esp + ecx*4 + 0x58], edx
inc ecx
cmp ecx, ebx
jl 0x4b8b00
mov esi, dword [esp + 0x1c]
shl ecx, 2
cmp ecx, esi
jge 0x4b8b46
lea eax, [esp + 0x58]
sub edi, eax
mov edx, ecx
lea eax, [edi + ecx]
and edx, reloc.WS2_32.dll_closesocket
jns 0x4b8b35
dec edx
or edx, 0xfffffffc
inc edx
mov al, byte [esp + eax + 0x58]
xor al, byte [esp + edx + 0xc]
mov byte [esp + ecx + 0x58], al
inc ecx
cmp ecx, esi
jl 0x4b8b23
mov ebx, dword [esp + 0x30]
push 2
push esi
lea eax, [esp + 0x60]
push eax
push 2
push 4
lea eax, [esp + 0x20]
push eax
push 2
push dword [esp + 0x30]
lea eax, [esp + 0x6c]
push eax
mov eax, dword [esp + 0x3c]
push 0x40000003
push 0
push dword [eax + 0xc8]
call fcn.004aa1b0
add esp, 0x30
jmp 0x4b8bc0
cmp dword [ebx + 4], 0
jne 0x4b8a0a
push dword [esp + 0x2c]
mov dword [ebx + 4], 1
jmp 0x4b8a0c
push 2
push esi
push edi
push 2
push eax
lea eax, [esp + 0x60]
push eax
mov eax, dword [esp + 0x30]
push 0x40000002
push 0
push dword [eax + 0xc8]
call fcn.004aa1b0
add esp, 0x24
mov edi, dword [esp + 0x48]
mov esi, eax
mov edx, dword [ebp + 0xc]
cmp edi, edx
jl 0x4b89b0
mov eax, dword [esp + 0x18]
push 0
push 1
mov eax, dword [eax + 0xc8]
push dword [eax + 0x204]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov ecx, dword [esp + 0x105c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00584a28
mov esp, ebp
pop ebp
ret