Function at 0x14000f4f0
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r13
push r14
lea rbp, [rax - 0x318]
sub rsp, 0x400
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
mov rax, qword [0x1400dd0c0]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
xor r12d, r12d
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov r8d, 0x104
lea rdx, [rbp + 0x1c0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov rdi, 0xffffffffffffffff
movabs r13, 0x7fffffffffffffff
test eax, eax
je 0x14000f910
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], r12
lea rax, [rbp + 0x1c0]
mov r8, rdi
nop word [rax + rax]
inc r8
cmp byte [rax + r8], r12b
jne 0x14000f590
lea rdx, [rbp + 0x1c0]
lea rcx, [rbp - 0x28]
call fcn.1400033e0
lea rbx, [rbp - 0x28]
mov r14, qword [rbp - 0x28]
cmp qword [rbp - 0x10], 0xf
cmova rbx, r14
mov rsi, qword [rbp - 0x18]
test rsi, rsi
je 0x14000f63d
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0xb0]
call sub.VCRUNTIME140.dll_memset
lea rcx, [0x1400c6b80]
lea rdx, [0x1400c6b82]
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [rbp + rax + 0xb0], 1
inc rcx
cmp rcx, rdx
jne 0x14000f5f0
lea rax, [rsi - 1]
mov r8, rdi
cmp rax, rdi
cmovb r8, rax
add r8, rbx
movzx eax, byte [r8]
cmp byte [rbp + rax + 0xb0], r12b
jne 0x14000f638
cmp r8, rbx
je 0x14000f63d
dec r8
movzx eax, byte [r8]
cmp byte [rbp + rax + 0xb0], r12b
je 0x14000f622
sub r8, rbx
jmp 0x14000f640
mov r8, rdi
xorps xmm0, xmm0
xorps xmm1, xmm1
cmp r8, rdi
jne 0x14000f67c
movups xmmword [rsp + 0x70], xmm0
movdqu xmmword [rbp - 0x80], xmm1
xor r8d, r8d
lea rdx, [0x1400c5615]
lea rcx, [rsp + 0x70]
call fcn.1400033e0
lea rax, [rsp + 0x70]
movups xmm0, xmmword [rax]
movups xmm6, xmmword [rax + 0x10]
mov byte [rsp + 0x70], r12b
jmp 0x14000f6b4
movups xmmword [rbp - 0x70], xmm0
movdqu xmmword [rbp - 0x60], xmm1
inc r8
cmp rsi, r8
cmovb r8, rsi
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 0xf
cmova rdx, r14
lea rcx, [rbp - 0x70]
call fcn.1400033e0
lea rax, [rbp - 0x70]
movups xmm0, xmmword [rax]
movups xmm6, xmmword [rax + 0x10]
mov byte [rbp - 0x70], r12b
mov esi, reloc.WS2_32.dll_ntohs
movups xmmword [rbp + 8], xmm6
movups xmmword [rbp - 8], xmm0
lea rcx, [rbp + 0x78]
call fcn.14000f2c0
mov r8d, 4
lea rdx, str..exe
mov rcx, rax
call fcn.1400032a0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x38], xmm0
movups xmm7, xmmword [rax + 0x10]
movups xmmword [rbp + 0x48], xmm7
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], rsi
mov byte [rax], r12b
mov rdx, qword [rbp + 0x90]
cmp rdx, rsi
jbe 0x14000f739
inc rdx
mov rcx, qword [rbp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f734
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000f734
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400b1f70
mov rax, r13
movq rcx, xmm6
sub rax, rcx
movq rdx, xmm7
cmp rax, rdx
jb 0x140010228
lea r9, [rbp - 8]
cmp qword [rbp + 0x10], 0xf
cmova r9, qword [rbp - 8]
lea rax, [rbp + 0x38]
cmp qword [rbp + 0x50], 0xf
cmova rax, qword [rbp + 0x38]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r8, [rbp - 8]
movzx edx, byte [rsp + 0x60]
lea rcx, [rbp - 0x48]
call fcn.140003860
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 0xf
cmova rdx, qword [rbp - 0x48]
lea rcx, [rbp - 0x28]
cmp qword [rbp - 0x10], 0xf
cmova rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x14000f7e4
lea rdx, str.File_renamed_successfully_to
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14000c2d0
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 0xf
cmova rdx, qword [rbp - 0x48]
mov r8, qword [rbp - 0x38]
mov rcx, rax
call fcn.14000e060
jmp 0x14000f80b
lea rdx, str.Error_renaming_file:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14000c2d0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
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___unsigned_long_int____ptr64]
lea rdx, [0x14000c4a0]
mov rcx, rax
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 rdx, qword [rbp - 0x30]
cmp rdx, 0xf
jbe 0x14000f856
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f851
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000f902
call fcn.1400b1f70
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], rsi
mov byte [rbp - 0x48], r12b
mov rdx, qword [rbp + 0x50]
cmp rdx, 0xf
jbe 0x14000f899
inc rdx
mov rcx, qword [rbp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f894
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000f902
call fcn.1400b1f70
mov rdx, qword [rbp + 0x10]
cmp rdx, 0xf
jbe 0x14000f8d0
inc rdx
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f8cb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000f902
call fcn.1400b1f70
mov rdx, qword [rbp - 0x10]
cmp rdx, 0xf
jbe 0x14000f947
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000f909
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000f909
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400b1f70
jmp 0x14000f947
lea rdx, str.Error_retrieving_executable_name:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14000c2d0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
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___unsigned_long_int____ptr64]
lea rdx, [0x14000c4a0]
mov rcx, rax
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]
call qword [sym.imp.USER32.dll_SetProcessDPIAware]
mov dword [0x1401158a0], 0x50
mov dword [0x1401158a4], 0x40
lea rax, [0x140008150]
mov qword [0x1401158a8], rax
mov qword [0x1401158b0], r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [0x1401158b8], rax
xorps xmm0, xmm0
movdqa xmmword [0x1401158c0], xmm0
xorps xmm1, xmm1
movdqa xmmword [0x1401158d0], xmm1
lea rbx, str.class001
mov qword [0x1401158e0], rbx
mov qword [0x1401158e8], r12
lea rcx, [0x1401158a0]
call qword [sym.imp.USER32.dll_RegisterClassExA]
mov qword [rsp + 0x58], r12
mov rax, qword [0x1401158b8]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x38], 0x1ae
mov dword [rsp + 0x30], 0x2ee
mov dword [rsp + 0x28], 0x64
mov dword [rsp + 0x20], 0x64
mov r9d, 0x80000000
lea r8, str.Intel
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov qword [0x140115888], rax
mov edx, 0xa
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x140115888]
call qword [sym.imp.USER32.dll_UpdateWindow]
nop
mov ecx, reloc.WLDAP32.dll_Ordinal_32
call qword [sym.imp.d3d9.dll_Direct3DCreate9]
mov rcx, rax
mov qword [0x140115880], rax
test rax, rax
je 0x14000faed
mov qword [0x1401158f0], r12
mov qword [0x1401158fc], r12
mov dword [0x140115904], r12d
mov qword [0x14011590c], r12
mov dword [0x140115914], r12d
mov qword [0x140115924], r12
mov dword [0x140115918], 1
mov dword [0x140115908], 1
mov dword [0x1401158f8], r12d
mov dword [0x14011591c], 1
mov dword [0x140115920], 0x50
mov dword [0x14011592c], 1
mov rax, qword [rax]
lea rdx, [0x140115890]
mov qword [rsp + 0x30], rdx
lea rdx, [0x1401158f0]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x40
mov r9, qword [0x140115888]
xor edx, edx
mov r8d, 1
call qword [rax + 0x80]
nop
call fcn.1400083a0
cmp byte [reloc.WS2_32.dll_accept], 0
je 0x14000fd6c
movabs rbx, 0x7fffffffffb3b4bf
mov esi, 0xff
movss xmm6, dword [0x1400cb4bc]
nop word [rax + rax]
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x78]
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x14000fb7b
nop
lea rcx, [rbp + 0x78]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 0x78]
call qword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [rbp + 0x80], 0x12
je 0x14000fb90
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x78]
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x14000fb40
mov rax, qword [0x140115960]
test rax, rax
je 0x14000fba0
mov rcx, qword [rax + 0xf0]
jmp 0x14000fba3
cmp byte [reloc.WS2_32.dll_accept], 0
sete byte [0x1400dd170]
jmp 0x14000fbd1
mov rcx, r12
cmp qword [rcx + 0x18], 0
jne 0x14000fbc6
test rax, rax
je 0x14000fbc6
mov rcx, qword [rax + 0xf0]
test rcx, rcx
je 0x14000fbc6
cmp qword [rcx], 0
je 0x14000fbc6
call fcn.140036c50
call fcn.1400372d0
call fcn.1400158f0
nop
call fcn.140008eb0
nop
call fcn.140017b50
mov rcx, qword [0x140115890]
mov rax, qword [rcx]
xor r8d, r8d
mov edx, 7
call qword [rax + 0x1c8]
mov rcx, qword [0x140115890]
mov rax, qword [rcx]
xor r8d, r8d
mov edx, reloc.WLDAP32.dll_Ordinal_27
call qword [rax + 0x1c8]
mov rcx, qword [0x140115890]
mov rax, qword [rcx]
xor r8d, r8d
mov edx, 0xae
call qword [rax + 0x1c8]
mov rcx, qword [0x140115890]
mov rax, qword [rcx]
mov dword [rsp + 0x30], r12d
movss dword [rsp + 0x28], xmm6
mov dword [rsp + 0x20], 0xff000000
mov r9d, 3
xor r8d, r8d
xor edx, edx
call qword [rax + 0x158]
mov rcx, qword [0x140115890]
mov rax, qword [rcx]
call qword [rax + 0x148]
test eax, eax
js 0x14000fca2
call fcn.140017f20
mov rax, qword [0x140115960]
mov rax, qword [rax + 0x1e10]
mov rcx, qword [rax]
add rcx, 0x40
mov rax, r12
cmp byte [rcx], r12b
cmovne rax, rcx
mov rcx, rax
call fcn.140036690
mov rcx, qword [0x140115890]
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [0x140115890]
mov rax, qword [rcx]
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [rax + 0x88]
cmp eax, 0x88760868
jne 0x14000fcdf
mov rcx, qword [0x140115890]
mov rax, qword [rcx]
call qword [rax + Ordinal_26]
cmp eax, 0x88760869
jne 0x14000fcdf
call fcn.1400082e0
lea rdx, [rbp - 0x48]
mov rcx, qword [0x140115888]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov dword [rsp + 0x30], 6
mov dword [rsp + 0x28], 0x1ae
mov dword [rsp + 0x20], 0x2ee
mov r9d, dword [rbp - 0x44]
mov r8d, dword [rbp - 0x48]
xor edx, edx
mov rcx, qword [0x140115888]
call qword [sym.imp.USER32.dll_SetWindowPos]
nop
lea rcx, [rbp - 0x50]
call fcn.1400019f0
mov rax, qword [rbp - 0x50]
mov qword [rsp + 0x68], rax
cmp rax, rbx
je 0x14000fd50
mov ecx, 1
cmovl ecx, esi
test cl, cl
jns 0x14000fd50
add rax, 0x4c4b40
mov qword [rsp + 0x68], rax
jmp 0x14000fd55
mov qword [rsp + 0x68], r13
lea rcx, [rsp + 0x68]
call fcn.1400039a0
cmp byte [reloc.WS2_32.dll_accept], 0
jne 0x14000fb20
mov rcx, qword [0x140115960]
test rcx, rcx
je 0x14000fd81
mov rsi, qword [rcx + 0xf0]
jmp 0x14000fd84
mov rsi, r12
lea r14, [rcx + 8]
test rcx, rcx
je 0x14000fe01
mov rbx, qword [rcx + 0xf0]
test rbx, rbx
je 0x14000fe01
cmp qword [rbx], 0
je 0x14000fe01
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x14000fdbc
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rbx + 8], r12
mov rcx, qword [0x140115960]
mov rdx, qword [rbx + 0x10]
test rdx, rdx
je 0x14000fdd9
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rbx + 0x10], r12
mov rcx, qword [0x140115960]
mov rdx, qword [rbx + 0x18]
test rdx, rdx
je 0x14000fe01
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rbx + 0x18], r12
mov rcx, qword [0x140115960]
mov rax, qword [rcx + 0xa8]
mov qword [rax + 8], r12
mov rdx, qword [rsi]
test rdx, rdx
je 0x14000fe19
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [0x140115960]
mov qword [r14 + 0xd8], r12
mov qword [r14 + 0xe8], r12
test rcx, rcx
je 0x14000fe32
dec dword [rcx + 0x3b0]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x140115960]
test rax, rax
je 0x14000fe50
mov rbx, qword [rax + 0xe8]
jmp 0x14000fe53
mov rbx, r12
lea rsi, [rax + 8]
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14000fe6d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [0x140115960]
mov qword [rsi + 0xd0], r12
mov qword [rsi + 0xe0], r12
test rax, rax
je 0x14000fe86
dec dword [rax + 0x3b0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [0x140115960]
mov rcx, rbx
call fcn.140016fa0
cmp qword [0x140115960], rbx
jne 0x14000feae
mov qword [0x140115960], r12
test rbx, rbx
je 0x14000fed7
mov rcx, rbx
call fcn.1400263e0
mov rax, qword [0x140115960]
test rax, rax
je 0x14000fecd
dec dword [rax + 0x3b0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, qword [0x140115890]
test rcx, rcx
je 0x14000fef0
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [0x140115890], r12
mov rcx, qword [0x140115880]
test rcx, rcx
je 0x14000ff09
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [0x140115880], r12
mov rcx, qword [0x140115888]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rdx, qword [0x1401158b8]
mov rcx, qword [0x1401158e0]
call qword [sym.imp.USER32.dll_UnregisterClassA]
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x80], xmm1
mov r8d, ntohl
lea rdx, str.colbotd.sys
lea rcx, [rsp + 0x70]
call fcn.1400033e0
lea rax, [rbp + 0xb0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, Ordinal_30
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x60], xmm1
lea rax, [rbp + 0xb0]
mov r8, rdi
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14000ff90
lea rdx, [rbp + 0xb0]
lea rcx, [rbp - 0x70]
call fcn.1400033e0
lea r9, [rsp + 0x70]
lea r8, [rbp - 0x70]
movzx edx, byte [rsp + 0x60]
lea rcx, [rbp + 0x58]
call fcn.140003670
mov rdx, qword [rbp - 0x58]
cmp rdx, 0xf
jbe 0x14000fffc
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000fff7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400101e0
call fcn.1400b1f70
mov rdx, qword [rbp - 0x78]
call fcn.140001c70
int3