Function at 0x140004324
Capabilities:
Timestomp file

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x140016010]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
inc dword [0x140026c3c]
xor r13d, r13d
mov al, byte [0x1400167ec]
mov ebx, r13d
mov r14, qword [rbp + 0x230]
mov r12b, r9b
mov dword [rsp + 0x70], ebx
mov r10, rdx
mov byte [rsp + 0x51], r9b
mov rdi, rcx
mov qword [rbp - 0x78], rdx
mov qword [rbp - 0x80], r8
mov qword [rsp + 0x68], r14
mov dword [rsp + 0x78], r13d
test al, 8
jne 0x140004462
test al, 0x10
je 0x14000448e
test rcx, rcx
je 0x140004462
and r12b, 4
lea eax, [r13 + 0x22]
mov rbx, qword [rdi + 8]
cmp word [rbx], ax
jne 0x1400043e8
mov edx, eax
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
lea rdx, [rbx + 2]
mov word [rax], r13w
movzx eax, word [rdx]
mov word [rbx], ax
jmp 0x1400043e3
mov rcx, rdx
add rdx, 2
movzx eax, word [rdx]
mov word [rcx], ax
test ax, ax
jne 0x1400043d6
mov rdx, rbx
mov ecx, 5
call fcn.140003f70
test r12b, r12b
jne 0x140004451
lea rcx, [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov qword [rsp + 0x30], r13
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, pe_nt_image_headers64
mov dword [rsp + 0x20], 3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140004451
lea r9, [rbp - 0x78]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFileTime]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rdi]
mov eax, 0x22
test rdi, rdi
jne 0x1400043b2
xor eax, eax
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.1400106c0
mov rbx, qword [rsp + 0x328]
add rsp, 0x2d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
test rdx, rdx
je 0x140004b97
mov al, r12b
shr al, 6
and al, 1
mov byte [rsp + 0x60], al
or rsi, 0xffffffffffffffff
mov rcx, qword [r10 + 8]
lea r8, [rbp - 0x80]
mov r9b, al
lea rdx, [rbp - 0x68]
call fcn.14000857c
mov dil, al
mov dword [0x14002748c], r13d
mov rax, qword [rbp - 0x68]
mov r15b, r13b
mov qword [rsp + 0x58], rax
mov rcx, rax
movzx edx, word [rax]
cmp dx, 0x21
je 0x14000467e
cmp dx, 0x2d
je 0x1400045e8
cmp dx, 0x40
je 0x1400045d2
cmp dx, 0x5e
je 0x140004533
cmp dx, 0x20
je 0x140004682
cmp dx, 9
jne 0x140004567
cmp dx, 0x21
je 0x14000467e
cmp dx, 0x2d
je 0x1400045e8
cmp dx, 0x40
je 0x1400045d2
cmp dx, 0x5e
jne 0x140004682
add rcx, 2
mov qword [rsp + 0x58], rcx
cmp word [rcx], 0x20
je 0x14000454b
cmp word [rcx], 9
mov eax, r13d
jne 0x140004550
mov eax, 1
neg eax
sbb ax, ax
and ax, 0xffc2
add ax, 0x5e
cmp ax, 0x5e
jne 0x140004682
mov byte [rsp + 0x50], r15b
test r15b, 4
je 0x1400046df
mov rdx, qword [rbp - 0x80]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov r9b, r15b
mov r8b, r12b
mov qword [rsp + 0x20], r14
call fcn.140006768
test al, al
je 0x1400046da
mov rbx, qword [rsp + 0x58]
mov edx, 0x24
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
test rax, rax
je 0x140004693
mov rcx, qword [rsp + 0x58]
lea r8, [rbp - 0x80]
mov dl, 0xff
call fcn.14000ec7c
mov qword [rsp + 0x58], rax
jmp 0x140004698
test byte [0x1400167ee], 4
jne 0x140004682
or r15b, 1
jmp 0x140004682
add rcx, 2
or r15b, 2
mov qword [rsp + 0x58], rcx
movzx ecx, word [rcx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_iswdigit]
test eax, eax
je 0x14000466c
mov rbx, qword [rsp + 0x58]
lea rdx, [rsp + 0x58]
mov rcx, rbx
mov r8d, 0xa
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstoul]
mov dword [0x14002748c], eax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 0x22
jne 0x140004648
mov rax, qword [rsp + 0x58]
mov r8, rbx
mov ecx, dword [0x140026c20]
mov edx, 0x436
mov word [rax], r13w
call fcn.140003e48
mov rax, qword [rsp + 0x58]
jmp 0x14000465d
mov rax, qword [rsp + 0x58]
add rax, 2
mov qword [rsp + 0x58], rax
movzx ecx, word [rax]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_iswspace]
test eax, eax
jne 0x14000464f
jmp 0x140004673
or dword [0x14002748c], 0xffffffff
mov rcx, qword [rsp + 0x58]
sub rcx, 2
jmp 0x140004682
or r15b, 4
add rcx, 2
mov qword [rsp + 0x58], rcx
movzx edx, word [rcx]
jmp 0x1400044d7
mov rax, qword [rsp + 0x58]
cmp rbx, rax
je 0x1400046a6
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ebx, dword [rsp + 0x70]
test r12b, 2
jne 0x140004b7f
cmp byte [0x140026c3b], r13b
je 0x140004b7f
test ebx, ebx
je 0x140004b7f
cmp ebx, dword [0x14002748c]
ja 0x140004ba1
jmp 0x140004b7f
mov rcx, qword [rsp + 0x58]
mov qword [rbp - 0x60], rcx
test dil, dil
jne 0x140004710
mov edx, 0x24
call qword [sym.imp.VCRUNTIME140.dll_wcschr]
mov rcx, qword [rsp + 0x58]
test rax, rax
je 0x140004710
lea r8, [rbp - 0x80]
mov dl, 0xff
call fcn.14000ec7c
mov rcx, rax
mov qword [rsp + 0x58], rax
mov rax, rsi
inc rax
cmp word [rcx + rax*2], r13w
jne 0x140004713
inc rax
mov ecx, 0x8000
cmp rax, rcx
mov ebx, ecx
cmova rbx, rax
mov eax, 2
mul rbx
cmovo rax, rsi
mov rcx, rax
int3
mov r10, qword [rbp - 0x78]
mov al, byte [rsp + 0x60]
mov r10, qword [r10]
mov qword [rbp - 0x78], r10
test r10, r10
jne 0x1400044a7
test r12b, 2
jne 0x140004462
cmp byte [0x140026c3b], r13b
je 0x140004462
cmp ebx, dword [0x14002748c]
jbe 0x140004462
mov eax, ebx
jmp 0x140004464