Function at 0x180022250
Capabilities:
Generate random numbers via winapi
Query environment variable

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xd8]
sub rsp, 0x1d8
mov r12, rcx
xor ebx, ebx
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rbx
mov qword [rcx + 0x18], 0xf
mov byte [rcx], bl
movups xmmword [rcx + 0x20], xmm0
mov qword [rcx + 0x30], rbx
mov qword [rcx + 0x38], 0xf
mov byte [rcx + 0x20], bl
lea r13, [rcx + 0x40]
movups xmmword [r13], xmm0
mov qword [r13 + 0x10], rbx
mov qword [r13 + 0x18], 0xf
mov byte [r13], bl
movups xmmword [rcx + 0x60], xmm0
mov qword [rcx + 0x70], rbx
mov qword [rcx + 0x78], 0xf
mov byte [rcx + 0x60], bl
movups xmmword [rcx + 0x80], xmm0
mov qword [rcx + 0x90], rbx
mov qword [rcx + 0x98], 0xf
mov byte [rcx + 0x80], bl
movups xmmword [rcx + 0xa0], xmm0
mov qword [rcx + 0xb0], rbx
mov qword [rcx + 0xb8], 0xf
mov byte [rcx + 0xa0], bl
movups xmmword [rcx + 0xc0], xmm0
mov qword [rcx + 0xd0], 0xe
mov qword [rcx + 0xd8], 0xf
movsd xmm0, qword [str.DESKTOP_MATLAB]
movsd qword [rcx + 0xc0], xmm0
mov eax, dword [0x1800331d0]
mov dword [rcx + 0xc8], eax
movzx eax, word [0x1800331d4]
mov word [rcx + 0xcc], ax
mov byte [rcx + 0xce], bl
xorps xmm0, xmm0
movups xmmword [rcx + 0xe0], xmm0
mov qword [rcx + 0xf0], rbx
mov qword [rcx + 0xf8], 0xf
mov byte [rcx + 0xe0], bl
movups xmmword [rcx + 0x100], xmm0
mov qword [rcx + 0x110], rbx
mov qword [rcx + 0x118], 0xf
mov byte [rcx + 0x100], bl
mov word [rcx + 0x121], bx
movups xmmword [rcx + 0x128], xmm0
mov qword [rcx + 0x138], rbx
mov qword [rcx + 0x140], 0xf
mov byte [rcx + 0x128], bl
movups xmmword [rcx + 0x148], xmm0
mov qword [rcx + 0x158], rbx
mov qword [rcx + 0x160], 0xf
mov byte [rcx + 0x148], bl
movups xmmword [rcx + 0x168], xmm0
mov qword [rcx + 0x178], rbx
mov qword [rcx + 0x180], 0xf
mov byte [rcx + 0x168], bl
mov qword [rcx + 0x188], rbx
mov qword [rcx + 0x190], rbx
lea rcx, str.MW_DDUX_LOG_USER_SESSIONS_ONLY
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
lea rdx, [rbp + 0x128]
mov rcx, rax
call qword [sym.imp.ddux_loggingapi.dll_bool___cdecl_ddux::util::charsToBool_char____ptr64__bool____ptr64_]
mov byte [r12 + 0x121], al
mov eax, dword [0x180049100]
lea r14, [0x1800490b0]
test al, 1
je 0x180022562
mov rcx, qword [0x1800490b8]
call qword [sym.imp.mwboost_log_vc143_mt_x64_1_78.dll_public:_bool___cdecl_mwboost::log::v2_mt_nt6::core::get_logging_enabled_void_const___ptr64]
test al, al
je 0x18002249a
mov qword [rbp - 0x18], r14
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
nop
call qword [sym.imp.mwboost_log_vc143_mt_x64_1_78.dll_unsigned_long_long_unsigned___int64_____ptr64___cdecl_mwboost::log::v2_mt_nt6::sources::aux::get_severity_level_void_]
mov dword [rax], 1
lea r8, [0x1800490c8]
lea rdx, [rbp + 0x130]
mov rcx, qword [0x1800490b8]
call qword [sym.imp.mwboost_log_vc143_mt_x64_1_78.dll_public:_class_mwboost::log::v2_mt_nt6::record___cdecl_mwboost::log::v2_mt_nt6::core::open_record_class_mwboost::log::v2_mt_nt6::attribute_set_const____ptr64____ptr64]
nop
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
nop
mov rcx, qword [rbp + 0x130]
jmp 0x1800224a4
mov rcx, rbx
mov qword [rbp + 0x130], rbx
test rcx, rcx
je 0x180022557
lea r13, [0x1800490b0]
mov qword [rbp - 0x30], r13
lea rcx, [rbp + 0x130]
call qword [sym.imp.mwboost_log_vc143_mt_x64_1_78.dll_public:_static_struct_mwboost::log::v2_mt_nt6::aux::stream_provider_char_::stream_compound____ptr64___cdecl_mwboost::log::v2_mt_nt6::aux::stream_provider_char_::allocate_compound_class_mwboost::log::v2_mt_nt6::record____ptr64_]
mov rsi, rax
mov qword [rbp - 0x28], rax
call sub.MSVCP140.dll_int___cdecl_std::uncaught_exceptions_void_
mov edi, eax
mov dword [rbp - 0x20], eax
mov r8d, 0x10
lea rdx, str.Worker_Process:
lea rcx, [rsi + 8]
call fcn.180016e40
movzx edx, byte [r12 + 0x121]
lea rcx, [rsi + 0x98]
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___bool____ptr64]
nop
mov qword [rbp - 0x10], rsi
call sub.MSVCP140.dll_int___cdecl_std::uncaught_exceptions_void_
cmp edi, eax
jb 0x180022532
lea rcx, [rsi + 0x98]
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__::flush_void____ptr64]
mov rdx, qword [rsi + 0x108]
mov rcx, qword [0x1800490b8]
call qword [sym.imp.mwboost_log_vc143_mt_x64_1_78.dll_private:_void___cdecl_mwboost::log::v2_mt_nt6::core::push_record_move_class_mwboost::log::v2_mt_nt6::record____ptr64____ptr64]
nop
mov rcx, rsi
call qword [sym.imp.mwboost_log_vc143_mt_x64_1_78.dll_public:_static_void___cdecl_mwboost::log::v2_mt_nt6::aux::stream_provider_char_::release_compound_struct_mwboost::log::v2_mt_nt6::aux::stream_provider_char_::stream_compound____ptr64_]
mov rcx, qword [rbp + 0x130]
test rcx, rcx
jne 0x1800224b4
lea r13, [r12 + 0x40]
lea r14, [0x1800490b0]
test rcx, rcx
je 0x180022562
call qword [sym.imp.mwboost_log_vc143_mt_x64_1_78.dll_public:_static_void___cdecl_mwboost::log::v2_mt_nt6::record_view::public_data::destroy_struct_mwboost::log::v2_mt_nt6::record_view::public_data_const____ptr64_]
mov qword [rbp + 0x138], rbx
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x180032e88]
lea rcx, [rbp + 0x138]
call sub.bcrypt.dll_BCryptOpenAlgorithmProvider
movsxd rdi, eax
test eax, eax
jne 0x180022a0a
xor r9d, r9d
lea r8d, [rax + 0x10]
lea rdx, [rsp + 0x40]
mov rcx, qword [rbp + 0x138]
call sub.bcrypt.dll_BCryptGenRandom
movsxd rdi, eax
test eax, eax
jne 0x1800229b5
movzx eax, byte [rsp + 0x48]
and al, 0x3f
or al, 0x80
mov byte [rsp + 0x48], al
movzx eax, byte [rsp + 0x46]
and al, 0xf
or al, 0x40
mov byte [rsp + 0x46], al
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rbp - 0x50], xmm0
xorps xmm1, xmm1
movups xmmword [rsp + 0x50], xmm1
mov edx, 0x30
lea rcx, [rsp + 0x50]
call fcn.180014050
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x60], 0x24
mov qword [rsp + 0x68], 0x2f
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov dword [rax + 0x20], ecx
mov byte [rax + 0x24], cl
mov r9, rbx
lea r10d, [rcx + 0x57]
nop dword [rax + rax]
movzx r8d, byte [rbp + r9 - 0x50]
mov edx, r8d
shr rdx, 4
mov ecx, 0x30
cmp rdx, 9
cmova ecx, r10d
add cl, dl
mov byte [rax], cl
and r8d, 0xf
mov ecx, 0x30
cmp r8, 9
cmova ecx, r10d
add cl, r8b
mov byte [rax + 1], cl
add rax, 2
lea rcx, [r9 - 3]
test rcx, 0xfffffffffffffff9
jne 0x18002266c
mov byte [rax], 0x2d
inc rax
inc r9
lea rcx, [rbp - 0x50]
add rcx, r9
lea rdx, [rbp - 0x40]
cmp rcx, rdx
jne 0x180022620
mov r8, qword [rsp + 0x60]
test r8, r8
je 0x18002274a
lea rax, [rsp + 0x50]
cmp r13, rax
je 0x1800226b0
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae rdx, qword [rsp + 0x50]
mov rcx, r13
call fcn.1800148d0
call qword [sym.imp.libmwservices.dll_public:_static_class_services::machine_config____ptr64___cdecl_services::machine_config::instance_void_]
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], 0xb
mov qword [rbp - 0x78], 0xf
movsd xmm0, qword [str.Session_Key]
movsd qword [rsp + 0x70], xmm0
movzx ecx, word [0x180033278]
mov word [rsp + 0x78], cx
movzx ecx, byte [0x18003327a]
mov byte [rsp + 0x7a], cl
mov byte [rsp + 0x7b], 0
mov r8, r13
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.libmwservices.dll_public:_void___cdecl_services::CrashReportProperties::addProperty_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64____ptr64]
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x18002274a
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180022744
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180022744
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18002a018
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x18002278b
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180022785
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180022785
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18002a018
nop
mov rcx, qword [rbp + 0x138]
test rcx, rcx
je 0x18002279f
xor edx, edx
call sub.bcrypt.dll_BCryptCloseAlgorithmProvider
nop
call qword [sym.imp.libmwservices.dll_svIsStandaloneMode]
test al, al
jne 0x18002299e
call qword [sym.imp.libmwservices.dll_svIsDMLWorkerMode]
test al, al
jne 0x18002299e
lea rcx, [rbp - 0x40]
call qword [sym.imp.settingscore.dll_class_mwboost::shared_ptr_class_settings::core::Settings____cdecl_settings::standalone::getSettingsRoot_void_]
nop
mov rcx, qword [rbp - 0x40]
test rcx, rcx
jne 0x1800228d1
mov eax, dword [0x180049100]
test al, 1
je 0x180022967
mov rcx, qword [0x1800490b8]
call qword [sym.imp.mwboost_log_vc143_mt_x64_1_78.dll_public:_bool___cdecl_mwboost::log::v2_mt_nt6::core::get_logging_enabled_void_const___ptr64]
test al, al
je 0x180022837
mov qword [rbp - 8], r14
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
nop
call qword [sym.imp.mwboost_log_vc143_mt_x64_1_78.dll_unsigned_long_long_unsigned___int64_____ptr64___cdecl_mwboost::log::v2_mt_nt6::sources::aux::get_severity_level_void_]
mov dword [rax], 1
lea r8, [0x1800490c8]
lea rdx, [rsp + 0x30]
mov rcx, qword [0x1800490b8]
call qword [sym.imp.mwboost_log_vc143_mt_x64_1_78.dll_public:_class_mwboost::log::v2_mt_nt6::record___cdecl_mwboost::log::v2_mt_nt6::core::open_record_class_mwboost::log::v2_mt_nt6::attribute_set_const____ptr64____ptr64]
nop
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
nop
mov rbx, qword [rsp + 0x30]
jmp 0x18002283c
mov qword [rsp + 0x30], rbx
test rbx, rbx
je 0x1800228ba
mov qword [rbp + 0x20], r14
lea rcx, [rsp + 0x30]
call qword [sym.imp.mwboost_log_vc143_mt_x64_1_78.dll_public:_static_struct_mwboost::log::v2_mt_nt6::aux::stream_provider_char_::stream_compound____ptr64___cdecl_mwboost::log::v2_mt_nt6::aux::stream_provider_char_::allocate_compound_class_mwboost::log::v2_mt_nt6::record____ptr64_]
mov rdi, rax
mov qword [rbp + 0x28], rax
call sub.MSVCP140.dll_int___cdecl_std::uncaught_exceptions_void_
mov ebx, eax
mov dword [rbp + 0x30], eax
mov r8d, 0x1b
lea rdx, str.Unable_to_get_settings_root
lea rcx, [rdi + 8]
call fcn.180016e40
nop
mov qword [rbp], rdi
call sub.MSVCP140.dll_int___cdecl_std::uncaught_exceptions_void_
cmp ebx, eax
jb 0x1800228a7
lea rcx, [rdi + 0x98]
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__::flush_void____ptr64]
mov rdx, qword [rdi + 0x108]
mov rcx, qword [0x1800490b8]
call qword [sym.imp.mwboost_log_vc143_mt_x64_1_78.dll_private:_void___cdecl_mwboost::log::v2_mt_nt6::core::push_record_move_class_mwboost::log::v2_mt_nt6::record____ptr64____ptr64]
nop
mov rcx, rdi
call qword [sym.imp.mwboost_log_vc143_mt_x64_1_78.dll_public:_static_void___cdecl_mwboost::log::v2_mt_nt6::aux::stream_provider_char_::release_compound_struct_mwboost::log::v2_mt_nt6::aux::stream_provider_char_::stream_compound____ptr64_]
mov rbx, qword [rsp + 0x30]
test rbx, rbx
jne 0x180022841
test rbx, rbx
je 0x180022967
mov rcx, rbx
call qword [sym.imp.mwboost_log_vc143_mt_x64_1_78.dll_public:_static_void___cdecl_mwboost::log::v2_mt_nt6::record_view::public_data::destroy_struct_mwboost::log::v2_mt_nt6::record_view::public_data_const____ptr64_]
jmp 0x180022967
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], 0xb
mov qword [rbp - 0x58], 0xf
movsd xmm0, qword [str.matlab.ddux]
movsd qword [rbp - 0x70], xmm0
movzx eax, word [0x180033200]
mov word [rbp - 0x68], ax
movzx eax, byte [0x180033202]
mov byte [rbp - 0x66], al
mov byte [rbp - 0x65], 0
lea r8, [rbp - 0x70]
lea rdx, [rbp + 0x10]
call qword [sym.imp.settingscore.dll_public:_class_mwboost::shared_ptr_class_settings::core::Settings____cdecl_settings::core::Settings::getSettingsByFullName_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const____ptr64____ptr64]
mov rdx, rax
mov rcx, r12
call fcn.180024450
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x180022967
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180022961
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180022961
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18002a018
nop
mov rbx, qword [rbp - 0x38]
test rbx, rbx
je 0x18002299e
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x18002299e
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x18002299e
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
nop
mov rax, r12
add rsp, 0x1d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov dword [rsp + 0x20], ebx
lea r9, str.void___cdecl_mwboost::uuids::detail::random_provider_base::get_random_bytes_void__unsigned___int64_
mov r8d, 0x58
lea rdx, str.mathworkshub3rdpartyR2024b10559182win64_boostinclude_boost_1_78_boostuuiddetail_random_provider_bcrypt.ipp
lea rcx, [rbp + 0x78]
call fcn.180022fb0
mov rbx, rax
lea rdx, [0x180033108]
lea rcx, [rbp + 0x58]
call fcn.18000aba0
nop
mov rdx, rdi
lea r8, [rbp + 0x58]
lea rcx, [rbp + 0xb0]
call fcn.180022c80
nop
mov rdx, rbx
mov rcx, rax
call fcn.1800213c0
nop
mov dword [rsp + 0x20], ebx
lea r9, str.__cdecl_mwboost::uuids::detail::random_provider_base::random_provider_base_void_
mov r8d, 0x34
lea rdx, str.mathworkshub3rdpartyR2024b10559182win64_boostinclude_boost_1_78_boostuuiddetail_random_provider_bcrypt.ipp
lea rcx, [rbp - 0x30]
call fcn.180022fb0
mov rbx, rax
lea rdx, [0x180033078]
lea rcx, [rbp + 0x38]
call fcn.18000aba0
nop
mov rdx, rdi
lea r8, [rbp + 0x38]
lea rcx, [rbp + 0x90]
call fcn.180022c80
nop
mov rdx, rbx
mov rcx, rax
call fcn.1800213c0
int3