Function at 0x140004fd0
Capabilities:
Create process on windows
Create process suspended
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x298
movaps xmmword [rsp + 0x230], xmm6
movaps xmmword [rsp + 0x240], xmm7
movaps xmmword [rsp + 0x250], xmm8
movaps xmmword [rsp + 0x260], xmm9
movaps xmmword [rsp + 0x270], xmm10
movaps xmmword [rsp + 0x280], xmm11
test rcx, rcx
je 0x140005240
mov eax, dword [rcx + 0x30]
test eax, eax
jle 0x140005240
lea rax, [rsp + 0x120]
mov rsi, qword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
mov dword [rsp + 0x5c], 0
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0xb4]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x2e0], rcx
jmp 0x1400050b0
call sym.rand
mov rdi, qword [rsp + 0x2e0]
cdq
idiv dword [rdi + 0x24]
lea ecx, [rdx + 0x64]
call rsi
mov rdi, qword [rsp + 0x2e0]
add dword [rsp + 0x5c], 1
mov eax, dword [rsp + 0x5c]
cmp dword [rdi + 0x30], eax
jle 0x140005240
call sym.rand
movsxd rcx, eax
movabs rax, 0x8888888888888889
mul rcx
shr rdx, 3
mov rax, rdx
shl rax, 4
sub rax, rdx
sub rcx, rax
lea rax, str.notepad.exe
mov r14, qword [rax + rcx*8]
call sym.rand
xor ecx, ecx
mov edi, eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
lea ecx, [rax - 0x190]
mov eax, edi
cdq
idiv ecx
mov ebp, edx
call sym.rand
mov ecx, 1
mov edi, eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
lea ecx, [rax - 0x12c]
mov eax, edi
cdq
idiv ecx
lea rcx, str.WINDIR
mov r12d, edx
call sym.getenv
mov r15, qword [rsp + 0x70]
mov edx, 0x104
mov qword [rsp + 0x20], r14
lea r8, str.start__d___s__cmd__c___s_
mov r9, rax
mov rcx, r15
call sym.snprintf
mov rdi, qword [rsp + 0x68]
mov rax, rbx
xor r9d, r9d
mov ecx, 0xc
movd xmm2, r12d
movd xmm0, ebp
mov dword [rsp + 0xb0], 0x68
xor r8d, r8d
punpckldq xmm0, xmm2
mov qword [rsp + 0x90], rbx
mov rdx, r15
mov qword [rsp + 0x98], rbx
rep stosq qword [rdi], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xa0], rbx
movq qword [rsp + 0xd0], xmm0
mov dword [rsp + 0xec], 4
mov dword [rdi], 0
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x10
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x140005080
mov ecx, 0x3e8
mov edi, 0xa
call rsi
nop dword [rax]
xor ecx, ecx
mov rdx, r14
call qword [sym.imp.USER32.dll_FindWindowA]
test rax, rax
jne 0x140005290
mov ecx, 0x64
call rsi
sub edi, 1
jne 0x1400051f8
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140005080
movaps xmm6, xmmword [rsp + 0x230]
xor eax, eax
movaps xmm7, xmmword [rsp + 0x240]
movaps xmm8, xmmword [rsp + 0x250]
movaps xmm9, xmmword [rsp + 0x260]
movaps xmm10, xmmword [rsp + 0x270]
movaps xmm11, xmmword [rsp + 0x280]
add rsp, 0x298
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r15, rax
call sym.rand
movsxd rdx, eax
mov r8d, eax
imul rdx, rdx, 0x66666667
sar r8d, 0x1f
sar rdx, 0x21
sub edx, r8d
lea edx, [rdx + rdx*4]
sub eax, edx
cmp eax, 4
ja case.default.0x1400052cc
lea rdx, [0x14000c374]
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
mov r14, qword [sym.imp.USER32.dll_SetWindowPos]
mov edi, 0x64
nop dword [rax]
lea eax, [rdi + rdi*2]
mov dword [rsp + 0x20], edi
add edi, 0xa
xor edx, edx
sar eax, 2
mov r9d, r12d
mov r8d, ebp
mov dword [rsp + 0x30], 0x40
mov rcx, r15
mov dword [rsp + 0x28], eax
call r14
mov ecx, 0x14
call rsi
cmp edi, 0x190
jne 0x1400052e0
jmp case.default.0x1400052cc
mov r14, qword [sym.imp.USER32.dll_SetWindowPos]
xor edi, edi
pxor xmm6, xmm6
movsd xmm0, qword [0x14000ce70]
movsd xmm8, qword [0x14000ce58]
movsd xmm7, qword [0x14000ceb8]
movsd xmm10, qword [0x14000cec0]
movsd xmm9, qword [0x14000cec8]
jmp 0x14000538c
pxor xmm11, xmm11
cvtsi2sd xmm11, edi
movapd xmm0, xmm11
mulsd xmm0, xmm10
call sym.sin
movapd xmm6, xmm0
movapd xmm0, xmm11
mulsd xmm0, xmm9
call sym.cos
mulsd xmm0, xmm8
add edi, 1
mov rcx, r15
mov dword [rsp + 0x30], 0x40
mulsd xmm6, xmm7
mov dword [rsp + 0x28], 0x12c
mov dword [rsp + 0x20], 0x190
cvttsd2si edx, xmm0
cvttsd2si eax, xmm6
lea r9d, [rdx + r12]
xor edx, edx
lea r8d, [rax + rbp]
call r14
mov ecx, 0x14
call rsi
cmp edi, 0x3c
jne 0x140005360
jmp case.default.0x1400052cc
mov r14, qword [sym.imp.USER32.dll_SetWindowPos]
mov edi, 0xa
nop dword [rax]
call sym.rand
mov r13d, eax
call sym.rand
mov ecx, r13d
mov dword [rsp + 0x30], 0x40
mov edx, eax
movsxd rax, r13d
sar ecx, 0x1f
mov dword [rsp + 0x28], 0x12c
imul rax, rax, 0x66666667
mov dword [rsp + 0x20], 0x190
sar rax, 0x23
sub eax, ecx
mov ecx, edx
lea eax, [rax + rax*4]
sar ecx, 0x1f
shl eax, 2
sub r13d, eax
movsxd rax, edx
imul rax, rax, 0x66666667
lea r9d, [r12 + r13 - 0xa]
sar rax, 0x23
sub eax, ecx
mov rcx, r15
lea eax, [rax + rax*4]
shl eax, 2
sub edx, eax
lea r8d, [rbp + rdx - 0xa]
xor edx, edx
call r14
mov ecx, 0x32
call rsi
sub edi, 1
jne 0x1400053f0
jmp case.default.0x1400052cc
mov r14, qword [sym.imp.USER32.dll_SetWindowPos]
xor edi, edi
pxor xmm1, xmm1
movsd xmm0, qword [0x14000ce70]
lea r13, [rsp + 0x88]
movsd xmm6, qword [0x14000cea8]
movsd xmm8, qword [0x14000ce88]
movsd xmm7, qword [0x14000ce90]
jmp 0x1400054f3
pxor xmm0, xmm0
cvtsi2sd xmm0, edi
mov rdx, r13
lea r8, [rsp + 0x80]
mulsd xmm0, xmm8
divsd xmm0, xmm7
call sym.sincos
movsd xmm0, qword [rsp + 0x80]
movsd xmm1, qword [rsp + 0x88]
mulsd xmm1, xmm6
add edi, 0xa
mov rcx, r15
mov dword [rsp + 0x30], 0x40
mulsd xmm0, xmm6
mov dword [rsp + 0x28], 0x12c
mov dword [rsp + 0x20], 0x190
cvttsd2si edx, xmm1
cvttsd2si eax, xmm0
lea r9d, [rdx + r12]
xor edx, edx
lea r8d, [rax + rbp]
call r14
mov ecx, 0x14
call rsi
cmp edi, 0x168
jne 0x1400054c0
jmp case.default.0x1400052cc
mov edx, 0xffffffec
mov rcx, r15
mov ebp, 0xff
call qword [sym.imp.USER32.dll_GetWindowLongPtrA]
mov edx, 0xffffffec
mov rcx, r15
or rax, 0x80000
mov r8, rax
call qword [sym.imp.USER32.dll_SetWindowLongPtrA]
mov rdi, qword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
nop dword [rax]
mov r8d, ebp
sub ebp, 5
xor edx, edx
mov r9d, 2
mov rcx, r15
call rdi
mov ecx, 0x14
call rsi
cmp ebp, 0x7d
jne 0x140005580
jmp case.default.0x1400052cc