Function at 0x180436a20
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4e8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x458], r8
mov rsi, rdx
mov rdi, rcx
mov eax, dword [0x18079e828]
xor eax, dword [0x18079e82c]
xor eax, 0x4da06637
sub eax, 0x3e51fad
xor eax, 0xa210c93c
cmp eax, 0xdf49101f
jae 0x18043723a
jmp 0x180436a70
mov eax, dword [0x18079e830]
mov ecx, dword [0x18079e834]
xor eax, ecx
add eax, 0xe0e3c831
xor eax, 0xf75b0b97
imul rcx, rax, 0x41c4449d
shr rcx, 0x3e
mov eax, 0x1c0
call fcn.180698e80
sub rsp, rax
mov r13, rsp
mov eax, 0x30
call fcn.180698e80
sub rsp, rax
mov rdx, rsp
mov eax, 0x30
call fcn.180698e80
sub rsp, rax
mov r15, rsp
mov eax, 0x150
call fcn.180698e80
sub rsp, rax
mov rbx, rsp
mov r14, qword [rsi]
mov r12, rsi
add r12, 8
cmp ecx, 0xf612f7e9
je 0x180436a70
mov qword [rbp + 0x460], rdx
jmp 0x180436aee
sub rsp, 0x20
mov rcx, rbx
mov rdx, r12
mov r8d, 0x148
call fcn.1806a7400
add rsp, 0x20
mov qword [rsi], 3
cmp r14, 3
jne 0x180436b18
ud2
mov qword [rbp + 0x450], r13
mov qword [rbp + 0x448], rdi
mov eax, dword [0x18079e838]
xor eax, dword [0x18079e83c]
mov ecx, 0x37214ffa
xor edx, edx
div ecx
sub eax, 0xe07978f3
add eax, 0x80497fb0
cmp eax, 0x1d7440c3
jb 0x18043724b
jmp 0x180436b52
mov eax, dword [0x18079e840]
add eax, dword [0x18079e844]
and eax, 0xa7a6ee6d
or eax, 0x93ba5cac
mov ecx, 0x39737cdf
xor edx, edx
div ecx
mov edi, eax
mov qword [rbp + 0x68], r14
lea rsi, [rbp + 0x68]
add rsi, 8
sub rsp, 0x20
mov rcx, rsi
mov rdx, r12
mov r8d, 0x120
call fcn.1806a7400
add rsp, 0x20
mov r13, rbx
add r13, 0x120
cmp edi, 0xa4d2d7dc
jae 0x180436b52
jmp 0x180436bac
mov eax, dword [0x18079e848]
or eax, dword [0x18079e84c]
add eax, 0xd7d3f951
mov ecx, 0x8434949c
xor edx, edx
div ecx
mov ecx, 0xc021b416
xor edx, edx
div ecx
cmp eax, 0x6d54fd4f
je 0x18043727e
jmp 0x180436bdc
mov eax, dword [0x18079e850]
and eax, dword [0x18079e854]
imul edi, eax, 0x211c9d97
and edi, 0x69e5439a
sub edi, 0xb1e65d85
lea rcx, [rbp + 0x420]
sub rsp, 0x20
mov rdx, r13
mov r8d, 0x28
call fcn.1806a7400
add rsp, 0x20
cmp edi, 0xd9d58d64
je 0x180436bdc
jmp 0x180436c21
mov eax, dword [0x18079e858]
imul eax, dword [0x18079e85c]
xor eax, 0xb1447f0
sub eax, 0xeef50d0e
imul eax, eax, 0x940e9b3
cmp eax, 0x71a6625c
mov r12, qword [rbp + 0x448]
mov r13, qword [rbp + 0x450]
jae 0x1804372a8
mov eax, dword [0x18079e860]
mov ecx, dword [0x18079e864]
and eax, ecx
imul rcx, rax, 0x3c0d95a3
shr rcx, 0x3d
or ecx, 0x67399cbc
mov rax, qword [0x1807af330]
mov rax, qword [rax]
cmp rax, 5
sete al
cmp ecx, 0xf98efffb
je 0x1804372a8
test al, 1
jne 0x180436c9c
jmp 0x180436d75
mov eax, dword [0x18079e868]
sub eax, dword [0x18079e86c]
sub eax, 0x902f8f2e
mov ecx, 0xa4dcd9a2
xor edx, edx
div ecx
xor eax, 0x29fe6aad
cmp eax, 0xc185d8e8
jae 0x1804372bf
mov eax, dword [0x18079e870]
or eax, dword [0x18079e874]
and eax, 0x2e77bdfc
add eax, 0x4de858d5
and eax, 0x29c92367
lea rcx, [0x1806c85a8]
mov qword [r15], rcx
mov qword [r15 + 8], 1
mov qword [r15 + 0x20], 0
mov ecx, 8
mov qword [r15 + 0x10], rcx
mov qword [r15 + 0x18], 0
cmp eax, 0x78a066ab
ja 0x1804372bf
jmp 0x180436d19
lea rcx, str.C:Userslucak.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_tungstenite_0.24.0_srchandshake.rsSetting_context_in_handshake
sub rsp, 0x20
call fcn.180662ad0
add rsp, 0x20
lea rcx, str.tokio_tungstenite::handshakeSetting_ctx_when_starting_handshake
mov r8, qword [rbp + 0x460]
mov qword [r8], rcx
mov qword [r8 + 8], 0x1c
lea rcx, str.tokio_tungstenite::handshakeSetting_ctx_when_starting_handshake
mov qword [r8 + 0x10], rcx
mov qword [r8 + 0x18], 0x1c
mov qword [r8 + 0x20], rax
sub rsp, 0x30
mov rcx, r15
mov edx, 5
xor r9d, r9d
call fcn.1806629c0
add rsp, 0x30
mov rax, qword [rbp + 0x458]
mov r8, qword [rax]
lea rcx, [rbp + 0x360]
lea rdx, [rbp + 0x420]
sub rsp, 0x20
call fcn.18041ece0
add rsp, 0x20
lea rdx, [rbp + 0x68]
add rdx, 0x90
lea rcx, [rbp - 0x78]
add rcx, 0x90
sub rsp, 0x20
mov r8d, 0x50
call fcn.1806a7400
add rsp, 0x20
mov qword [rbp - 0x78], r14
lea rcx, [rbp - 0x78]
add rcx, 8
sub rsp, 0x20
mov rdx, rsi
mov r8d, 0x88
call fcn.1806a7400
add rsp, 0x20
lea r9, [rbp + 0x68]
add r9, 0xe0
lea rcx, [rbp + 0x190]
lea rdx, [rbp + 0x360]
lea r8, [rbp - 0x78]
sub rsp, 0x20
call fcn.18041d3f0
add rsp, 0x20
mov rsi, qword [rbp + 0x190]
mov eax, dword [0x18079e878]
xor edx, edx
div dword [0x18079e87c]
add eax, 0xc3bb1972
xor eax, 0x68fcaeb0
imul eax, eax, 0x2a793217
cmp eax, 0xc607a5e
jbe 0x1804372fb
mov eax, dword [0x18079e880]
xor edx, edx
div dword [0x18079e884]
add eax, 0x446f725d
add eax, 0x392a61bd
sub eax, 0xb023b898
cmp rsi, 3
sete bl
cmp eax, 0x4a5a4d6b
jb 0x1804372fb
jmp 0x180436e70
lea rdx, [rbp + 0x190]
add rdx, 8
lea rcx, [rbp + 0x398]
sub rsp, 0x20
mov r8d, 0x88
call fcn.1806a7400
add rsp, 0x20
test bl, 1
jne 0x180436e9f
jmp 0x180436f6a
mov eax, dword [0x18079e888]
and eax, dword [0x18079e88c]
and eax, 0x159e185c
xor eax, 0xd22f8405
xor eax, 0xc2804477
cmp eax, 0xacc190e3
jae 0x180437308
mov esi, dword [0x18079e890]
sub esi, dword [0x18079e894]
xor esi, 0x1f9a5c07
add esi, 0x64a168a
and esi, 0xa15a127f
mov rcx, r13
add rcx, 0x10
lea rdx, [rbp + 0x398]
sub rsp, 0x20
mov r8d, 0x88
call fcn.1806a7400
add rsp, 0x20
cmp esi, 0xcbb262d2
ja 0x180437308
jmp 0x180436f12
mov eax, dword [0x18079e898]
or eax, dword [0x18079e89c]
imul eax, eax, 0x3248d2b6
mov ecx, 0xb22eee36
xor edx, edx
div ecx
xor eax, 0xab50ce03
cmp eax, 0x781e81d9
jb 0x18043733a
mov eax, dword [0x18079e8a0]
xor edx, edx
div dword [0x18079e8a4]
add eax, 0xb6e97947
add eax, 0xdc75cc6e
and eax, 0x1db120eb
cmp eax, 0xb5ef3125
jae 0x18043733a
jmp 0x1804371ac
mov eax, dword [0x18079e8a8]
add eax, dword [0x18079e8ac]
xor eax, 0xac115f5a
imul eax, eax, 0x5918f941
mov ecx, 0xbf690b05
xor edx, edx
div ecx
cmp eax, 0x37645d33
jae 0x180437347
jmp 0x180436f97
mov edi, dword [0x18079e8b0]
sub edi, dword [0x18079e8b4]
add edi, 0xe2aac96c
sub edi, 0x56dc566e
or edi, 0x23065449
lea rdx, [rbp + 0x190]
add rdx, 0x90
lea rcx, [rbp + 0x278]
add rcx, 0x90
sub rsp, 0x20
mov r8d, 0x58
call fcn.1806a7400
add rsp, 0x20
mov qword [rbp + 0x278], rsi
lea rcx, [rbp + 0x278]
add rcx, 8
lea rdx, [rbp + 0x398]
sub rsp, 0x20
mov r8d, 0x88
call fcn.1806a7400
add rsp, 0x20
cmp edi, 0x9a5c41e0
je 0x180436f97
jmp 0x18043701e
mov eax, dword [0x18079e8b8]
add eax, dword [0x18079e8bc]
or eax, 0x31abd300
and eax, 0xd0f240e0
xor eax, 0x4450c009
cmp eax, 0x3a502554
jbe 0x1804373af
jmp 0x180437046
mov esi, dword [0x18079e8c0]
imul esi, dword [0x18079e8c4]
and esi, 0x9182bfcd
add esi, 0x74c3a36d
or esi, 0x2a8c46d
lea rdx, [rbp + 0x278]
sub rsp, 0x20
mov rcx, r13
call fcn.18041ad00
add rsp, 0x20
mov rax, qword [r13]
cmp rax, 2
sete al
cmp esi, 0x287aa4c4
jae 0x180437046
test al, 1
jne 0x180437108
jmp 0x180437095
mov eax, dword [0x18079e8c8]
or eax, dword [0x18079e8cc]
sub eax, 0x99f2d3ff
xor eax, 0x46134014
imul eax, eax, 0xad90f994
cmp eax, 0xa306a4ca
jae 0x1804373d3
mov eax, dword [0x18079e8d0]
and eax, dword [0x18079e8d4]
mov ecx, 0x36535c28
xor edx, edx
div ecx
mov esi, eax
or esi, 0x503b4476
add esi, 0x9f05b972
sub rsp, 0x20
mov rcx, r12
mov rdx, r13
mov r8d, 0x1c0
call fcn.1806a7400
add rsp, 0x20
cmp esi, 0x836b9824
jbe 0x1804373d3
jmp 0x180437106
jmp 0x18043711e
mov rdx, r13
add rdx, 8
mov rax, qword [rdx]
cmp rax, 3
je 0x1804371ac
jmp 0x180437185
mov eax, dword [0x18079e8d8]
xor eax, dword [0x18079e8dc]
or eax, 0x1db4cf6b
imul eax, eax, 0x609938ea
imul eax, eax, 0x8a5282c6
cmp eax, 0x5e539bcc
ja 0x1804373fd
mov eax, dword [0x18079e8e0]
sub eax, dword [0x18079e8e4]
sub eax, 0xdbdbdb7d
xor eax, 0xa2e08c20
and eax, 0xcd16031c
cmp eax, 0xeabf7a53
je 0x1804373fd
jmp 0x18043716e
mov rax, r12
lea rsp, [rbp + 0x468]
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, r12
add rcx, 8
sub rsp, 0x20
mov r8d, 0xe8
call fcn.1806a7400
add rsp, 0x20
mov qword [r12], 2
jmp 0x18043711e
mov eax, dword [0x18079e8e8]
add eax, dword [0x18079e8ec]
xor eax, 0x22f08da3
mov ecx, 0xe3cb056b
xor edx, edx
div ecx
mov ecx, 0xbcc36850
xor edx, edx
div ecx
cmp eax, 0xe3a066f1
je 0x18043740e
jmp 0x1804371dc
mov eax, dword [0x18079e8f0]
imul eax, dword [0x18079e8f4]
sub eax, 0xaf1eac07
imul eax, eax, 0x6553024d
imul eax, eax, 0x83d102e0
mov rdx, r13
add rdx, 0x10
cmp eax, 0x34f9f37d
ja 0x1804371dc
jmp 0x18043720a
mov rcx, r12
add rcx, 0x10
sub rsp, 0x20
mov r8d, 0x88
call fcn.1806a7400
add rsp, 0x20
mov qword [r12], 3
mov qword [r12 + 8], 3
jmp 0x18043711e
lea esp, [rcx - 6]
jmp 0x180437265
sub esi, dword [rdx]
add esi, 0xffffff85
invalid
in al, dx
and byte [rcx + rcx*4 - 0x1e], cl
mov r8d, 0x120
call fcn.1806a7400
add rsp, 0x20
jmp 0x180436b50
add dword [rdx], esp
sbb eax, 0x4f9c12ec
lea rcx, [rbp + 0x420]
sub rsp, 0x20
mov rdx, r13
mov r8d, 0x28
call fcn.1806a7400
add rsp, 0x20
jmp 0x180436bda
invalid
invalid
invalid
sal byte [rdi + 0x51373624], 1
adc ah, byte [rax - 0x4c817]
push qword [rsp + rcx*8]
xor al, 0xcc
mov esp, 0xccdc0a57
jae 0x1804372a6
cmpsb byte [rsi], byte [rdi]
ret
invalid
pop rsi
or eax, 0xdc311f74
jl 0x180437398
lea edx, [rbp + 0x190]
add rdx, 0x90
lea rcx, [rbp + 0x278]
add rcx, 0x90
sub rsp, 0x20
mov r8d, 0x58
call fcn.1806a7400
add rsp, 0x20
mov qword [rbp + 0x278], rsi
lea rcx, [rbp + 0x278]
add rcx, 8
lea rdx, [rbp + 0x398]
sub rsp, 0x20
sub esp, 0x20
mov r8d, 0x88
call fcn.1806a7400
add rsp, 0x20
jmp 0x180436f95
stosb byte [rdi], al
test al, 0xad
pushfq
fidivr dword [rcx]
mov eax, 0x958d4836
js 0x1804373be
add byte [rax], al
sub rsp, 0x20
mov rcx, r13
call fcn.18041ad00
add rsp, 0x20
jmp 0x180437044
invalid
leave
adc dh, byte [rdx + rsi*8]
scasd eax, dword [rdi]
out 0x7e, al
add byte [rdx - 0x3e], bl
jmp 0x180437146
pop rsp
invalid