Function at 0x7ff7ec5db3b0
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x380]
sub rsp, 0x480
xor r14d, r14d
mov dword [rbp + 0x3b0], r14d
mov ecx, 0x3e8
call qword [sym.imp.kernel32.dll_Sleep]
call fcn.7ff7ec5dbd90
call fcn.7ff7ec5c5450
mov rbx, rax
mov qword [rbp + 0x120], r14
mov qword [rbp + 0x130], r14
mov qword [rbp + 0x138], 0xf
lea r8d, [r14 + 0x28]
lea rdx, [0x7ff7ec6bd0d0]
lea rcx, [rbp + 0x120]
call fcn.7ff7ec5666c0
lea r8, [rbp + 0x120]
lea rdx, [rbp + 0xf0]
mov rcx, rbx
call fcn.7ff7ec5fe010
nop
movabs rax, 0xf08cf12147b18494
mov qword [rbp + 0x3b0], rax
mov rax, qword [rbp + 0x3b0]
mov qword [rsp + 0x70], rax
movabs rcx, 0xb0e58b6c36fd859a
mov qword [rbp + 0x3b0], rcx
mov rax, qword [rbp + 0x3b0]
mov qword [rsp + 0x78], rax
movabs rax, 0xf08cf121769fb4a5
mov qword [rbp + 0x3b0], rax
mov rax, qword [rbp + 0x3b0]
mov qword [rbp + 0x110], rax
mov qword [rbp + 0x3b0], rcx
mov rax, qword [rbp + 0x3b0]
mov qword [rbp + 0x118], rax
movdqa xmm0, xmmword [rsp + 0x70]
pxor xmm0, xmmword [rbp + 0x110]
movdqa xmmword [rsp + 0x70], xmm0
lea rcx, [rsp + 0x70]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x7ff7ec5db4c0
lea rcx, [rbp + 0xf0]
mov rbx, qword [rbp + 0xf0]
mov rdi, qword [rbp + 0x108]
cmp rdi, 0x10
cmovae rcx, rbx
mov r8, qword [rbp + 0x100]
cmp r8, rax
jne 0x7ff7ec5db508
lea rdx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x7ff7ec5db508
mov sil, 1
jmp 0x7ff7ec5dbd37
mov ecx, 0x20
call fcn.7ff7ec61e94c
mov rsi, rax
mov qword [rbp + 0x1a8], 0x11
mov edi, 0x1f
mov qword [rbp + 0x1b0], rdi
movups xmm0, xmmword [0x7ff7ec6bd100]
movups xmmword [rax], xmm0
movzx eax, byte [0x7ff7ec6bd110]
mov byte [rsi + 0x10], al
mov byte [rsi + 0x11], 0
mov qword [rbp + 0x198], rsi
call fcn.7ff7ec5c5450
mov rbx, rax
lea rax, [rbp - 0x40]
mov qword [rbp + 0x3b0], rax
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x28], r14
lea ecx, [rdi + 1]
call fcn.7ff7ec61e94c
mov qword [rbp - 0x40], rax
movups xmm0, xmmword [rsi]
movups xmmword [rax], xmm0
movzx ecx, word [rsi + 0x10]
mov word [rax + 0x10], cx
mov qword [rbp - 0x30], 0x11
mov qword [rbp - 0x28], rdi
mov qword [rbp + 0x140], r14
mov qword [rbp + 0x150], r14
mov qword [rbp + 0x158], 0xf
lea r8d, [rdi + 0x12]
lea rdx, [0x7ff7ec6bd118]
lea rcx, [rbp + 0x140]
call fcn.7ff7ec5666c0
nop
lea r8, [rbp - 0x40]
lea rdx, [rbp + 0x140]
mov rcx, rbx
call fcn.7ff7ec5fd8f0
test al, al
jne 0x7ff7ec5db606
mov dword [rsp + 0x28], 0x1388
mov word [rsp + 0x20], r14w
mov r9d, 0x1040
lea r8, [0x7ff7ec6ae234]
lea rdx, [0x7ff7ec6bd150]
xor ecx, ecx
call fcn.7ff7ec565a30
jmp 0x7ff7ec5dbcec
lea rcx, [rbp + 0x160]
call fcn.7ff7ec564910
mov rdi, rax
mov rcx, qword [rax + 0x10]
mov rdx, qword [rax + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 0xe
jb 0x7ff7ec5db65c
lea rax, [rcx + 0xe]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x7ff7ec5db63d
mov rax, qword [rdi]
lea rbx, [rax + rcx]
mov r8d, 0xe
lea rdx, [0x7ff7ec6bd170]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy_1
mov byte [rbx + 0xe], 0
jmp 0x7ff7ec5db67e
mov qword [rsp + 0x20], 0xe
lea r9, [0x7ff7ec6bd170]
xor r8d, r8d
lea edx, [r8 + 0xe]
mov rcx, rdi
call fcn.7ff7ec5636c0
mov rdi, rax
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r14
movups xmm0, xmmword [rdi]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rsp + 0x60], xmm1
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
lea rbx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae rbx, qword [rsp + 0x50]
lea rax, [0x7ff7ec66a728]
mov qword [rbp - 0x20], rax
lea rcx, [rbp + 0x88]
call qword [sym.imp.msvcp140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rbp + 0x3b0], 3
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x18]
lea rcx, [rbp - 0x20]
call qword [sym.imp.msvcp140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea rdi, [0x7ff7ec66a720]
mov qword [rbp + rcx - 0x20], rdi
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x24], edx
lea rax, [rbp - 0x18]
mov qword [rbp + 0x3c0], rax
lea rcx, [rbp - 0x18]
call qword [sym.imp.msvcp140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
lea rax, [0x7ff7ec66a6a0]
mov qword [rbp - 0x18], rax
mov byte [rbp + 0x64], 0
mov byte [rbp + 0x59], 0
lea rcx, [rbp - 0x18]
call qword [sym.imp.msvcp140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x68], r14
mov rax, qword [0x7ff7ec870378]
mov qword [rbp + 0x5c], rax
mov qword [rbp + 0x50], r14
mov r9d, 0x40
lea r8d, [r9 - 0x3e]
mov rdx, rbx
lea rcx, [rbp - 0x18]
call fcn.7ff7ec5dc6c0
test rax, rax
jne 0x7ff7ec5db79a
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x20]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [0x7ff7ec669400]
nop
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x20], rdi
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x24], edx
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x7ff7ec5db7f9
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff7ec5db7f4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff7ec5db7f4
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff7ec61e988
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], 0xf
mov byte [rsp + 0x50], 0
mov rdx, qword [rbp + 0x178]
cmp rdx, 0x10
jb 0x7ff7ec5db850
inc rdx
mov rcx, qword [rbp + 0x160]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff7ec5db84b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff7ec5db84b
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff7ec61e988
mov qword [rbp + 0x170], r14
mov qword [rbp + 0x178], 0xf
mov byte [rbp + 0x160], 0
cmp qword [rbp + 0x68], 0
je 0x7ff7ec5dba1a
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x270]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x104
lea rdx, [rbp + 0x270]
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleFileNameA]
lea rdx, [rbp + 0x270]
lea rcx, [rbp - 0x20]
call fcn.7ff7ec56beb0
cmp qword [rbp + 0x68], 0
je 0x7ff7ec5db9d9
mov rax, qword [rbp]
lea rcx, [rbp + 0x58]
cmp qword [rax], rcx
jne 0x7ff7ec5db8e1
mov r8, qword [rbp + 0x78]
mov rcx, qword [rbp + 0x70]
mov qword [rax], rcx
mov rax, qword [rbp + 0x20]
mov qword [rax], rcx
sub r8d, ecx
mov rax, qword [rbp + 0x38]
mov dword [rax], r8d
cmp qword [rbp + 0x50], 0
je 0x7ff7ec5db945
cmp byte [rbp + 0x59], 0
je 0x7ff7ec5db945
mov rax, qword [rbp - 0x18]
mov edx, 0xffffffff
lea rcx, [rbp - 0x18]
call qword [rax + 0x18]
cmp eax, 0xffffffff
jne 0x7ff7ec5db907
xor al, al
jmp 0x7ff7ec5db947
lea rax, [rbp + 0x3b8]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x1d8]
lea r8, [rbp + 0x1b8]
lea rdx, [rbp + 0x5c]
mov rcx, qword [rbp + 0x50]
call qword [sym.imp.msvcp140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x7ff7ec5db991
sub eax, 1
je 0x7ff7ec5db995
cmp eax, 2
je 0x7ff7ec5db941
xor al, al
jmp 0x7ff7ec5db947
mov byte [rbp + 0x59], 0
mov al, 1
lea rbx, [rbp - 0x18]
test al, al
cmove rbx, r14
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.ucrtbase.dll_fclose]
test eax, eax
cmovne rbx, r14
mov byte [rbp + 0x64], 0
mov byte [rbp + 0x59], 0
lea rcx, [rbp - 0x18]
call qword [sym.imp.msvcp140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x68], r14
mov rax, qword [0x7ff7ec870378]
mov qword [rbp + 0x5c], rax
mov qword [rbp + 0x50], r14
test rbx, rbx
jne 0x7ff7ec5dba1a
jmp 0x7ff7ec5db9fe
mov byte [rbp + 0x59], 0
lea rax, [rbp + 0x1b8]
mov rbx, qword [rbp + 0x3b8]
sub rbx, rax
je 0x7ff7ec5db9cd
mov r9, qword [rbp + 0x68]
mov r8, rbx
mov edx, 1
lea rcx, [rbp + 0x1b8]
call qword [sym.imp.ucrtbase.dll_fwrite]
cmp rbx, rax
je 0x7ff7ec5db9cd
xor al, al
jmp 0x7ff7ec5db947
cmp byte [rbp + 0x59], 0
sete al
jmp 0x7ff7ec5db947
mov byte [rbp + 0x64], 0
mov byte [rbp + 0x59], 0
lea rcx, [rbp - 0x18]
call qword [sym.imp.msvcp140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x68], r14
mov rax, qword [0x7ff7ec870378]
mov qword [rbp + 0x5c], rax
mov qword [rbp + 0x50], r14
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x20]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [0x7ff7ec669400]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x204], xmm0
movups xmmword [rbp + 0x214], xmm0
movups xmmword [rbp + 0x224], xmm0
movups xmmword [rbp + 0x234], xmm0
movups xmmword [rbp + 0x244], xmm0
movups xmmword [rbp + 0x254], xmm0
mov dword [rbp + 0x264], eax
mov dword [rbp + 0x200], 0x68
lea rcx, [rbp + 0x1d8]
call fcn.7ff7ec564910
mov rcx, rax
mov rdx, qword [rax + 0x10]
mov r8, qword [rax + 0x18]
mov rax, r8
sub rax, rdx
cmp rax, 1
jb 0x7ff7ec5dba98
lea rax, [rdx + 1]
mov qword [rcx + 0x10], rax
mov rax, rcx
cmp r8, 0x10
jb 0x7ff7ec5dba90
mov rax, qword [rcx]
mov word [rax + rdx], 0x2f
jmp 0x7ff7ec5dbab7
mov qword [rsp + 0x20], 1
lea r9, [0x7ff7ec6bd180]
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.7ff7ec5636c0
mov rcx, rax
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x68], r14
movups xmm0, xmmword [rcx]
movups xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rbp - 0x70], xmm1
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], 0xf
mov byte [rcx], 0
mov r8d, 0x11
mov rdx, rsi
lea rcx, [rbp - 0x80]
call fcn.7ff7ec566630
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x50], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 0x10
cmovae rdx, qword [rbp - 0x60]
lea rax, [rbp + 0x180]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x200]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.kernel32.dll_CreateProcessA]
test eax, eax
sete bl
mov rdx, qword [rbp - 0x48]
cmp rdx, 0x10
jb 0x7ff7ec5dbb9c
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff7ec5dbb97
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff7ec5dbb97
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff7ec61e988
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x48], 0xf
mov byte [rbp - 0x60], 0
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x7ff7ec5dbbea
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff7ec5dbbe5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff7ec5dbbe5
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff7ec61e988
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x68], 0xf
mov byte [rbp - 0x80], 0
mov rdx, qword [rbp + 0x1f0]
cmp rdx, 0x10
jb 0x7ff7ec5dbc3e
inc rdx
mov rcx, qword [rbp + 0x1d8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff7ec5dbc39
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff7ec5dbc39
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff7ec61e988
test bl, bl
je 0x7ff7ec5dbc6d
mov dword [rsp + 0x28], 0x1388
mov word [rsp + 0x20], r14w
mov r9d, 0x1040
lea r8, [0x7ff7ec6ae234]
lea rdx, [0x7ff7ec6bd188]
xor ecx, ecx
call fcn.7ff7ec565a30
jmp 0x7ff7ec5dbc9f
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x180]
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov rcx, qword [rbp + 0x180]
call qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, qword [rbp + 0x188]
call qword [sym.imp.kernel32.dll_CloseHandle]
call fcn.7ff7ec5dbd90
nop
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x20], rdi
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x24], edx
lea rcx, [rbp - 0x18]
call fcn.7ff7ec56c1c0
lea rcx, [rbp - 0x10]
call qword [sym.imp.msvcp140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x88]
call qword [0x7ff7ec6693f8]
mov rdi, qword [rbp + 0x1b0]
mov rsi, qword [rbp + 0x198]
cmp rdi, 0x10
jb 0x7ff7ec5dbd26
lea rdx, [rdi + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x7ff7ec5dbd1e
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff7ec5dbd1e
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.7ff7ec61e988
xor sil, sil
mov rdi, qword [rbp + 0x108]
mov rbx, qword [rbp + 0xf0]
cmp rdi, 0x10
jb 0x7ff7ec5dbd71
lea rdx, [rdi + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x7ff7ec5dbd69
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff7ec5dbd69
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.7ff7ec61e988
movzx eax, sil
add rsp, 0x480
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret