Function at 0x140001430
Capabilities:
Execute command
Generate random numbers via winapi
Write and execute a file
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp - 8], rax
lea rcx, [0x140004484]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
and dword [rbp - 0x38], 0x7fffffff
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1400014a3
lea rdx, str.CryptAcquireContext_failed__ros:five_ID_generation_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002040
mov rcx, rax
lea rdx, [0x140002210]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea r8, [rbp - 0x38]
mov edx, 4
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x1400014dd
lea rdx, str.CryptGenRandom_failed__ros:five_ID_generation_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002040
mov rcx, rax
lea rdx, [0x140002210]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor edx, edx
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp dword [rbp - 0x38], 0
jne 0x140001522
lea rdx, str.ros:five_ID_generation_generated_a_null_ID_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002040
mov rcx, rax
lea rdx, [0x140002210]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140001631
xor eax, eax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], 0xf
mov byte [rbp - 0x30], al
lea r8d, [rax + 0x2c]
lea rcx, [rbp - 0x30]
call fcn.140001ea0
nop
mov rcx, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 0xa
jb 0x14000158c
lea rax, [rcx + 0xa]
mov qword [rbp - 0x20], rax
lea rbx, [rbp - 0x30]
cmp rdx, 0x10
cmovae rbx, qword [rbp - 0x30]
add rbx, rcx
mov r8d, 0xa
lea rdx, str.ros_id.dat
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0xa], 0
jmp 0x1400015a3
mov qword [rsp + 0x20], 0xa
mov edx, 0xa
lea rcx, [rbp - 0x30]
call fcn.1400023b0
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rdx, qword [rbp - 0x30]
lea r8, [0x140004480]
lea rcx, [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov r9, qword [rbp - 0x40]
mov edx, 1
lea r8d, [rdx + 3]
lea rcx, [rbp - 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x140001631
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000162c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000162c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000277c
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140002720
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rbp
ret