Function at 0x180189340
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x8c8]
sub rsp, 0x9c8
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x18036d060]
xor rax, rsp
mov qword [rbp + 0x8b8], rax
mov r13, r9
mov rsi, r8
mov qword [rsp + 0x50], r8
mov rdi, rdx
mov rbx, rcx
mov rcx, r8
call fcn.1800bc850
xor edx, edx
mov r8d, 0x2b8
lea rcx, [rbp + 0x5f0]
call fcn.180211600
lea rcx, [rbp + 0x5f0]
call fcn.18018caf0
nop
xor edx, edx
mov r8d, 0xf0
lea rcx, [rbp - 0x70]
call fcn.180211600
lea rax, vtable._ckSymSettings.0
mov qword [rbp - 0x70], rax
xor r14d, r14d
mov qword [rbp - 0x68], r14
mov dword [rbp - 0x60], 0x100
lea rcx, [rbp - 0x58]
call fcn.1800ba7a0
nop
mov dword [rbp - 0x28], r14d
lea rcx, [rbp - 0x20]
call fcn.1800ba7a0
nop
lea rcx, [rbp + 0x10]
call fcn.1800ba7a0
nop
lea rcx, [rbp + 0x40]
call fcn.1800ba7a0
mov dword [rbp + 0x70], r14d
mov dword [rbp + 0x74], pe_nt_image_headers64
mov byte [rbp + 0x78], r14b
mov byte [rbp - 0x30], 1
mov byte [rbp + 8], 1
xor edx, edx
mov r8d, 0x570
lea rcx, [rbp + 0x80]
call fcn.180211600
lea rax, vtable._ckCryptContext.0
mov qword [rbp + 0x80], rax
mov qword [rbp + 0x98], r14
lea rcx, [rbp + 0xa0]
call fcn.1800ba7a0
nop
lea rcx, [rbp + 0xd0]
call fcn.1801c5180
nop
lea rcx, [rbp + 0x520]
call fcn.1801c5150
nop
lea r12, vtable._ckGcmContext.0
mov qword [rbp + 0x570], r12
mov ecx, 0x10008
call fcn.18007b16c
mov qword [rsp + 0x48], rax
test rax, rax
je 0x18018949a
lea rcx, vtable._ckGcmContextTables.0
mov qword [rax], rcx
jmp 0x18018949d
mov rax, r14
mov qword [rbp + 0x5e8], rax
mov qword [rbp + 0x88], r14
mov qword [rbp + 0x90], r14
mov dword [rbp - 0x68], 1
mov rdx, rbx
lea rcx, [rbp - 0x58]
call fcn.1800baf20
lea rcx, [rbp - 0x58]
call fcn.1800be430
shl eax, 3
mov dword [rbp - 0x60], eax
mov dword [rbp - 0x64], 3
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x80]
lea r8, [rbp - 0x70]
xor edx, edx
lea rcx, [rbp + 0x5f0]
call fcn.1801884f0
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
lea rcx, [rsp + 0x60]
call fcn.1800ba7a0
nop
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.1800baf20
lea rcx, [rsp + 0x60]
call fcn.1800be430
mov r15d, eax
cmp eax, 0x10
jb 0x1801896bb
test r15b, 7
jne 0x1801896bb
shr r15d, 3
dec r15d
lea r12d, [r15*8]
mov dword [rsp + 0x30], r12d
mov r8d, r12d
xor edx, edx
mov rcx, rsi
call fcn.1800bb330
lea rcx, [rsp + 0x60]
call fcn.1800bdfb0
mov rdi, rax
mov rcx, rsi
call fcn.1800bdfb0
mov r14, rax
mov rbx, qword [rdi]
mov qword [rbp + 0x8b0], rbx
movsxd rsi, r12d
lea rdx, [rdi + 8]
mov r8, rsi
mov rcx, rax
call fcn.180210e90
mov r12d, 5
lea rcx, [r14 - 8]
add rcx, rsi
mov qword [rsp + 0x48], rcx
mov eax, r12d
nop dword [rax]
mov rsi, rcx
mov edi, r15d
cmp r15d, 1
jl 0x180189625
movzx eax, al
movzx r14d, r15b
imul r14d, eax
nop word [rax + rax]
mov qword [rsp + 0x38], rbx
lea eax, [rdi + r14]
shr rbx, 0x38
xor al, bl
mov byte [rsp + 0x3f], al
mov rax, qword [rsi]
mov qword [rsp + 0x40], rax
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x38]
lea rcx, [rbp + 0x5f0]
call fcn.180189f00
mov rbx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x40]
mov qword [rsi], rax
lea rsi, [rsi - 8]
dec edi
cmp edi, 1
jge 0x1801895d0
mov qword [rbp + 0x8b0], rbx
mov rcx, qword [rsp + 0x48]
sub r12d, 1
mov eax, r12d
jns 0x1801895b0
mov bl, 1
mov rdi, qword [rsp + 0x50]
mov rcx, rdi
call fcn.1800be430
cmp eax, dword [rsp + 0x30]
je 0x18018967c
mov rax, qword [r13]
lea rdx, str.Output_is_not_the_expected_size.
mov rcx, r13
call qword [rax + 0x28]
mov rcx, rdi
call fcn.1800be430
mov r8d, eax
lea rdx, str.outNumBytes
mov rcx, r13
call fcn.180106220
xor bl, bl
xor r14d, r14d
lea r12, vtable._ckGcmContext.0
jmp 0x1801896e0
xor r14d, r14d
mov ecx, r14d
movsxd rax, ecx
cmp byte [rbp + rax + 0x8b0], 0xa6
jne 0x18018969f
inc ecx
cmp ecx, 8
jl 0x180189682
lea r12, vtable._ckGcmContext.0
jmp 0x1801896e0
mov rax, qword [r13]
lea rdx, str.KEK_is_not_the_correct_key.
mov rcx, r13
call qword [rax + 0x28]
xor bl, bl
lea r12, vtable._ckGcmContext.0
jmp 0x1801896e0
mov rax, qword [r13]
lea rdx, str.Key_data_must_be_a_multiple_of_8_bytes_in_length.
mov rcx, r13
call qword [rax + 0x28]
mov r8d, r15d
lea rdx, str.keyDataLen
mov rcx, r13
call fcn.180106220
xor bl, bl
lea rcx, [rsp + 0x60]
call fcn.1800ba970
nop
lea rax, vtable._ckCryptContext.0
mov qword [rbp + 0x80], rax
mov rcx, qword [rbp + 0x98]
test rcx, rcx
je 0x180189711
call fcn.1801034a0
mov qword [rbp + 0x98], r14
mov qword [rbp + 0x570], r12
mov rcx, qword [rbp + 0x5e8]
test rcx, rcx
je 0x18018972e
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rbp + 0x5e8], r14
lea rcx, [rbp + 0x520]
call fcn.1801c51c0
lea rcx, [rbp + 0xd0]
call fcn.1801c51d0
lea rcx, [rbp + 0xa0]
call fcn.1800ba970
nop
lea rax, vtable._ckSymSettings.0
mov qword [rbp - 0x70], rax
lea rcx, [rbp + 0x40]
call fcn.1800ba970
lea rcx, [rbp + 0x10]
call fcn.1800ba970
lea rcx, [rbp - 0x20]
call fcn.1800ba970
lea rcx, [rbp - 0x58]
call fcn.1800ba970
nop
lea rcx, [rbp + 0x5f0]
call fcn.18018cb60
movzx eax, bl
mov rcx, qword [rbp + 0x8b8]
xor rcx, rsp
call fcn.18007b140
add rsp, 0x9c8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret