Function at 0x523150
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d39a
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x6121d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x14]
mov dword [ebp - 4], 0
mov dword [ebp - 0x25c], 0
mov dword [ebp - method.WaJson.virtual_0], vtable.WaJson.0
mov byte [ebp - 0x25c], 0
mov dword [ebp - 0x260], 5
mov dword [ebp - 0x250], 0
mov dword [ebp - method.WaJson.virtual_0], vtable.WaJson.0
mov byte [ebp - 0x250], 0
mov dword [ebp - 0x254], 5
mov dword [ebp - 0x298], 0
mov dword [ebp - method.WaJson.virtual_0], vtable.WaJson.0
mov byte [ebp - 0x298], 0
mov dword [ebp - 0x29c], 5
lea eax, [ebp - 0x240]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x258]
mov dword [ebp - 0x240], 3
call fcn.004ad8c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov esi, eax
test esi, esi
je 0x5235ce
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00541106
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x5235ce
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ecx, ebx
mov esi, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x523260
sub ecx, edx
sar ecx, 1
je 0x5235c5
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x52358d
push 0x104
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x52358d
mov dword [ebp - 0x244], eax
mov dword [ebp - method.WaJson.virtual_0], vtable.WaJson.0
mov byte [ebp - 0x244], al
mov dword [ebp - 0x248], 5
mov byte [ebp - 4], 4
movzx eax, word [esi]
push eax
call fcn.005801e0
add esp, 4
mov word [esi], ax
lea ecx, [ebp - 0x230]
push esi
call fcn.004ab630
mov byte [ebp - 4], 5
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x268], 0
cmovae eax, dword [ebp - 0x230]
push eax
mov dword [ebp - method.WaJson.virtual_0], vtable.WaJson.0
mov byte [ebp - 0x268], 0
mov dword [ebp - 0x26c], 5
call fcn.004b08d0
lea eax, [ebp - 0x270]
mov byte [ebp - 4], 6
push eax
push str.path
lea ecx, [ebp - 0x24c]
call fcn.004adf50
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x270]
mov dword [ebp - method.WaJson.virtual_0], vtable.WaJson.0
call fcn.004adb30
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x27c]
mov dword [ebp - 0x274], 0
push str.removable
mov dword [ebp - method.WaJson.virtual_0], vtable.WaJson.0
mov byte [ebp - 0x274], 0
mov dword [ebp - 0x278], 5
call fcn.004b08d0
lea eax, [ebp - 0x27c]
mov byte [ebp - 4], 8
push eax
push 0x5ead48
lea ecx, [ebp - 0x24c]
call fcn.004adf50
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x27c]
mov dword [ebp - method.WaJson.virtual_0], vtable.WaJson.0
call fcn.004adb30
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x288]
mov dword [ebp - 0x280], 0
push 0x5ecc64
mov dword [ebp - method.WaJson.virtual_0], vtable.WaJson.0
mov byte [ebp - 0x280], 0
mov dword [ebp - 0x284], 5
call fcn.004b08d0
lea eax, [ebp - 0x288]
mov byte [ebp - 4], 0xa
push eax
push str.state
lea ecx, [ebp - 0x24c]
call fcn.004adf50
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x288]
mov dword [ebp - method.WaJson.virtual_0], vtable.WaJson.0
call fcn.004adb30
mov byte [ebp - 4], 5
mov dword [ebp - method.WaJson.virtual_0], vtable.WaJson.0
mov dword [ebp - 0x28c], 0
push 0x5e91b4
lea ecx, [ebp - 0x294]
mov byte [ebp - 0x28c], 0
mov dword [ebp - 0x290], 5
call fcn.004b08d0
lea eax, [ebp - 0x294]
mov byte [ebp - 4], 0xc
push eax
push str.algorithm
lea ecx, [ebp - 0x24c]
call fcn.004adf50
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x294]
mov dword [ebp - method.WaJson.virtual_0], vtable.WaJson.0
call fcn.004adb30
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x234], 0
mov dword [ebp - method.WaJson.virtual_0], vtable.WaJson.0
mov byte [ebp - 0x234], 0
mov dword [ebp - 0x238], 5
call fcn.004adb30
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x238], 1
lea eax, [ebp - 0x23c]
mov byte [ebp - 4], 0xe
push eax
push str.strength
lea ecx, [ebp - 0x24c]
call fcn.004adf50
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x23c]
mov dword [ebp - method.WaJson.virtual_0], vtable.WaJson.0
call fcn.004adb30
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x258]
call fcn.004adc50
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x523553
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.004abec0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x24c]
mov dword [ebp - method.WaJson.virtual_0], vtable.WaJson.0
call fcn.004adb30
mov byte [ebp - 4], 3
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x523592
sub ecx, edx
sar ecx, 1
lea esi, [esi + ecx*2]
add esi, 2
mov eax, esi
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5235b0
sub eax, edx
sar eax, 1
jne 0x523275
push ebx
call fcn.00541101
add esp, 4
mov dword [ebp - 0x234], 0
lea ecx, [ebp - 0x23c]
mov dword [ebp - method.WaJson.virtual_0], vtable.WaJson.0
mov byte [ebp - 0x234], 0
mov dword [ebp - 0x238], 5
call fcn.004adb30
mov byte [ebp - 0x234], 0
mov dword [ebp - 0x238], 4
lea eax, [ebp - 0x23c]
mov byte [ebp - 4], 0x11
push eax
push str.fully_encrypted
lea ecx, [ebp - 0x264]
call fcn.004adf50
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x23c]
mov dword [ebp - method.WaJson.virtual_0], vtable.WaJson.0
call fcn.004adb30
lea eax, [ebp - 0x258]
mov byte [ebp - 4], 3
push eax
push str.locations
lea ecx, [ebp - 0x264]
call fcn.004ade00
mov eax, dword [ebp - 0x254]
cmp eax, 3
jne 0x523686
mov eax, dword [ebp - 0x250]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
jmp 0x523698
cmp eax, 2
jne 0x523715
mov eax, dword [ebp - 0x250]
mov eax, dword [eax + 8]
test eax, eax
je 0x523715
mov dword [ebp - 0x234], 0
lea ecx, [ebp - 0x23c]
mov dword [ebp - method.WaJson.virtual_0], vtable.WaJson.0
mov byte [ebp - 0x234], 0
mov dword [ebp - 0x238], 5
call fcn.004adb30
mov byte [ebp - 0x234], 1
mov dword [ebp - 0x238], 4
lea eax, [ebp - 0x23c]
mov byte [ebp - 4], 0x13
push eax
push str.encryption_active
lea ecx, [ebp - 0x264]
call fcn.004adf50
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x23c]
mov dword [ebp - method.WaJson.virtual_0], vtable.WaJson.0
call fcn.004adb30
mov byte [ebp - 4], 3
lea eax, [ebp - 0x264]
push eax
push str.result
lea ecx, [ebp - 0x2a0]
call fcn.004ade00
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x2a0]
call fcn.004b0b90
mov esi, eax
cmp edi, esi
je 0x52377e
mov eax, dword [edi + 0x14]
cmp eax, 8
jb 0x523757
inc eax
mov ecx, edi
push eax
push dword [edi]
call fcn.004abec0
mov dword [edi + 0x14], 7
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], 0
jb 0x52376f
mov eax, dword [edi]
jmp 0x523771
mov eax, edi
xor ecx, ecx
mov word [eax], cx
mov ecx, edi
push esi
call fcn.004ab9d0
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x52379c
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.004abec0
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x2a0]
mov dword [ebp - method.WaJson.virtual_0], vtable.WaJson.0
call fcn.004adb30
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x258]
mov dword [ebp - method.WaJson.virtual_0], vtable.WaJson.0
call fcn.004adb30
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x264]
mov dword [ebp - method.WaJson.virtual_0], vtable.WaJson.0
call fcn.004adb30
mov dword [ebp - 4], 0x19
lea ecx, [ebp + 8]
mov dword [ebp + 8], vtable.WaJson.0
call fcn.004adb30
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00540c56
mov esp, ebp
pop ebp
ret 0x10