Function at 0x1800ba7d0
Capabilities:
Encode data using xor

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
mov r8d, dword [rsp + 0xc0]
xor eax, eax
cmp dword [rcx], eax
mov r14d, 0xd
mov r13, qword [rsp + 0xb8]
mov r15, rcx
sete al
mov r10d, r14d
mov dword [rsp + 0x20], eax
lea eax, [r8 - 1]
movsxd r12, eax
mov r9, r12
test eax, eax
js 0x1800ba848
nop dword [rax]
nop dword [rax + rax]
movzx ecx, byte [r9 + r13]
lea eax, [r10*8]
xor ecx, eax
xor r10d, ecx
sub r9, 1
jns 0x1800ba830
movzx ecx, byte [rsp + 0xb0]
lea eax, [r10*8]
mov edi, dword [r15 + 0x14]
xor eax, ecx
xor eax, r10d
mov dword [rsp + 0x90], ecx
xor edx, edx
div edi
mov rax, qword [r15 + 0x20]
lea rsi, [rdx*8]
mov ebp, edx
mov qword [rsp + 0x28], rax
mov rbx, qword [rax + rsi]
test rbx, rbx
je 0x1800ba8c2
cmp byte [rbx + 0x30], cl
jne 0x1800ba8ba
cmp dword [rbx + 0x1c], r8d
jne 0x1800ba8ba
movsxd r8, r8d
lea rcx, [rbx + 0x31]
mov rdx, r13
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1800baa17
mov r8d, dword [rsp + 0xc0]
movzx ecx, byte [rsp + 0xb0]
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1800ba888
lea eax, [r8 + 1]
movsxd rsi, eax
mov eax, 0x80
add rsi, 0x71
cmp rsi, rax
cmovl rsi, rax
mov eax, dword [r15 + 0x10]
add eax, eax
mov qword [rsp + 0x30], rsi
cmp eax, edi
jl 0x1800baad5
lea esi, [rdi + rdi]
call fcn.1800fff70
test eax, eax
jne 0x1800badb5
movsxd rax, esi
lea rbx, [rax*8]
mov rcx, rbx
call fcn.1800ca1d0
mov rdi, rax
test rax, rax
je 0x1800badb5
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
xor ebx, ebx
cmp dword [r15 + 0x14], ebx
jle 0x1800ba9af
mov r11, qword [rsp + 0x28]
mov r10, qword [r11]
test r10, r10
je 0x1800ba9a3
nop dword [rax]
mov rax, qword [r10]
mov r9d, r14d
mov qword [r11], rax
mov rax, 0xffffffffffffffff
inc rax
cmp byte [r10 + rax + 0x30], 0
jne 0x1800ba950
sub eax, 1
movsxd r8, eax
js 0x1800ba989
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [r10 + r8 + 0x30]
lea ecx, [r9*8]
xor edx, ecx
xor r9d, edx
sub r8, 1
jns 0x1800ba970
xor edx, edx
mov eax, r9d
div esi
mov rax, qword [rdi + rdx*8]
mov qword [r10], rax
mov qword [rdi + rdx*8], r10
mov r10, qword [r11]
test r10, r10
jne 0x1800ba940
inc ebx
add r11, 8
cmp ebx, dword [r15 + 0x14]
jl 0x1800ba935
mov rbx, qword [rsp + 0x28]
test rbx, rbx
je 0x1800baa8f
cmp dword [0x180147090], 0
je 0x1800baa86
mov rcx, qword [0x18014be20]
test rcx, rcx
je 0x1800ba9dc
call qword [0x180147110]
mov rcx, rbx
call qword [0x1801470c8]
dec qword [0x18014bdb8]
mov rcx, rbx
movsxd rdx, eax
sub qword [0x18014bd70], rdx
call qword [0x1801470b8]
mov rcx, qword [0x18014be20]
test rcx, rcx
je 0x1800baa8f
call qword [0x180147120]
jmp 0x1800baa8f
mov ecx, dword [rbx + 0x10]
mov eax, ecx
sub eax, dword [rbx + 0x18]
cmp eax, 0x16
jge 0x1800baa74
lea edi, [rcx + rcx]
call fcn.1800fff70
test eax, eax
jne 0x1800badb5
movsxd rdx, edi
mov rcx, rbx
call fcn.1800d2da0
mov r8, rax
test rax, rax
je 0x1800badb5
mov dword [rax + 0x10], edi
mov rdx, qword [r15 + 0x20]
add rdx, rsi
mov rcx, qword [rdx]
cmp rcx, rbx
je 0x1800baa6e
nop dword [rax]
mov rax, qword [rcx]
mov rdx, rcx
mov rcx, rax
cmp rax, rbx
jne 0x1800baa60
mov qword [rdx], r8
mov rbx, r8
mov edi, dword [rbx + 0x18]
mov rsi, qword [rsp + 0x98]
neg edi
jmp 0x1800babcc
mov rcx, rbx
call qword [0x1801470b8]
mov dword [r15 + 0x14], esi
mov qword [r15 + 0x20], rdi
test r12, r12
js 0x1800baab8
nop dword [rax]
movzx ecx, byte [r12 + r13]
lea eax, [r14*8]
xor ecx, eax
xor r14d, ecx
sub r12, 1
jns 0x1800baaa0
lea eax, [r14*8]
xor edx, edx
xor eax, dword [rsp + 0x90]
xor eax, r14d
div esi
mov rsi, qword [rsp + 0x30]
mov ebp, edx
call fcn.1800fff70
test eax, eax
jne 0x1800badb5
mov rcx, rsi
call fcn.1800ca1d0
mov rbx, rax
test rax, rax
je 0x1800badb5
xorps xmm0, xmm0
lea rcx, [rbx + 0x31]
movups xmmword [rax], xmm0
mov rdx, r13
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
mov dword [rax + 0x10], esi
movzx eax, byte [rsp + 0xb0]
movsxd rsi, dword [rsp + 0xc0]
mov r8, rsi
mov byte [rbx + 0x30], al
call sub.VCRUNTIME140.dll_memcpy
mov dword [rbx + 0x1c], esi
lea eax, [rsi + 0x32]
mov byte [rsi + rbx + 0x31], 0
mov rsi, qword [rsp + 0x98]
mov dword [rbx + 0x18], eax
mov eax, ebp
lea rdx, [rax*8]
mov rax, qword [r15 + 0x20]
mov rcx, qword [rdx + rax]
mov qword [rbx], rcx
mov rax, qword [r15 + 0x20]
mov qword [rdx + rax], rbx
inc dword [r15 + 0x10]
movsxd rcx, dword [rbx + 0x18]
add rcx, rbx
cmp rsi, 0x7f
ja 0x1800bab7c
movzx eax, sil
and al, 0x7f
mov byte [rcx], al
mov eax, 1
jmp 0x1800baba8
cmp rsi, 0x3fff
ja 0x1800baba0
mov rax, rsi
shr rax, 7
or al, 0x80
mov byte [rcx], al
movzx eax, sil
and al, 0x7f
mov byte [rcx + 1], al
mov eax, 2
jmp 0x1800baba8
mov rdx, rsi
call fcn.18006a360
add dword [rbx + 0x18], eax
mov edi, dword [rbx + 0x18]
mov dword [rbx + 0x14], edi
mov qword [rbx + 0x28], rsi
cmp dword [r15], 1
je 0x1800babcc
inc edi
mov dword [rbx + 0x18], edi
mov eax, dword [r15]
neg eax
sbb cx, cx
mov word [rbx + 0x22], cx
cmp rsi, qword [rbx + 0x28]
je 0x1800bac5b
xor r8d, r8d
mov rdx, rbx
mov rcx, r15
call fcn.180060280
movsxd rcx, dword [rbx + 0x18]
mov rdx, rsi
sub rdx, qword [rbx + 0x28]
add rcx, rbx
cmp rdx, 0x7f
ja 0x1800bac04
and dl, 0x7f
mov eax, 1
mov byte [rcx], dl
jmp 0x1800bac2a
cmp rdx, 0x3fff
ja 0x1800bac25
mov rax, rdx
shr rax, 7
or al, 0x80
and dl, 0x7f
mov byte [rcx], al
mov byte [rcx + 1], dl
mov eax, 2
jmp 0x1800bac2a
call fcn.18006a360
add dword [rbx + 0x18], eax
mov eax, dword [rbx + 0x18]
mov qword [rbx + 0x28], rsi
mov esi, 1
mov dword [rbx + 0x14], eax
cmp dword [r15], esi
je 0x1800bac5f
inc eax
mov dword [rbx + 0x18], eax
mov eax, dword [r15]
neg eax
mov dword [rbx + 0x24], 0
sbb cx, cx
mov word [rbx + 0x22], cx
jmp 0x1800bac5f
mov esi, dword [rsp + 0x20]
movsxd r11, dword [rsp + 0xa0]
test r11d, r11d
js 0x1800bada2
mov ecx, dword [r15]
cmp ecx, 1
jne 0x1800bac8d
mov byte [rbx + 0x21], cl
mov ecx, dword [rbx + 0x18]
mov rdx, qword [r15 + 8]
add ecx, edi
add dword [rdx], ecx
xor eax, eax
jmp 0x1800badba
movsx eax, word [rbx + 0x22]
cmp r11d, eax
je 0x1800bad04
test ecx, ecx
jne 0x1800bad4a
movsxd rax, dword [rbx + 0x18]
mov rdx, r11
mov byte [rax + rbx], 1
movsxd rcx, dword [rbx + 0x18]
lea eax, [rcx + 1]
mov dword [rbx + 0x18], eax
mov rax, rcx
lea rcx, [rbx + 1]
add rcx, rax
cmp r11, 0x7f
ja 0x1800baccf
and dl, 0x7f
mov eax, 1
mov byte [rcx], dl
jmp 0x1800bacf5
cmp rdx, 0x3fff
ja 0x1800bacf0
mov rax, rdx
shr rax, 7
or al, 0x80
and dl, 0x7f
mov byte [rcx], al
mov byte [rcx + 1], dl
mov eax, 2
jmp 0x1800bacf5
call fcn.18006a360
add dword [rbx + 0x18], eax
mov word [rbx + 0x22], r11w
mov dword [rbx + 0x24], 0
test esi, esi
je 0x1800bada6
mov esi, dword [rsp + 0xa8]
movsxd rcx, dword [rbx + 0x18]
mov eax, esi
sub eax, dword [rbx + 0x24]
add rcx, rbx
add eax, 2
movsxd rdx, eax
cmp rdx, 0x7f
ja 0x1800bad54
and dl, 0x7f
mov eax, 1
mov byte [rcx], dl
add dword [rbx + 0x18], eax
mov ecx, dword [rbx + 0x18]
mov dword [rbx + 0x24], esi
add ecx, edi
mov rdx, qword [r15 + 8]
add dword [rdx], ecx
xor eax, eax
jmp 0x1800badba
mov esi, r11d
mov word [rbx + 0x22], r11w
jmp 0x1800bad13
cmp rdx, 0x3fff
ja 0x1800bad88
mov rax, rdx
and dl, 0x7f
mov byte [rcx + 1], dl
shr rax, 7
or al, 0x80
mov byte [rcx], al
mov eax, 2
add dword [rbx + 0x18], eax
mov ecx, dword [rbx + 0x18]
mov dword [rbx + 0x24], esi
add ecx, edi
mov rdx, qword [r15 + 8]
add dword [rdx], ecx
xor eax, eax
jmp 0x1800badba
call fcn.18006a360
add dword [rbx + 0x18], eax
mov ecx, dword [rbx + 0x18]
mov dword [rbx + 0x24], esi
add ecx, edi
mov rdx, qword [r15 + 8]
add dword [rdx], ecx
xor eax, eax
jmp 0x1800badba
mov byte [rbx + 0x20], 1
mov ecx, dword [rbx + 0x18]
mov rdx, qword [r15 + 8]
add ecx, edi
add dword [rdx], ecx
xor eax, eax
jmp 0x1800badba
mov eax, 7
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret