Function at 0x1400040b0
Capabilities:
Enumerate files on windows
Enumerate processes
Get common file path
Hide graphical window
Move file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x6e0]
sub rsp, 0x7e0
xor esi, esi
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
mov r8d, 0x104
lea rdx, [rbp + 0x5d0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [rbp + 8]
call fcn.140003de0
mov rcx, rax
mov rdx, qword [rax + 0x10]
mov r9, qword [rax + 0x18]
mov rax, r9
sub rax, rdx
cmp rax, 4
jb 0x140004145
lea rax, [rdx + 4]
mov qword [rcx + 0x10], rax
mov r8, rcx
cmp r9, 0xf
jbe 0x140004133
mov r8, qword [rcx]
mov eax, dword [str..exe]
mov dword [r8 + rdx], eax
mov byte [r8 + rdx + 4], 0
jmp 0x140004162
mov qword [rsp + 0x20], 4
lea r9, str..exe
mov edx, 4
call fcn.140006510
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], rsi
movups xmm0, xmmword [rcx]
movups xmmword [rbp - 0x30], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rbp - 0x20], xmm1
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], 0xf
mov byte [rcx], 0
mov rdx, qword [rbp + 0x20]
cmp rdx, 0xf
jbe 0x1400041cd
inc rdx
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400041c8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400041c8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006708
mov qword [rbp + 0x18], rsi
mov qword [rbp + 0x20], 0xf
mov byte [rbp + 8], 0
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0xf
cmova rdx, qword [rbp - 0x30]
lea rcx, [rbp + 0x5d0]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
lea rdx, [rbp + 0x140]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rsi
lea rax, [rbp + 0x140]
mov rdi, 0xffffffffffffffff
mov rbx, rdi
nop
inc rbx
cmp byte [rax + rbx], 0
jne 0x140004240
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
ja 0x140004a9a
mov qword [rsp + 0x68], 0xf
cmp rbx, 0xf
ja 0x14000428e
mov qword [rsp + 0x60], rbx
mov r8, rbx
lea rdx, [rbp + 0x140]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + rbx + 0x50], 0
jmp 0x140004332
mov rsi, rbx
or rsi, 0xf
cmp rsi, rax
jbe 0x1400042c6
mov rsi, rax
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140006710
test rax, rax
je 0x1400042ee
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
jmp 0x14000430a
mov eax, 0x16
cmp rsi, rax
cmovb rsi, rax
lea rcx, [rsi + 1]
cmp rcx, 0x1000
jb 0x1400042f5
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140004a94
jmp 0x1400042ab
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x140004304
call fcn.140006710
mov r14, rax
jmp 0x14000430a
xor r8d, r8d
mov r14d, r8d
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
mov r8, rbx
lea rdx, [rbp + 0x140]
mov rcx, r14
call sub.VCRUNTIME140.dll_memcpy
mov byte [r14 + rbx], 0
xor esi, esi
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
mov rax, rdx
sub rax, rcx
cmp rax, 6
jb 0x140004383
lea rax, [rcx + 6]
mov qword [rsp + 0x60], rax
lea rbx, [rsp + 0x50]
cmp rdx, 0xf
cmova rbx, qword [rsp + 0x50]
add rbx, rcx
mov r8d, 6
lea rdx, str..dll
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 6], 0
lea rax, [rsp + 0x50]
jmp 0x1400043a2
mov qword [rsp + 0x20], 6
lea r9, str..dll
mov edx, 6
lea rcx, [rsp + 0x50]
call fcn.140006510
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], rsi
mov qword [rbp - 0x58], rsi
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x60], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x14000440f
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000440a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000440a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006708
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 0xf
cmova rcx, qword [rbp - 0x70]
lea rdx, [rbp + 0x250]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400049df
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
mov r15, rsi
mov qword [rbp - 0x40], rsi
mov r13d, 0xf
mov qword [rbp - 0x38], r13
mov byte [rbp - 0x50], 0
test byte [rbp + 0x250], 0x10
je 0x140004472
lea rdx, [rbp + 0x250]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x140004453
jmp 0x1400044a2
lea rax, [rbp + 0x27c]
mov r8, rdi
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140004480
lea rdx, [rbp + 0x27c]
lea rcx, [rbp - 0x50]
call fcn.140005dc0
mov r13, qword [rbp - 0x38]
mov r15, qword [rbp - 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r12, qword [rbp - 0x50]
test r15, r15
je 0x1400049a3
lea rax, [rbp + 0x140]
nop
inc rdi
cmp byte [rax + rdi], 0
jne 0x1400044c0
lea r14, [rbp + 0x140]
add r14, rdi
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
lea rax, [rbp + 0x140]
cmp rax, r14
jne 0x140004504
mov rdx, rsi
mov qword [rsp + 0x60], rdx
mov r8d, 7
mov qword [rsp + 0x68], r8
mov word [rsp + 0x50], si
jmp 0x140004633
lea rsi, [rbp + 0x140]
xor r8d, r8d
mov edx, r8d
mov qword [rsp + 0x60], rdx
mov ebx, 7
mov qword [rsp + 0x68], rbx
movabs rax, 0x7ffffffffffffffe
cmp rdi, rax
ja 0x140004aa0
cmp rdi, rbx
jbe 0x1400045e0
mov rbx, rdi
or rbx, 7
cmp rbx, rax
jbe 0x14000455b
mov rbx, rax
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x14000458a
mov eax, 0xa
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x140004a8e
add rcx, rcx
cmp rcx, 0x1000
jb 0x1400045c1
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140004a8e
mov rcx, rax
call fcn.140006710
mov rcx, rax
test rax, rax
je 0x1400045ba
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
mov rdx, qword [rsp + 0x60]
jmp 0x1400045d5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x1400045d2
call fcn.140006710
mov rdx, qword [rsp + 0x60]
jmp 0x1400045d5
mov rax, r8
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x68], rbx
nop
lea rcx, [rsp + 0x50]
cmp rbx, 7
cmova rcx, qword [rsp + 0x50]
movsx eax, byte [rsi]
mov word [rcx + rdx*2], ax
mov rdx, qword [rsp + 0x60]
inc rdx
mov qword [rsp + 0x60], rdx
inc rsi
cmp rsi, r14
je 0x140004612
mov rbx, qword [rsp + 0x68]
jmp 0x1400045e0
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], 7
cmova rax, qword [rsp + 0x50]
xor esi, esi
mov word [rax + rdx*2], si
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
mov rax, r8
sub rax, rdx
lea rcx, [rsp + 0x50]
cmp rax, 1
jb 0x14000466d
lea rax, [rdx + 1]
mov qword [rsp + 0x60], rax
cmp r8, 7
cmova rcx, qword [rsp + 0x50]
mov eax, dword [0x14000861c]
mov word [rcx + rdx*2], ax
mov word [rcx + rdx*2 + 2], si
lea rax, [rsp + 0x50]
jmp 0x140004680
mov qword [rsp + 0x20], 1
mov edx, 1
call fcn.1400061d0
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x78], rsi
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x80], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x1400046f4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400046ef
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400046ef
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006708
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], si
lea rbx, [rbp - 0x50]
cmp r13, 0xf
jbe 0x14000471c
mov rbx, r12
mov rax, r12
mov rcx, r12
jmp 0x140004723
lea rax, [rbp - 0x50]
mov rcx, rbx
lea rdi, [rax + r15]
cmp rcx, rdi
je 0x140004780
nop dword [rax]
movsx r9d, byte [rbx]
mov rcx, qword [rbp - 0x80]
mov rdx, qword [rbp - 0x78]
cmp rcx, rdx
jae 0x140004764
lea rax, [rcx + 1]
mov qword [rbp - 0x80], rax
lea rax, [rsp + 0x70]
cmp rdx, 7
cmova rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r9w
mov word [rax + rcx*2 + 2], si
jmp 0x14000476e
lea rcx, [rsp + 0x70]
call fcn.140006020
inc rbx
cmp rbx, rdi
jne 0x140004730
nop word [rax + rax]
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000482b
mov dword [rbp + 0x390], 0x238
lea rdx, [rbp + 0x390]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x1400047cc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140004780
mov edi, esi
nop
lea rdx, [0x140008620]
lea rcx, [rbp + 0x3bc]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1400047fe
lea rdx, [rbp + 0x390]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400047d0
jmp 0x140004804
mov edi, dword [rbp + 0x398]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x14000482b
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, edi
call fcn.1400035f0
mov rbx, rax
test rax, rax
jne 0x14000483b
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140004780
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 7
cmova rdx, qword [rsp + 0x70]
lea rcx, [rbp + 0x30]
call fcn.140005be0
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_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 - 0xb0]
mov dword [rbp + rcx + 0x2c], edx
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x30]
call qword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____cdecl_std::basic_istream_char__struct_std::char_traits_char__::tellg_void____ptr64]
mov rcx, qword [rbp - 8]
add rcx, qword [rbp - 0x10]
call fcn.14000674c
mov rdi, rax
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x30]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int____ptr64]
mov r8, qword [rbp - 8]
add r8, qword [rbp - 0x10]
mov rdx, rdi
lea rcx, [rbp + 0x30]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::read_char____ptr64__long_long___int64_____ptr64]
lea rcx, [rbp + 0x40]
call fcn.140005b20
test rax, rax
jne 0x1400048e6
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]
mov r8, qword [rbp - 8]
add r8, qword [rbp - 0x10]
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x38], 1
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], 1
mov byte [rsp + 0x20], 1
mov r9b, 1
mov rdx, rdi
mov rcx, rbx
call fcn.140001080
mov rcx, rdi
test al, al
jne 0x140004934
call fcn.140006708
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0xfffffffa
jmp 0x140004944
call fcn.140006708
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, esi
lea rcx, [rbp + 0x30]
call fcn.140004ab0
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 7
jbe 0x140004992
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000498d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000498d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006708
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], si
cmp r13, 0xf
jbe 0x1400049df
lea rdx, [r13 + 1]
mov rax, r12
cmp rdx, 0x1000
jb 0x1400049d6
add rdx, 0x27
mov r12, qword [r12 - 8]
sub rax, r12
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400049d6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r12
call fcn.140006708
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 0xf
jbe 0x140004a1d
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004a18
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004a18
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006708
mov qword [rbp - 0x60], rsi
mov qword [rbp - 0x58], 0xf
mov byte [rbp - 0x70], 0
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xf
jbe 0x140004a6b
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004a66
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004a66
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006708
mov eax, edi
lea r11, [rsp + 0x7e0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140003470
nop
call fcn.140003470
int3
call fcn.140003510
nop
call fcn.140003510
int3