Function at 0x140052980
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x358
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x2d0], 0xfffffffffffffffe
mov rdi, r9
mov rbx, r8
mov rsi, rcx
mov r12, qword [rbp + 0x340]
movzx eax, byte [rbp + 0x348]
movdqu xmm0, xmmword [r12]
movdqu xmm1, xmmword [r12 + 0x10]
movdqu xmmword [rdx + 0x30], xmm1
movdqu xmmword [rdx + 0x20], xmm0
movabs rcx, 0x14452474e574f44
cmp qword [rdx + 0x38], rcx
sete r9b
and r9b, al
mov qword [rbp + 0x2c0], rdx
je 0x140052ad4
mov byte [rbp + 0x2bc], r9b
mov rdi, qword [rbx]
mov word [rbp + 0x128], 4
mov byte [rbp + 0x70], reloc.WS2_32.dll_listen
mov byte [rbp + 0x72], 1
mov word [rbp + 0x100], 0x1f
cmp byte [rdi + 0x320], 2
sete r8b
mov byte [rbp + 0x2cf], 1
mov byte [rbp + 0x2ce], 0
lea rdx, [rbp + 0x70]
mov rcx, rdi
call fcn.140054bd0
mov byte [rdi + 0x332], 1
mov word [rsi], 8
mov rax, qword [rbp + 0x2c0]
mov rax, qword [rax + 0xf0]
lock dec qword [rax]
jne 0x140052a72
mov rax, qword [rbp + 0x2c0]
lea rcx, [rax + 0xf0]
call fcn.140022ec0
mov rax, qword [rbp + 0x2c0]
cmp byte [rax + 0xe8], 2
setne al
test byte [rbp + 0x2bc], al
je 0x140052a9b
mov rax, qword [rbp + 0x2c0]
lea rcx, [rax + 0x60]
call fcn.140051110
mov rdi, qword [rbp + 0x2c0]
test byte [rdi + 0x40], 1
je 0x140052ac0
mov rdx, qword [rdi + 0x48]
test rdx, rdx
je 0x140052ac0
mov rcx, qword [rdi + 0x50]
mov r8d, 1
call fcn.1400032c0
add rdi, 0xf8
mov rcx, rdi
call fcn.140050ca0
jmp 0x140052fd8
mov rax, qword [r12 + 0x58]
test rax, rax
je 0x140052d21
mov r15, qword [r12 + 0x50]
shl rax, 3
lea r13, [rax + rax*4]
xor eax, eax
mov ecx, 0x1f7f
jmp 0x140052b09
add rax, 0x28
cmp r13, rax
je 0x140052b27
movzx r8d, word [r15 + rax]
mov dl, 1
bt rcx, r8
jb 0x140052b00
cmp r8, 0xd
jne 0x140052b29
cmp word [r15 + rax + 0x20], 0x13
jne 0x140052b00
jmp 0x140052b29
xor edx, edx
mov rax, qword [rbp + 0x2c0]
lea r8, [rax + 0x130]
mov byte [rax + 0x130], dl
xor eax, eax
jmp 0x140052b5d
add rax, 0x28
cmp r13, rax
je 0x140052c21
movzx ecx, word [r15 + rax]
lea rdx, [rcx - 3]
cmp rdx, 0xa
jb 0x140052b50
cmp ecx, 2
jb 0x140052b50
cmp ecx, 0xd
jne 0x140052b7f
cmp word [r15 + rax + 0x20], 0x14
jne 0x140052b50
mov rax, qword [0x1402150d8]
mov rax, qword [rax]
mov r14b, 1
cmp rax, 4
jb 0x140052c24
mov qword [rbp + 0x2b0], r8
mov byte [rbp + 0x2bc], r9b
lea rax, [0x140162f88]
mov qword [rbp + 0x80], rax
mov qword [rbp + 0x88], 1
mov qword [rbp + 0x70], 0
lea rax, [0x140162b08]
mov qword [rbp + 0x90], rax
mov qword [rbp + 0x98], 0
mov byte [rbp + 0x2cf], 1
mov byte [rbp + 0x2ce], 0
mov qword [rsp + 0x20], 0
lea r8, str.rustls::client::tls12::server_hello
lea rcx, [rbp + 0x70]
mov edx, 4
mov r9d, 0x5a
call fcn.1400f0c30
movzx r9d, byte [rbp + 0x2bc]
mov r8, qword [rbp + 0x2b0]
jmp 0x140052c24
xor r14d, r14d
xor eax, eax
mov ecx, 0x1eff
jmp 0x140052c3d
add rax, 0x28
cmp r13, rax
je 0x140052d06
movzx edx, word [r15 + rax]
bt rcx, rdx
jb 0x140052c30
cmp rdx, 0xd
jne 0x140052c57
cmp word [r15 + rax + 0x20], 5
jne 0x140052c30
mov rax, qword [0x1402150d8]
mov rax, qword [rax]
mov r13b, 1
cmp rax, 4
jb 0x140052d09
mov qword [rbp + 0x2b0], r8
mov r15b, r9b
lea rax, str.Server_may_staple_OCSP_response
mov qword [rbp + 0x80], rax
mov qword [rbp + 0x88], 1
mov qword [rbp + 0x70], 0
lea rax, [0x140162b08]
mov qword [rbp + 0x90], rax
mov qword [rbp + 0x98], 0
mov byte [rbp + 0x2cf], 1
mov byte [rbp + 0x2ce], 0
mov qword [rsp + 0x20], 0
lea r8, str.rustls::client::tls12::server_hello
lea rcx, [rbp + 0x70]
mov edx, 4
mov r9d, 0x66
call fcn.1400f0c30
mov rdx, qword [rbp + 0x2c0]
mov r9d, r15d
mov r8, qword [rbp + 0x2b0]
mov r15b, 1
cmp byte [rdx + 0xe8], 2
jne 0x140052d45
jmp 0x140052ec2
xor r13d, r13d
mov rdx, qword [rbp + 0x2c0]
mov r15b, 1
cmp byte [rdx + 0xe8], 2
jne 0x140052d45
jmp 0x140052ec2
lea r8, [rdx + 0x130]
mov byte [rdx + 0x130], 0
xor r14d, r14d
xor r13d, r13d
mov r15b, 1
cmp byte [rdx + 0xe8], 2
je 0x140052ec2
mov qword [rbp + 0x2b0], r8
mov byte [rbp + 0x2bc], r9b
add rdx, 0x60
lea rcx, [rbp - 0x40]
mov r8d, 0x90
call fcn.140141f90
mov rax, qword [rbp - 0x20]
cmp rax, qword [r12 + 0x40]
jne 0x140052ea1
lea r15, [r12 + 0x20]
test rax, rax
je 0x140052fef
lea rcx, [rax - 0x21]
cmp rcx, 0xffffffffffffffe0
jb 0x14005353c
cmp rax, 8
jae 0x140052da0
xor edx, edx
xor ecx, ecx
jmp 0x140052e80
cmp rax, 0x10
jae 0x140052e0c
xor edx, edx
xor ecx, ecx
mov r8, rcx
mov rcx, rax
and rcx, 0xfffffffffffffff8
movzx edx, dl
movd xmm0, edx
nop dword [rax + rax]
mov rdx, qword [r15 + r8]
xor rdx, qword [rbp + r8 - 0x40]
movq xmm1, rdx
por xmm0, xmm1
add r8, 8
cmp rcx, r8
jne 0x140052dc0
pshufd xmm1, xmm0, 0x55
por xmm1, xmm0
movdqa xmm0, xmm1
psrld xmm0, 0x10
por xmm0, xmm1
movdqa xmm1, xmm0
psrlw xmm1, 8
por xmm1, xmm0
movd edx, xmm1
cmp rax, rcx
jne 0x140052e80
jmp 0x140052e99
mov rcx, rax
and rcx, 0xfffffffffffffff0
movdqu xmm0, xmmword [r12 + 0x20]
pxor xmm0, xmmword [rbp - 0x40]
cmp rcx, 0x10
je 0x140052e35
movdqu xmm1, xmmword [r12 + 0x30]
pxor xmm1, xmmword [rbp - 0x30]
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
pshufd xmm0, xmm1, 0x55
por xmm0, xmm1
movdqa xmm1, xmm0
psrld xmm1, 0x10
por xmm1, xmm0
movdqa xmm0, xmm1
psrlw xmm0, 8
por xmm0, xmm1
movd edx, xmm0
cmp rax, rcx
je 0x140052e99
test al, 8
jne 0x140052daa
nop word cs:[rax + rax]
movzx r8d, byte [r15 + rcx]
xor r8b, byte [rbp + rcx - 0x40]
lea r9, [rcx + 1]
or dl, r8b
mov rcx, r9
cmp rax, r9
jne 0x140052e80
test dl, dl
je 0x140052fef
mov byte [rbp + 0x2cf], 0
mov byte [rbp + 0x2ce], 0
lea rcx, [rbp - 0x40]
call fcn.140051110
xor r15d, r15d
mov rdx, qword [rbp + 0x2c0]
mov rax, qword [rdx + 0xf0]
mov rcx, qword [r12 + 0x40]
mov qword [rbp + 0x180], rcx
movups xmm0, xmmword [r12 + 0x20]
movups xmm1, xmmword [r12 + 0x30]
movaps xmmword [rbp + 0x170], xmm1
movaps xmmword [rbp + 0x160], xmm0
movups xmm0, xmmword [rdx + 0x40]
movups xmm1, xmmword [rdx + 0x50]
movaps xmmword [rbp + 0xc0], xmm1
movaps xmmword [rbp + 0xb0], xmm0
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
movups xmm2, xmmword [rdx + 0x20]
movups xmm3, xmmword [rdx + 0x30]
movaps xmmword [rbp + 0x70], xmm0
movaps xmmword [rbp + 0x80], xmm1
movaps xmmword [rbp + 0x90], xmm2
movaps xmmword [rbp + 0xa0], xmm3
movzx ecx, byte [rdx + 0x130]
movdqu xmm0, xmmword [rdx + 0xf8]
movdqu xmm1, xmmword [rdx + 0x108]
movups xmm2, xmmword [rdx + 0x118]
movdqa xmmword [rbp + 0x190], xmm0
movdqa xmmword [rbp + 0x1a0], xmm1
movaps xmmword [rbp + 0x1b0], xmm2
mov rdx, qword [rdx + 0x128]
mov qword [rbp + 0x1c0], rdx
mov qword [rbp + 0x188], rax
mov byte [rbp + 0x158], 2
mov byte [rbp + 0x1d0], cl
mov qword [rbp + 0x1c8], rdi
mov byte [rbp + 0x1d1], r13b
mov byte [rbp + 0x1d2], r14b
mov ecx, 0x168
mov edx, 8
call fcn.1400032b0
test rax, rax
je 0x14005355b
mov rdi, rax
lea rdx, [rbp + 0x70]
mov r8d, 0x168
mov rcx, rax
call fcn.140141f90
mov qword [rsi + 8], rdi
lea rax, fcn.140051010
mov qword [rsi + 0x10], rax
mov byte [rsi], setsockopt
mov rax, rsi
add rsp, 0x358
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rax, qword [0x1402150d8]
mov rax, qword [rax]
cmp rax, 3
jbe 0x140053064
lea rax, str.Server_agreed_to_resume
mov qword [rbp + 0x80], rax
mov qword [rbp + 0x88], 1
mov qword [rbp + 0x70], 0
lea rax, [0x140162b08]
mov qword [rbp + 0x90], rax
mov qword [rbp + 0x98], 0
mov byte [rbp + 0x2cd], 1
mov qword [rsp + 0x20], 0
lea r8, str.rustls::client::tls12::server_hello
lea rcx, [rbp + 0x70]
mov edx, 4
mov r9d, WSAGetLastError
call fcn.1400f0c30
mov rcx, qword [rbp - 0x18]
movzx edx, word [rcx + 0x50]
mov al, 0x29
cmp dx, word [rdi + 0x50]
jne 0x1400530a3
movzx edx, dx
cmp edx, 0x178
jne 0x140053089
movzx edx, word [rdi + 0x52]
cmp word [rcx + 0x52], dx
jne 0x1400530a3
cmp byte [rbp + 0x48], 0
setne al
mov rcx, qword [rbp + 0x2b0]
cmp byte [rcx], 0
setne cl
xor cl, al
mov al, 0x2a
je 0x1400530c5
mov byte [rsi], 8
mov byte [rsi + 1], al
mov byte [rbp + 0x2cf], 0
mov byte [rbp + 0x2ce], 0
lea rcx, [rbp - 0x40]
call fcn.140051110
jmp 0x140052a4b
mov rcx, qword [rbp + 0x2c0]
movdqu xmm0, xmmword [rcx]
movdqu xmm1, xmmword [rcx + 0x10]
movups xmm2, xmmword [rcx + 0x20]
movups xmm3, xmmword [rcx + 0x30]
movaps xmmword [rbp + 0x260], xmm3
movaps xmmword [rbp + 0x250], xmm2
movdqa xmmword [rbp + 0x240], xmm1
movdqa xmmword [rbp + 0x230], xmm0
mov rax, qword [rbp + 0x18]
mov rdx, qword [rbp + 0x20]
pxor xmm0, xmm0
movdqa xmmword [rbp + 0x270], xmm0
movdqa xmmword [rbp + 0x280], xmm0
movdqa xmmword [rbp + 0x290], xmm0
mov qword [rbp + 0x2a0], rdi
cmp rdx, 0x30
jne 0x140053573
lea rdx, [rbp + 0x270]
movdqu xmm0, xmmword [rax]
movdqu xmm1, xmmword [rax + 0x10]
movups xmm2, xmmword [rax + 0x20]
movups xmmword [rdx + 0x20], xmm2
movdqu xmmword [rdx + 0x10], xmm1
movdqu xmmword [rdx], xmm0
mov rax, qword [rcx + 0xf0]
mov rcx, qword [rax + 0x40]
mov rax, qword [rax + 0x48]
mov r8, qword [rax + 0x10]
mov rax, qword [rax + 0x30]
dec r8
and r8, 0xfffffffffffffff0
add rcx, r8
add rcx, 0x10
mov byte [rbp + 0x2cc], 0
mov byte [rbp + 0x2cb], 1
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], 0x30
mov qword [rsp + 0x20], 0x20
lea rdx, [0x140163048]
lea r9, [rbp + 0x230]
mov r8d, reloc.WS2_32.dll_listen
call rax
mov rdi, qword [rbx]
mov byte [rbp + 0x2cc], 0
mov byte [rbp + 0x2cb], 1
lea rdx, [rbp + 0x230]
mov rcx, rdi
xor r8d, r8d
call fcn.140055520
lea rdx, [rbp + 0x28]
mov byte [rbp + 0x2cc], 0
mov byte [rbp + 0x2cb], 1
lea rcx, [rbp + 0x70]
call fcn.140076d20
mov rax, qword [rbp + 0x80]
mov qword [rbp + 0x60], rax
movups xmm0, xmmword [rbp + 0x70]
movaps xmmword [rbp + 0x50], xmm0
lea rbx, [rdi + 0x2a8]
mov r12, qword [rdi + 0x2b0]
test r12, r12
je 0x140053271
mov r13, qword [rdi + 0x2b8]
test r13, r13
je 0x140053253
add r12, 0x10
jmp 0x140053230
add r12, 0x20
dec r13
je 0x140053253
cmp qword [r12 - 0x10], 0
jne 0x140053227
mov rdx, qword [r12 - 8]
test rdx, rdx
je 0x140053227
mov rcx, qword [r12]
mov r8d, 1
call fcn.1400032c0
jmp 0x140053227
mov rdx, qword [rbx]
test rdx, rdx
je 0x140053271
mov rcx, qword [rdi + 0x2b0]
shl rdx, 5
mov r8d, 8
call fcn.1400032c0
mov rax, qword [rbp + 0x60]
mov qword [rbx + 0x10], rax
movaps xmm0, xmmword [rbp + 0x50]
movups xmmword [rbx], xmm0
test r14b, r14b
je 0x1400533e2
mov rbx, qword [rbp + 0x2c0]
mov rdi, qword [rbx + 0xf0]
mov rax, qword [rbp + 0x2a0]
mov qword [rbp + 0x1c0], rax
movaps xmm0, xmmword [rbp + 0x290]
movaps xmmword [rbp + 0x1b0], xmm0
movaps xmm0, xmmword [rbp + 0x280]
movaps xmmword [rbp + 0x1a0], xmm0
movaps xmm0, xmmword [rbp + 0x270]
movaps xmmword [rbp + 0x190], xmm0
movaps xmm0, xmmword [rbp + 0x230]
movaps xmm1, xmmword [rbp + 0x240]
movaps xmm2, xmmword [rbp + 0x250]
movaps xmm3, xmmword [rbp + 0x260]
movaps xmmword [rbp + 0x180], xmm3
movaps xmmword [rbp + 0x170], xmm2
movaps xmmword [rbp + 0x160], xmm1
movaps xmmword [rbp + 0x150], xmm0
lea rcx, [rbp + 0x90]
lea rdx, [rbp - 0x40]
mov r8d, 0x90
call fcn.140141f90
mov rax, qword [r15 + 0x20]
mov qword [rbp + 0x140], rax
movups xmm0, xmmword [r15]
movups xmm1, xmmword [r15 + 0x10]
movaps xmmword [rbp + 0x130], xmm1
movaps xmmword [rbp + 0x120], xmm0
movups xmm0, xmmword [rbx + 0x40]
movups xmm1, xmmword [rbx + 0x50]
movaps xmmword [rbp + 0x70], xmm0
movaps xmmword [rbp + 0x80], xmm1
movzx eax, byte [rbx + 0x130]
mov rcx, qword [rbx + 0x128]
mov qword [rbp + 0x1f8], rcx
movdqu xmm0, xmmword [rbx + 0xf8]
movdqu xmm1, xmmword [rbx + 0x108]
movups xmm2, xmmword [rbx + 0x118]
movups xmmword [rbp + 0x1e8], xmm2
movdqu xmmword [rbp + 0x1d8], xmm1
movdqu xmmword [rbp + 0x1c8], xmm0
mov qword [rbp + 0x148], rdi
mov byte [rbp + 0x200], al
mov byte [rbp + 0x201], 1
mov ecx, 0x198
mov edx, 8
call fcn.1400032b0
test rax, rax
je 0x140053586
mov rdi, rax
lea rdx, [rbp + 0x70]
mov r8d, 0x198
mov rcx, rax
call fcn.140141f90
lea rax, fcn.140050ed0
jmp 0x140053533
mov rbx, qword [rbp + 0x2c0]
mov rdi, qword [rbx + 0xf0]
mov rax, qword [rbp + 0x2a0]
mov qword [rbp + 0x1e0], rax
movaps xmm0, xmmword [rbp + 0x290]
movups xmmword [rbp + 0x1d0], xmm0
movaps xmm0, xmmword [rbp + 0x280]
movups xmmword [rbp + 0x1c0], xmm0
movaps xmm0, xmmword [rbp + 0x270]
movups xmmword [rbp + 0x1b0], xmm0
movaps xmm0, xmmword [rbp + 0x230]
movaps xmm1, xmmword [rbp + 0x240]
movaps xmm2, xmmword [rbp + 0x250]
movaps xmm3, xmmword [rbp + 0x260]
movups xmmword [rbp + 0x1a0], xmm3
movups xmmword [rbp + 0x190], xmm2
movups xmmword [rbp + 0x180], xmm1
movups xmmword [rbp + 0x170], xmm0
lea rcx, [rbp + 0xb0]
lea rdx, [rbp - 0x40]
mov r8d, 0x90
call fcn.140141f90
mov rax, qword [r15 + 0x20]
mov qword [rbp + 0x160], rax
movups xmm0, xmmword [r15]
movups xmm1, xmmword [r15 + 0x10]
movups xmmword [rbp + 0x150], xmm1
movups xmmword [rbp + 0x140], xmm0
movups xmm0, xmmword [rbx + 0x40]
movups xmm1, xmmword [rbx + 0x50]
movups xmmword [rbp + 0x90], xmm0
movups xmmword [rbp + 0xa0], xmm1
movzx eax, byte [rbx + 0x130]
movdqu xmm0, xmmword [rbx + 0xf8]
movdqu xmm1, xmmword [rbx + 0x108]
movups xmm2, xmmword [rbx + 0x118]
movdqu xmmword [rbp + 0x1e8], xmm0
movdqu xmmword [rbp + 0x1f8], xmm1
movups xmmword [rbp + 0x208], xmm2
mov rcx, qword [rbx + 0x128]
mov qword [rbp + 0x218], rcx
mov qword [rbp + 0x168], rdi
mov byte [rbp + 0x220], al
mov qword [rbp + 0x78], 0
mov byte [rbp + 0x221], 1
mov ecx, 0x1b8
call fcn.1400518f0
mov rdi, rax
lea rdx, [rbp + 0x70]
mov r8d, 0x1b8
mov rcx, rax
call fcn.140141f90
lea rax, fcn.140050d50
mov qword [rsi + 8], rdi
jmp 0x140052fd1
mov byte [rbp + 0x2cd], 1
lea r8, str..cargo_registry_srcindex.crates.io_6f17d22bba15001f_rustls_0.22.2_srcmsgshandshake.rsRandom
mov ecx, 0x20
mov edx, 0x20
call fcn.140146a90
jmp 0x140053595
mov dword [rbp + 0x2bc], r15d
mov ecx, 0x168
mov edx, 8
call fcn.140146840
jmp 0x140053595
lea r8, [0x1401625b8]
mov ecx, 0x30
call fcn.140146eb0
jmp 0x140053595
mov ecx, 0x198
mov edx, 8
call fcn.140146840
ud2