Function at 0x415770
Capabilities:
Contain obfuscated stackstrings
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], 0
push 0
push 0
mov dword [ebx], 0
mov dword [ebx + 4], ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
test edi, edi
je 0x4159d4
lea esi, [edi*2 + 2]
push esi
call fcn.00439af3
add esp, 4
mov dword [ebp - 0xc], eax
push esi
mov esi, eax
push 0
push esi
call fcn.00436bc0
add esp, 0xc
test esi, esi
je 0x4159d4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push esi
mov edi, esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 8], eax
test eax, eax
je 0x415859
push 0x20
call fcn.0043512f
mov esi, eax
xorps xmm0, xmm0
add esp, 4
xor eax, eax
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov eax, edi
lea edx, [eax + 2]
nop word [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x415810
sub eax, edx
mov ecx, esi
sar eax, 1
push eax
push edi
call fcn.004159e0
inc dword [ebp - 4]
lea ecx, [esi + 0x18]
mov dword [ecx], 0
mov eax, dword [ebx + 4]
mov dword [esi + 0x1c], eax
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov eax, dword [ebp - 8]
mov dword [ebx + 4], ecx
lea edi, [edi + eax*2]
add edi, 2
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 8], eax
test eax, eax
jne 0x4157e0
mov byte [ebp - 0x3c], 0
mov edi, 0x7f
mov byte [ebp - 0x3b], 0x25
mov byte [ebp - 0x3a], 0x1d
mov byte [ebp - 0x39], 0x6b
mov byte [ebp - 0x38], 0x1d
mov byte [ebp - 0x37], 0x2e
mov byte [ebp - 0x36], 0x1d
mov byte [ebp - 0x35], 0x60
mov byte [ebp - 0x34], 0x1d
mov byte [ebp - 0x33], 0x71
mov byte [ebp - 0x32], 0x1d
mov byte [ebp - 0x31], 0
mov byte [ebp - 0x30], 0x1d
mov byte [ebp - 0x2f], 0x37
mov byte [ebp - 0x2e], 0x1d
mov byte [ebp - 0x2d], 0x71
mov byte [ebp - 0x2c], 0x1d
mov byte [ebp - 0x2b], 0
mov byte [ebp - 0x2a], 0x1d
mov byte [ebp - 0x29], 0x71
mov byte [ebp - 0x28], 0x1d
mov byte [ebp - 0x27], 0xd
mov byte [ebp - 0x26], 0x1d
mov byte [ebp - 0x25], 0x29
mov byte [ebp - 0x24], 0x1d
mov byte [ebp - 0x23], 0x39
mov byte [ebp - 0x22], 0x1d
mov byte [ebp - 0x21], 0x7c
mov byte [ebp - 0x20], 0x1d
mov byte [ebp - 0x1f], 0x18
mov byte [ebp - 0x1e], 0x1d
mov byte [ebp - 0x1d], 0x20
mov byte [ebp - 0x1c], 0x1d
mov byte [ebp - 0x1b], 0
mov byte [ebp - 0x1a], 0x1d
mov byte [ebp - 0x19], 0x1d
mov byte [ebp - 0x18], 0x1d
mov al, byte [ebp - 0x3b]
mov al, byte [ebp - 0x3c]
test al, al
jne 0x415924
xor esi, esi
nop
mov al, byte [ebp + esi - 0x3b]
mov ecx, 0x1d
movzx eax, al
sub ecx, eax
imul eax, ecx, 0x17
cdq
idiv edi
lea eax, [edx + 0x7f]
cdq
idiv edi
mov byte [ebp + esi - 0x3b], dl
inc esi
cmp esi, 0x24
jb 0x415900
push dword [ebp - 4]
lea eax, [ebp - 0x3b]
push eax
call fcn.00421550
mov esi, dword [ebx]
add esp, 8
mov dword [ebp - 8], esi
test esi, esi
je 0x4159be
cmp dword [esi + 0x14], 7
mov ebx, esi
jbe 0x41594a
mov ebx, dword [esi]
mov byte [ebp - 0x14], 0
mov byte [ebp - 0x13], 0x6a
mov byte [ebp - 0x12], 0x34
mov byte [ebp - 0x11], 0x6e
mov byte [ebp - 0x10], 0x34
mov byte [ebp - 0xf], 0x34
mov byte [ebp - 0xe], 0x34
mov al, byte [ebp - 0x13]
mov al, byte [ebp - 0x14]
test al, al
jne 0x4159a7
xor edi, edi
lea esi, [edi + 0x7f]
nop word [eax + eax]
mov al, byte [ebp + edi - 0x13]
mov ecx, 0x34
movzx eax, al
sub ecx, eax
imul eax, ecx, 0x2c
cdq
idiv esi
lea eax, [edx + 0x7f]
cdq
idiv esi
mov byte [ebp + edi - 0x13], dl
inc edi
cmp edi, 6
jb 0x415980
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x13]
push ebx
push eax
call fcn.00421550
mov esi, dword [esi + 0x18]
add esp, 8
mov dword [ebp - 8], esi
test esi, esi
jne 0x415940
mov eax, dword [ebp - 0xc]
push eax
call fcn.00439e6b
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret