Function at 0x180166dac
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x57]
sub rsp, 0xb0
mov qword [rbp + 0xf], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov r14, r9
mov r12, r8
mov r15, rdx
xor r8d, r8d
mov edi, r8d
mov dword [rbp + 0x5f], r8d
mov esi, r8d
movsxd r13, ecx
lea r9d, [r8 + 1]
test ecx, ecx
je 0x180167407
mov dword [rbp - 0x6d], 0x14
mov eax, dword [rbp - 0x6d]
xor al, 0x2d
mov byte [rbp - 0x69], al
mov eax, dword [rbp - 0x6d]
add al, r9b
xor al, 0x76
mov byte [rbp - 0x68], al
xor eax, eax
mov byte [rbp - 0x67], al
mov al, byte [rbp - 0x69]
mov rdx, r8
mov al, byte [rbp + rdx - 0x69]
mov ecx, dword [rbp - 0x6d]
add cl, dl
xor cl, al
mov byte [rbp + rdx - 0x69], cl
add rdx, r9
cmp rdx, 2
jb 0x180166e23
mov byte [rbp - 0x67], r8b
lea rdx, [rbp - 0x69]
mov rcx, qword [r15 + rsi*8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcmp]
mov ebx, eax
xor edx, edx
lea r8d, [rdx + 3]
lea rcx, [rbp - 0x69]
call qword [sym.imp.VCRUNTIME140.dll_memset]
xor r9d, r9d
test ebx, ebx
jne 0x180166e7e
lea edx, [rbx + 1]
mov byte [0x1802b61ab], dl
mov byte [0x1802bd270], dl
mov byte [r12], dl
jmp 0x1801672b2
mov dword [rbp - 0x4d], 0x6f
mov eax, dword [rbp - 0x4d]
xor al, 0x2d
mov byte [rbp - 0x49], al
xor eax, eax
mov byte [rbp - 0x48], al
mov al, byte [rbp - 0x49]
mov al, byte [rbp - 0x49]
mov ecx, dword [rbp - 0x4d]
xor cl, al
mov byte [rbp - 0x49], cl
mov byte [rbp - 0x48], r9b
lea rdx, [rbp - 0x49]
mov rcx, qword [r15 + rsi*8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcmp]
mov ebx, eax
xor edx, edx
lea r8d, [rdx + 2]
lea rcx, [rbp - 0x49]
call qword [sym.imp.VCRUNTIME140.dll_memset]
xor r9d, r9d
test ebx, ebx
jne 0x180166ed9
lea edx, [rbx + 1]
mov byte [0x1802b61ae], dl
jmp 0x1801672b2
mov dword [rbp - 0x65], 0x7d
mov eax, dword [rbp - 0x65]
xor al, 0x2d
mov byte [rbp - 0x61], al
mov eax, dword [rbp - 0x65]
mov r8d, 1
add al, r8b
xor al, 0x71
mov byte [rbp - 0x60], al
xor eax, eax
mov byte [rbp - 0x5f], al
mov al, byte [rbp - 0x61]
mov rdx, r9
mov al, byte [rbp + rdx - 0x61]
mov ecx, dword [rbp - 0x65]
add cl, dl
xor cl, al
mov byte [rbp + rdx - 0x61], cl
add rdx, r8
cmp rdx, 2
jb 0x180166f04
mov byte [rbp - 0x5f], r9b
lea rdx, [rbp - 0x61]
mov rcx, qword [r15 + rsi*8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcmp]
mov ebx, eax
xor edx, edx
lea r8d, [rdx + 3]
lea rcx, [rbp - 0x61]
call qword [sym.imp.VCRUNTIME140.dll_memset]
xor r9d, r9d
test ebx, ebx
jne 0x180166f5e
lea edx, [rbx + 1]
mov byte [0x1802b61a2], dl
mov byte [0x1802bd272], dl
mov byte [r14], dl
jmp 0x1801672b2
mov dword [rbp - 0x5d], 3
mov eax, dword [rbp - 0x5d]
xor al, 0x2d
mov byte [rbp - 0x59], al
mov eax, dword [rbp - 0x5d]
mov r8d, 1
add al, r8b
xor al, 0x66
mov byte [rbp - 0x58], al
xor eax, eax
mov byte [rbp - 0x57], al
mov al, byte [rbp - 0x59]
or edi, r8d
mov rdx, r9
mov al, byte [rbp + rdx - 0x59]
mov ecx, dword [rbp - 0x5d]
add cl, dl
xor cl, al
mov byte [rbp + rdx - 0x59], cl
add rdx, r8
cmp rdx, 2
jb 0x180166f8c
mov byte [rbp - 0x57], r9b
lea rdx, [rbp - 0x59]
mov rcx, qword [r15 + rsi*8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcmp]
xor r14d, r14d
test eax, eax
jne 0x180166fdf
lea rbx, [rsi + 1]
cmp rbx, r13
jae 0x180166fdf
mov rcx, qword [r15 + rsi*8 + 8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
lea ecx, [r14 + 1]
cmp rax, rcx
jne 0x180166fdf
mov r14b, cl
jmp 0x180166fe3
lea rbx, [rsi + 1]
and edi, 0xfffffffe
xor edx, edx
lea r8d, [rdx + 3]
lea rcx, [rbp - 0x59]
call qword [sym.imp.VCRUNTIME140.dll_memset]
xor r9d, r9d
test r14b, r14b
je 0x180167013
mov rax, qword [r15 + rsi*8 + 8]
mov cl, byte [rax]
mov rax, qword [rbp + 0x7f]
mov byte [rax], cl
mov rsi, rbx
jmp 0x1801672a9
mov byte [rbp + 0x5f], 0x33
mov byte [rbp + 0x60], 0x6c
mov byte [rbp + 0x61], r9b
mov al, byte [rbp + 0x5f]
mov rcx, r9
mov al, byte [rbp + rcx + 0x5f]
sub al, 6
mov byte [rbp + rcx + 0x5f], al
inc rcx
cmp rcx, 2
jb 0x180167025
lea rdx, [rbp + 0x5f]
mov rcx, qword [r15 + rsi*8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcmp]
xor r14d, r14d
test eax, eax
jne 0x180167069
cmp rbx, r13
jae 0x180167069
mov rcx, qword [r15 + rsi*8 + 8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
lea ecx, [r14 + 1]
cmp rax, rcx
jbe 0x180167069
mov r14b, cl
and edi, 0xfffffffd
xor edx, edx
lea r8d, [rdx + 3]
lea rcx, [rbp + 0x5f]
call qword [sym.imp.VCRUNTIME140.dll_memset]
xor r9d, r9d
test r14b, r14b
je 0x180167090
mov rax, qword [rbp + 0x7f]
mov byte [rax], 0x78
jmp 0x18016700b
mov dword [rbp - 0x45], 0x64
mov byte [rbp - 0x41], 0x49
mov byte [rbp - 0x40], 8
xor eax, eax
mov byte [rbp - 0x3f], al
mov al, byte [rbp - 0x41]
mov rdx, r9
mov al, byte [rbp + rdx - 0x41]
mov ecx, dword [rbp - 0x45]
xor cl, al
mov byte [rbp + rdx - 0x41], cl
inc rdx
cmp rdx, 2
jb 0x1801670aa
mov byte [rbp - 0x3f], r9b
lea rdx, [rbp - 0x41]
mov rcx, qword [r15 + rsi*8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcmp]
xor r14d, r14d
test eax, eax
jne 0x1801670f0
cmp rbx, r13
jae 0x1801670f0
mov rcx, qword [r15 + rsi*8 + 8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
test rax, rax
mov bl, 1
jne 0x1801670f3
mov bl, r14b
and edi, 0xfffffffb
xor edx, edx
lea r8d, [rdx + 3]
lea rcx, [rbp - 0x41]
call qword [sym.imp.VCRUNTIME140.dll_memset]
xor r9d, r9d
test bl, bl
je 0x1801672a9
mov rdx, qword [r15 + rsi*8 + 8]
xorps xmm0, xmm0
movups xmmword [rbp - 0x31], xmm0
mov qword [rbp - 0x21], r9
mov qword [rbp - 0x19], r9
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], r9b
jne 0x180167129
lea rcx, [rbp - 0x31]
call fcn.18007b70c
nop
mov r14, qword [rbp - 0x21]
lea rcx, [rbp - 0x31]
cmp qword [rbp - 0x19], 0x10
setae r12b
mov rbx, qword [rbp - 0x31]
cmovae rcx, rbx
mov r8, r14
mov eax, 1
cmp r14, rax
cmova r8, rax
lea rdx, [0x1802805b4]
call sub.VCRUNTIME140.dll_memcmp
xor ecx, ecx
test eax, eax
jne 0x180167188
lea eax, [rcx + 1]
cmp r14, rax
jne 0x180167188
mov eax, ecx
test eax, eax
je 0x18016724f
lea rax, [rbp - 0x31]
test r12b, r12b
je 0x180167197
lea r8, [r14 + rbx]
jmp 0x18016719f
lea r8, [rax + r14]
lea rbx, [rbp - 0x31]
xorps xmm0, xmm0
movups xmmword [rbp - 0x11], xmm0
mov qword [rbp - 1], rcx
mov qword [rbp + 7], rcx
cmp rbx, r8
jne 0x1801671c5
mov qword [rbp + 7], 7
mov word [rbp - 0x11], cx
lea r8, [rbp - 0x11]
jmp 0x1801671e5
mov r9, r8
sub r9, rbx
mov rdx, rbx
lea rcx, [rbp - 0x11]
call fcn.1800963e0
lea r8, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae r8, qword [rbp - 0x11]
mov edx, 0x104
lea r9d, [rdx - 1]
lea rcx, [0x1802bd2b0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov rdx, qword [rbp + 7]
cmp rdx, 8
jb 0x18016723b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180167236
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180167425
call fcn.180269534
xor r14d, r14d
mov qword [rbp - 1], r14
mov qword [rbp + 7], 7
mov word [rbp - 0x11], r14w
xor ecx, ecx
call fcn.18014e6c4
nop
mov rdx, qword [rbp - 0x19]
cmp rdx, 0x10
jb 0x180167292
inc rdx
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18016728d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18016742c
call fcn.180269534
xor r9d, r9d
mov qword [rbp - 0x21], r9
mov qword [rbp - 0x19], 0xf
mov byte [rbp - 0x31], r9b
mov r12, qword [rbp + 0x6f]
mov edx, 1
mov r14, qword [rbp + 0x77]
mov byte [rbp - 0x71], 0x35
mov byte [rbp - 0x70], 0x70
mov byte [rbp - 0x6f], r9b
mov al, byte [rbp - 0x71]
or edi, 8
mov rcx, r9
mov al, byte [rbp + rcx - 0x71]
sub al, 8
mov byte [rbp + rcx - 0x71], al
add rcx, rdx
cmp rcx, 2
jb 0x1801672c7
lea rdx, [rbp - 0x71]
mov rcx, qword [r15 + rsi*8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcmp]
xor ebx, ebx
test eax, eax
je 0x1801673a6
mov dword [rbp - 0x3d], 0x75
mov byte [rbp - 0x39], 0x58
mov byte [rbp - 0x38], 0x58
mov byte [rbp - 0x37], 0x1d
mov byte [rbp - 0x36], 0x10
mov byte [rbp - 0x35], 0x19
mov byte [rbp - 0x34], 5
xor eax, eax
mov byte [rbp - 0x33], al
mov al, byte [rbp - 0x39]
or edi, 0x10
mov edx, ebx
lea ebx, [rdx + 1]
mov al, byte [rbp + rdx - 0x39]
mov ecx, dword [rbp - 0x3d]
xor cl, al
mov byte [rbp + rdx - 0x39], cl
add rdx, rbx
cmp rdx, 6
jb 0x180167321
xor ebx, ebx
mov byte [rbp - 0x33], bl
lea rdx, [rbp - 0x39]
mov rcx, qword [r15 + rsi*8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcmp]
test eax, eax
je 0x1801673a6
mov dword [rbp - 0x55], 0x10
mov eax, dword [rbp - 0x55]
xor al, 0x2f
mov byte [rbp - 0x51], al
mov eax, dword [rbp - 0x55]
lea r8d, [rbx + 1]
add al, r8b
xor al, 0x3f
mov byte [rbp - 0x50], al
xor eax, eax
mov byte [rbp - 0x4f], al
mov al, byte [rbp - 0x51]
or edi, 0x20
mov edx, ebx
mov al, byte [rbp + rdx - 0x51]
mov ecx, dword [rbp - 0x55]
add cl, dl
xor cl, al
mov byte [rbp + rdx - 0x51], cl
add rdx, r8
cmp rdx, 2
jb 0x180167379
mov byte [rbp - 0x4f], bl
lea rdx, [rbp - 0x51]
mov rcx, qword [r15 + rsi*8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcmp]
test eax, eax
jne 0x1801673ab
mov ebx, 1
test dil, 0x20
je 0x1801673c4
and edi, 0xffffffdf
xor edx, edx
lea r8d, [rdx + 3]
lea rcx, [rbp - 0x51]
call qword [sym.imp.VCRUNTIME140.dll_memset]
test dil, 0x10
je 0x1801673dd
and edi, 0xffffffef
xor edx, edx
lea r8d, [rdx + 7]
lea rcx, [rbp - 0x39]
call qword [sym.imp.VCRUNTIME140.dll_memset]
and edi, 0xfffffff7
xor edx, edx
lea r8d, [rdx + 3]
lea rcx, [rbp - 0x71]
call qword [sym.imp.VCRUNTIME140.dll_memset]
xor r8d, r8d
test bl, bl
jne 0x180167433
lea r9d, [r8 + 1]
add rsi, r9
cmp rsi, r13
jb 0x180166dfe
mov al, r9b
mov rbx, qword [rsp + 0xf8]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
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
call fcn.18015132c
xor al, al
jmp 0x18016740a