Function at 0x1800b9010
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x18017a408]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbp, r9
mov rsi, r8
movzx r12d, dl
mov rdi, rcx
mov r14, qword [rsp + 0xc0]
xor eax, eax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
movzx r9d, byte [r14 + 0xd2]
lea r8, str.gcm_done
mov rdx, r14
lea rcx, [rsp + 0x28]
call fcn.1800391d0
nop
movsxd rax, dword [rsi + 0x548]
cmp eax, 0x10
ja 0x1800b9333
cmp dword [rsi + 0x544], 2
je 0x1800b909f
lea rdx, str.invalid_GCM_mode
jmp 0x1800b933a
test eax, eax
je 0x1800b90c0
shl rax, 3
add qword [rsi + 0x558], rax
lea rdx, [rsi + 0x500]
mov r8, r14
mov rcx, rsi
call fcn.1800ba5d0
movzx eax, byte [rsi + 0x557]
mov byte [rsi + 0x530], al
movzx eax, byte [rsi + 0x556]
mov byte [rsi + 0x531], al
movzx eax, byte [rsi + 0x555]
mov byte [rsi + 0x532], al
movzx eax, byte [rsi + 0x554]
mov byte [rsi + 0x533], al
movzx eax, byte [rsi + 0x553]
mov byte [rsi + 0x534], al
movzx eax, byte [rsi + 0x552]
mov byte [rsi + 0x535], al
movzx eax, byte [rsi + 0x551]
mov byte [rsi + 0x536], al
movzx eax, byte [rsi + 0x550]
mov byte [rsi + 0x537], al
movzx eax, byte [rsi + 0x55f]
mov byte [rsi + 0x538], al
movzx eax, byte [rsi + 0x55e]
mov byte [rsi + 0x539], al
movzx eax, byte [rsi + 0x55d]
mov byte [rsi + 0x53a], al
movzx eax, byte [rsi + 0x55c]
mov byte [rsi + 0x53b], al
movzx eax, byte [rsi + 0x55b]
mov byte [rsi + 0x53c], al
movzx eax, byte [rsi + 0x55a]
mov byte [rsi + 0x53d], al
movzx eax, byte [rsi + 0x559]
mov byte [rsi + 0x53e], al
movzx eax, byte [rsi + 0x558]
mov byte [rsi + 0x53f], al
lea rbx, [rsi + 0x500]
mov rax, rbx
mov r9d, 4
movzx ecx, byte [rax + 0x30]
xor byte [rax], cl
movzx ecx, byte [rax + 0x31]
xor byte [rax + 1], cl
movzx ecx, byte [rax + 0x32]
xor byte [rax + 2], cl
movzx edx, byte [rax + 0x33]
xor byte [rax + 3], dl
lea rax, [rax + 4]
sub r9, 1
jne 0x1800b91a0
mov r8, r14
mov rdx, rbx
mov rcx, rsi
call fcn.1800ba5d0
mov rax, qword [rdi]
lea rdx, [rsi + 0x520]
lea r8, [rsi + 0x530]
mov rcx, rdi
call qword [rax + 0x20]
add rbp, 0xb0
mov rcx, rbp
call fcn.180015e00
mov edi, eax
test eax, eax
jne 0x1800b9204
lea edi, [rax + 0x10]
jmp 0x1800b921a
cmp edi, 0x10
jbe 0x1800b9210
mov edi, 0x10
jmp 0x1800b921a
mov eax, 0xc
cmp edi, eax
cmovb edi, eax
mov edx, 2
lea r9, [rsp + 0x40]
sub r9, rsi
lea r10, [rsp + 0x41]
sub r10, rsi
lea r11, [rsp + 0x42]
sub r11, rsi
lea r15, [rsp + 0x43]
sub r15, rsi
mov r8, 0xfffffffffffffb00
sub r8, rsi
nop dword [rax]
lea eax, [rdx - 2]
cmp eax, edi
jae 0x1800b92c3
movzx eax, byte [rbx + 0x30]
xor al, byte [rbx]
mov byte [rbx + r9 - 0x500], al
lea eax, [rdx - 1]
cmp eax, edi
jae 0x1800b92c3
lea rcx, [rbx + r8]
movzx eax, byte [rcx + rsi + 0x501]
xor al, byte [rbx + 0x31]
mov byte [rbx + r10 - 0x500], al
cmp edx, edi
jae 0x1800b92c3
movzx eax, byte [rcx + rsi + 0x502]
xor al, byte [rbx + 0x32]
mov byte [rbx + r11 - 0x500], al
lea eax, [rdx + 1]
cmp eax, edi
jae 0x1800b92c3
movzx eax, byte [rcx + rsi + 0x503]
xor al, byte [rbx + 0x33]
mov byte [rbx + r15 - 0x500], al
add edx, 4
add rbx, 4
lea eax, [rdx - 2]
cmp eax, 0x10
jb 0x1800b9250
mov bl, 1
mov rcx, rbp
test r12b, r12b
je 0x1800b92e4
call fcn.180014650
mov r8d, edi
lea rdx, [rsp + 0x40]
mov rcx, rbp
call fcn.1800135e0
jmp 0x1800b9345
mov r8d, edi
lea rdx, [rsp + 0x40]
call fcn.180015830
movzx ebx, al
test al, al
jne 0x1800b9345
mov rax, qword [r14]
lea rdx, str.GCM_decrypt_authentication_tag_not_equal_to_the_expected_value.
mov rcx, r14
call qword [rax + 0x28]
mov r9d, edi
lea r8, [rsp + 0x40]
lea rdx, str.decryptTag
mov rcx, r14
call fcn.180039620
mov r8, rbp
lea rdx, str.expectedTag
mov rcx, r14
call fcn.1800396f0
jmp 0x1800b9345
lea rdx, str.invalid_GCM_buflen
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x28]
xor bl, bl
lea rcx, [rsp + 0x28]
call fcn.1800392a0
movzx eax, bl
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800c9b90
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret