Function at 0x14005f370
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x270]
sub rsp, 0x370
xor r14d, r14d
mov dword [rbp + 0x2a0], r14d
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14005fd40
call fcn.14005bd40
mov rbx, rax
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x60], r14
mov r15d, 0xf
mov qword [rsp + 0x68], r15
lea r8d, [r14 + 0x21]
lea rdx, str.https:__pastebin.com_raw_9eYiJKEW
lea rcx, [rsp + 0x50]
call fcn.1400055e0
lea r8, [rsp + 0x50]
lea rdx, [rbp + 0x30]
mov rcx, rbx
call fcn.14007f350
nop
lea rax, [rsp + 0x30]
mov qword [rbp + 0x2a0], rax
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], 3
movzx eax, word [0x1400e2cec]
mov word [rsp + 0x30], ax
movzx eax, byte [0x1400e2cee]
mov byte [rsp + 0x32], al
mov byte [rsp + 0x33], r14b
mov qword [rsp + 0x70], r14
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x78], r14
mov rdi, qword [rbp + 0x40]
lea rsi, [rbp + 0x30]
cmp qword [rbp + 0x48], 0x10
cmovae rsi, qword [rbp + 0x30]
cmp rdi, 0x10
jae 0x14005f456
movups xmm0, xmmword [rsi]
movups xmmword [rsp + 0x70], xmm0
mov ebx, r15d
jmp 0x14005f4d0
mov rbx, rdi
or rbx, 0xf
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
cmova rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x14005f4ad
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14005fd33
mov rcx, rax
call fcn.140096d8c
mov rcx, rax
test rax, rax
je 0x14005f4a6
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x14005f4bc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x14005f4b9
call fcn.140096d8c
jmp 0x14005f4bc
mov rax, r14
mov qword [rsp + 0x70], rax
lea r8, [rdi + 1]
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x78], rbx
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x70]
call fcn.1400052e0
test al, al
jne 0x14005fcd9
mov edx, 0xa
lea rcx, [rbp - 0x10]
call fcn.140005150
mov r8, rax
cmp qword [rax + 0x18], 0x10
jb 0x14005f50a
mov r8, qword [rax]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], 6
mov eax, dword [str._s.exe]
mov dword [rsp + 0x30], eax
movzx eax, word [0x1400e2cf4]
mov word [rsp + 0x34], ax
mov byte [rsp + 0x36], 0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x70]
call fcn.14005f240
nop
mov rdx, qword [rbp + 8]
cmp rdx, 0x10
jb 0x14005f586
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005f581
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005f581
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140096dc8
mov qword [rbp], r14
mov qword [rbp + 8], r15
mov byte [rbp - 0x10], 0
call fcn.14005bd40
mov rdi, rax
lea rax, [rbp - 0x70]
mov qword [rbp + 0x2a0], rax
lea rbx, [rsp + 0x70]
cmp qword [rbp - 0x78], 0x10
cmovae rbx, qword [rsp + 0x70]
lea rcx, [rbp + 0x10]
call fcn.1400041f0
mov r8, rax
cmp qword [rax + 0x18], 0x10
jb 0x14005f5cb
mov r8, qword [rax]
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x60], 5
mov eax, dword [0x1400e2cc0]
mov dword [rsp + 0x50], eax
movzx eax, byte [0x1400e2cc4]
mov byte [rsp + 0x54], al
mov byte [rsp + 0x55], 0
mov r9, rbx
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x30]
call fcn.14005f240
nop
cmp qword [rax + 0x18], 0x10
jb 0x14005f614
mov rax, qword [rax]
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x58], r15
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14005f630
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.1400055e0
nop
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x38], r15
mov r8d, 0x27
lea rdx, str.https:__criticalcheats.net_ICLoader.exe
lea rcx, [rbp - 0x50]
call fcn.1400055e0
nop
lea r8, [rbp - 0x70]
lea rdx, [rbp - 0x50]
mov rcx, rdi
call fcn.14007ec30
movzx ebx, al
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x14005f6bb
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005f6b6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005f6b6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140096dc8
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], r15
mov byte [rbp - 0x30], 0
mov rdx, qword [rbp + 0x28]
cmp rdx, 0x10
jb 0x14005f705
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005f700
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005f700
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140096dc8
test bl, bl
jne 0x14005f737
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.140005080
jmp 0x14005fc96
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], 0xd
movsd xmm0, qword [str.oldloader.txt]
movsd qword [rsp + 0x30], xmm0
mov eax, dword [0x1400e2cb8]
mov dword [rsp + 0x38], eax
movzx eax, byte [0x1400e2cbc]
mov byte [rsp + 0x3c], al
mov byte [rsp + 0x3d], 0
lea rcx, [rbp - 0x50]
call fcn.1400041f0
mov r8, rax
cmp qword [rax + 0x18], 0x10
jb 0x14005f783
mov r8, qword [rax]
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x60], 5
mov eax, dword [0x1400e2cc0]
mov dword [rsp + 0x50], eax
movzx eax, byte [0x1400e2cc4]
mov byte [rsp + 0x54], al
mov byte [rsp + 0x55], 0
movups xmm0, xmmword [rsp + 0x30]
movaps xmmword [rbp + 0x10], xmm0
movups xmm1, xmmword [rsp + 0x40]
movaps xmmword [rbp + 0x20], xmm1
lea r9, [rbp + 0x10]
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x30]
call fcn.14005f240
mov rbx, rax
cmp qword [rax + 0x18], 0x10
jb 0x14005f7e1
mov rbx, qword [rax]
lea rax, [0x1400da608]
mov qword [rbp + 0x50], rax
lea rcx, [rbp + 0xf8]
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 + 0x2a0], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x58]
lea rcx, [rbp + 0x50]
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 + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.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, [rbp + 0x58]
mov qword [rbp + 0x2a8], rax
lea rcx, [rbp + 0x58]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x58], rax
mov byte [rbp + 0xd4], 0
mov byte [rbp + 0xc9], 0
lea rcx, [rbp + 0x58]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0xd8], r14
mov rax, qword [0x1402fecd8]
mov qword [rbp + 0xcc], rax
mov qword [rbp + 0xc0], r14
mov r9d, 0x40
lea r8d, [r9 - 0x3e]
mov rdx, rbx
lea rcx, [rbp + 0x58]
call fcn.140060370
test rax, rax
jne 0x14005f8cc
mov rax, qword [rbp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x50]
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 - 0x18]
cmp rdx, 0x10
jb 0x14005f90a
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005f905
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005f905
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140096dc8
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], r15
mov byte [rbp - 0x30], 0
mov rdx, qword [rbp - 0x38]
cmp rdx, 0x10
jb 0x14005f954
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005f94f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005f94f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140096dc8
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x38], r15
mov byte [rbp - 0x50], 0
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x160]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x104
lea rdx, [rbp + 0x160]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rdx, [rbp + 0x160]
lea rcx, [rbp + 0x50]
call fcn.140008840
cmp qword [rbp + 0xd8], 0
je 0x14005faf5
mov rax, qword [rbp + 0x70]
lea rcx, [rbp + 0xc8]
cmp qword [rax], rcx
jne 0x14005f9df
mov r8, qword [rbp + 0xe8]
mov rcx, qword [rbp + 0xe0]
mov qword [rax], rcx
mov rax, qword [rbp + 0x90]
mov qword [rax], rcx
sub r8d, ecx
mov rax, qword [rbp + 0xa8]
mov dword [rax], r8d
cmp qword [rbp + 0xc0], 0
je 0x14005fa4c
cmp byte [rbp + 0xc9], 0
je 0x14005fa4c
mov rax, qword [rbp + 0x58]
mov edx, 0xffffffff
lea rcx, [rbp + 0x58]
call qword [rax + 0x18]
cmp eax, 0xffffffff
jne 0x14005fa0b
xor al, al
jmp 0x14005fa4e
lea rax, [rbp + 0x2a0]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x50]
lea r8, [rbp - 0x70]
lea rdx, [rbp + 0xcc]
mov rcx, qword [rbp + 0xc0]
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 0x14005faaa
sub eax, 1
je 0x14005fab1
cmp eax, 2
je 0x14005fa45
xor al, al
jmp 0x14005fa4e
mov byte [rbp + 0xc9], 0
mov al, 1
lea rbx, [rbp + 0x58]
test al, al
cmove rbx, r14
mov rcx, qword [rbp + 0xd8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test eax, eax
cmovne rbx, r14
mov byte [rbp + 0xd4], 0
mov byte [rbp + 0xc9], 0
lea rcx, [rbp + 0x58]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0xd8], r14
mov rax, qword [0x1402fecd8]
mov qword [rbp + 0xcc], rax
mov qword [rbp + 0xc0], r14
test rbx, rbx
jne 0x14005fb45
jmp 0x14005fb29
mov byte [rbp + 0xc9], 0
lea rax, [rbp - 0x70]
mov rbx, qword [rbp + 0x2a0]
sub rbx, rax
je 0x14005fae6
mov r9, qword [rbp + 0xd8]
mov r8, rbx
mov edx, 1
lea rcx, [rbp - 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
je 0x14005fae6
xor al, al
jmp 0x14005fa4e
cmp byte [rbp + 0xc9], 0
sete al
jmp 0x14005fa4e
mov byte [rbp + 0xd4], 0
mov byte [rbp + 0xc9], 0
lea rcx, [rbp + 0x58]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0xd8], r14
mov rax, qword [0x1402fecd8]
mov qword [rbp + 0xcc], rax
mov qword [rbp + 0xc0], r14
mov rax, qword [rbp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x50]
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], 0x10
cmovae rbx, qword [rsp + 0x70]
lea rcx, [rbp - 0x10]
call fcn.1400041f0
mov r8, rax
cmp qword [rax + 0x18], 0x10
jb 0x14005fb6b
mov r8, qword [rax]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], 5
mov eax, dword [0x1400e2cc0]
mov dword [rsp + 0x30], eax
movzx eax, byte [0x1400e2cc4]
mov byte [rsp + 0x34], al
mov byte [rsp + 0x35], 0
mov r9, rbx
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x70]
call fcn.14005f240
nop
cmp qword [rax + 0x18], 0x10
jb 0x14005fbb4
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.14005ab90
xor edx, edx
mov rcx, rax
call fcn.140004130
mov ebx, eax
lea rcx, [rbp - 0x70]
call fcn.1400037c0
nop
lea rcx, [rbp - 0x10]
call fcn.1400037c0
test ebx, ebx
jne 0x14005fc86
lea rdi, [rsp + 0x70]
cmp qword [rbp - 0x78], 0x10
cmovae rdi, qword [rsp + 0x70]
lea rcx, [rbp - 0x10]
call fcn.1400041f0
mov rbx, rax
cmp qword [rax + 0x18], 0x10
jb 0x14005fc0d
mov rbx, qword [rax]
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x58], r15
mov r8d, 0x21
lea rdx, str.Failed_to_open_new_version:__s__s
lea rcx, [rbp - 0x70]
call fcn.1400055e0
mov r9, rdi
mov r8, rbx
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0x10]
call fcn.14005f240
nop
cmp qword [rax + 0x18], 0x10
jb 0x14005fc4d
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.140005080
nop
lea rcx, [rbp + 0x10]
call fcn.1400037c0
nop
lea rcx, [rbp - 0x10]
call fcn.1400037c0
call fcn.1400053c0
nop
lea rcx, [rbp + 0x50]
call fcn.140008e60
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x14005fcd5
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005fcd0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005fcd0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140096dc8
xor bl, bl
jmp 0x14005fcdb
mov bl, 1
mov rdx, qword [rbp + 0x48]
cmp rdx, 0x10
jb 0x14005fd19
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005fd14
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005fd14
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140096dc8
movzx eax, bl
mov rbx, qword [rsp + 0x3b0]
add rsp, 0x370
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.1400053f0
nop
int3