Function at 0x180187d34
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x240
mov qword [rbp - 8], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
mov rsi, rdx
mov rdi, rcx
xor r13d, r13d
lea rcx, [rsp + 0x40]
call fcn.180188724
nop
cmp qword [rsp + 0x50], r13
je 0x180187dc2
lea r8d, [r13 + 0x20]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], r13
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
nop
mov rax, rdi
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov dword [rsp + 0x60], 0x49
mov eax, dword [rsp + 0x60]
xor ax, 0x2e
mov word [rsp + 0x64], ax
mov eax, dword [rsp + 0x60]
mov r8d, 1
add ax, r8w
xor ax, 0x65
mov word [rsp + 0x66], ax
mov eax, dword [rsp + 0x60]
add ax, 2
xor ax, 0x78
mov word [rsp + 0x68], ax
mov eax, dword [rsp + 0x60]
add ax, 3
xor ax, 0x65
mov word [rsp + 0x6a], ax
xor eax, eax
mov word [rsp + 0x6c], ax
movzx eax, word [rsp + 0x64]
mov rdx, r13
movzx eax, word [rsp + rdx*2 + 0x64]
mov ecx, dword [rsp + 0x60]
add cx, dx
xor cx, ax
mov word [rsp + rdx*2 + 0x64], cx
add rdx, r8
cmp rdx, 4
jb 0x180187e1f
mov word [rsp + 0x6c], r13w
mov rdx, qword [rsi + 0x10]
lea rax, [rsp + 0x64]
or r15, 0xffffffffffffffff
mov rcx, r15
inc rcx
cmp word [rax + rcx*2], r13w
jne 0x180187e52
movabs r12, 0x7ffffffffffffffe
mov rax, r12
sub rax, rdx
cmp rax, rcx
jb 0x180188709
mov r9, rsi
cmp qword [rsi + 0x18], 8
jb 0x180187e82
mov r9, qword [rsi]
mov qword [rsp + 0x30], rcx
lea rax, [rsp + 0x64]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
lea rcx, [rbp]
call fcn.18014c904
nop
lea rdx, [rbp]
lea rcx, [rbp + 0xa0]
call fcn.180188724
mov rbx, rax
lea rax, [rsp + 0x40]
mov r14d, 0x20
cmp rax, rbx
je 0x180187f3d
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x180187f08
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180187f03
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180187f03
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180269534
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r13w
mov r8, r14
mov rdx, rbx
lea rcx, [rsp + 0x40]
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], 7
mov word [rbx], r13w
lea rcx, [rbp + 0xa0]
call fcn.18007a444
nop
lea rcx, [rbp]
call fcn.18007a444
nop
xor edx, edx
lea r8d, [rdx + 0xa]
lea rcx, [rsp + 0x64]
call qword [sym.imp.VCRUNTIME140.dll_memset]
cmp qword [rsp + 0x50], r13
je 0x180187f74
mov r8, r14
jmp 0x180187d81
mov dword [rbp - 0x6c], 0x75
mov eax, 0x5b
mov word [rbp - 0x68], ax
mov eax, 0x11
mov word [rbp - 0x66], ax
mov eax, 0x19
mov word [rbp - 0x64], ax
mov word [rbp - 0x62], ax
xor eax, eax
mov word [rbp - 0x60], ax
movzx eax, word [rbp - 0x68]
mov rdx, r13
movzx eax, word [rbp + rdx*2 - 0x68]
mov ecx, dword [rbp - 0x6c]
xor cx, ax
mov word [rbp + rdx*2 - 0x68], cx
inc rdx
cmp rdx, 4
jb 0x180187fa7
mov word [rbp - 0x60], r13w
mov rdx, qword [rsi + 0x10]
lea rax, [rbp - 0x68]
mov rcx, r15
inc rcx
cmp word [rax + rcx*2], r13w
jne 0x180187fd0
mov rax, r12
sub rax, rdx
cmp rax, rcx
jb 0x18018870f
mov r9, rsi
cmp qword [rsi + 0x18], 8
jb 0x180187ff6
mov r9, qword [rsi]
mov qword [rsp + 0x30], rcx
lea rax, [rbp - 0x68]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
lea rcx, [rbp + 0x20]
call fcn.18014c904
nop
lea rdx, [rbp + 0x20]
lea rcx, [rbp + 0xc0]
call fcn.180188724
mov rbx, rax
lea rax, [rsp + 0x40]
cmp rax, rbx
je 0x1801880aa
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x180188075
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180188070
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180188070
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180269534
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r13w
mov r8, r14
mov rdx, rbx
lea rcx, [rsp + 0x40]
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], 7
mov word [rbx], r13w
lea rcx, [rbp + 0xc0]
call fcn.18007a444
nop
lea rcx, [rbp + 0x20]
call fcn.18007a444
nop
xor edx, edx
lea r8d, [rdx + 0xa]
lea rcx, [rbp - 0x68]
call qword [sym.imp.VCRUNTIME140.dll_memset]
cmp qword [rsp + 0x50], r13
jne 0x180187f6c
mov dword [rsp + 0x70], 0x6c
mov eax, 0x42
mov word [rsp + 0x74], ax
mov word [rsp + 0x76], ax
mov eax, 0x30
mov word [rsp + 0x78], ax
xor eax, eax
mov word [rsp + 0x7a], ax
movzx eax, word [rsp + 0x74]
mov rdx, r13
mov r8d, 3
movzx eax, word [rsp + rdx*2 + 0x74]
mov ecx, dword [rsp + 0x70]
xor cx, ax
mov word [rsp + rdx*2 + 0x74], cx
inc rdx
cmp rdx, r8
jb 0x180188112
mov word [rsp + 0x7a], r13w
lea rax, [rsp + 0x74]
mov rcx, r15
inc rcx
cmp word [rax + rcx*2], r13w
jne 0x180188139
mov rdx, qword [rsi + 0x10]
mov rax, r12
sub rax, rdx
cmp rax, rcx
jb 0x180188715
mov rax, rsi
cmp qword [rsi + 0x18], 8
jb 0x180188163
mov rax, qword [rsi]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x74]
lea rcx, [rbp + 0x40]
call fcn.18014c904
nop
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0xe0]
call fcn.180188724
mov rbx, rax
lea rax, [rsp + 0x40]
cmp rax, rbx
je 0x180188218
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x1801881e3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801881de
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1801881de
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180269534
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r13w
mov r8, r14
mov rdx, rbx
lea rcx, [rsp + 0x40]
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], 7
mov word [rbx], r13w
lea rcx, [rbp + 0xe0]
call fcn.18007a444
nop
lea rcx, [rbp + 0x40]
call fcn.18007a444
nop
xor edx, edx
lea r8d, [rdx + 8]
lea rcx, [rsp + 0x74]
call qword [sym.imp.VCRUNTIME140.dll_memset]
cmp qword [rsp + 0x50], r13
jne 0x180187f6c
mov eax, 0x31
mov word [rbp - 0x78], ax
lea ecx, [rax + 0x37]
mov word [rbp - 0x76], cx
lea eax, [rcx + 0x13]
mov word [rbp - 0x74], ax
mov word [rbp - 0x72], cx
mov word [rbp - 0x70], r13w
movzx eax, word [rbp - 0x78]
mov rcx, r13
mov edx, 3
movzx eax, word [rbp + rcx*2 - 0x78]
sub ax, dx
mov word [rbp + rcx*2 - 0x78], ax
inc rcx
cmp rcx, 4
jb 0x180188277
mov eax, 0x38
mov word [rbp + 0x180], ax
mov word [rbp + 0x182], ax
mov eax, 0x66
mov word [rbp + 0x184], ax
mov word [rbp + 0x186], r13w
movzx eax, word [rbp + 0x180]
mov rcx, r13
mov r8d, 0xa
movzx eax, word [rbp + rcx*2 + 0x180]
sub ax, r8w
mov word [rbp + rcx*2 + 0x180], ax
inc rcx
cmp rcx, rdx
jb 0x1801882c4
lea rax, [rbp + 0x180]
mov rcx, r15
inc rcx
cmp word [rax + rcx*2], r13w
jne 0x1801882ea
mov rdx, qword [rsi + 0x10]
mov rax, r12
sub rax, rdx
cmp rax, rcx
jb 0x18018871b
mov rax, rsi
cmp qword [rsi + 0x18], 8
jb 0x180188314
mov rax, qword [rsi]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x180]
lea rcx, [rbp + 0x60]
call fcn.18014c904
nop
lea rdx, [rbp - 0x78]
lea rcx, [rbp + 0x60]
call fcn.18014c874
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x38], xmm1
mov r8, r14
mov rdx, rax
lea rcx, [rbp - 0x48]
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], 7
mov word [rbx], r13w
lea rdx, [rbp - 0x48]
lea rcx, [rbp + 0x100]
call fcn.180188724
mov rbx, rax
lea rax, [rsp + 0x40]
cmp rax, rbx
je 0x18018840a
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x1801883d5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801883d0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1801883d0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180269534
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r13w
mov r8, r14
mov rdx, rbx
lea rcx, [rsp + 0x40]
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], 7
mov word [rbx], r13w
lea rcx, [rbp + 0x100]
call fcn.18007a444
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x18018845a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180188455
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180188455
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180269534
movdqa xmm0, xmmword [0x180280dd0]
movdqu xmmword [rbp - 0x38], xmm0
mov word [rbp - 0x48], r13w
lea rcx, [rbp + 0x60]
call fcn.18007a444
nop
xor edx, edx
lea r8d, [rdx + 8]
lea rcx, [rbp + 0x180]
call qword [sym.imp.VCRUNTIME140.dll_memset]
nop
xor edx, edx
lea r8d, [rdx + 0xa]
lea rcx, [rbp - 0x78]
call qword [sym.imp.VCRUNTIME140.dll_memset]
cmp qword [rsp + 0x50], r13
jne 0x180187f6c
mov dword [rbp - 0x5c], 0x27
mov eax, 9
mov word [rbp - 0x58], ax
mov eax, 0x43
mov word [rbp - 0x56], ax
mov eax, 0x4b
mov word [rbp - 0x54], ax
mov word [rbp - 0x52], ax
xor eax, eax
mov word [rbp - 0x50], ax
movzx eax, word [rbp - 0x58]
mov rdx, r13
movzx eax, word [rbp + rdx*2 - 0x58]
mov ecx, dword [rbp - 0x5c]
xor cx, ax
mov word [rbp + rdx*2 - 0x58], cx
inc rdx
cmp rdx, 4
jb 0x1801884d8
mov word [rbp - 0x50], r13w
mov dword [rsp + 0x7c], 0x7d
mov eax, 0x53
mov word [rbp - 0x80], ax
mov word [rbp - 0x7e], ax
mov eax, 0x21
mov word [rbp - 0x7c], ax
xor eax, eax
mov word [rbp - 0x7a], ax
movzx eax, word [rbp - 0x80]
mov rdx, r13
mov r8d, 3
movzx eax, word [rbp + rdx*2 - 0x80]
mov ecx, dword [rsp + 0x7c]
xor cx, ax
mov word [rbp + rdx*2 - 0x80], cx
inc rdx
cmp rdx, r8
jb 0x180188527
mov word [rbp - 0x7a], r13w
lea rax, [rbp - 0x80]
inc r15
cmp word [rax + r15*2], r13w
jne 0x180188549
mov rax, qword [rsi + 0x10]
sub r12, rax
cmp r12, r15
jb 0x1801886fd
mov r12d, 8
cmp qword [rsi + 0x18], r12
jb 0x180188572
mov rsi, qword [rsi]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x80]
lea rcx, [rbp + 0x80]
call fcn.18014c904
nop
lea rdx, [rbp - 0x58]
lea rcx, [rbp + 0x80]
call fcn.18014c874
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x18], xmm1
mov r8, r14
mov rdx, rax
lea rcx, [rbp - 0x28]
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
mov qword [rbx + 0x10], r13
mov esi, 7
mov qword [rbx + 0x18], rsi
mov word [rbx], r13w
lea rdx, [rbp - 0x28]
lea rcx, [rbp + 0x120]
call fcn.180188724
mov rbx, rax
lea rax, [rsp + 0x40]
cmp rax, rbx
je 0x180188663
mov rdx, qword [rsp + 0x58]
cmp rdx, r12
jb 0x180188636
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180188631
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180188631
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180269534
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], rsi
mov word [rsp + 0x40], r13w
mov r8, r14
mov rdx, rbx
lea rcx, [rsp + 0x40]
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], rsi
mov word [rbx], r13w
lea rcx, [rbp + 0x120]
call fcn.18007a444
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, r12
jb 0x1801886b2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801886ad
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1801886ad
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180269534
movdqa xmm0, xmmword [0x180280dd0]
movdqu xmmword [rbp - 0x18], xmm0
mov word [rbp - 0x28], r13w
lea rcx, [rbp + 0x80]
call fcn.18007a444
nop
mov r8, r12
xor edx, edx
lea rcx, [rbp - 0x80]
call qword [sym.imp.VCRUNTIME140.dll_memset]
nop
xor edx, edx
lea r8d, [rdx + 0xa]
lea rcx, [rbp - 0x58]
call qword [sym.imp.VCRUNTIME140.dll_memset]
cmp qword [rsp + 0x50], r13
je 0x180188703
jmp 0x180187f6c
call fcn.18006d878
nop
call fcn.18014e36c
nop
call fcn.18006d878
nop
call fcn.18006d878
nop
call fcn.18006d878
nop
call fcn.18006d878
int3