Function at 0x44d0f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push 3
push 0xef
push str.WebSocket_buildFrame
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.00448410
mov eax, dword [ebp + 8]
add esp, 0xc
xorps xmm0, xmm0
movq qword [ebp - 0x18], xmm0
cmp dword [eax + 0x28], 0
je 0x44d370
mov esi, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
push ebx
mov ecx, dword [esi]
mov edx, dword [eax]
mov ebx, edx
test ecx, ecx
jle 0x44d14c
mov eax, dword [esi + 8]
add ebx, dword [eax]
lea eax, [eax + 4]
sub ecx, 1
jne 0x44d142
push edi
cmp ebx, 0x7e
jae 0x44d159
mov edi, 2
jmp 0x44d167
cmp ebx, 0x10000
sbb edi, edi
and edi, 0xfffffffa
add edi, 0xa
test byte [ebp + 0x10], 1
mov dword [ebp - 0xc], edi
je 0x44d176
add edi, 4
mov dword [ebp - 0xc], edi
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0
je 0x44d1ba
lea eax, [edx + edi]
push eax
push 0x101
push str.D:downloadpaho.mqtt.c_1.3.13_srcWebSocket.c
mov dword [ebp - 8], eax
call fcn.00448800
add esp, 0xc
mov dword [ebp + 8], eax
test eax, eax
je 0x44d341
mov ecx, dword [ebp + 0x18]
push dword [ecx]
mov ecx, dword [ebp + 0x14]
push dword [ecx]
lea ecx, [edi + eax]
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x44d1db
push edi
push 0x108
push str.D:downloadpaho.mqtt.c_1.3.13_srcWebSocket.c
call fcn.00448800
add esp, 0xc
mov dword [ebp + 8], eax
test eax, eax
je 0x44d368
mov dword [ebp - 8], edi
cmp dword [ebp + 0x10], 0
je 0x44d228
cmp byte [esi + 0x10], 0
jne 0x44d228
mov edi, dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
call edi
cdq
mov ecx, 0xff
idiv ecx
mov byte [esi + 0x10], dl
call edi
cdq
mov ecx, 0xff
idiv ecx
mov byte [esi + 0x11], dl
call edi
cdq
mov ecx, 0xff
idiv ecx
mov byte [esi + 0x12], dl
call edi
cdq
mov ecx, 0xff
idiv ecx
mov dword [ebp - 0x10], 1
mov byte [esi + 0x13], dl
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov byte [edx + eax], 0x80
mov ecx, dword [ebp - 4]
mov al, byte [ebp + 0xc]
and al, 0xf
or byte [ecx + edx], al
mov ecx, dword [ebp - 4]
mov al, byte [ebp + 0x10]
inc ecx
shl al, 7
mov dword [ebp - 4], ecx
mov byte [edx + ecx], al
cmp ebx, 0x7e
jae 0x44d261
mov eax, dword [ebp - 4]
and bl, 0x7f
or byte [eax + edx], bl
mov ecx, dword [ebp - 4]
inc ecx
jmp 0x44d2b1
cmp ebx, 0x10000
jae 0x44d290
push ebx
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [ebp + 8]
movzx ecx, ax
mov eax, dword [ebp - 4]
or byte [edx + eax], 0x7e
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov word [edx + eax], cx
mov ecx, dword [ebp - 4]
add ecx, 2
jmp 0x44d2b1
mov eax, dword [ebp - 4]
xor ecx, ecx
bswap ecx
bswap ebx
or byte [edx + eax], 0x7f
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov dword [edx + eax], ecx
mov dword [edx + eax + 4], ebx
mov ecx, dword [ebp - 4]
add ecx, 8
cmp dword [ebp + 0x10], 0
mov dword [ebp - 4], ecx
je 0x44d341
mov eax, dword [esi + 0x10]
xor edi, edi
mov ebx, dword [ebp - 8]
mov dword [edx + ecx], eax
add dword [ebp - 4], 4
mov eax, dword [ebp - 0xc]
cmp eax, ebx
jge 0x44d2f5
lea ecx, [eax + edx]
mov edx, ebx
sub edx, eax
nop dword [eax + eax]
mov eax, edi
lea ecx, [ecx + 1]
and eax, 3
inc edi
mov al, byte [eax + esi + 0x10]
xor byte [ecx - 1], al
sub edx, 1
jne 0x44d2e0
xor ebx, ebx
cmp dword [esi], ebx
jle 0x44d341
nop dword [eax + eax]
cmp dword [ebp - 0x10], 0
jne 0x44d312
cmp ebx, 2
je 0x44d341
mov eax, dword [esi]
dec eax
cmp ebx, eax
je 0x44d341
mov eax, dword [esi + 8]
xor edx, edx
cmp dword [eax + ebx*4], edx
jbe 0x44d33c
nop dword [eax]
mov eax, dword [esi + 4]
mov ecx, dword [eax + ebx*4]
mov eax, edi
and eax, 3
inc edi
mov al, byte [eax + esi + 0x10]
xor byte [ecx + edx], al
inc edx
mov eax, dword [esi + 8]
cmp edx, dword [eax + ebx*4]
jb 0x44d320
inc ebx
cmp ebx, dword [esi]
jl 0x44d300
mov esi, dword [ebp + 8]
pop edi
pop ebx
push 3
lea eax, [ebp - 4]
push eax
push 0x15a
push str.WebSocket_buildFrame
call fcn.004484c0
mov edx, dword [ebp - 8]
add esp, 0x10
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
jmp 0x44d341
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 8], eax
jmp 0x44d346