Function at 0x140001af0
Capabilities:
Access peb ldr_data
Encode data using xor
Encrypt data using rc4 via systemfunction032
Get ntdll base address
Get process filename
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x270
xor r13d, r13d
mov rsi, rcx
movzx ecx, byte [rcx]
xorps xmm0, xmm0
mov qword [rsp + 0x61], r13
mov r14, r9
mov r15, r8
mov r12, rdx
mov edi, r13d
movdqu xmmword [rsp + 0x51], xmm0
cmp cl, 0x9f
je 0x140001b4d
nop word [rax + rax]
inc edi
mov eax, ecx
xor eax, edi
cmp eax, 0x9f
jne 0x140001b40
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8d, 0x400
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x140001bba
mov r8d, edi
lea rdx, str._i__Calculated_b_to_be_:_0x_0.2X__n
mov rcx, rax
call qword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 0xfffffff5
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
xor r9d, r9d
mov qword [rsp + 0x20], r13
mov rcx, rax
mov r8d, ebx
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rax, [rsp + 0x50]
mov ecx, r13d
sub rsi, rax
lea rdx, [rsp + 0x50]
nop word [rax + rax]
movzx eax, dil
xor al, byte [rsi + rdx]
lea rdx, [rdx + 1]
sub al, cl
inc ecx
mov byte [rdx - 1], al
cmp ecx, 0x19
jl 0x140001bd0
mov dword [rsp + 0x30], r15d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x34], r15d
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x44], r14d
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rsi, qword [rcx + 0x20]
test rsi, rsi
je 0x140001db8
mov ebp, 0x104
nop dword [rax]
movzx eax, word [rsi + 0x48]
test ax, ax
je 0x140001db8
cmp ax, bp
jae 0x140001db8
mov rax, qword [rsi + 0x50]
mov ebx, r13d
cmp word [rax], bx
je 0x140001c80
mov rdi, r13
mov rcx, r13
nop dword [rax + rax]
movzx ecx, byte [rcx + rax]
call fcn.140002cf0
inc ebx
mov byte [rsp + rdi + 0x70], al
mov rax, qword [rsi + 0x50]
mov edi, ebx
lea rcx, [rbx + rbx]
cmp word [rcx + rax], r13w
jne 0x140001c60
mov eax, ebx
lea rcx, [rsp + 0x70]
mov byte [rsp + rax + 0x70], r13b
call fcn.140001450
cmp eax, 0x8c90ae2b
je 0x140001ca5
mov rsi, qword [rsi]
test rsi, rsi
jne 0x140001c30
jmp 0x140001db8
mov rsi, qword [rsi + 0x20]
test rsi, rsi
je 0x140001db8
mov eax, 0x5a4d
cmp word [rsi], ax
jne 0x140001db8
movsxd rax, dword [rsi + 0x3c]
add rax, rsi
cmp dword [rax], 0x4550
jne 0x140001db8
movups xmm0, xmmword [rax + 0x18]
lea rcx, [rsp + 0x180]
mov ebx, r13d
movups xmm1, xmmword [rax + 0x28]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax + 0x38]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x48]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x58]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rax + 0x68]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rax + 0x78]
movups xmmword [rcx + 0x50], xmm1
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax + 0x88]
sub rax, 0xffffffffffffff68
movups xmmword [rcx - 0x10], xmm0
movups xmm1, xmmword [rax]
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rcx], xmm1
movups xmm1, xmmword [rax + 0x20]
movups xmmword [rcx + 0x10], xmm0
movups xmm0, xmmword [rax + 0x30]
movups xmmword [rcx + 0x20], xmm1
movups xmm1, xmmword [rax + 0x40]
movups xmmword [rcx + 0x30], xmm0
movups xmm0, xmmword [rax + 0x50]
movups xmmword [rcx + 0x40], xmm1
movups xmm1, xmmword [rax + 0x60]
movups xmmword [rcx + 0x50], xmm0
movups xmmword [rcx + 0x60], xmm1
mov ebp, dword [rsp + 0x1f0]
add rbp, rsi
mov r14d, dword [rbp + 0x20]
mov r15d, dword [rbp + 0x1c]
add r14, rsi
mov r12d, dword [rbp + 0x24]
add r15, rsi
add r12, rsi
cmp dword [rbp + 0x14], ebx
jbe 0x140001db8
nop word [rax + rax]
mov eax, ebx
mov ecx, dword [r14 + rax*4]
movzx eax, word [r12 + rax*2]
add rcx, rsi
mov edi, dword [r15 + rax*4]
add rdi, rsi
call fcn.140001450
cmp eax, 0x2b93e5ea
je 0x140001dbb
inc ebx
cmp ebx, dword [rbp + 0x14]
jb 0x140001d90
mov rdi, r13
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8d, 0x400
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x140001e28
mov r8, rdi
lea rdx, str.____SystemFunction032_Loading:__p_n
mov rcx, rax
call qword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 0xfffffff5
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
xor r9d, r9d
mov qword [rsp + 0x20], r13
mov rcx, rax
mov r8d, ebx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call sub.ADVAPI32.dll_SystemFunction032
mov ebx, eax
test eax, eax
je 0x140001eae
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8d, 0x400
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x140001eaa
mov r8d, ebx
lea rdx, str.____SystemFunction032_FAILED_With_Error_:_0x_0.8X_n
mov rcx, rax
call qword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 0xfffffff5
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
xor r9d, r9d
mov qword [rsp + 0x20], r13
mov rcx, rax
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
jmp 0x140001f1d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8d, 0x400
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x140001f18
lea rdx, str.___DECRYPTED_n
mov rcx, rax
call qword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 0xfffffff5
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
xor r9d, r9d
mov qword [rsp + 0x20], r13
mov rcx, rax
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 1
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret