Function at 0x406430
Capabilities:
Move file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40a490
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x280
mov eax, dword [0x40e00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x158]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x170], 0
lea ecx, [ebp - 0x158]
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x15c], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x170], 0
mov dword [ebp - 4], 0xffffffff
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4064c0
sub ecx, edx
lea eax, [ebp - 0x158]
push ecx
push eax
lea ecx, [ebp - 0x170]
call fcn.00405d30
mov dword [ebp - 4], 1
lea esi, [ebp - 0x170]
cmp dword [ebp - 0x15c], 0x10
mov edi, dword [ebp - 0x160]
cmovae esi, dword [ebp - 0x170]
setae byte [ebp - 0x289]
test edi, edi
je 0x40656c
push 0x5c
lea eax, [ebp - 0x288]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x22b]
push 0xa3
push 0
push eax
call sub.VCRUNTIME140.dll_memset
or eax, 0xffffffff
mov byte [ebp - 0x22c], 1
lea ecx, [edi - 1]
add esp, 0xc
cmp ecx, eax
cmovb eax, ecx
movzx ecx, byte [eax + esi]
add eax, esi
mov cl, byte [ebp + ecx - 0x288]
test cl, cl
jne 0x406568
cmp eax, esi
je 0x40656c
movzx ecx, byte [eax - 1]
dec eax
mov cl, byte [ebp + ecx - 0x288]
test cl, cl
je 0x406554
sub eax, esi
jmp 0x40656f
or eax, 0xffffffff
lea ecx, [eax + 1]
mov dword [ebp - 0x188], 0
mov dword [ebp - 0x178], 0
mov dword [ebp - 0x174], 0xf
mov byte [ebp - 4], 1
cmp edi, ecx
jb 0x40672f
mov eax, edi
sub eax, ecx
cmp eax, edi
cmovb edi, eax
cmp byte [ebp - 0x289], 0
lea eax, [ebp - 0x170]
cmovne eax, dword [ebp - 0x170]
add eax, ecx
lea ecx, [ebp - 0x188]
push edi
push eax
call fcn.00405d30
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add esp, 4
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
movups xmm0, xmmword [str.01V8YutSgDmzEX8pK3gimydac1Sn2eWa9g3z]
mov eax, dword [0x40b464]
add esp, 4
mov dword [ebp - 0x30], eax
mov al, byte [0x40b468]
movups xmmword [ebp - 0x50], xmm0
mov byte [ebp - 0x2c], al
movups xmm0, xmmword [0x40b454]
movups xmmword [ebp - 0x40], xmm0
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdq
mov ecx, 6
idiv ecx
xor esi, esi
lea edi, [edx + 6]
test edi, edi
jle 0x40663b
nop word [eax + eax]
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdq
mov ecx, 0x24
idiv ecx
mov al, byte [ebp + edx - 0x50]
mov byte [ebp + esi - 0x28], al
inc esi
cmp esi, edi
jl 0x406620
cmp edi, 0x14
jae 0x40672a
push str..exe
lea eax, [ebp - 0x28]
mov byte [ebp + edi - 0x28], 0
push 0x14
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
add esp, 0xc
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x174], 0x10
lea eax, [ebp - 0x188]
cmovae eax, dword [ebp - 0x188]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
mov edx, dword [ebp - 0x174]
add esp, 8
cmp edx, 0x10
jb 0x4066b5
mov ecx, dword [ebp - 0x188]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4066ab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4066fc
push edx
push ecx
call fcn.0040960a
add esp, 8
mov edx, dword [ebp - 0x15c]
mov dword [ebp - 0x178], 0
mov dword [ebp - 0x174], 0xf
mov byte [ebp - 0x188], 0
cmp edx, 0x10
jb 0x40670c
mov ecx, dword [ebp - 0x170]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x406702
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x406702
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0040960a
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00409191
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0040975d
call fcn.00405e70
int3