Function at 0x140180ece
Capabilities:
Check for peb beingdebugged flag
Encode data using xor

Disassembly:
mov rax, qword [0x14017a441]
mov rdx, qword [rbp + 0x160]
add rdx, qword [0x1400071de]
mov qword [rbp + rdx*8 + 0x1a0], rax
mov eax, dword [rbp + 0x13c]
test al, 2
je 0x1401812a5
jmp 0x1401d3079
mov dword [rbp + 0x98], 1
jmp 0x14000fd4d
mov eax, dword [rbp + 0x98]
test eax, eax
je 0x14017e20b
jmp 0x140053614
mov eax, dword [rbp + 0x13c]
test al, 8
je 0x14017c986
jmp 0x1401f35da
and dword [rbp + 0x13c], 0xffffffdf
jmp 0x1401f010d
mov eax, dword [0x140189faa]
test eax, eax
je 0x14017e20b
jmp 0x14000ff36
mov eax, dword [rbp + 0x13c]
test eax, eax
jne 0x14017e20b
jmp 0x140175dcf
mov eax, dword [rbp + 0x13c]
add eax, eax
mov dword [rbp + 0x13c], eax
mov eax, dword [rbp + 0x13c]
mov edx, dword [rbp + 0x144]
test edx, eax
je 0x140175c2c
jmp 0x1401cae16
mov eax, dword [0x1401f09f9]
mov dword [0x1400194ba], eax
mov rax, qword [0x1401d2f7a]
mov rdx, qword [rbp + 0x160]
add rdx, qword [0x14017c9a1]
mov qword [rbp + rdx*8 + 0x1a0], rax
mov rbx, qword [rbp + 0x170]
lea rsp, [rbp + 0x190]
pop rbp
ret
mov eax, dword [rbp + 0x13c]
add eax, eax
mov dword [rbp + 0x13c], eax
mov eax, dword [rbp + 0x13c]
mov edx, dword [rbp + 0x144]
test edx, eax
jne 0x1401f36e9
jmp 0x140175c2c
push rax
pushfq
pop rax
mov qword [rbp + 0x110], rax
pop rax
mov rax, qword [rbp + 0x110]
test rax, 0x100
jne 0x14017e20b
jmp 0x14017ec13
mov rax, qword [rbp + 0x20]
test rax, rax
jne 0x14000d4e1
jmp 0x1400103a5
mov eax, dword [rbp + 0x13c]
test al, 0x10
je 0x1401f501a
jmp 0x1401f48d2
mov dword [rbp + 0x17c], eax
mov eax, dword [rbp + 0x17c]
test eax, eax
je 0x140175dcf
jmp 0x1401c5971
mov rax, qword [0x14017a441]
mov rdx, qword [rbp + 0x160]
add rdx, qword [0x1400071de]
mov qword [rbp + rdx*8 + 0x1a0], rax
mov rax, qword [rbp + 0x158]
lea rdx, [rbp + 0x1a0]
mov rcx, rax
call fcn.140007805
jmp 0x14017cd16
mov eax, dword [rbp + 0x13c]
test al, 1
je 0x14000747c
jmp 0x14017a5d3
mov eax, dword [rbp + 0x138]
mov edx, dword [rbp + 0x178]
mov dword [rbp + 0x128], edx
xor edx, edx
mov ecx, dword [rbp + 0x128]
div ecx
mov dword [rbp + 0x140], edx
mov eax, dword [rbp + 0x140]
test eax, eax
ja 0x140178aac
jmp 0x140001015
and dword [rbp + 0x13c], 0xfffffffe
jmp 0x14000747c
mov qword [rbp + 0x78], rax
mov rax, qword [rbp + 0x78]
mov qword [rbp + 0x70], rax
push rax
lea rax, [rbp + 0x68]
ud2
mov eax, dword [rbp + 0x178]
test eax, eax
je 0x14017e20b
jmp 0x1401d444b
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x30]
mov qword [rbp + 0x28], rax
push rax
lea rax, [rbp + 0x20]
int 0x2d
jmp 0x1401ca61b
push rbp
sub rsp, 0x1c0
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x170], rbx
mov qword [rbp + 0x1a0], rcx
xor eax, eax
mov qword [rbp + 0x148], rax
xor edx, edx
mov dword [rbp + 0x180], edx
mov dword [rbp + 0x184], edx
mov qword [rbp + 0x150], rax
mov edx, dword [0x1401aa3fc]
mov edx, edx
neg rdx
lea rcx, [fcn.140180ece]
lea rdx, [rcx + rdx]
mov qword [rbp + 0x158], rdx
mov qword [rbp + 0x160], rax
lea rax, [rbp + 0x1a8]
mov qword [rbp + 0x168], rax
mov rax, qword [rbp + 0x168]
mov rax, qword [rax]
cmp rax, 0x18
jne 0x1401aa176
jmp 0x1401f8827
mov eax, dword [rbp + 0x13c]
test al, 4
je 0x14002ecb1
jmp 0x14002a536
mov rax, qword [0x14017a215]
mov rdx, qword [rbp + 0x160]
add rdx, qword [0x1401d30f8]
mov qword [rbp + rdx*8 + 0x1a0], rax
mov eax, dword [0x140189faa]
test eax, eax
jne 0x140174cce
jmp 0x1401c7afb
mov rbx, qword [rbp + 0x170]
lea rsp, [rbp + 0x190]
pop rbp
ret
mov dword [rbp + 0x178], 7
mov dword [rbp + 0x144], 0xff
jmp 0x14017fe86
pop rax
mov rax, qword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov rdx, qword [rbp + 0x28]
mov rcx, rdx
call rax
jmp 0x14017a7f8
jmp 0x1401f36e9
xor eax, eax
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], rax
mov rax, qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
lea rdx, [0x140179550]
mov ecx, 1
call rax
jmp 0x14017ff4a
mov eax, dword [0x14017e350]
neg eax
add eax, dword [0x14017b6e1]
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov eax, dword [rax]
mov dword [rbp + 0x138], eax
movzx eax, word [rbp + 0x13a]
or eax, dword [rbp + 0x138]
mov dword [rbp + 0x138], eax
mov eax, dword [rbp + 0x138]
mov edx, 0x1f
mov dword [rbp + 0x120], edx
xor edx, edx
mov ecx, dword [rbp + 0x120]
div ecx
mov dword [rbp + 0x138], edx
mov dword [rbp + 0x13c], 1
mov eax, dword [rbp + 0x13c]
mov edx, dword [rbp + 0x144]
test edx, eax
jne 0x14017e5f7
jmp 0x14000610a
mov eax, dword [rbp + 0x13c]
test al, 0x40
je 0x140174d88
jmp 0x1401f38fb
add dword [rbp + 0x140], 0xffffffff
mov eax, dword [rbp + 0x140]
test eax, eax
jbe 0x14017e458
jmp 0x140178aac
mov qword [rbp + 0x10], 0
mov qword [rbp], 1
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rdx, [0x14017b6e9]
mov rcx, rdx
call rax
jmp 0x1401f7ea4
xor eax, eax
mov qword [rbp + 0x68], rax
mov qword [rbp + 0x70], rax
mov rax, qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
lea rdx, [0x1401c5e41]
mov ecx, 1
call rax
jmp 0x14017ec37
mov eax, dword [rbp + 0x13c]
test al, 0x20
je 0x1401f010d
jmp 0x1401caecc
mov qword [rbp + 0x18], rax
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x10], rax
push 0
push 0
int3
mov qword [rbp + 0x160], 1
jmp 0x1401aa176