Function at 0x4292a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cfe08
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4fe080]
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 edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x60], eax
mov eax, dword [edi + 8]
sub eax, dword [edi + 4]
cmp eax, 2
jb 0x429701
mov dword [ebp - 0x64], 2
lea esp, [esp]
mov ecx, dword [edi + 4]
mov eax, 8
mov dl, byte [ecx]
mov bl, byte [ecx + 1]
movzx esi, byte [ecx + 1]
shr dl, 7
and esi, 0x7f
shr bl, 7
mov byte [ebp - 0x35], dl
mov byte [ebp - 0x58], dl
movzx edx, byte [ecx]
xor ecx, ecx
and edx, 0xf
mov byte [ebp - 0x29], bl
cmp esi, 0x7f
mov byte [ebp - 0x57], bl
mov dword [ebp - 0x34], edx
cmove ecx, eax
mov dword [ebp - 0x54], edx
xor eax, eax
mov dword [ebp - 0x50], esi
cmp esi, 0x7e
cmove eax, dword [ebp - 0x64]
add ecx, eax
xor eax, eax
test bl, bl
mov ebx, 4
cmovne eax, ebx
add ecx, 2
add eax, ecx
mov ecx, dword [edi + 8]
sub ecx, dword [edi + 4]
mov dword [ebp - 0x5c], eax
cmp ecx, eax
jb 0x429701
xor eax, eax
mov dword [ebp - 0x30], eax
cmp esi, 0x7e
jge 0x429381
mov eax, esi
cdq
mov ebx, eax
mov esi, edx
mov edx, dword [ebp - 0x34]
mov eax, 2
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x30], eax
jmp 0x429453
jne 0x4293b5
mov ecx, dword [edi + 4]
movzx eax, byte [ecx + 2]
cdq
mov ebx, eax
mov esi, edx
movzx eax, byte [ecx + 3]
shld esi, ebx, 8
cdq
shl ebx, 8
or ebx, eax
or esi, edx
mov edx, dword [ebp - 0x34]
mov eax, 4
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x30], eax
jmp 0x429456
cmp esi, 0x7f
jne 0x42944d
mov ecx, dword [edi + 4]
movzx eax, byte [ecx + 2]
cdq
mov ebx, eax
mov esi, edx
movzx eax, byte [ecx + 3]
shld esi, ebx, 8
cdq
shl ebx, 8
or esi, edx
or ebx, eax
movzx eax, byte [ecx + 4]
shld esi, ebx, 8
cdq
shl ebx, 8
or esi, edx
or ebx, eax
movzx eax, byte [ecx + 5]
shld esi, ebx, 8
cdq
shl ebx, 8
or esi, edx
or ebx, eax
movzx eax, byte [ecx + 6]
shld esi, ebx, 8
cdq
shl ebx, 8
or esi, edx
or ebx, eax
movzx eax, byte [ecx + 7]
shld esi, ebx, 8
cdq
shl ebx, 8
or esi, edx
or ebx, eax
movzx eax, byte [ecx + 8]
shld esi, ebx, 8
cdq
shl ebx, 8
or esi, edx
or ebx, eax
movzx eax, byte [ecx + 9]
shld esi, ebx, 8
cdq
shl ebx, 8
or ebx, eax
or esi, edx
mov edx, dword [ebp - 0x34]
mov eax, 0xa
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x30], eax
jmp 0x429456
mov esi, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x4c]
mov ecx, dword [edi + 4]
cmp byte [ebp - 0x29], 0
mov dword [ebp - 0x3c], ebx
je 0x429489
movzx eax, byte [eax + ecx]
mov byte [ebp - 0x44], al
mov eax, dword [ebp - 0x30]
movzx eax, byte [eax + ecx + 1]
mov byte [ebp - 0x43], al
mov eax, dword [ebp - 0x30]
movzx eax, byte [eax + ecx + 2]
mov byte [ebp - 0x42], al
mov eax, dword [ebp - 0x30]
movzx eax, byte [eax + ecx + 3]
mov byte [ebp - 0x41], al
jmp 0x429490
mov dword [ebp - 0x44], 0
mov eax, dword [edi + 8]
sub eax, dword [edi + 4]
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x68], eax
xor eax, eax
mov dword [ebp - 0x34], ecx
add dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], 0
adc eax, esi
cmp dword [ebp - 0x30], eax
jb 0x429701
ja 0x4294c4
mov eax, dword [ebp - 0x68]
cmp eax, dword [ebp - 0x34]
jb 0x429701
cmp edx, 1
je 0x4295c2
cmp edx, 2
je 0x4295c2
test edx, edx
je 0x4295c2
cmp edx, 9
jne 0x429586
cmp byte [ebp - 0x29], 0
je 0x429515
xor edx, edx
test ebx, ebx
jne 0x4294f7
test esi, esi
je 0x429515
add ecx, edx
mov eax, edx
add ecx, dword [edi + 4]
and eax, 3
inc edx
mov al, byte [ebp + eax - 0x44]
xor byte [ecx], al
xor eax, eax
mov ecx, dword [ebp - 0x5c]
cmp edx, ebx
jne 0x4294f7
cmp eax, esi
jne 0x4294f7
mov ecx, dword [edi + 4]
mov esi, dword [ebp - 0x5c]
push dword [ebp - 0x60]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
lea edx, [ecx + esi]
mov byte [ebp - 0x28], 0
add edx, ebx
lea eax, [ecx + esi]
push edx
push eax
lea ecx, [ebp - 0x28]
call fcn.00428520
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov ebx, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
add eax, ebx
mov dword [ebp - 4], 2
cmp dword [ebp - 0x14], 0x10
push eax
cmovae ecx, dword [ebp - 0x28]
push ecx
push 0
push ebx
push 0xa
mov ecx, edi
call fcn.00428a00
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.004018f2
jmp 0x4296bc
cmp edx, 0xa
je 0x4296bf
cmp edx, 8
jne 0x4295a0
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x18]
jmp 0x4296bc
push str.ERROR:_Got_unexpected_WebSocket_message._n
call fcn.0047c808
add eax, 0x40
push eax
call fcn.0047e09e
mov eax, dword [edi]
add esp, 8
mov ecx, edi
call dword [eax + 0x18]
jmp 0x4296bc
cmp byte [ebp - 0x29], 0
je 0x4295f0
xor edx, edx
test ebx, ebx
jne 0x4295d2
test esi, esi
je 0x4295f0
add ecx, edx
mov eax, edx
add ecx, dword [edi + 4]
and eax, 3
inc edx
mov al, byte [ebp + eax - 0x44]
xor byte [ecx], al
xor eax, eax
mov ecx, dword [ebp - 0x5c]
cmp edx, ebx
jne 0x4295d2
cmp eax, esi
jne 0x4295d2
mov ecx, dword [edi + 4]
mov esi, dword [ebp - 0x5c]
push dword [ebp - 0x60]
lea edx, [ecx + esi]
add edx, ebx
lea eax, [ecx + esi]
push edx
push eax
push dword [edi + 0x20]
lea ebx, [edi + 0x1c]
mov ecx, ebx
call fcn.00428820
cmp byte [ebp - 0x35], 0
je 0x4296bc
push ebx
lea ecx, [ebp - 0x74]
call fcn.00428e60
mov ecx, dword [ebp - 0x60]
push eax
mov dword [ebp - 4], 0
mov edx, dword [ecx]
call dword [edx]
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x429657
push eax
call fcn.0047a557
add esp, 4
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov esi, dword [ebx]
mov ecx, esi
mov eax, dword [edi + 0x20]
cmp esi, ecx
jne 0x42966c
cmp eax, dword [ebx + 4]
jne 0x42966c
mov dword [ebx + 4], ecx
jmp 0x429689
cmp esi, eax
je 0x429689
mov ebx, dword [ebx + 4]
sub ebx, eax
push ebx
push eax
push esi
call fcn.0047a6a0
lea eax, [ebx + esi]
add esp, 0xc
lea ebx, [edi + 0x1c]
mov dword [ebx + 4], eax
xor eax, eax
lea ecx, [ebp - 0x1c]
cmp ecx, ebx
je 0x4296a8
mov eax, dword [ebx]
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4296bc
push eax
call fcn.0047a557
add esp, 4
mov ecx, dword [ebp - 0x5c]
mov esi, dword [edi + 4]
lea eax, [esi + ecx]
mov ecx, esi
add eax, dword [ebp - 0x3c]
cmp esi, ecx
jne 0x4296d8
cmp eax, dword [edi + 8]
jne 0x4296d8
mov dword [edi + 8], ecx
jmp 0x4296f2
cmp esi, eax
je 0x4296f2
mov ebx, dword [edi + 8]
sub ebx, eax
push ebx
push eax
push esi
call fcn.0047a6a0
lea eax, [ebx + esi]
add esp, 0xc
mov dword [edi + 8], eax
mov eax, dword [edi + 8]
sub eax, dword [edi + 4]
cmp eax, 2
jae 0x4292f0
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.0047b06c
mov esp, ebp
pop ebp
ret 4