Function at 0x140182b38
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x238]
sub rsp, 0x300
mov qword [rbp + 0xc8], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rbx, rdx
mov r15, rcx
xor edi, edi
mov dword [rbp + 0x248], edi
mov qword [rbp + 0x50], rdi
movdqa xmm0, xmmword [0x140291e00]
movdqu xmmword [rbp + 0x60], xmm0
mov word [rbp + 0x50], di
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x70], xmm0
mov qword [rbp + 0x80], rdi
mov rax, qword [rdx + 0x10]
lea r14d, [rdi + 8]
cmp qword [rdx + 0x18], r14
jb 0x140182ba6
mov rdx, qword [rdx]
mov r13d, 0x2c
lea r12d, [r13 - 0x2b]
lea r8d, [r13 - 0x2a]
test rax, rax
je 0x140182d75
mov rcx, rdx
mov rsi, rdi
cmp word [rdx], r13w
je 0x140182bda
cmp rax, r12
je 0x140182bdd
sub rax, r12
add rcx, r8
cmp word [rcx], r13w
jne 0x140182bc9
mov rsi, rcx
test rsi, rsi
je 0x140182d75
sub rsi, rdx
sar rsi, 1
cmp rsi, 0xffffffffffffffff
je 0x140182d75
mov r9, rsi
xor r8d, r8d
mov rdx, rbx
lea rcx, [rbp + 0xa8]
call fcn.140173f18
mov rdx, rax
lea rcx, [rbp + 0x50]
call fcn.1400bbecc
lea rcx, [rbp + 0xa8]
call fcn.1400ac668
jmp 0x140182cf0
mov rdx, rbx
cmp qword [rbx + 0x18], r14
jb 0x140182c34
mov rdx, qword [rbx]
cmp r8, rax
jae 0x140182c69
sub rax, r8
lea rcx, [rdx + r8*2]
mov rsi, rdi
je 0x140182c5c
jmp 0x140182c53
cmp rax, r12
je 0x140182c5c
sub rax, r12
add rcx, 2
cmp word [rcx], r13w
jne 0x140182c47
mov rsi, rcx
test rsi, rsi
je 0x140182c69
sub rsi, rdx
sar rsi, 1
jmp 0x140182c6d
or rsi, 0xffffffffffffffff
mov rdx, rbx
cmp rsi, 0xffffffffffffffff
je 0x140182d03
mov r9, rsi
sub r9, r8
lea rcx, [rbp + 0x88]
call fcn.140173f18
mov r14, rax
mov rcx, qword [rbp + 0x78]
cmp rcx, qword [rbp + 0x80]
je 0x140182cce
mov qword [rcx], rdi
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], rdi
mov r8d, 0x20
mov rdx, rax
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
mov qword [r14 + 0x10], rdi
mov eax, 7
mov qword [r14 + 0x18], rax
mov word [r14], di
add qword [rbp + 0x78], 0x20
jmp 0x140182cde
mov r8, r14
mov rdx, rcx
lea rcx, [rbp + 0x70]
call fcn.14015d550
nop
lea rcx, [rbp + 0x88]
call fcn.1400ac668
mov r14d, 8
mov rax, qword [rbx + 0x10]
lea r8, [rsi + 1]
cmp r8, rax
jb 0x140182c28
jmp 0x140182d81
mov r9, qword [rbx + 0x10]
sub r9, r8
lea rcx, [rbp + 0xd0]
call fcn.140173f18
mov rbx, rax
mov rcx, qword [rbp + 0x78]
cmp rcx, qword [rbp + 0x80]
je 0x140182d57
mov qword [rcx], rdi
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], rdi
mov r8d, 0x20
mov rdx, rax
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
mov qword [rbx + 0x10], rdi
mov eax, 7
mov qword [rbx + 0x18], rax
mov word [rbx], di
add qword [rbp + 0x78], 0x20
jmp 0x140182d67
mov r8, rbx
mov rdx, rcx
lea rcx, [rbp + 0x70]
call fcn.14015d550
nop
lea rcx, [rbp + 0xd0]
call fcn.1400ac668
jmp 0x140182d81
mov rdx, rbx
lea rcx, [rbp + 0x50]
call fcn.1401712a4
mov r14, qword [0x1402cd090]
mov rbx, qword [r14 + 8]
mov rsi, r14
jmp 0x140182db1
lea rcx, [rbx + 0x20]
lea rdx, [rbp + 0x50]
call fcn.1400afa7c
shr eax, 0x1f
test al, al
je 0x140182dab
mov rbx, qword [rbx + 0x10]
jmp 0x140182db1
mov rsi, rbx
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], dil
je 0x140182d91
cmp byte [rsi + 0x19], dil
jne 0x140182dd1
lea rdx, [rsi + 0x20]
lea rcx, [rbp + 0x50]
call fcn.1400afa7c
shr eax, 0x1f
test al, al
je 0x140182dd4
mov rsi, r14
lea rdx, [rbp + 0x50]
cmp rsi, r14
jne 0x140182f46
lea rcx, [rbp + 0xf0]
call fcn.1400ac788
mov r8, rax
mov ecx, 0x67
mov word [rbp - 0x80], cx
lea eax, [rcx - 0x3a]
mov word [rbp - 0x7e], ax
lea eax, [rcx + 2]
mov word [rbp - 0x7c], ax
mov word [rbp - 0x7a], r13w
lea eax, [rcx - 0x16]
mov word [rbp - 0x78], ax
lea ecx, [rax + 0x29]
mov word [rbp - 0x76], cx
lea eax, [rcx + 8]
mov word [rbp - 0x74], ax
lea edx, [rcx - 5]
mov word [rbp - 0x72], dx
lea r15d, [rcx + 4]
mov word [rbp - 0x70], r15w
lea r14d, [rcx + 1]
mov word [rbp - 0x6e], r14w
mov word [rbp - 0x6c], cx
lea eax, [rcx - 1]
mov word [rbp - 0x6a], ax
lea esi, [rcx - 9]
mov word [rbp - 0x68], si
mov word [rbp - 0x66], cx
lea ebx, [rcx + 6]
mov word [rbp - 0x64], bx
lea r9d, [rcx - 0xd]
mov word [rbp - 0x62], r9w
lea eax, [rcx - 2]
mov word [rbp - 0x60], ax
mov word [rbp - 0x5e], r13w
lea eax, [rcx - 3]
mov word [rbp - 0x5c], ax
mov word [rbp - 0x5a], si
lea eax, [rcx + 0xb]
mov word [rbp - 0x58], ax
mov word [rbp - 0x56], dx
mov word [rbp - 0x54], cx
lea r11d, [rcx - 7]
mov word [rbp - 0x52], r11w
mov word [rbp - 0x50], r13w
mov word [rbp - 0x4e], bx
mov word [rbp - 0x4c], r9w
lea r10d, [rcx - 0xb]
mov word [rbp - 0x4a], r10w
mov word [rbp - 0x48], bx
mov word [rbp - 0x46], dx
mov word [rbp - 0x44], r10w
mov word [rbp - 0x42], r13w
mov word [rbp - 0x40], cx
mov word [rbp - 0x3e], r14w
mov word [rbp - 0x3c], bx
mov word [rbp - 0x3a], r13w
lea eax, [rcx + 5]
mov word [rbp - 0x38], ax
lea eax, [rcx + 7]
mov word [rbp - 0x36], ax
lea eax, [rcx + 2]
mov word [rbp - 0x34], ax
mov word [rbp - 0x32], ax
mov word [rbp - 0x30], r14w
mov word [rbp - 0x2e], r15w
mov word [rbp - 0x2c], bx
mov word [rbp - 0x2a], si
lea ecx, [rdx - 5]
mov word [rbp - 0x28], cx
lea eax, [rdx - 0x2f]
mov word [rbp - 0x26], ax
mov word [rbp - 0x24], r13w
mov word [rbp - 0x22], di
movzx eax, word [rbp - 0x80]
mov rcx, rdi
movzx eax, word [rbp + rcx*2 - 0x80]
sub ax, 0xc
mov word [rbp + rcx*2 - 0x80], ax
add rcx, r12
cmp rcx, 0x2f
jb 0x140182f13
mov rdx, r8
lea rcx, [rbp - 0x80]
call fcn.14019464c
nop
mov r8d, 0x60
lea rcx, [rbp - 0x80]
jmp 0x1401834c4
mov rbx, qword [rbp + 0x78]
sub rbx, qword [rbp + 0x70]
sar rbx, 5
call fcn.14018e7b8
movzx ecx, byte [rax + 4]
cmp rbx, rcx
jae 0x1401834ce
mov r11d, 0x10
mov dword [rsp + 0x30], r11d
mov eax, dword [rsp + 0x30]
lea esi, [r11 + 0x10]
xor ax, si
mov word [rsp + 0x34], ax
mov eax, dword [rsp + 0x30]
add ax, r12w
xor ax, 0x6e
mov word [rsp + 0x36], ax
mov eax, dword [rsp + 0x30]
lea r15d, [r11 - 0xe]
add ax, r15w
lea edx, [rsi + 0x55]
xor ax, dx
mov word [rsp + 0x38], ax
mov eax, dword [rsp + 0x30]
add ax, 3
lea r9d, [r11 + 0x5d]
xor ax, r9w
mov word [rsp + 0x3a], ax
mov eax, dword [rsp + 0x30]
add ax, 4
xor ax, 0x62
mov word [rsp + 0x3c], ax
mov eax, dword [rsp + 0x30]
add ax, 5
mov bx, 0x65
xor ax, bx
mov word [rsp + 0x3e], ax
mov eax, dword [rsp + 0x30]
add ax, 6
xor ax, 0x72
mov word [rsp + 0x40], ax
mov eax, dword [rsp + 0x30]
add ax, 7
xor ax, si
mov word [rsp + 0x42], ax
mov eax, dword [rsp + 0x30]
lea r14d, [r11 - 8]
add ax, r14w
lea r10d, [r11 + 0x5f]
xor ax, r10w
mov word [rsp + 0x44], ax
mov eax, dword [rsp + 0x30]
add ax, 9
xor ax, 0x66
mov word [rsp + 0x46], ax
mov eax, dword [rsp + 0x30]
add ax, 0xa
xor ax, si
mov word [rsp + 0x48], ax
mov eax, dword [rsp + 0x30]
add ax, 0xb
mov r8w, 0x61
xor ax, r8w
mov word [rsp + 0x4a], ax
mov eax, dword [rsp + 0x30]
add ax, 0xc
xor ax, 0x72
mov word [rsp + 0x4c], ax
mov eax, dword [rsp + 0x30]
add ax, 0xd
xor ax, 0x67
mov word [rsp + 0x4e], ax
mov eax, dword [rsp + 0x30]
add ax, 0xe
xor ax, dx
mov word [rsp + 0x50], ax
mov eax, dword [rsp + 0x30]
add ax, 0xf
xor ax, r9w
mov word [rsp + 0x52], ax
mov eax, dword [rsp + 0x30]
add ax, r11w
xor ax, bx
mov word [rsp + 0x54], ax
mov eax, dword [rsp + 0x30]
add ax, 0x11
xor ax, 0x6e
mov word [rsp + 0x56], ax
mov eax, dword [rsp + 0x30]
add ax, 0x12
xor ax, 0x74
mov word [rsp + 0x58], ax
mov eax, dword [rsp + 0x30]
add ax, 0x13
lea r11d, [rsi + 0x53]
xor ax, r11w
mov word [rsp + 0x5a], ax
mov eax, dword [rsp + 0x30]
add ax, 0x14
xor ax, si
mov word [rsp + 0x5c], ax
mov eax, dword [rsp + 0x30]
add ax, 0x15
xor ax, 0x63
mov word [rsp + 0x5e], ax
mov eax, dword [rsp + 0x30]
add ax, 0x16
xor ax, r10w
mov word [rsp + 0x60], ax
mov eax, dword [rsp + 0x30]
add ax, 0x17
xor ax, r9w
mov word [rsp + 0x62], ax
mov eax, dword [rsp + 0x30]
add ax, 0x18
xor ax, r9w
mov word [rsp + 0x64], ax
mov eax, dword [rsp + 0x30]
add ax, 0x19
xor ax, r8w
mov word [rsp + 0x66], ax
mov eax, dword [rsp + 0x30]
add ax, 0x1a
xor ax, si
mov word [rsp + 0x68], ax
mov eax, dword [rsp + 0x30]
add ax, 0x1b
xor ax, r11w
mov word [rsp + 0x6a], ax
mov eax, dword [rsp + 0x30]
add ax, 0x1c
xor ax, bx
mov word [rsp + 0x6c], ax
mov eax, dword [rsp + 0x30]
add ax, 0x1d
xor ax, 0x70
mov word [rsp + 0x6e], ax
mov eax, dword [rsp + 0x30]
add ax, 0x1e
xor ax, r8w
mov word [rsp + 0x70], ax
mov eax, dword [rsp + 0x30]
add ax, 0x1f
xor ax, 0x72
mov word [rsp + 0x72], ax
mov eax, dword [rsp + 0x30]
add ax, si
xor ax, r8w
mov word [rsp + 0x74], ax
mov eax, dword [rsp + 0x30]
lea esi, [rdx - 0x54]
add ax, si
xor ax, 0x74
mov word [rsp + 0x76], ax
mov eax, dword [rsp + 0x30]
add ax, 0x22
xor ax, bx
mov word [rsp + 0x78], ax
mov eax, dword [rsp + 0x30]
add ax, 0x23
lea r13d, [r15 + 0x62]
xor ax, r13w
mov word [rsp + 0x7a], ax
mov eax, dword [rsp + 0x30]
add ax, 0x24
xor ax, si
mov word [rsp + 0x7c], ax
xor eax, eax
mov word [rsp + 0x7e], ax
movzx eax, word [rsp + 0x34]
mov rdx, rdi
movzx eax, word [rsp + rdx*2 + 0x34]
mov ecx, dword [rsp + 0x30]
add cx, dx
xor cx, ax
mov word [rsp + rdx*2 + 0x34], cx
add rdx, r12
cmp rdx, 0x25
jb 0x14018320c
mov word [rsp + 0x7e], di
lea rdx, [rbp + 0x50]
call fcn.14018e7b8
movzx ebx, byte [rax + 4]
mov dword [rbp - 0x20], esi
mov ecx, 0x7a
mov word [rbp - 0x1c], cx
mov word [rbp - 0x1a], di
lea eax, [rcx + 2]
mov word [rbp - 0x18], ax
mov word [rbp - 0x16], r12w
mov word [rbp - 0x14], r13w
lea esi, [rcx - 0x2b]
mov word [rbp - 0x12], si
lea eax, [rcx - 0x23]
mov word [rbp - 0x10], ax
lea r11d, [rcx - 0x32]
mov word [rbp - 0xe], r11w
lea r10d, [rcx - 0x27]
mov word [rbp - 0xc], r10w
lea eax, [rcx - 0x2c]
mov word [rbp - 0xa], ax
mov word [rbp - 8], si
lea r13d, [rcx - 0x2e]
mov word [rbp - 6], r13w
lea r8d, [rcx - 0x36]
mov word [rbp - 4], r8w
mov word [rbp - 2], si
lea r9d, [rcx - 0x25]
mov word [rbp], r9w
lea edx, [rcx - 0x3a]
mov word [rbp + 2], dx
lea eax, [rcx - 0x2d]
mov word [rbp + 4], ax
mov word [rbp + 6], r12w
lea eax, [rcx - 0x30]
mov word [rbp + 8], ax
mov word [rbp + 0xa], r8w
lea eax, [rcx - 0x22]
mov word [rbp + 0xc], ax
mov word [rbp + 0xe], r11w
mov word [rbp + 0x10], si
lea eax, [rcx - 0x34]
mov word [rbp + 0x12], ax
mov word [rbp + 0x14], r12w
mov word [rbp + 0x16], r9w
mov word [rbp + 0x18], dx
lea eax, [rcx - 0x38]
mov word [rbp + 0x1a], ax
mov word [rbp + 0x1c], r9w
mov word [rbp + 0x1e], r11w
mov word [rbp + 0x20], ax
mov word [rbp + 0x22], r12w
mov word [rbp + 0x24], r10w
mov word [rbp + 0x26], r8w
lea eax, [rcx - 0x2a]
mov word [rbp + 0x28], ax
lea ecx, [rsi + 5]
mov word [rbp + 0x2a], cx
mov word [rbp + 0x2c], r11w
mov word [rbp + 0x2e], r10w
mov word [rbp + 0x30], r8w
lea eax, [rsi + 3]
mov word [rbp + 0x32], ax
mov word [rbp + 0x34], r12w
mov word [rbp + 0x36], dx
mov word [rbp + 0x38], r9w
mov word [rbp + 0x3a], r12w
mov word [rbp + 0x3c], r13w
mov word [rbp + 0x3e], r11w
mov word [rbp + 0x40], si
mov word [rbp + 0x42], r11w
mov word [rbp + 0x44], r13w
mov word [rbp + 0x46], cx
mov word [rbp + 0x48], r13w
mov word [rbp + 0x4a], r12w
xor eax, eax
mov word [rbp + 0x4c], ax
movzx eax, word [rbp - 0x1c]
mov rdx, rdi
movzx eax, word [rbp + rdx*2 - 0x1c]
mov ecx, dword [rbp - 0x20]
xor cx, ax
mov word [rbp + rdx*2 - 0x1c], cx
add rdx, r12
cmp rdx, 0x34
jb 0x140183378
mov word [rbp + 0x4c], di
lea rcx, [rbp + 0x110]
call fcn.1400ab8b4
nop
lea rdx, [rbp - 0x1c]
lea rcx, [rbp + 0x110]
call fcn.1400ad624
mov edx, ebx
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int______ptr64___cdecl_std::basic_ostream_unsigned_short_int__struct_std::char_traits_unsigned_short_int__::operator___int____ptr64]
mov rcx, rax
lea rdx, [rsp + 0x34]
call fcn.1400ad624
lea rdx, [rbp + 0x88]
lea rcx, [rbp + 0x118]
call fcn.1400aca50
mov dword [rbp + 0x248], r15d
lea rcx, [rbp + 0x88]
cmp qword [rbp + 0xa0], r14
cmovae rcx, qword [rbp + 0x88]
mov rax, qword [rbp + 0x98]
lea r8, [rcx + rax*2]
lea rdx, [rbp + 0x88]
cmovae rdx, qword [rbp + 0x88]
lea rcx, [rbp + 0xa8]
call fcn.1400af5d0
mov dword [rbp + 0x248], 3
lea rdx, [0x140290d28]
lea rcx, [rbp + 0xa8]
call fcn.1400ace7c
nop
lea rcx, [rbp + 0x88]
call fcn.1400ac668
nop
lea rcx, [rbp + 0x110]
call fcn.1400aa2f8
lea rdx, [rbp + 0xa8]
xor ecx, ecx
call fcn.140173fb4
nop
mov rdx, qword [rbp + 0xc0]
cmp rdx, 0x10
jb 0x1401834ab
inc rdx
mov rcx, qword [rbp + 0xa8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401834a5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1401834a5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14027b384
nop
xor edx, edx
lea r8d, [rdx + 0x6a]
lea rcx, [rbp - 0x1c]
call qword [sym.imp.VCRUNTIME140.dll_memset]
nop
mov r8, r13
lea rcx, [rsp + 0x34]
xor edx, edx
call qword [sym.imp.VCRUNTIME140.dll_memset]
jmp 0x140183503
mov rbx, qword [r15]
mov rdx, qword [rbx + 0x10c0]
lea r8, [rbp + 0x50]
cmp rdx, qword [rbx + 0x10c8]
je 0x1401834f4
call fcn.140194f9c
add qword [rbx + 0x10c0], 0x38
jmp 0x140183500
lea rcx, [rbx + 0x10b8]
call fcn.1401950bc
mov dil, r12b
lea rcx, [rbp + 0x70]
call fcn.1400af4c8
lea rcx, [rbp + 0x50]
call fcn.1400ac668
mov al, dil
mov rbx, qword [rsp + 0x340]
add rsp, 0x300
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret