Function at 0x180001000
Capabilities:
Encode data using xor

Disassembly:
push rbp
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x184e55008]
xor rax, rsp
mov qword [rbp - 8], rax
cmp edx, 1
jne 0x180001a8c
mov dword [0x185b66fff], 0xc7cacced
mov word [0x185b66ffb], 0xfdef
mov word [0x185b66ff8], 0xb4ee
mov byte [0x185b66ffa], 0xb0
mov dword [0x185b67004], 0xf178f0de
mov word [0x185b66ffd], 0xadae
mov byte [0x185b67003], 0xea
call fcn.180001ab0
test al, al
je 0x180001a8c
movzx r11d, byte [0x185b67001]
movzx r10d, byte [0x185b67002]
movzx eax, byte [0x185b66ff8]
xor word [0x185b64e40], ax
movzx eax, byte [0x185b66ff9]
xor word [0x185b64e42], ax
movzx eax, byte [0x185b67007]
xor word [0x185b64e5e], ax
xor word [0x185b6568e], ax
movzx r9d, byte [0x185b67003]
xor word [0x185b64e56], r9w
movzx r8d, byte [0x185b67004]
xor word [0x185b64e58], r8w
movzx r9d, byte [0x185b66ff8]
xor word [0x185b64e60], r9w
movzx r9d, byte [0x185b66ff9]
movzx eax, byte [0x185b66ff8]
movzx r8d, byte [0x185b66ff8]
xor word [0x185b65690], ax
xor word [0x185b64e62], r9w
xor word [0x185b65670], r8w
xor word [0x185b65672], r9w
movzx edx, byte [0x185b67005]
movzx ecx, byte [0x185b67006]
movzx eax, byte [0x185b66ff9]
movzx r9d, byte [0x185b67003]
movzx r8d, byte [0x185b67004]
xor word [0x185b65692], ax
xor word [0x185b64e52], r11w
xor word [0x185b64e54], r10w
xor word [0x185b64e5a], dx
xor word [0x185b64e5c], cx
xor word [0x185b64e72], r11w
xor word [0x185b64e74], r10w
xor word [0x185b65682], r11w
xor word [0x185b65684], r10w
xor word [0x185b65686], r9w
xor word [0x185b65688], r8w
xor word [0x185b6568a], dx
xor word [0x185b6568c], cx
mov qword [rsp + 0x130], rbx
movzx ebx, byte [0x185b67000]
xor word [0x185b64e50], bx
xor word [0x185b64e70], bx
xor word [0x185b65680], bx
mov qword [rsp + 0x138], rsi
movzx esi, byte [0x185b66ffe]
xor word [0x185b64e4c], si
xor word [0x185b64e6c], si
xor word [0x185b6567c], si
xor word [0x185b6569c], si
mov qword [rsp + 0x140], rdi
movzx edi, byte [0x185b66fff]
xor word [0x185b64e4e], di
xor word [0x185b64e6e], di
xor word [0x185b6567e], di
mov qword [rsp + 0x118], r12
movzx r12d, byte [0x185b66ffb]
xor word [0x185b64e46], r12w
xor word [0x185b64e66], r12w
xor word [0x185b65676], r12w
xor word [0x185b65696], r12w
mov qword [rsp + 0x110], r13
movzx r13d, byte [0x185b66ffa]
xor word [0x185b64e44], r13w
xor word [0x185b64e64], r13w
xor word [0x185b65674], r13w
xor word [0x185b65694], r13w
mov qword [rsp + 0x108], r14
movzx r14d, byte [0x185b66ffd]
xor word [0x185b64e4a], r14w
xor word [0x185b64e6a], r14w
xor word [0x185b6567a], r14w
xor word [0x185b6569a], r14w
mov qword [rsp + 0x100], r15
movzx r15d, byte [0x185b66ffc]
xor word [0x185b64e48], r15w
xor word [0x185b64e68], r15w
xor word [0x185b65678], r15w
xor word [0x185b65698], r15w
xor word [0x185b6569e], di
xor word [0x185b656aa], dx
lea r12, [0x185b64ed0]
xor word [0x185b656ac], cx
lea rdx, [0x185b66ff8]
xor word [0x185b656a0], bx
xor word [0x185b656a2], r11w
xor word [0x185b656a4], r10w
xor word [0x185b656a6], r9w
xor word [0x185b656a8], r8w
xor r15d, r15d
mov ecx, r15d
mov rax, rcx
and eax, 0xf
movzx eax, byte [rax + rdx]
xor word [r12 + rcx*2], ax
inc rcx
cmp rcx, 0x3a1
jb 0x180001321
mov rcx, 0xffffffffffffffff
mov dword [rbp - 0x54], r15d
mov rsi, rcx
mov dword [rbp - 0x64], r15d
mov dword [rbp - 0x44], r15d
lea r14, [0x185b64e40]
nop dword [rax]
inc rsi
cmp word [r14 + rsi*2], r15w
jne 0x180001360
add si, si
mov eax, 2
lea edi, [rsi + 2]
movzx ebx, di
mul rbx
cmovo rax, rcx
mov rcx, rax
call fcn.180002920
mov r8d, ebx
mov qword [rbp - 0x50], rax
xor edx, edx
mov rcx, rax
call fcn.18000a0f0
mov rcx, qword [rbp - 0x50]
mov r8d, ebx
mov rdx, r14
call fcn.180005f30
mov rcx, 0xffffffffffffffff
mov word [rbp - 0x58], si
mov r14, rcx
mov word [rbp - 0x56], di
lea r13, [0x185b65670]
inc r14
cmp word [r13 + r14*2], r15w
jne 0x1800013c0
add r14w, r14w
mov eax, 2
lea esi, [r14 + 2]
movzx edi, si
mul rdi
cmovo rax, rcx
mov rcx, rax
call fcn.180002920
mov r8d, edi
mov qword [rbp - 0x60], rax
xor edx, edx
mov rcx, rax
mov rbx, rax
call fcn.18000a0f0
mov r8d, edi
mov rdx, r13
mov rcx, rbx
call fcn.180005f30
mov rcx, 0xffffffffffffffff
mov word [rbp - 0x66], si
mov rsi, rcx
mov word [rbp - 0x68], r14w
nop
inc rsi
cmp word [r12 + rsi*2], r15w
jne 0x180001420
add si, si
mov eax, 2
lea edi, [rsi + 2]
movzx ebx, di
mul rbx
cmovo rax, rcx
mov rcx, rax
call fcn.180002920
mov r8d, ebx
mov qword [rbp - 0x40], rax
xor edx, edx
mov rcx, rax
call fcn.18000a0f0
mov rcx, qword [rbp - 0x40]
mov r8d, ebx
mov rdx, r12
call fcn.180005f30
lea r8, [rbp - 0x48]
mov word [rbp - 0x48], si
lea rdx, [rbp - 0x68]
mov word [rbp - 0x46], di
lea rcx, [rbp - 0x58]
call fcn.1800023e0
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x180001496
call fcn.180002900
mov qword [rbp - 0x50], r15
mov dword [rbp - 0x58], r15d
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x1800014a4
call fcn.180002900
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x1800014ba
call fcn.180002900
mov qword [rbp - 0x40], r15
mov dword [rbp - 0x48], r15d
lea rdx, [rbp - 0x68]
mov qword [rbp - 0x68], 0xfffffffffe8287c0
xor ecx, ecx
call qword [0x185b67040]
movzx r13d, byte [0x185b66ffa]
xor word [0x185b64e84], r13w
movzx r13d, byte [0x185b66ff8]
xor word [0x185b64ea0], r13w
movzx r13d, byte [0x185b66ff9]
movzx r14d, byte [0x185b66ffd]
movzx esi, byte [0x185b66ffe]
movzx ecx, byte [0x185b67006]
movzx eax, byte [0x185b66ff8]
xor word [0x185b64e80], ax
movzx eax, byte [0x185b66ff9]
xor word [0x185b64ea2], r13w
xor word [0x185b64e82], ax
movzx r13d, byte [0x185b66ffa]
movzx r12d, byte [0x185b66ffb]
movzx r15d, byte [0x185b66ffc]
movzx edi, byte [0x185b66fff]
movzx ebx, byte [0x185b67000]
movzx r11d, byte [0x185b67001]
movzx r10d, byte [0x185b67002]
movzx r9d, byte [0x185b67003]
movzx r8d, byte [0x185b67004]
movzx edx, byte [0x185b67005]
movzx eax, byte [0x185b67007]
xor word [0x185b64e8a], r14w
xor word [0x185b64e8c], si
xor word [0x185b64e9c], cx
xor word [0x185b64eaa], r14w
lea r14, [0x185b64e80]
xor word [0x185b64eac], si
xor word [0x185b64ebc], cx
mov rcx, 0xffffffffffffffff
xor word [0x185b64ea4], r13w
mov rsi, rcx
xor word [0x185b64e86], r12w
xor word [0x185b64e88], r15w
xor word [0x185b64e8e], di
xor word [0x185b64e90], bx
xor word [0x185b64e92], r11w
xor word [0x185b64e94], r10w
xor word [0x185b64e96], r9w
xor word [0x185b64e98], r8w
xor word [0x185b64e9a], dx
xor word [0x185b64e9e], ax
xor word [0x185b64ea6], r12w
xor word [0x185b64ea8], r15w
xor word [0x185b64eae], di
xor word [0x185b64eb0], bx
xor word [0x185b64eb2], r11w
xor word [0x185b64eb4], r10w
xor word [0x185b64eb6], r9w
xor word [0x185b64eb8], r8w
xor word [0x185b64eba], dx
xor word [0x185b64ebe], ax
xor r13d, r13d
mov dword [rbp - 0x34], r13d
nop dword [rax + rax]
inc rsi
cmp word [r14 + rsi*2], r13w
jne 0x180001670
add si, si
mov eax, 2
lea edi, [rsi + 2]
movzx ebx, di
mul rbx
cmovo rax, rcx
mov rcx, rax
call fcn.180002920
mov r8d, ebx
mov qword [rbp - 0x30], rax
xor edx, edx
mov rcx, rax
call fcn.18000a0f0
mov rcx, qword [rbp - 0x30]
mov r8d, ebx
mov rdx, r14
call fcn.180005f30
lea rbx, [0x184e55a40]
mov word [rbp - 0x38], si
mov r8d, 1
mov word [rbp - 0x36], di
mov r9d, 2
lea r11, [0x185b66ff8]
sub r8, rbx
sub r9, rbx
mov r10d, 3
mov rdx, r13
sub r10, rbx
nop dword [rax + rax]
lea rcx, [rdx + rbx]
mov rax, rdx
and eax, 0xf
add rdx, 4
movzx eax, byte [rax + r11]
xor byte [rcx], al
lea rax, [rcx + r8]
and eax, 0xf
movzx eax, byte [rax + r11]
xor byte [rcx + 1], al
lea rax, [rcx + r9]
and eax, 0xf
movzx eax, byte [rax + r11]
xor byte [rcx + 2], al
lea rax, [rcx + r10]
and eax, 0xf
movzx eax, byte [rax + r11]
xor byte [rcx + 3], al
cmp rdx, 0xd0f400
jb 0x1800016f0
mov dword [rsp + 0x50], r13d
lea rax, [rbp - 0x38]
mov qword [rsp + 0x48], r13
lea r9, [rbp - 0x18]
mov dword [rsp + 0x40], 0x20
lea r8, [rsp + 0x68]
mov dword [rsp + 0x38], 5
lea rcx, [rsp + 0x60]
xorps xmm0, xmm0
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0x80
mov edx, 0x120116
mov qword [rsp + 0x20], r13
mov qword [rsp + 0x68], 0x30
mov qword [rbp - 0x80], 0x40
movups xmmword [rbp - 0x18], xmm0
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], rax
movdqu xmmword [rbp - 0x78], xmm0
call qword [0x185b67058]
test eax, eax
jns 0x1800017bb
xor bl, bl
jmp 0x180001800
mov rcx, qword [rsp + 0x60]
lea rax, [rbp - 0x18]
mov qword [rsp + 0x40], r13
xor r9d, r9d
mov qword [rsp + 0x38], r13
xor r8d, r8d
mov dword [rsp + 0x30], 0xd0f400
xor edx, edx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call qword [0x185b67018]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
call qword [0x185b67048]
test ebx, ebx
setns bl
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x180001816
call fcn.180002900
mov qword [rbp - 0x30], r13
mov dword [rbp - 0x38], r13d
test bl, bl
je 0x180001a3a
lea rdx, [rbp - 0x68]
mov qword [rbp - 0x68], 0xfffffffffe8287c0
xor ecx, ecx
call qword [0x185b67040]
movzx r14d, byte [0x185b66ffa]
movzx esi, byte [0x185b66ffb]
movzx ecx, byte [0x185b67003]
movzx eax, byte [0x185b67004]
xor word [0x185b65630], ax
movzx eax, byte [0x185b67005]
xor word [0x185b65632], ax
movzx eax, byte [0x185b67006]
xor word [0x185b65634], ax
movzx r12d, byte [0x185b66ff8]
movzx r15d, byte [0x185b66ff9]
movzx edi, byte [0x185b66ffc]
movzx ebx, byte [0x185b66ffd]
movzx r11d, byte [0x185b66ffe]
movzx r10d, byte [0x185b66fff]
movzx r9d, byte [0x185b67000]
movzx r8d, byte [0x185b67001]
movzx edx, byte [0x185b67002]
xor word [0x185b6561c], r14w
xor word [0x185b6561e], si
xor word [0x185b6562e], cx
xor word [0x185b6563c], r14w
lea r14, [0x185b65618]
xor word [0x185b6563e], si
movzx eax, byte [0x185b67007]
xor word [0x185b65636], ax
xor word [0x185b65618], r12w
xor word [0x185b6561a], r15w
xor word [0x185b65620], di
xor word [0x185b65622], bx
xor word [0x185b65624], r11w
xor word [0x185b65626], r10w
xor word [0x185b65628], r9w
xor word [0x185b6562a], r8w
xor word [0x185b6562c], dx
xor word [0x185b65638], r12w
xor word [0x185b6563a], r15w
xor word [0x185b65640], di
xor word [0x185b65642], bx
xor word [0x185b65644], r11w
xor word [0x185b65646], r10w
xor word [0x185b65648], r9w
xor word [0x185b6564a], r8w
xor word [0x185b6564c], dx
xor word [0x185b6564e], cx
mov rcx, 0xffffffffffffffff
mov rsi, rcx
mov dword [rbp - 0x24], r13d
inc rsi
cmp word [r14 + rsi*2], r13w
jne 0x180001990
add si, si
mov eax, 2
lea edi, [rsi + 2]
movzx ebx, di
mul rbx
cmovo rax, rcx
mov rcx, rax
call fcn.180002920
mov r8d, ebx
mov qword [rbp - 0x20], rax
xor edx, edx
mov rcx, rax
call fcn.18000a0f0
mov rcx, qword [rbp - 0x20]
mov r8d, ebx
mov rdx, r14
call fcn.180005f30
lea r9, [rsp + 0x60]
mov word [rbp - 0x28], si
lea r8, [rbp - 0x28]
mov word [rbp - 0x26], di
xor edx, edx
mov qword [rsp + 0x60], r13
xor ecx, ecx
call qword [0x185b67028]
test eax, eax
js 0x180001a0a
mov rcx, qword [rsp + 0x60]
call qword [0x185b67020]
mov bl, 1
jmp 0x180001a0c
xor bl, bl
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x180001a22
call fcn.180002900
mov qword [rbp - 0x20], r13
mov dword [rbp - 0x28], r13d
test bl, bl
je 0x180001a3a
lea rdx, [rbp - 0x68]
mov qword [rbp - 0x68], 0xfffffffffe8287c0
xor ecx, ecx
call qword [0x185b67040]
mov r14, qword [rsp + 0x108]
mov eax, 1
mov r13, qword [rsp + 0x110]
mov r12, qword [rsp + 0x118]
mov rdi, qword [rsp + 0x140]
mov rsi, qword [rsp + 0x138]
mov rbx, qword [rsp + 0x130]
mov r15, qword [rsp + 0x100]
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1800028e0
add rsp, 0x120
pop rbp
ret
mov eax, 1
jmp 0x180001a77