Function at 0x409270
Capabilities:
Create directory
Get disk information
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
push edi
push 0x4e20
mov dword [esp + 0x2c], ecx
xor esi, esi
call fcn.0045669c
mov ebx, eax
add esp, 4
mov dword [esp + 0xc], ebx
test ebx, ebx
je 0x409618
push 0x4e20
push esi
push ebx
call fcn.0044f970
add esp, 0xc
push 0x2710
call fcn.0045669c
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
test edi, edi
je 0x40960f
push 0x2710
push esi
push edi
call fcn.0044f970
add esp, 0xc
push edi
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [esp + 0x20], eax
test eax, eax
jne 0x409306
push ebx
call fcn.004533f0
add esp, 4
push edi
call fcn.004533f0
add esp, 4
lea eax, [esi + 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
test eax, eax
je 0x409336
mov ebx, dword [esp + 0x20]
lea eax, [edi + 2]
cmp word [eax - 2], 0
movzx edx, word [eax]
je 0x409325
test dx, dx
jne 0x40932a
inc esi
jmp 0x40932a
test dx, dx
je 0x409332
inc ecx
add eax, 2
cmp ecx, ebx
jb 0x409313
mov ebx, dword [esp + 0xc]
shl esi, 2
push esi
call fcn.0045669c
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
jne 0x409368
push ebx
call fcn.004533f0
add esp, 4
push edi
call fcn.004533f0
add esp, 4
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0
push eax
call fcn.0044f970
xor edx, edx
xor esi, esi
add esp, 0xc
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], edx
cmp dword [esp + 0x20], edx
jbe 0x409463
mov ecx, dword [esp + 0x14]
mov eax, 2
add ecx, 0xfffffffc
add edi, 2
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x10]
sub eax, ecx
lfence
mov dword [esp + 0x34], eax
nop word [eax + eax]
cmp word [edi - 2], 0
movzx eax, word [edi]
je 0x409448
test ax, ax
jne 0x40944d
inc dword [esp + 0x18]
lea eax, [esi + ecx]
add dword [esp + 0x1c], 4
mov esi, eax
mov dword [esp + 0x2c], eax
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4093e0
sub esi, ecx
sar esi, 1
imul eax, esi, 0x64
add eax, 2
push eax
call fcn.0045669c
mov ecx, dword [esp + 0x20]
add esp, 4
mov dword [esp + 0x30], eax
mov dword [ecx], eax
test eax, eax
je 0x40952f
lea ecx, [esi*2 + 2]
push ecx
push 0
push eax
call fcn.0044f970
add esp, 0xc
lea eax, [esi + 2]
push esi
push dword [esp + 0x30]
push eax
push dword [esp + 0x3c]
call fcn.004538c5
mov esi, dword [esp + 0x44]
add esp, 0x10
mov ecx, dword [esp + 0x10]
add esi, edi
mov edx, dword [esp + 0x24]
jmp 0x40944d
test ax, ax
je 0x40945f
inc edx
add edi, 2
mov dword [esp + 0x24], edx
cmp edx, dword [esp + 0x20]
jb 0x4093b0
mov edi, dword [esp + 0x10]
push edi
call fcn.004533f0
add esp, 4
push 0x9c40
call fcn.0045669c
mov edi, eax
add esp, 4
test edi, edi
je 0x40960f
xor ebx, ebx
cmp dword [esp + 0x18], ebx
jbe 0x4095e5
mov eax, dword [esp + 0x14]
mov esi, dword [eax + ebx*4]
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
sub eax, 2
je 0x4094ab
sub eax, 1
jne 0x4095bc
push 0x7d0
push 0
push dword [esp + 0x14]
call fcn.0044f970
add esp, 0xc
push str.___AIN
push esi
push 0x46c9bc
push dword [esp + 0x18]
call fcn.004025f0
add esp, 0x10
push 0
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x409553
mov ecx, dword [esp + 0x28]
mov edx, esi
call fcn.00409de0
test eax, eax
je 0x4095bc
push esi
push str.ERROR___Ransompod:_Couldnt_copy_the_sandbox_files_in_the_drive:__ws
push edi
call fcn.004025f0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push edi
call fcn.004533f0
add esp, 4
push dword [esp + 0xc]
call fcn.004533f0
add esp, 4
mov eax, 6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
lfence
call fcn.004533f0
add esp, 4
push dword [esp + 0x10]
call fcn.004533f0
add esp, 4
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4095a6
mov ecx, dword [esp + 0x28]
mov edx, esi
call fcn.00409de0
test eax, eax
je 0x4095bc
push esi
push str.ERROR___Ransompod:_Couldnt_copy_the_sandbox_files_in_the_drive:__ws__while_the_sandbox_folder_is_already_existing.
push edi
call fcn.004025f0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push edi
call fcn.004533f0
add esp, 4
push dword [esp + 0xc]
call fcn.004533f0
add esp, 4
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push str.ERROR___Ransompod:_Couldnt_create_the_sandbox_folder_in_the_drive:__ws
push edi
call fcn.004025f0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test esi, esi
je 0x4095d6
push esi
call fcn.004533f0
mov eax, dword [esp + 0x18]
add esp, 4
mov dword [eax + ebx*4], 0
jmp 0x4095da
mov eax, dword [esp + 0x14]
inc ebx
cmp ebx, dword [esp + 0x18]
jb 0x409493
push dword [esp + 0x14]
call fcn.004533f0
add esp, 4
push dword [esp + 0xc]
call fcn.004533f0
add esp, 4
push edi
call fcn.004533f0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.004533f0
add esp, 4
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret