joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402993
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push dword [ebp + 8]
call fcn.00401d13
mov esi, eax
xor eax, eax
cmp esi, eax
je 0x402a84
push ebx
push edi
lea edi, [esi + 0x10a8]
mov dword [ebp + 8], eax
cmp word [edi], ax
jne 0x402a31
cmp word [esi + 0xc30], ax
je 0x402a31
mov ebx, dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
push 0x104
push edi
lea eax, [esi + 0xc38]
push eax
call ebx
test eax, eax
jne 0x402a31
push 0x45239c
lea eax, [esi + 0xc30]
push eax
call fcn.0042882a
test eax, eax
je 0x402a31
lea eax, [esi + 0xc30]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x452148
push 0x45239c
lea eax, [ebp - 0x208]
push eax
call fcn.004294f8
push 0x104
push edi
lea eax, [ebp - 0x200]
push eax
call ebx
cmp word [edi], 0
mov ebx, dword [ebp + 0xc]
je 0x402a49
push edi
call fcn.0042ae93
mov dword [ebx], eax
mov dword [ebp + 8], 1
lea eax, [esi + 0x13b0]
cmp word [eax], 0
je 0x402a64
push eax
call fcn.0042ae93
mov ecx, dword [ebp + 8]
inc dword [ebp + 8]
mov dword [ebx + ecx*4], eax
add esi, 0x1330
cmp word [esi], 0
je 0x402a7f
push esi
call fcn.0042ae93
mov ecx, dword [ebp + 8]
inc dword [ebp + 8]
mov dword [ebx + ecx*4], eax
mov eax, dword [ebp + 8]
pop edi
pop ebx
pop esi
leave
ret 0xc
Function at 0x402e73
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa1c
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 8], 0
push edi
je 0x403032
cmp dword [0x5168ac], 4
jl 0x402eb2
lea eax, [esi + 0xc30]
push eax
lea eax, [esi + 0xfc8]
push eax
push str.CDevList::CheckForChangedComPort_ddn_s_devpath_s
push 4
call fcn.0044d31e
add esp, 0x10
push 0x4525ac
lea ebx, [esi + 0xfc8]
push ebx
call fcn.00428778
test eax, eax
je 0x403032
lea edi, [esi + 0x13b0]
cmp word [edi], 0
je 0x403032
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.004476fd
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
push edi
lea eax, [ebp - 0x20c]
push eax
push str.newkn_s_oldkn_s
push 4
call fcn.0044d31e
add esp, 0x10
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x403032
lea eax, [ebp - 0x20c]
push eax
push edi
push ebx
push dword [esi + 4]
push str.Devs__i__DosDeviceName_s_ComKernelName_s__now_ComKernelName_s_____re_check
push 3
call fcn.0044d31e
push str.Device_Parameters
lea eax, [esi + 0xe38]
push eax
push str.SystemCurrentControlSetEnum
lea eax, [ebp - 0x60c]
push 0x4524d0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x2c
push 0x40
push ebx
push str.PortName
lea eax, [ebp - 0x60c]
push eax
push 0x80000002
call fcn.0042805e
test eax, eax
je 0x403032
push ebx
push str.new_res_PortName_s
push 4
call fcn.0044d31e
add esp, 0xc
push 0x208
lea eax, [ebp - 0xa1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x403032
lea eax, [ebp - 0xa1c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
push ebx
push dword [esi + 4]
push str.Devs__i__new_DosDeviceName_s_ComKernelName_s
push 3
call fcn.0044d31e
add esp, 0x14
push 0
lea eax, [ebp + 8]
push eax
lea edi, [esi + 0x1738]
push edi
lea eax, [ebp - 4]
push eax
push 0xd
push dword [esi + 0x10]
mov dword [ebp + 8], 0x100
call dword [sym.imp.CFGMGR32.dll_CM_Get_DevNode_Registry_PropertyW]
push 0x452470
push edi
call dword [sym.imp.SHLWAPI.dll_StrTrimW]
mov ecx, dword [0x50c788]
push 0
push dword [esi + 0x10]
call fcn.00408181
test eax, eax
je 0x40302d
push 1
mov ecx, eax
call fcn.0040b6a5
xor eax, eax
inc eax
jmp 0x403034
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x405077
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
and dword [ebp - 0x18], 0
push ebx
push esi
push edi
push 0x1c
pop esi
mov dword [ebp - 0x14], ecx
push 6
pop ebx
xor eax, eax
mov ecx, ebx
lea edi, [ebp - 0x60]
mov dword [ebp - 0x64], esi
rep stosd dword es:[edi], eax
mov ecx, ebx
mov edx, 0x47a0b8
mov dword [ebp - 0x464], ebx
lea edi, [ebp - 0x44]
xor ebx, ebx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], 0x4519ec
mov dword [ebp - 0x20], 0x47a0c8
mov dword [ebp - 0x1c], 0x47a118
rep stosd dword es:[edi], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], edx
push 0x12
push ebx
push ebx
push dword [ebp - 8]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x405247
lea eax, [ebp - 0x48]
push eax
push ebx
jmp 0x405229
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x400
lea eax, [ebp - 0x464]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailW]
test eax, eax
je 0x40521f
push dword [ebp - 0x50]
mov ecx, dword [ebp - 0x14]
call fcn.00401afc
mov esi, eax
cmp esi, ebx
je 0x40521f
lea eax, [ebp - 0x460]
push eax
lea edi, [esi + 0xc30]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 4
jbe 0x40516b
push 0x40
lea eax, [esi + 0x12b0]
push eax
lea eax, [esi + 0xc38]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov edi, dword [ebp - 4]
cmp edi, 3
jg 0x4051c7
lea eax, [ebp - 0x460]
push eax
call fcn.0042e3a9
cmp edi, ebx
mov dword [esi + 0x3a30], eax
jl 0x4051a4
xor ecx, ecx
inc ecx
cmp edi, ecx
jle 0x40519e
push 2
pop ecx
cmp edi, ecx
je 0x40519e
push 3
pop ecx
cmp edi, ecx
jne 0x4051a4
mov dword [esi + 0x3a34], ecx
push eax
mov eax, dword [esi + 0x3a34]
push dword [eax*4 + 0x4a1018]
lea eax, [esi + 0x1088]
push str._S_i
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
cmp edi, ebx
jl 0x4051fd
cmp edi, 1
jle 0x4051e2
cmp edi, 2
jne 0x4051fd
push dword [esi + 0x3a30]
push str..CdRom_i
jmp 0x4051ed
push dword [esi + 0x3a30]
push str..PhysicalDrive_i
lea eax, [esi + 0x1048]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esi + 0x1048]
cmp word [eax], bx
je 0x405218
push 0x40
add esi, 0x1330
push esi
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x10]
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x10]
push dword [ebp - 8]
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x4050f7
push dword [ebp - 0xc]
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
mov eax, dword [ebp + eax*4 - 0x28]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x4050d1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4053c4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
push ebx
push edi
push dword [ebp + 8]
mov edi, ecx
push str.FindNewChildDevices__i_...
xor ebx, ebx
push 4
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], ebx
call fcn.0044d31e
add esp, 0xc
cmp dword [edi + 0x400c], ebx
mov dword [ebp - 0x14], ebx
jle 0x405563
lea eax, [edi + 0xc]
mov dword [ebp - 0xc], eax
push esi
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
cmp esi, ebx
je 0x40554c
cmp dword [esi], ebx
je 0x40554c
cmp dword [esi + 8], ebx
je 0x40554c
cmp dword [0x50c7d8], ebx
jne 0x405433
cmp dword [esi + 0x3a38], ebx
jne 0x40554c
lea edi, [esi + 0xe38]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x24]
push eax
push edi
push dword [esi + 0x10]
push str._thinking_of__u___s____u
push 4
call fcn.0044d31e
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x24]
cmp eax, 0x2710
jae 0x405549
push edi
push dword [esi + 0x10]
push 0x4536fc
push 4
call fcn.0044d31e
add esp, 0x10
push ebx
push dword [esi + 0x10]
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.CFGMGR32.dll_CM_Get_Child]
test eax, eax
jne 0x405549
push ebx
push 0xc8
lea eax, [ebp - 0x1a4]
push eax
push dword [ebp - 4]
call dword [sym.imp.CFGMGR32.dll_CM_Get_Device_IDW]
test eax, eax
jne 0x405536
push dword [ebp - 4]
lea eax, [ebp - 0x1a4]
push eax
call fcn.00401354
test eax, eax
jne 0x405536
push dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.00401afc
mov esi, eax
cmp esi, ebx
je 0x4054eb
cmp dword [esi + 8], ebx
je 0x4054e4
mov eax, 0x4536f8
jmp 0x4054f0
mov eax, 0x4536f4
jmp 0x4054f0
mov eax, 0x4536f0
push eax
push esi
push dword [ebp - 4]
push str._DevInstChild_u_pDevChild0x_08Ix_pDevChild__IsPresent_S
push 4
call fcn.0044d31e
add esp, 0x14
cmp esi, ebx
je 0x40550d
cmp dword [esi + 8], ebx
jne 0x405536
cmp dword [ebp + 8], ebx
je 0x405523
push ebx
push ebx
push dword [ebp - 4]
push 0x452148
call fcn.0043e7bb
jmp 0x405536
push dword [ebp - 4]
mov ecx, dword [ebp - 8]
push ebx
call fcn.0040455f
test eax, eax
je 0x405536
inc dword [ebp - 0x10]
push ebx
push dword [ebp - 4]
lea eax, [ebp - 4]
push eax
call dword [sym.imp.CFGMGR32.dll_CM_Get_Sibling]
jmp 0x40548e
mov edi, dword [ebp - 8]
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], 4
cmp eax, dword [edi + 0x400c]
jl 0x405401
pop esi
mov eax, dword [ebp - 0x10]
pop edi
pop ebx
leave
ret 4
Function at 0x405e29
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc08
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x405fbc
push ebx
mov ebx, dword [ebp + 0xc]
push ebx
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_KillTimer]
push 0x200
lea eax, [ebp - 0xc08]
push eax
push dword [ebp + 0x14]
call fcn.0042b00a
push 0x7fe
lea eax, [ebp - 0x804]
push 0
push eax
mov dword [ebp - 0x808], 0x20
call fcn.004476fd
add esp, 0xc
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp - 0xc08]
push eax
lea eax, [ebp - 0x806]
push eax
call dword [sym.imp.USER32.dll_wvsprintfW]
inc eax
cmp eax, 0x124
jl 0x405ecc
push str.CStatusText::PrintfStatusText
push 0x58
push str..CStatusText.cpp
push str.INT3_in__S_line__u__function__S
push 1
call fcn.0044d31e
add esp, 0x14
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
mov word [ebp - 0x5c2], ax
cmp dword [0x5168ac], 4
jl 0x405eec
lea eax, [ebp - 0x808]
push eax
push ebx
push str.STATUS__u_:__s
push 4
call fcn.0044d31e
add esp, 0x10
push edi
lea eax, [ebp - 0x808]
push eax
push dword [esi + ebx*4 + 4]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
cmp word [ebp - 0x808], 0
mov dword [esi + ebx*4 + 0x2c], eax
jne 0x405f44
or ebx, 0xffffffff
call edi
mov ecx, dword [esi]
mov dword [ebp + 8], eax
xor eax, eax
test ecx, ecx
jle 0x405f44
lea edx, [esi + 0x2c]
mov edi, dword [edx - 0x28]
cmp word [edi], 0
je 0x405f3c
mov edi, dword [edx]
sub edi, dword [ebp + 8]
cmp edi, 0xffffffff
jae 0x405f3c
mov ebx, eax
inc eax
add edx, 4
cmp eax, ecx
jl 0x405f27
and dword [ebp - 4], 0
pop edi
test ebx, ebx
jl 0x405f83
cmp dword [0x5168ac], 5
jl 0x405f6c
push dword [esi + ebx*4 + 4]
push dword [ebp + 0xc]
push str.SB_SETTEXT__i___s
push 5
call fcn.0044d31e
add esp, 0x10
push dword [esi + ebx*4 + 4]
push dword [ebp + 0xc]
push 0x40b
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x405fa1
lea eax, [ebp - 4]
push eax
push 0x64
push 2
push 0x452148
push dword [ebp + 0xc]
push 0x40b
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
cmp dword [ebp + 0x10], 0
pop ebx
je 0x405fbc
push 0x405db9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_SetTimer]
pop esi
leave
ret

Function at 0x406547
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
dec eax
dec eax
je 0x406570
dec eax
je 0x40656b
dec eax
dec eax
jne 0x40656b
push 2
pop eax
jmp 0x4065b4
xor eax, eax
inc eax
jmp 0x4065b4
add esi, 8
push esi
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
mov word [ebp - 0x10], ax
push 0x104
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
push 0x453a04
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrW]
neg eax
sbb eax, eax
and eax, 2
inc eax
pop esi
leave
ret 4
Function at 0x4065b9
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x453c08]
mov dword [ebp - 8], eax
mov eax, dword [0x453c0c]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
xor eax, eax
push 0x41
mov word [esi], ax
pop eax
mov word [ebp - 8], ax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jb 0x40661d
cmp eax, 3
jbe 0x4065f8
cmp eax, 5
jne 0x40661d
push 0x34
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x40661d
push dword [ebp + 8]
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40662a
inc word [ebp - 8]
cmp word [ebp - 8], 0x5a
jbe 0x4065df
jmp 0x406635
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
pop esi
leave
ret 8
Function at 0x40663a
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esi
cmp dword [esi + 0xc], edi
jne 0x406674
cmp dword [esi + 0x840], 0xffffffff
jne 0x406674
add esi, 0x930
xor eax, eax
cmp word [esi], di
je 0x40679a
mov word [esi], ax
inc eax
jmp 0x40679a
push ebx
mov ebx, 0x28a0
push ebx
call fcn.00447831
push ebx
push edi
push eax
mov dword [ebp - 4], eax
call fcn.004476fd
lea edi, [esi + 0x848]
xor eax, eax
add esp, 0x10
cmp word [edi], ax
je 0x40679e
cmp dword [0x4a7600], eax
je 0x406752
push edi
push str.GetVolumePathNamesForVolumeName__s_...
push 3
mov dword [ebp - 0x10], eax
call fcn.0044d31e
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push 0x1450
push dword [ebp - 4]
push edi
call dword [0x4a7600]
test eax, eax
je 0x40672d
cmp dword [0x5168ac], 3
jl 0x406718
push dword [ebp - 4]
call fcn.00427d93
mov edi, eax
test edi, edi
je 0x406704
push edi
push str._OK__mp_s
push 3
call fcn.0044d31e
push edi
call fcn.0044786c
add esp, 0x10
jmp 0x406718
push 0x452078
push str._OK__mp_s
push 3
call fcn.0044d31e
add esp, 0xc
push ebx
add esi, 0x930
push esi
push dword [ebp - 4]
call fcn.004476ba
add esp, 0xc
jmp 0x40677d
call fcn.0044a8c1
push eax
push str._err_S
push 3
call fcn.0044d31e
add esp, 0xc
xor eax, eax
mov word [esi + 0x930], ax
xor esi, esi
jmp 0x406858
push dword [ebp - 4]
push edi
call fcn.004065b9
push dword [ebp - 4]
push str.Letter_s
push 3
call fcn.0044d31e
push ebx
add esi, 0x930
push esi
push dword [ebp - 4]
call fcn.004476ba
add esp, 0x18
test eax, eax
je 0x40674b
push ebx
push dword [ebp - 4]
push esi
call fcn.00447767
push dword [ebp - 4]
call fcn.0044786c
xor eax, eax
add esp, 0x10
inc eax
pop ebx
pop edi
pop esi
leave
ret
lea eax, [esi + 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 4
jbe 0x40674b
mov esi, 0x453c18
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
push 0x41
pop eax
movsw word es:[edi], word [esi]
mov word [ebp - 0xc], ax
push 0x104
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x406832
mov eax, dword [ebp - 0x10]
add eax, 0x428
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x406832
lea eax, [ebp - 0xc]
push eax
push str.Letter_s
push 3
call fcn.0044d31e
lea eax, [ebp - 0xc]
push eax
push 0x453c10
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [ebp - 0x10]
push ebx
lea eax, [esi + 0x930]
push eax
push dword [ebp - 4]
call fcn.004476ba
add esp, 0x24
test eax, eax
jne 0x406842
inc word [ebp - 0xc]
cmp word [ebp - 0xc], 0x5a
jbe 0x4067c2
jmp 0x40674b
push ebx
push dword [ebp - 4]
add esi, 0x930
push esi
call fcn.00447767
xor esi, esi
add esp, 0xc
inc esi
push dword [ebp - 4]
call fcn.0044786c
pop ecx
mov eax, esi
jmp 0x406799
Function at 0x406868
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0xc], ebx
je 0x406a1c
lea edi, [esi + 0x848]
cmp word [edi], bx
je 0x406a1c
mov eax, dword [0x50aab0]
push edi
push str.GetVolumeInformation__s_...
push 3
mov dword [ebp - 4], eax
call fcn.0044d31e
add esp, 0xc
push 0x20
lea eax, [ebp - 0x48]
push eax
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push 0x101
lea eax, [ebp - 0x24c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
cmp dword [0x50aa94], ebx
jne 0x406a1c
mov ecx, dword [ebp - 4]
cmp ecx, dword [0x50aab0]
jne 0x406a1c
cmp eax, ebx
je 0x4069c0
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x24c]
push eax
push str._Label_s_Serial_08X_FileSystem_s
push 3
call fcn.0044d31e
mov eax, dword [ebp - 4]
add esp, 0x14
cmp eax, dword [0x50aab0]
jne 0x4069bb
push 0x453ca0
lea eax, [ebp - 0x48]
push eax
mov dword [esi + 0x3574], ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x406969
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x406969
cmp dword [ebp - 4], 0xff5
jae 0x406951
push 0x453c98
jmp 0x40695f
cmp dword [ebp - 4], 0xfff5
jae 0x406969
push 0x453c90
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [ebp - 8]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
lea eax, [esi + 0x32e4]
push str._04X__04X
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
add esp, 0x10
lea eax, [ebp - 0x24c]
push eax
lea eax, [esi + 0x32f8]
push eax
call edi
lea eax, [ebp - 0x48]
push eax
lea eax, [esi + 0x34fa]
push eax
call edi
mov eax, dword [ebp - 8]
mov dword [esi + 0x32e0], eax
mov byte [esi + 0x353a], bl
xor eax, eax
inc eax
jmp 0x406a1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x3574], eax
call fcn.0044a89f
push eax
push str._err_s
push 3
call fcn.0044d31e
xor eax, eax
add esp, 0xc
cmp dword [esi + 0x3574], 0x80310000
mov word [esi + 0x32e4], ax
mov word [esi + 0x32f8], ax
mov word [esi + 0x34fa], ax
mov dword [esi + 0x32e0], ebx
jne 0x406a1c
push str.locked_by_BitLocker
add esi, 0x353a
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406f9c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x420
cmp word [eax], 0x5c
jne 0x406fb1
add eax, 8
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x5c
lea eax, [ebp - 0x218]
push eax
call fcn.00427ab9
push 0x104
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x406fee
leave
ret 0xc
push esi
push str.Volume
push 0
lea ecx, [ebp - 0x10]
call fcn.00445570
xor esi, esi
cmp dword [ebp - 4], esi
jle 0x407022
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 8]
push dword [eax + esi*8]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x407026
inc esi
cmp esi, dword [ebp - 4]
jl 0x407005
xor esi, esi
jmp 0x407041
mov eax, dword [ebp - 8]
push dword [eax + esi*8 + 4]
push 0x453e14
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_wsprintfW]
xor esi, esi
add esp, 0xc
inc esi
lea ecx, [ebp - 0x10]
call fcn.00445421
mov eax, esi
pop esi
jmp 0x406fea
Function at 0x407857
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
je 0x40794c
mov eax, dword [ecx + 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 1
push 0x1104
push dword [0x50a144]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x40795a
mov esi, dword [ebp - 0x10]
mov eax, dword [0x50a108]
test esi, esi
jl 0x4078a7
cmp dword [ebp - 8], eax
jle 0x40795a
cmp esi, eax
jle 0x4078b2
mov esi, eax
sub esi, dword [ebp - 8]
jmp 0x4078be
cmp dword [ebp - 8], 0
jge 0x40795a
neg esi
test esi, esi
je 0x40795a
mov ecx, dword [0x4a1af4]
add ecx, esi
js 0x40795a
mov ecx, dword [0x50a1e8]
add ecx, esi
cmp ecx, eax
jg 0x40795a
push dword [0x50aaa8]
call fcn.00433f11
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
mov dword [ebp + 8], ebx
call edi
sub eax, dword [ebx + 0xfe8]
mov ebx, 0x2710
cmp eax, ebx
jb 0x407916
call edi
mov ecx, dword [ebp + 8]
sub eax, dword [ecx + 0xfe4]
cmp eax, ebx
jae 0x407949
mov eax, dword [0x50aaa8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 1
push 0x1104
push dword [0x50a144]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x10]
add eax, esi
js 0x40795a
mov eax, dword [ebp - 8]
add esi, eax
cmp esi, dword [0x50a108]
jg 0x40795a
mov ecx, dword [ebp - 4]
push dword [ecx + 8]
push dword [0x50a144]
call fcn.0043a917
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4079ac
Capabilities:
Get disk information

Disassembly:
push esi
lea esi, [ecx + 0xfd0]
push dword [esi]
mov ecx, dword [0x50c78c]
call fcn.0040121c
test eax, eax
je 0x407a9c
mov esi, dword [esi]
mov ecx, dword [0x50c78c]
push ebx
push ebp
push edi
push esi
call fcn.00404a15
xor ebx, ebx
push ebx
push dword [esi + 0x10]
lea edi, [esi + 0x39f4]
push edi
lea eax, [esi + 0x39f0]
push eax
call dword [sym.imp.CFGMGR32.dll_CM_Get_DevNode_Status]
xor ebp, ebp
inc ebp
test eax, eax
jne 0x4079ff
mov dword [esi + 8], ebp
jmp 0x407a08
mov dword [edi], 0x2d
mov dword [esi + 8], ebx
cmp dword [esi + 8], ebx
je 0x407a99
cmp dword [esi + 0x3a3c], ebx
jne 0x407a21
cmp dword [esi + 0x3a38], ebx
je 0x407a99
lea edi, [esi + 0x3a30]
cmp dword [edi], 0xffffffff
jne 0x407a3a
lea eax, [esi + 0xc30]
push eax
call fcn.0042e3a9
mov dword [edi], eax
cmp dword [esi + 0x3a38], ebx
je 0x407a99
cmp dword [esi + 0x3b04], ebx
jne 0x407a60
mov eax, dword [0x50c78c]
push dword [esi + 0x10]
mov ecx, dword [eax + 8]
call fcn.004061f7
mov dword [esi + 0x3b04], eax
mov eax, dword [esi + 0x3b04]
cmp eax, ebx
je 0x407a7c
pop edi
mov dword [eax + 0xc], ebp
mov ecx, dword [esi + 0x3b04]
pop ebp
pop ebx
pop esi
jmp fcn.0040663a
push dword [esi + 0x10]
lea eax, [esi + 0xc30]
push eax
mov eax, dword [0x50c78c]
mov ecx, dword [eax + 8]
call fcn.0040705f
mov dword [esi + 0x3b04], eax
pop edi
pop ebp
pop ebx
pop esi
ret