Function at 0x140048340
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x2a0]
sub rsp, 0x3a0
movaps xmmword [rsp + 0x390], xmm6
xor esi, esi
mov dword [rbp + 0x2c0], esi
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140048d00
call fcn.140044bc0
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x78], rsi
lea ecx, [rsi + 0x30]
call fcn.14007ef5c
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x80], 0x21
mov qword [rbp - 0x78], 0x2f
movups xmm0, xmmword [str.https:__pastebin.com_raw_33h8hGUs]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1400c9fa8]
movups xmmword [rax + 0x10], xmm1
movzx ecx, byte [0x1400c9fb8]
mov byte [rax + 0x20], cl
mov byte [rax + 0x21], sil
lea r8, [rsp + 0x70]
lea rdx, [rbp + 0x160]
mov rcx, rbx
call fcn.1400681c0
nop
lea rax, [rsp + 0x50]
mov qword [rbp + 0x2c0], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], 3
mov qword [rsp + 0x68], 0xf
mov eax, dword [0x1400c9fbc]
mov word [rsp + 0x50], ax
movzx eax, byte [0x1400c9fbe]
mov byte [rsp + 0x52], al
mov byte [rsp + 0x53], sil
lea rdx, [rbp + 0x160]
lea rcx, [rbp - 0x30]
call fcn.140003610
nop
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.140005560
test al, al
jne 0x140048c99
lea edx, [rsi + 0xa]
lea rcx, [rbp - 0x10]
call fcn.1400053b0
mov r8, rax
cmp qword [rax + 0x18], 0xf
jbe 0x140048464
mov r8, qword [rax]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], 6
mov qword [rsp + 0x48], 0xf
mov eax, dword [str._s.exe]
mov dword [rsp + 0x30], eax
movzx eax, word [0x1400c9fc4]
mov word [rsp + 0x34], ax
mov byte [rsp + 0x36], 0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.1400481d0
nop
mov rdx, qword [rbp + 8]
cmp rdx, 0xf
jbe 0x1400484e7
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400484e2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400484e2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007ef98
movdqa xmm0, xmmword [0x1400c34c0]
movdqu xmmword [rbp], xmm0
mov byte [rbp - 0x10], 0
call fcn.140044bc0
mov rdi, rax
lea rax, [rbp - 0x50]
mov qword [rbp + 0x2c0], rax
lea rbx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0xf
cmova rbx, qword [rsp + 0x50]
lea rcx, [rbp - 0x30]
call fcn.140004430
mov r8, rax
cmp qword [rax + 0x18], 0xf
jbe 0x140048532
mov r8, qword [rax]
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], 5
mov qword [rbp - 0x78], 0xf
mov eax, dword [str._s__s]
mov dword [rsp + 0x70], eax
movzx eax, byte [0x1400c9f94]
mov byte [rsp + 0x74], al
mov byte [rsp + 0x75], 0
mov r9, rbx
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x10]
call fcn.1400481d0
nop
cmp qword [rax + 0x18], 0xf
jbe 0x140048580
mov rax, qword [rax]
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x38], rsi
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140048596
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.140002660
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], rsi
mov qword [rbp - 0x58], rsi
mov ecx, 0x30
call fcn.14007ef5c
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x60], 0x20
mov qword [rbp - 0x58], 0x2f
movups xmm0, xmmword [str.https:__mywebsite.com_loader.exe]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1400c9fd8]
movups xmmword [rax + 0x10], xmm1
mov byte [rax + 0x20], 0
lea r8, [rbp - 0x50]
lea rdx, [rbp - 0x70]
mov rcx, rdi
call fcn.140067b80
movzx ebx, al
mov rdx, qword [rbp + 0x28]
cmp rdx, 0xf
jbe 0x140048644
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004863f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004863f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007ef98
movdqa xmm0, xmmword [0x1400c34c0]
movdqu xmmword [rbp + 0x20], xmm0
mov byte [rbp + 0x10], 0
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
jbe 0x140048693
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004868e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004868e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007ef98
test bl, bl
jne 0x1400486c4
mov dword [rsp + 0x28], 0x1388
mov word [rsp + 0x20], si
mov r9d, 0x1040
lea r8, str.Info
lea rdx, str.Failed_to_download_new_version_
xor ecx, ecx
call fcn.1400052e0
jmp 0x140048c55
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
movdqa xmm6, xmmword [0x1400ca040]
movdqu xmmword [rsp + 0x40], xmm6
movsd xmm0, qword [str.oldloader.txt]
movsd qword [rsp + 0x30], xmm0
mov eax, dword [0x1400c9f88]
mov dword [rsp + 0x38], eax
movzx eax, byte [0x1400c9f8c]
mov byte [rsp + 0x3c], al
mov byte [rsp + 0x3d], 0
lea rcx, [rbp - 0x10]
call fcn.140004430
mov r8, rax
cmp qword [rax + 0x18], 0xf
jbe 0x140048718
mov r8, qword [rax]
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], 5
mov qword [rbp - 0x58], 0xf
mov eax, dword [str._s__s]
mov dword [rbp - 0x70], eax
movzx eax, byte [0x1400c9f94]
mov byte [rbp - 0x6c], al
mov byte [rbp - 0x6b], 0
movups xmm0, xmmword [rsp + 0x30]
movaps xmmword [rbp - 0x30], xmm0
movaps xmmword [rbp - 0x20], xmm6
lea r9, [rbp - 0x30]
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0x10]
call fcn.1400481d0
mov rbx, rax
cmp qword [rax + 0x18], 0xf
jbe 0x140048771
mov rbx, qword [rax]
lea rax, [0x1400c3698]
mov qword [rbp + 0x30], rax
lea rcx, [rbp + 0xd8]
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 + 0x2c0], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x38]
lea rcx, [rbp + 0x30]
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 + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x30], rax
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x2c], edx
lea rcx, [rbp + 0x38]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x38], rax
mov byte [rbp + 0xb4], 0
mov byte [rbp + 0xa9], 0
lea rcx, [rbp + 0x38]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0xb8], rsi
mov rax, qword [0x14015bd38]
mov qword [rbp + 0xac], rax
mov qword [rbp + 0xa0], rsi
mov r9d, 0x40
lea r8d, [r9 - 0x3e]
mov rdx, rbx
lea rcx, [rbp + 0x38]
call fcn.140049390
test rax, rax
jne 0x140048850
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x30]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rdx, qword [rbp + 0x28]
cmp rdx, 0xf
jbe 0x14004888e
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140048889
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140048889
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007ef98
movdqa xmm0, xmmword [0x1400c34c0]
movdqu xmmword [rbp + 0x20], xmm0
mov byte [rbp + 0x10], 0
mov rdx, qword [rbp + 8]
cmp rdx, 0xf
jbe 0x1400488dd
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400488d8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400488d8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007ef98
movdqa xmm0, xmmword [0x1400c34c0]
movdqu xmmword [rbp], xmm0
mov byte [rbp - 0x10], 0
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x180]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x104
lea rdx, [rbp + 0x180]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rdx, [rbp + 0x180]
lea rcx, [rbp + 0x30]
call fcn.140008b10
lea rcx, [rbp + 0x38]
cmp qword [rbp + 0xb8], 0
je 0x140048aa9
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
lea rcx, [rbp + 0xa8]
cmp rax, rcx
jne 0x140048966
mov r9, qword [rbp + 0xc8]
mov rdx, qword [rbp + 0xc0]
mov r8, rdx
lea rcx, [rbp + 0x38]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
cmp qword [rbp + 0xa0], 0
je 0x1400489f4
cmp byte [rbp + 0xa9], 0
je 0x1400489f4
mov rax, qword [rbp + 0x38]
mov r8, qword [rax + 0x18]
lea rax, [fcn.140009b80]
mov edx, 0xffffffff
lea rcx, [rbp + 0x38]
cmp r8, rax
jne 0x1400489a1
call fcn.140009b80
jmp 0x1400489a4
call r8
cmp eax, 0xffffffff
jne 0x1400489ad
xor bl, bl
jmp 0x1400489f6
lea rax, [rbp + 0x2c0]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x160]
lea r8, [rbp + 0x140]
lea rdx, [rbp + 0xac]
mov rcx, qword [rbp + 0xa0]
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 0x140048a58
sub eax, 1
je 0x140048a5f
cmp eax, 2
je 0x1400489ed
xor bl, bl
jmp 0x1400489f6
mov byte [rbp + 0xa9], 0
mov bl, 1
mov rcx, qword [rbp + 0xb8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rcx, [rbp + 0x38]
test bl, bl
cmove rcx, rsi
mov rbx, rsi
test eax, eax
cmove rbx, rcx
mov byte [rbp + 0xb4], 0
mov byte [rbp + 0xa9], 0
lea rcx, [rbp + 0x38]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0xb8], rsi
mov rax, qword [0x14015bd38]
mov qword [rbp + 0xac], rax
mov qword [rbp + 0xa0], rsi
test rbx, rbx
jne 0x140048af5
jmp 0x140048ad9
mov byte [rbp + 0xa9], 0
lea rax, [rbp + 0x140]
mov rbx, qword [rbp + 0x2c0]
sub rbx, rax
je 0x140048a9a
mov r9, qword [rbp + 0xb8]
mov r8, rbx
mov edx, 1
lea rcx, [rbp + 0x140]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
je 0x140048a9a
xor bl, bl
jmp 0x1400489f6
cmp byte [rbp + 0xa9], 0
sete bl
jmp 0x1400489f6
mov byte [rbp + 0xb4], 0
mov byte [rbp + 0xa9], 0
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0xb8], rsi
mov rax, qword [0x14015bd38]
mov qword [rbp + 0xac], rax
mov qword [rbp + 0xa0], rsi
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x30]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
lea rbx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0xf
cmova rbx, qword [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.140004430
mov r8, rax
cmp qword [rax + 0x18], 0xf
jbe 0x140048b1d
mov r8, qword [rax]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], 5
mov qword [rsp + 0x48], 0xf
mov eax, dword [str._s__s]
mov dword [rsp + 0x30], eax
movzx eax, byte [0x1400c9f94]
mov byte [rsp + 0x34], al
mov byte [rsp + 0x35], 0
mov r9, rbx
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x50]
call fcn.1400481d0
nop
cmp qword [rax + 0x18], 0xf
jbe 0x140048b6d
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.140048300
xor edx, edx
mov rcx, rax
call fcn.140004370
mov ebx, eax
lea rcx, [rbp - 0x50]
call fcn.140003c40
nop
lea rcx, [rsp + 0x70]
call fcn.140003c40
test ebx, ebx
jne 0x140048c45
lea rdi, [rsp + 0x50]
cmp qword [rsp + 0x68], 0xf
cmova rdi, qword [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140004430
mov rbx, rax
cmp qword [rax + 0x18], 0xf
jbe 0x140048bc9
mov rbx, qword [rax]
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x38], rsi
mov r8d, 0x21
lea rdx, str.Failed_to_open_new_version:__s__s
lea rcx, [rbp - 0x50]
call fcn.140002660
mov r9, rdi
mov r8, rbx
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x30]
call fcn.1400481d0
nop
cmp qword [rax + 0x18], 0xf
jbe 0x140048c0c
mov rax, qword [rax]
mov dword [rsp + 0x28], 0x1388
mov word [rsp + 0x20], si
mov r9d, 0x1040
lea r8, str.Info
mov rdx, rax
xor ecx, ecx
call fcn.1400052e0
nop
lea rcx, [rbp - 0x30]
call fcn.140003c40
nop
lea rcx, [rsp + 0x30]
call fcn.140003c40
call fcn.140005640
nop
lea rcx, [rbp + 0x30]
call fcn.140009310
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x140048c95
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140048c90
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140048c90
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007ef98
xor bl, bl
jmp 0x140048c9b
mov bl, 1
mov rdx, qword [rbp + 0x178]
cmp rdx, 0xf
jbe 0x140048cdf
inc rdx
mov rcx, qword [rbp + 0x160]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140048cda
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140048cda
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007ef98
movzx eax, bl
mov rbx, qword [rsp + 0x3d0]
movaps xmm6, xmmword [rsp + 0x390]
add rsp, 0x3a0
pop rdi
pop rsi
pop rbp
ret