Function at 0x1801aa280
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1802f1dc0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov ebp, edx
mov rsi, rcx
xor edi, edi
mov ebx, edi
cmp byte [rcx + 9], bl
je 0x1801aaa9b
movzx edx, byte [rcx + 8]
cmp byte [rcx + 0xb], bl
je 0x1801aa5f0
lea eax, [rdx - 1]
cmp eax, 0x11
ja case.default.0x1801aa2d9
cdqe
lea rcx, [0x180000000]
mov eax, dword [rcx + rax*4 + 0x1aac0c]
add rax, rcx
jmp rax
mov rcx, qword [rsi]
call fcn.1801968b0
test eax, eax
jle case.default.0x1801aa2d9
nop dword [rax + rax]
mov edx, edi
mov rcx, qword [rsi]
call fcn.180195b00
movsxd rcx, dword [rax]
or rcx, 1
bsr rax, rcx
lea ecx, [rax*8 + 0x49]
add ecx, eax
shr rcx, 6
add rbx, rcx
inc edi
mov rcx, qword [rsi]
call fcn.1801968b0
cmp edi, eax
jl 0x1801aa2f0
jmp case.default.0x1801aa2d9
mov rcx, qword [rsi]
call fcn.1801968b0
test eax, eax
jle case.default.0x1801aa2d9
nop dword [rax + rax]
mov edx, edi
mov rcx, qword [rsi]
call fcn.180195b10
mov rcx, qword [rax]
or rcx, 1
bsr rax, rcx
lea ecx, [rax*8 + 0x49]
add ecx, eax
shr rcx, 6
add rbx, rcx
inc edi
mov rcx, qword [rsi]
call fcn.1801968b0
cmp edi, eax
jl 0x1801aa340
jmp case.default.0x1801aa2d9
mov rcx, qword [rsi]
call fcn.1801968b0
test eax, eax
jle case.default.0x1801aa2d9
nop dword [rax + rax]
mov edx, edi
mov rcx, qword [rsi]
call fcn.180195b00
mov ecx, dword [rax]
or ecx, 1
bsr eax, ecx
lea ecx, [rax*8 + 0x49]
add ecx, eax
shr rcx, 6
add rbx, rcx
inc edi
mov rcx, qword [rsi]
call fcn.1801968b0
cmp edi, eax
jl 0x1801aa390
jmp case.default.0x1801aa2d9
mov rcx, qword [rsi]
call fcn.1801968b0
test eax, eax
jle case.default.0x1801aa2d9
mov edx, edi
mov rcx, qword [rsi]
call fcn.180195b10
mov rcx, qword [rax]
or rcx, 1
bsr rax, rcx
lea ecx, [rax*8 + 0x49]
add ecx, eax
shr rcx, 6
add rbx, rcx
inc edi
mov rcx, qword [rsi]
call fcn.1801968b0
cmp edi, eax
jl 0x1801aa3d5
jmp case.default.0x1801aa2d9
mov rcx, qword [rsi]
call fcn.1801968b0
test eax, eax
jle case.default.0x1801aa2d9
nop dword [rax]
mov edx, edi
mov rcx, qword [rsi]
call fcn.180195b00
mov eax, dword [rax]
mov ecx, eax
sar ecx, 0x1f
add eax, eax
xor ecx, eax
or ecx, 1
bsr eax, ecx
lea ecx, [rax*8 + 0x49]
add ecx, eax
shr rcx, 6
add rbx, rcx
inc edi
mov rcx, qword [rsi]
call fcn.1801968b0
cmp edi, eax
jl 0x1801aa420
jmp case.default.0x1801aa2d9
mov rcx, qword [rsi]
call fcn.1801968b0
test eax, eax
jle case.default.0x1801aa2d9
nop
mov edx, edi
mov rcx, qword [rsi]
call fcn.180195b10
mov rax, qword [rax]
mov rcx, rax
sar rcx, 0x3f
add rax, rax
xor rcx, rax
or rcx, 1
bsr rax, rcx
lea ecx, [rax*8 + 0x49]
add ecx, eax
shr rcx, 6
add rbx, rcx
inc edi
mov rcx, qword [rsi]
call fcn.1801968b0
cmp edi, eax
jl 0x1801aa470
jmp case.default.0x1801aa2d9
mov rcx, qword [rsi]
call fcn.1801968b0
test eax, eax
jle case.default.0x1801aa2d9
nop
mov edx, edi
mov rcx, qword [rsi]
call fcn.180195b00
movsxd rcx, dword [rax]
or rcx, 1
bsr rax, rcx
lea ecx, [rax*8 + 0x49]
add ecx, eax
shr rcx, 6
add rbx, rcx
inc edi
mov rcx, qword [rsi]
call fcn.1801968b0
cmp edi, eax
jl 0x1801aa4c0
jmp case.default.0x1801aa2d9
mov rcx, qword [rsi]
call fcn.1801968b0
mov ebx, eax
shl rbx, 2
mov dword [rsi + 0xc], ebx
test rbx, rbx
je case.default.0x1801aaaeb
mov eax, ebx
or eax, 1
bsr ecx, eax
lea eax, [rbp*8]
or eax, 3
bsr edx, eax
lea r8d, [rcx*8 + 0x49]
add r8d, ecx
shr r8, 6
lea ecx, [rdx*8 + 0x49]
add ecx, edx
shr rcx, 6
add rbx, rcx
add rbx, r8
jmp case.default.0x1801aaaeb
mov rcx, qword [rsi]
call fcn.1801968b0
mov ebx, eax
shl rbx, 3
jmp case.default.0x1801aa2d9
mov rcx, qword [rsi]
call fcn.1801968b0
jmp 0x1801aa4fd
mov rcx, qword [rsi]
call fcn.1801968b0
mov ebx, eax
shl rbx, 3
jmp case.default.0x1801aa2d9
mov rcx, qword [rsi]
call fcn.1801968b0
jmp 0x1801aa4fd
mov rcx, qword [rsi]
call fcn.1801968b0
mov ebx, eax
shl rbx, 3
jmp case.default.0x1801aa2d9
mov rcx, qword [rsi]
call fcn.1801968b0
mov ebx, eax
jmp case.default.0x1801aa2d9
mov r9d, 0x576
lea r8, str.C:_someshit_srcsprotobuf_3.21.12_srcgoogleprotobufextension_set.cc
mov edx, 3
lea rcx, [rsp + 0x28]
call fcn.180173af0
nop
lea rdx, str.Non_primitive_types_cant_be_packed.
mov rcx, rax
call fcn.180173ef0
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.180173ce0
nop
lea rcx, [rsp + 0x28]
call fcn.180173c70
mov dword [rsi + 0xc], edi
jmp case.default.0x1801aaaeb
lea eax, [rbp*8]
or eax, 1
bsr ecx, eax
lea ecx, [rcx + rcx*8]
add ecx, 0x49
shr rcx, 6
lea rbp, [rcx + rcx]
cmp dl, 0xa
cmovne rbp, rcx
lea eax, [rdx - 1]
cmp eax, 0x11
ja case.default.0x1801aaaeb
cdqe
lea rcx, [0x180000000]
mov eax, dword [rcx + rax*4 + 0x1aac54]
add rax, rcx
jmp rax
mov rcx, qword [rsi]
call fcn.1801968b0
mov ebx, eax
imul rbx, rbp
mov rcx, qword [rsi]
call fcn.1801968b0
test eax, eax
jle case.default.0x1801aaaeb
mov edx, edi
mov rcx, qword [rsi]
call fcn.180195b00
movsxd rcx, dword [rax]
or rcx, 1
bsr rax, rcx
lea ecx, [rax*8 + 0x49]
add ecx, eax
shr rcx, 6
add rbx, rcx
inc edi
mov rcx, qword [rsi]
call fcn.1801968b0
cmp edi, eax
jl 0x1801aa651
jmp case.default.0x1801aaaeb
mov rcx, qword [rsi]
call fcn.1801968b0
mov ebx, eax
imul rbx, rbp
mov rcx, qword [rsi]
call fcn.1801968b0
test eax, eax
jle case.default.0x1801aaaeb
nop word [rax + rax]
mov edx, edi
mov rcx, qword [rsi]
call fcn.180195b10
mov rcx, qword [rax]
or rcx, 1
bsr rax, rcx
lea ecx, [rax*8 + 0x49]
add ecx, eax
shr rcx, 6
add rbx, rcx
inc edi
mov rcx, qword [rsi]
call fcn.1801968b0
cmp edi, eax
jl 0x1801aa6b0
jmp case.default.0x1801aaaeb
mov rcx, qword [rsi]
call fcn.1801968b0
mov ebx, eax
imul rbx, rbp
mov rcx, qword [rsi]
call fcn.1801968b0
test eax, eax
jle case.default.0x1801aaaeb
mov edx, edi
mov rcx, qword [rsi]
call fcn.180195b00
mov ecx, dword [rax]
or ecx, 1
bsr eax, ecx
lea ecx, [rax*8 + 0x49]
add ecx, eax
shr rcx, 6
add rbx, rcx
inc edi
mov rcx, qword [rsi]
call fcn.1801968b0
cmp edi, eax
jl 0x1801aa706
jmp case.default.0x1801aaaeb
mov rcx, qword [rsi]
call fcn.1801968b0
mov ebx, eax
imul rbx, rbp
mov rcx, qword [rsi]
call fcn.1801968b0
test eax, eax
jle case.default.0x1801aaaeb
nop dword [rax]
mov edx, edi
mov rcx, qword [rsi]
call fcn.180195b10
mov rcx, qword [rax]
or rcx, 1
bsr rax, rcx
lea ecx, [rax*8 + 0x49]
add ecx, eax
shr rcx, 6
add rbx, rcx
inc edi
mov rcx, qword [rsi]
call fcn.1801968b0
cmp edi, eax
jl 0x1801aa760
jmp case.default.0x1801aaaeb
mov rcx, qword [rsi]
call fcn.1801968b0
mov ebx, eax
imul rbx, rbp
mov rcx, qword [rsi]
call fcn.1801968b0
test eax, eax
jle case.default.0x1801aaaeb
mov edx, edi
mov rcx, qword [rsi]
call fcn.180195b00
mov eax, dword [rax]
mov ecx, eax
sar ecx, 0x1f
add eax, eax
xor ecx, eax
or ecx, 1
bsr eax, ecx
lea ecx, [rax*8 + 0x49]
add ecx, eax
shr rcx, 6
add rbx, rcx
inc edi
mov rcx, qword [rsi]
call fcn.1801968b0
cmp edi, eax
jl 0x1801aa7b6
jmp case.default.0x1801aaaeb
mov rcx, qword [rsi]
call fcn.1801968b0
mov ebx, eax
imul rbx, rbp
mov rcx, qword [rsi]
call fcn.1801968b0
test eax, eax
jle case.default.0x1801aaaeb
mov edx, edi
mov rcx, qword [rsi]
call fcn.180195b10
mov rax, qword [rax]
mov rcx, rax
sar rcx, 0x3f
add rax, rax
xor rcx, rax
or rcx, 1
bsr rax, rcx
lea ecx, [rax*8 + 0x49]
add ecx, eax
shr rcx, 6
add rbx, rcx
inc edi
mov rcx, qword [rsi]
call fcn.1801968b0
cmp edi, eax
jl 0x1801aa812
jmp case.default.0x1801aaaeb
mov rcx, qword [rsi]
call fcn.1801968c0
mov ebx, eax
imul rbx, rbp
mov rcx, qword [rsi]
call fcn.1801968c0
test eax, eax
jle case.default.0x1801aaaeb
mov edx, edi
mov rcx, qword [rsi]
call fcn.180195b30
mov rdx, qword [rax + 0x10]
mov eax, edx
or eax, 1
bsr ecx, eax
lea ecx, [rcx + rcx*8]
add ecx, 0x49
shr rcx, 6
add rcx, rdx
add rbx, rcx
inc edi
mov rcx, qword [rsi]
call fcn.1801968c0
cmp edi, eax
jl 0x1801aa875
jmp case.default.0x1801aaaeb
mov rcx, qword [rsi]
call fcn.1801968c0
mov ebx, eax
imul rbx, rbp
mov rcx, qword [rsi]
call fcn.1801968c0
test eax, eax
jle case.default.0x1801aaaeb
nop dword [rax]
mov edx, edi
mov rcx, qword [rsi]
call fcn.180195b30
mov rdx, qword [rax + 0x10]
mov eax, edx
or eax, 1
bsr ecx, eax
lea ecx, [rcx + rcx*8]
add ecx, 0x49
shr rcx, 6
add rcx, rdx
add rbx, rcx
inc edi
mov rcx, qword [rsi]
call fcn.1801968c0
cmp edi, eax
jl 0x1801aa8d0
jmp case.default.0x1801aaaeb
mov rcx, qword [rsi]
call fcn.1801968b0
mov ebx, eax
imul rbx, rbp
mov rcx, qword [rsi]
call fcn.1801968b0
test eax, eax
jle case.default.0x1801aaaeb
nop word [rax + rax]
mov edx, edi
mov rcx, qword [rsi]
call fcn.180195b00
movsxd rcx, dword [rax]
or rcx, 1
bsr rax, rcx
lea ecx, [rax*8 + 0x49]
add ecx, eax
shr rcx, 6
add rbx, rcx
inc edi
mov rcx, qword [rsi]
call fcn.1801968b0
cmp edi, eax
jl 0x1801aa930
jmp case.default.0x1801aaaeb
mov rcx, qword [rsi]
mov eax, dword [rcx + 8]
mov ebx, eax
imul rbx, rbp
test eax, eax
jle case.default.0x1801aaaeb
mov rbp, rdi
nop
mov rax, qword [rcx + 0x10]
mov rcx, qword [rax + rbp + 8]
mov rax, qword [rcx]
call qword [rax + 0x38]
add rbx, rax
inc edi
lea rbp, [rbp + 8]
mov rcx, qword [rsi]
cmp edi, dword [rcx + 8]
jl 0x1801aa980
jmp case.default.0x1801aaaeb
mov rcx, qword [rsi]
mov eax, dword [rcx + 8]
mov ebx, eax
imul rbx, rbp
test eax, eax
jle case.default.0x1801aaaeb
mov rbp, rdi
nop dword [rax]
mov rax, qword [rcx + 0x10]
mov rcx, qword [rax + rbp + 8]
mov rax, qword [rcx]
call qword [rax + 0x38]
mov ecx, eax
or ecx, 1
bsr edx, ecx
lea edx, [rdx + rdx*8]
add edx, 0x49
shr rdx, 6
add rdx, rax
add rbx, rdx
inc edi
lea rbp, [rbp + 8]
mov rcx, qword [rsi]
cmp edi, dword [rcx + 8]
jl 0x1801aa9c0
jmp case.default.0x1801aaaeb
mov rcx, qword [rsi]
call fcn.1801968b0
mov ebx, eax
lea rax, [rbp + 4]
imul rbx, rax
jmp case.default.0x1801aaaeb
mov rcx, qword [rsi]
call fcn.1801968b0
mov ebx, eax
lea rax, [rbp + 8]
imul rbx, rax
jmp case.default.0x1801aaaeb
mov rcx, qword [rsi]
call fcn.1801968b0
mov ebx, eax
lea rax, [rbp + 4]
imul rbx, rax
jmp case.default.0x1801aaaeb
mov rcx, qword [rsi]
call fcn.1801968b0
mov ebx, eax
lea rax, [rbp + 8]
imul rbx, rax
jmp case.default.0x1801aaaeb
mov rcx, qword [rsi]
call fcn.1801968b0
mov ebx, eax
lea rax, [rbp + 4]
imul rbx, rax
jmp case.default.0x1801aaaeb
mov rcx, qword [rsi]
call fcn.1801968b0
mov ebx, eax
lea rax, [rbp + 8]
imul rbx, rax
jmp case.default.0x1801aaaeb
mov rcx, qword [rsi]
call fcn.1801968b0
mov ebx, eax
lea rax, [rbp + 1]
imul rbx, rax
jmp case.default.0x1801aaaeb
movzx edx, byte [rcx + 0xa]
test dl, 0xf
jne case.default.0x1801aaaeb
lea eax, [rbp*8]
or eax, 1
bsr ecx, eax
lea ecx, [rcx + rcx*8]
add ecx, 0x49
shr rcx, 6
movzx eax, byte [rsi + 8]
lea rbx, [rcx + rcx]
cmp al, 0xa
cmovne rbx, rcx
dec eax
cmp eax, 0x11
ja case.default.0x1801aaaeb
cdqe
lea rcx, [0x180000000]
mov eax, dword [rcx + rax*4 + 0x1aac9c]
add rax, rcx
jmp rax
movsxd rax, dword [rsi]
or rax, 1
bsr rcx, rax
lea ecx, [rcx + rcx*8]
add ecx, 0x49
shr rcx, 6
add rbx, rcx
jmp case.default.0x1801aaaeb
mov rax, qword [rsi]
jmp 0x1801aaaf0
mov eax, dword [rsi]
or eax, 1
bsr ecx, eax
lea ecx, [rcx + rcx*8]
add ecx, 0x49
shr rcx, 6
add rbx, rcx
jmp case.default.0x1801aaaeb
mov eax, dword [rsi]
mov ecx, eax
sar ecx, 0x1f
add eax, eax
xor ecx, eax
or ecx, 1
bsr eax, ecx
lea ecx, [rax*8 + 0x49]
add ecx, eax
shr rcx, 6
add rbx, rcx
jmp case.default.0x1801aaaeb
mov rax, qword [rsi]
mov rcx, rax
sar rcx, 0x3f
add rax, rax
xor rcx, rax
or rcx, 1
bsr rax, rcx
lea ecx, [rax*8 + 0x49]
add ecx, eax
shr rcx, 6
add rbx, rcx
jmp case.default.0x1801aaaeb
mov rax, qword [rsi]
mov rdx, qword [rax + 0x10]
mov eax, edx
or eax, 1
bsr ecx, eax
lea ecx, [rcx + rcx*8]
add ecx, 0x49
shr rcx, 6
add rcx, rdx
add rbx, rcx
jmp case.default.0x1801aaaeb
mov rcx, qword [rsi]
mov rax, qword [rcx]
call qword [rax + 0x38]
add rbx, rax
jmp case.default.0x1801aaaeb
mov rcx, qword [rsi]
test dl, 0xf0
je 0x1801aabd0
mov rax, qword [rcx]
call qword [rax + 0x50]
mov ecx, eax
or ecx, 1
bsr edx, ecx
lea edx, [rdx + rdx*8]
add edx, 0x49
shr rdx, 6
add rdx, rax
add rbx, rdx
jmp case.default.0x1801aaaeb
call fcn.180189390
add rbx, rax
jmp case.default.0x1801aaaeb
add rbx, 4
jmp case.default.0x1801aaaeb
add rbx, 8
jmp case.default.0x1801aaaeb
inc rbx
mov rax, rbx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18020d270
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret