Function at 0x18012d470
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x1803d9938]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r15d, r9d
mov rsi, r8
mov rdi, rdx
mov r14, rcx
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x68], r8
mov r10, rdx
cmp qword [rdx + 0x18], 0x10
jb 0x18012d4b5
mov r10, qword [rdx]
mov r11, qword [rdx + 0x10]
xor r9d, r9d
add r11, r10
cmp r10, r11
je 0x18012d506
nop dword [rax]
nop dword [rax + rax]
movzx r8d, byte [r10]
lea edx, [r8 - 0x41]
movzx eax, r8b
or al, 0x20
movzx ecx, al
cmp dl, 0x19
cmova ecx, r8d
movsx eax, cl
add eax, r9d
imul r9d, eax, 0x401
mov eax, r9d
shr eax, 6
xor r9d, eax
inc r10
cmp r10, r11
jne 0x18012d4d0
lea ecx, [r9 + r9*8]
mov eax, ecx
shr eax, 0xb
xor ecx, eax
imul ebp, ecx, 0x8001
mov r9, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x18012d524
mov r9, qword [rsi]
mov r11, qword [rsi + 0x10]
xor r10d, r10d
add r11, r9
cmp r9, r11
je 0x18012d576
nop dword [rax]
nop word [rax + rax]
movzx r8d, byte [r9]
lea edx, [r8 - 0x41]
movzx eax, r8b
or al, 0x20
movzx ecx, al
cmp dl, 0x19
cmova ecx, r8d
movsx eax, cl
add eax, r10d
imul r10d, eax, 0x401
mov eax, r10d
shr eax, 6
xor r10d, eax
inc r9
cmp r9, r11
jne 0x18012d540
lea ecx, [r10 + r10*8]
mov eax, ecx
shr eax, 0xb
xor ecx, eax
imul ebx, ecx, 0x8001
mov rcx, qword [0x1803cd030]
call fcn.18025f340
mov rdx, qword [0x1803cd030]
mov ecx, dword [rdx + 8]
mov rax, qword [rdx + 0x10]
mov dword [rax + rcx*8], ebx
inc dword [rdx + 8]
mov rdx, qword [0x1803cd030]
mov ecx, dword [rdx + 8]
mov rax, qword [rdx + 0x10]
mov dword [rax + rcx*8], ebp
inc dword [rdx + 8]
mov rdx, qword [0x1803cd030]
mov ecx, dword [rdx + 8]
mov rax, qword [rdx + 0x10]
mov dword [rax + rcx*8], 1
inc dword [rdx + 8]
movabs rdx, 0xc27009422fcca88d
mov rcx, qword [0x1803cd030]
call fcn.18025f4a0
mov rax, qword [0x1803cd030]
mov rdx, qword [rax]
mov ebp, dword [rdx]
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.1800be2c0
mov rdx, rax
mov rcx, r14
call fcn.18012e1b0
mov r14d, eax
mov r10, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x18012d61d
mov r10, qword [rsi]
mov r11, qword [rsi + 0x10]
xor r9d, r9d
add r11, r10
cmp r10, r11
je 0x18012d666
nop dword [rax]
movzx r8d, byte [r10]
lea edx, [r8 - 0x41]
movzx eax, r8b
or al, 0x20
movzx ecx, al
cmp dl, 0x19
cmova ecx, r8d
movsx eax, cl
add eax, r9d
imul r9d, eax, 0x401
mov eax, r9d
shr eax, 6
xor r9d, eax
inc r10
cmp r10, r11
jne 0x18012d630
lea ecx, [r9 + r9*8]
mov eax, ecx
shr eax, 0xb
xor ecx, eax
imul ebx, ecx, 0x8001
mov r10, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x18012d684
mov r10, qword [rdi]
mov r11, qword [rdi + 0x10]
xor r9d, r9d
add r11, r10
cmp r10, r11
je 0x18012d6d6
nop dword [rax]
nop word [rax + rax]
movzx r8d, byte [r10]
lea edx, [r8 - 0x41]
movzx eax, r8b
or al, 0x20
movzx ecx, al
cmp dl, 0x19
cmova ecx, r8d
movsx eax, cl
add eax, r9d
imul r9d, eax, 0x401
mov eax, r9d
shr eax, 6
xor r9d, eax
inc r10
cmp r10, r11
jne 0x18012d6a0
lea ecx, [r9 + r9*8]
mov eax, ecx
shr eax, 0xb
xor ecx, eax
imul eax, ecx, 0x8001
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x24], ebx
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x2c], ebp
mov dword [rsp + 0x30], r15d
xor r9d, r9d
lea r11, [0x1802aba6f]
lea r10, str.shop_controller
nop
movzx r8d, byte [r10]
lea edx, [r8 - 0x41]
movzx eax, r8b
or al, 0x20
movzx ecx, al
cmp dl, 0x19
cmova ecx, r8d
movsx eax, cl
add eax, r9d
imul r9d, eax, 0x401
mov eax, r9d
shr eax, 6
xor r9d, eax
inc r10
cmp r10, r11
jne 0x18012d710
lea ecx, [r9 + r9*8]
mov eax, ecx
shr eax, 0xb
xor ecx, eax
imul r9d, ecx, 0x8001
mov rax, qword [section..data]
mov rcx, qword [rax + 0x320]
mov rdx, qword [rcx]
movzx eax, word [rcx + 8]
lea r8, [rdx + rax*8]
cmp rdx, r8
je 0x18012d79b
mov rcx, qword [rdx]
test rcx, rcx
je 0x18012d78a
cmp dword [rcx + 8], 0
je 0x18012d78a
cmp dword [rcx + 0xc], r9d
je 0x18012d790
add rdx, 8
jmp 0x18012d771
lea rdx, [rsp + 0x20]
call fcn.18012c080
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x18012d7d5
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x18012d7d0
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18012d855
mov rcx, r8
call fcn.18026980c
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x18012d81e
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x18012d819
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18012d85c
mov rcx, r8
call fcn.18026980c
mov qword [rsi + 0x10], 0
mov qword [rsi + 0x18], 0xf
mov byte [rsi], 0
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.180269d00
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3