Function at 0x140079740
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov dword [rcx + 0x3d0], reloc.OLEAUT32.dll_SafeArrayGetDim
lea rdx, str.xia0x1ngA_ESC_BC
mov dword [rcx + 0x3cc], reloc.OLEAUT32.dll_SafeArrayGetDim
mov rbx, rcx
movups xmm0, xmmword [str.xia0x1ngA_ESC_BC]
movups xmmword [rcx + 0x3d8], xmm0
movsxd r8, dword [rcx + 0x3d0]
add rcx, 0x3f8
call fcn.140334150
mov eax, dword [rbx + 0x3cc]
cmp eax, 0x10
je 0x1400797c1
cmp eax, 0x18
mov eax, select
jne 0x1400797e1
cmp dword [rbx + 0x3d0], 0x20
mov ecx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
cmovne eax, ecx
jmp 0x1400797e1
mov edx, dword [rbx + 0x3d0]
cmp edx, 0x10
jne 0x1400797d1
lea eax, [rdx - 6]
jmp 0x1400797e1
cmp edx, 0x18
mov eax, select
mov ecx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
cmove eax, ecx
mov dword [rbx + 0x3d4], eax
mov eax, dword [rbx + 0x3d0]
cdq
and edx, 3
add eax, edx
xor edx, edx
sar eax, 2
movsxd r14, eax
mov rbp, r14
cmp dword [rbx + 0x3d4], edx
jl 0x14007982d
lea r8, [rbx + 0xc]
nop word [rax + rax]
test r14d, r14d
jle 0x14007981f
mov rdi, r8
xor eax, eax
mov rcx, r14
rep stosd dword [rdi], eax
inc edx
add r8, 0x20
cmp edx, dword [rbx + 0x3d4]
jle 0x140079810
xor edx, edx
cmp dword [rbx + 0x3d4], edx
jl 0x14007985d
lea r8, [rbx + 0x1ec]
nop
test r14d, r14d
jle 0x14007984f
mov rdi, r8
xor eax, eax
mov rcx, r14
rep stosd dword [rdi], eax
inc edx
add r8, 0x20
cmp edx, dword [rbx + 0x3d4]
jle 0x140079840
mov eax, dword [rbx + 0x3cc]
lea rdi, [rbx + 0x418]
mov esi, dword [rbx + 0x3d4]
cdq
and edx, 3
inc esi
add eax, edx
imul esi, r14d
sar eax, 2
lea rdx, str.HogwarsgameID20
movsxd r12, eax
test eax, eax
jle 0x1400798c1
mov r8d, r12d
movzx ecx, byte [rdx]
lea rdx, [rdx + 4]
shl ecx, 0x18
mov dword [rdi], ecx
lea rdi, [rdi + 4]
movzx eax, byte [rdx - 3]
shl eax, 0x10
or dword [rdi - 4], eax
movzx eax, byte [rdx - 2]
shl eax, 8
or dword [rdi - 4], eax
movzx eax, byte [rdx - 1]
or dword [rdi - 4], eax
sub r8, 1
jne 0x140079890
xor r9d, r9d
lea r13, [0x140000000]
xor r10d, r10d
test r12d, r12d
jle 0x140079929
lea r8, [rbx + 0x418]
nop word [rax + rax]
cmp r9d, esi
jge 0x140079ae8
mov eax, r9d
inc r10
cdq
inc r9d
idiv r14d
movsxd rcx, eax
movsxd rdi, edx
lea rdx, [rdi + rcx*8]
mov ecx, dword [r8]
mov dword [rbx + rdx*4 + 0xc], ecx
mov ecx, dword [rbx + 0x3d4]
sub ecx, eax
movsxd rax, ecx
lea rcx, [rdi + rax*8]
mov eax, dword [r8]
add r8, 4
mov dword [rbx + rcx*4 + 0x1ec], eax
cmp r10, r12
jl 0x1400798e0
cmp r9d, esi
jge 0x140079ae8
lea r13, [0x14043a540]
lea rbp, [0x140000000]
mov edi, dword [rbx + r12*4 + 0x414]
lea r13, [r13 + 1]
movsxd rdx, edi
mov rax, rdx
sar rax, 0x10
movzx ecx, al
movsx eax, byte [r13 - 1]
movsx r8d, byte [rcx + rbp + 0x43c660]
xor r8d, eax
mov rax, rdx
sar rax, 8
movzx ecx, al
shl r8d, 8
movzx eax, byte [rcx + rbp + 0x43c660]
xor r8d, eax
movzx eax, dl
shl r8d, 8
movzx eax, byte [rax + rbp + 0x43c660]
xor r8d, eax
mov eax, edi
shr rax, 0x18
shl r8d, 8
movzx eax, byte [rax + rbp + 0x43c660]
xor r8d, eax
xor dword [rbx + 0x418], r8d
cmp r12d, 8
je 0x1400799e4
cmp r12, 1
jle 0x140079a7f
lea rcx, [rbx + 0x41c]
lea rdx, [r12 - 1]
nop dword [rax]
mov eax, dword [rcx - 4]
xor dword [rcx], eax
lea rcx, [rcx + 4]
sub rdx, 1
jne 0x1400799d0
jmp 0x140079a7f
lea rcx, [rbx + 0x41c]
mov edx, 3
mov eax, dword [rcx - 4]
xor dword [rcx], eax
lea rcx, [rcx + 4]
sub rdx, 1
jne 0x1400799f0
mov eax, dword [rbx + 0x424]
mov ecx, eax
movsxd rdx, eax
shr rcx, 0x18
mov rax, rdx
sar rax, 0x10
movsx edi, byte [rcx + rbp + 0x43c660]
movzx ecx, al
shl edi, 8
movzx eax, byte [rcx + rbp + 0x43c660]
xor edi, eax
mov rax, rdx
sar rax, 8
shl edi, 8
movzx ecx, al
movzx eax, byte [rcx + rbp + 0x43c660]
xor edi, eax
movzx eax, dl
shl edi, 8
movzx eax, byte [rax + rbp + 0x43c660]
xor edi, eax
xor dword [rbx + 0x428], edi
cmp r12, 5
jle 0x140079a7f
lea rax, [rbx + 0x42c]
lea rdx, [r12 - 5]
nop dword [rax]
mov ecx, dword [rax - 4]
xor dword [rax], ecx
lea rax, [rax + 4]
sub rdx, 1
jne 0x140079a70
xor r10d, r10d
test r12d, r12d
jle 0x140079ad5
lea r8, [rbx + 0x418]
nop
cmp r9d, esi
jge 0x140079ade
mov eax, r9d
inc r10
cdq
inc r9d
idiv r14d
movsxd rcx, eax
movsxd rdi, edx
lea rdx, [rdi + rcx*8]
mov ecx, dword [r8]
mov dword [rbx + rdx*4 + 0xc], ecx
mov ecx, dword [rbx + 0x3d4]
sub ecx, eax
movsxd rax, ecx
lea rcx, [rdi + rax*8]
mov eax, dword [r8]
add r8, 4
mov dword [rbx + rcx*4 + 0x1ec], eax
cmp r10, r12
jl 0x140079a90
cmp r9d, esi
jl 0x140079940
mov rbp, r14
lea r13, [0x140000000]
mov r10d, 1
cmp dword [rbx + 0x3d4], r10d
jle 0x140079b78
lea r11, [rbx + 0x20c]
test rbp, rbp
jle 0x140079b62
mov r8, r11
mov r9, rbp
nop dword [rax]
mov eax, dword [r8]
lea r8, [r8 + 4]
mov edx, eax
movsxd rdi, eax
shr rdx, 0x18
mov rax, rdi
sar rax, 0x10
movzx ecx, al
mov rax, rdi
sar rax, 8
mov edx, dword [r13 + rdx*4 + 0x43b160]
xor edx, dword [r13 + rcx*4 + 0x43ad60]
movzx ecx, al
movzx eax, dil
xor edx, dword [r13 + rcx*4 + 0x43a960]
xor edx, dword [r13 + rax*4 + 0x43a560]
mov dword [r8 - 4], edx
sub r9, 1
jne 0x140079b10
inc r10d
add r11, 0x20
cmp r10d, dword [rbx + 0x3d4]
jl 0x140079b02
mov byte [rbx + 8], 1
jmp 0x140079b7c
mov byte [rbx + 8], r10b
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret