Function at 0x409830
Capabilities:
Delete file
Get disk information
Move file
Persist via lnk shortcut
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
push 0x13880
xor edi, edi
call fcn.0045669c
mov esi, eax
add esp, 4
test esi, esi
jne 0x409856
lea eax, [edi + 1]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push 0x2710
call fcn.0045669c
mov ebx, eax
add esp, 4
mov dword [ebp - 4], ebx
test ebx, ebx
jne 0x409880
push esi
call fcn.004533f0
add esp, 4
lea eax, [ebx + 2]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x2710
push 0
push ebx
call fcn.0044f970
add esp, 0xc
push ebx
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x4098be
push esi
call fcn.004533f0
push ebx
call fcn.004533f0
add esp, 8
mov eax, 5
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor ecx, ecx
test eax, eax
je 0x4098f2
lea eax, [ebx + 2]
mov ebx, dword [ebp - 0x14]
nop word [eax + eax]
cmp word [eax - 2], 0
movzx edx, word [eax]
je 0x4098e2
test dx, dx
jne 0x4098e7
inc edi
jmp 0x4098e7
test dx, dx
je 0x4098ef
inc ecx
add eax, 2
cmp ecx, ebx
jb 0x4098d0
mov ebx, dword [ebp - 4]
shl edi, 2
push edi
call fcn.0045669c
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
jne 0x409920
push esi
call fcn.004533f0
push ebx
call fcn.004533f0
add esp, 8
mov eax, 2
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push edi
push 0
push eax
call fcn.0044f970
xor edx, edx
xor edi, edi
add esp, 0xc
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x14], edx
jbe 0x4099f7
mov ecx, dword [ebp - 8]
mov eax, 2
add ecx, 0xfffffffc
add ebx, 2
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 4]
sub eax, ecx
lfence
mov dword [ebp - 0x24], eax
nop dword [eax + eax]
cmp word [ebx - 2], 0
movzx eax, word [ebx]
je 0x4099df
test ax, ax
jne 0x4099e4
inc dword [ebp - 0xc]
lea eax, [edi + ecx]
add dword [ebp - 0x10], 4
mov edi, eax
mov dword [ebp - 0x1c], eax
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x409981
sub edi, ecx
sar edi, 1
imul eax, edi, 0x64
add eax, 2
push eax
call fcn.0045669c
mov ecx, dword [ebp - 0x10]
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ecx], eax
test eax, eax
je 0x409a4c
lea ecx, [edi*2 + 2]
push ecx
push 0
push eax
call fcn.0044f970
push edi
push dword [ebp - 0x1c]
lea eax, [edi + 2]
push eax
push dword [ebp - 0x20]
call fcn.004538c5
mov edi, dword [ebp - 0x24]
add esp, 0x1c
mov ecx, dword [ebp - 4]
add edi, ebx
mov edx, dword [ebp - 0x18]
jmp 0x4099e4
test ax, ax
je 0x4099f4
inc edx
add ebx, 2
mov dword [ebp - 0x18], edx
cmp edx, dword [ebp - 0x14]
jb 0x409960
mov ebx, dword [ebp - 4]
push ebx
call fcn.004533f0
xor edi, edi
add esp, 4
mov dword [ebp - 0x18], edi
cmp dword [ebp - 0xc], edi
jbe 0x409b25
mov eax, dword [ebp - 8]
mov ebx, dword [eax + edi*4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
sub eax, 2
je 0x409a29
sub eax, 1
jne 0x409afc
xor edi, edi
nop dword [eax + eax]
push 0x13880
push 0
push esi
call fcn.0044f970
add esp, 0xc
test edi, edi
jne 0x409a6c
push ebx
push 0x46cbd8
jmp 0x409ab8
push esi
lfence
call fcn.004533f0
push dword [ebp - 4]
call fcn.004533f0
add esp, 8
mov eax, 2
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp edi, 1
jne 0x409a79
push ebx
push 0x46cc00
jmp 0x409ab8
cmp edi, 2
jne 0x409a86
push ebx
push 0x46cc28
jmp 0x409ab8
cmp edi, 3
jne 0x409a93
push ebx
push 0x46cc50
jmp 0x409ab8
cmp edi, 4
jne 0x409aa0
push ebx
push 0x46cc7c
jmp 0x409ab8
cmp edi, 5
jne 0x409aad
push ebx
push 0x46cca4
jmp 0x409ab8
cmp edi, 6
jne 0x409ac1
push ebx
push 0x46ccd0
push esi
call fcn.004025f0
add esp, 0xc
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push esi
push 0x3005
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
inc edi
cmp edi, 7
jl 0x409a30
mov edi, dword [ebp - 0x18]
test ebx, ebx
je 0x409b15
push ebx
call fcn.004533f0
mov eax, dword [ebp - 8]
add esp, 4
mov dword [eax + edi*4], 0
jmp 0x409b18
mov eax, dword [ebp - 8]
inc edi
mov dword [ebp - 0x18], edi
cmp edi, dword [ebp - 0xc]
jb 0x409a11
push dword [ebp - 8]
call fcn.004533f0
push esi
call fcn.004533f0
add esp, 8
xor eax, eax
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret