Function at 0x1400051b0
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x140096080]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
xor r14d, r14d
mov dword [rbp + 0x190], r14d
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, ntohl
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, str._FermaBot__Check_update..._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140009ae0
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, str._FermaBot__Download:__
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140009ae0
xor ebx, ebx
nop dword [rax + rax]
mov edx, ebx
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
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___int____ptr64]
mov rcx, rax
lea rdx, [0x1400876e8]
call fcn.140009ae0
mov ecx, 5
call qword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
nop dword [rax + rax]
lea r10, [rbp + 0x1a5]
mov r8d, ebx
test ebx, ebx
jns 0x1400052c0
neg r8d
dec r10
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
add r8b, 0x30
mov byte [r10], r8b
mov r8d, edx
test edx, edx
jne 0x140005281
dec r10
mov byte [r10], reloc.WLDAP32.dll_Ordinal_45
jmp 0x1400052ea
dec r10
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
add r8b, 0x30
mov byte [r10], r8b
mov r8d, edx
test edx, edx
jne 0x1400052c0
lea r9, [rsp + 0x40]
lea r8, [rbp + 0x1a5]
mov rdx, r10
lea rcx, [rsp + 0x48]
call fcn.14000b7d0
or r14d, 0xc
movsxd rax, esi
cmp rax, qword [rsp + 0x58]
setbe dil
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x140005350
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000534b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005637
call fcn.14007492c
test dil, dil
je 0x14000536f
lea rdx, [0x1400876ec]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140009ae0
inc esi
jmp 0x140005270
inc ebx
cmp ebx, 0x64
jle 0x140005240
lea rdx, str.Successfully_100__n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140009ae0
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, str._FermaBot__Check_unpacking..._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140009ae0
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, str._FermaBot__Not_unpacking__n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140009ae0
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, str._FermaBot__Unpacking:__
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140009ae0
xor ebx, ebx
nop dword [rax]
mov edx, ebx
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
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___int____ptr64]
mov rcx, rax
lea rdx, [0x1400876e8]
call fcn.140009ae0
mov ecx, 5
call qword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
nop dword [rax + rax]
lea r10, [rbp + 0x1a5]
test ebx, ebx
jns 0x140005467
mov ecx, ebx
neg ecx
nop
dec r10
mov eax, 0xcccccccd
mul ecx
mov r8d, edx
shr r8d, 3
movzx eax, r8b
shl al, 2
lea edx, [rax + r8]
add dl, dl
sub cl, dl
add cl, 0x30
mov byte [r10], cl
mov ecx, r8d
test r8d, r8d
jne 0x140005430
dec r10
mov byte [r10], reloc.WLDAP32.dll_Ordinal_45
jmp 0x14000549a
mov r8d, ebx
nop word [rax + rax]
dec r10
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
add r8b, 0x30
mov byte [r10], r8b
mov r8d, edx
test edx, edx
jne 0x140005470
lea r9, [rsp + 0x40]
lea r8, [rbp + 0x1a5]
mov rdx, r10
lea rcx, [rsp + 0x48]
call fcn.14000b7d0
movsxd rax, esi
cmp rax, qword [rsp + 0x58]
setbe dil
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x1400054fc
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400054f7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005637
call fcn.14007492c
test dil, dil
je 0x14000551b
lea rdx, [0x1400876ec]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140009ae0
inc esi
jmp 0x140005420
inc ebx
cmp ebx, 0x64
jle 0x1400053f0
lea rdx, str.Successfully_100__n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140009ae0
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, ntohl
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, str._FermaBot__OK_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140009ae0
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rsi, [0x140097430]
mov rax, rsi
cmp qword [0x140097448], 0xf
cmova rax, qword [0x140097430]
mov qword [rbp + 0x190], rax
mov rax, qword [0x140097440]
mov qword [rbp + 0x198], rax
call fcn.140073ae8
movaps xmm0, xmmword [rbp + 0x190]
movdqa xmmword [rbp + 0x190], xmm0
lea r8, [rbp + 0x190]
mov edx, eax
lea rcx, [rsp + 0x48]
call fcn.1400029f0
nop
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
cmova rcx, qword [rsp + 0x48]
call fcn.140073d48
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x1400059bb
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x140005643
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000563e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000563e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007492c
mov rcx, rsi
cmp qword [0x140097448], 0xf
cmova rcx, qword [0x140097430]
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, 7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, str._n__FermaBot__Enter_Key:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140009ae0
lea rdi, [0x140096128]
mov rdx, rdi
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call fcn.140009cb0
movabs rbx, 0x7fffffffffffffff
mov rax, rbx
mov rcx, qword [0x140097440]
sub rax, rcx
cmp rax, 7
jb 0x1400059d1
mov r9, rsi
cmp qword [0x140097448], 0xf
cmova r9, qword [0x140097430]
mov qword [rsp + 0x30], 7
lea rax, str.key.txt
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov r8, rsi
movzx edx, byte [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.14000b0e0
nop
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x80]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x80]
call fcn.140007430
nop
cmp qword [rbp + 0x108], 0
je 0x1400057ab
cmp qword [reloc.WS2_32.dll_ntohs], 0xf
cmova rdi, qword [0x140096128]
mov r8, qword [0x140096138]
mov rdx, rdi
lea rcx, [rbp + 0x80]
call fcn.14000bc00
lea rcx, [rbp + 0x88]
call fcn.140008ae0
test rax, rax
jne 0x14000578e
mov rax, qword [rbp + 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x80]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0xf
cmova rcx, qword [rsp + 0x48]
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
nop
lea rcx, [rbp + 0x80]
call fcn.140004bd0
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x1400057f8
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400057f3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400057f3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007492c
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [0x140097440]
sub rbx, rax
cmp rbx, 0x13
jb 0x1400059b5
mov r9, rsi
cmp qword [0x140097448], 0xf
cmova r9, qword [0x140097430]
mov qword [rsp + 0x30], reloc.WS2_32.dll_send
lea rcx, str.dont_delete.marker
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov r8, rsi
movzx edx, byte [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.14000b0e0
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x70]
call fcn.140007430
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x1400058ae
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400058a9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400058a9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007492c
movdqa xmm0, xmmword [0x140088ba0]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], 0
cmp qword [rbp - 8], 0
je 0x1400058f7
lea rcx, [rsp + 0x78]
call fcn.140008ae0
test rax, rax
jne 0x1400058f7
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x70]
add rcx, rax
xor r8d, r8d
mov edx, 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 rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x6c], edx
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rsp + 0x78], rax
cmp qword [rbp - 8], 0
je 0x140005959
lea rcx, [rbp - 0x18]
mov rax, qword [rbp - 0x70]
cmp qword [rax], rcx
jne 0x140005959
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp]
mov qword [rax], rcx
mov rax, qword [rbp - 0x50]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp - 0x38]
mov dword [rax], edx
cmp byte [rbp - 0xc], 0
je 0x140005969
lea rcx, [rsp + 0x78]
call fcn.140008ae0
lea rcx, [rsp + 0x78]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x80]
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 + 0x18]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.1400745c0
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.140002050
nop
shr rdx, 0x20
lea r8, [rsp + 0x48]
lea rcx, str.create_directory
call fcn.140003800
nop
call fcn.140002050
int3