joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4016cf
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x403004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0xb8], edx
push esi
push esi
push esi
push esi
push esi
mov edi, ecx
call dword [sym.imp.DEVOBJ.dll_DevObjCreateDeviceInfoList]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401722
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x40171a
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4018a8
xor esi, esi
push esi
push esi
push 4
push edi
push esi
push ebx
call dword [sym.imp.DEVOBJ.dll_DevObjGetClassDevs]
mov ecx, eax
call fcn.004015a6
mov edi, eax
mov eax, esi
jmp 0x401882
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0xa0], esi
push ecx
push eax
push ebx
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0x98], esi
mov dword [ebp - 0x94], esi
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x84], esi
mov dword [ebp - 0xa4], 0x24
call dword [sym.imp.DEVOBJ.dll_DevObjEnumDeviceInfo]
mov ecx, eax
call fcn.004015a6
mov edi, eax
test edi, edi
js 0x40187b
push 0x20019
push 1
push esi
push 1
lea eax, [ebp - 0xa4]
push eax
push ebx
call dword [sym.imp.DEVOBJ.dll_DevObjOpenDevRegKey]
mov esi, eax
mov dword [ebp - 0xb4], esi
cmp esi, 0xffffffff
jne 0x4017db
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x4017d5
movzx edi, di
or edi, 0x80070000
test edi, edi
js 0x401879
xor edi, edi
lea eax, [ebp - 0x80]
push 0x7c
push edi
push eax
mov dword [ebp - 0xa8], edi
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0xb0], 0x7c
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0xa8]
push eax
push edi
push 0x401170
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jle 0x40182a
movzx esi, si
or esi, 0x80070000
push dword [ebp - 0xb4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edi, [esi + 0x1ffffdf5]
neg edi
sbb edi, edi
and edi, esi
mov eax, edi
jl 0x401879
cmp dword [ebp - 0xa8], 1
jne 0x401879
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x80]
push eax
push 0xffffffffffffffff
push dword [ebp - 0xb8]
call dword [sym.imp.KERNEL32.dll_CompareStringOrdinal]
cmp eax, 2
jne 0x401879
lea edx, [ebp - 0xa4]
mov ecx, ebx
call fcn.004015cf
mov edi, eax
xor esi, esi
mov eax, dword [ebp - 0xac]
inc eax
mov dword [ebp - 0xac], eax
test edi, edi
jns 0x40173f
lea esi, [edi + 0x7ff8fefd]
neg esi
sbb esi, esi
and esi, edi
cmp ebx, 0xffffffff
je 0x4018a8
push ebx
call dword [sym.imp.DEVOBJ.dll_DevObjDestroyDeviceInfoList]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401d10
leave
ret
Function at 0x401d00
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x402360
call fcn.004020d0
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x40337c
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x401b1e
cmp eax, esi
jne 0x401b11
xor esi, esi
inc esi
mov edi, esi
jmp 0x401b21
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401af5
xor esi, esi
inc esi
cmp dword [0x403380], esi
jne 0x401b33
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x401b6d
cmp dword [0x403380], ebx
jne 0x401b67
mov dword [0x403380], esi
push 0x4010dc
push 0x4010d0
call fcn.00401c58
pop ecx
pop ecx
test eax, eax
je 0x401b6d
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x401c42
mov dword [0x403024], esi
cmp dword [0x403380], esi
jne 0x401b90
push 0x4010cc
push 0x4010c4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x403380], 2
test edi, edi
jne 0x401b9d
xor eax, eax
mov ecx, 0x40337c
xchg dword [ecx], eax
cmp dword [0x403384], 0
je 0x401bc9
push 0x403384
call fcn.00401f00
pop ecx
test eax, eax
je 0x401bc9
push ebx
push 2
push ebx
mov esi, dword [0x403384]
mov ecx, esi
call dword [0x4040c4]
call esi
push dword [0x403030]
push dword [0x40302c]
push dword [0x403028]
call fcn.00401911
add esp, 0xc
mov dword [0x403020], eax
cmp dword [0x403038], 0
jne 0x401c27
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x403024], 0
jne 0x401c3b
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x403020]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.0040200b
jmp 0x401ad9

Function at 0x401dd0
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x402380
call fcn.004020d0
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x401e30
cmp eax, 0xffffffff
je 0x401e30
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x401e29
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x401e29
cmp edx, 0x10000000
jae 0x401e29
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x401e26
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x401eb0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x401eee
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x401ee6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x401ef0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x401ed6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x401fd0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x402001
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x402001
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x402001
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4013c9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x610
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp word [esi], bx
je 0x401502
push esi
push str.GetDriverInfoReg__s_...
push 3
call fcn.004487a4
push esi
lea eax, [ebp - 0x610]
push str.SYSTEMCurrentControlSetControlClass_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
test byte [0x49b5a8], 1
mov dword [ebp + 8], ebx
jne 0x40142e
or dword [0x49b5a8], 1
mov eax, dword [0x500acc]
neg eax
sbb eax, eax
and eax, 0x100
inc eax
mov dword [0x49b5a4], eax
jmp 0x401433
mov eax, dword [0x49b5a4]
lea ecx, [ebp + 8]
push ecx
push eax
push ebx
lea eax, [ebp - 0x610]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4014ed
cmp dword [ebp + 8], ebx
je 0x4014ed
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push str.InfPath
push dword [ebp + 8]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], 0x104
call esi
test eax, eax
jne 0x4014c5
push 0x5c
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
lea eax, [ebp - 0x210]
push eax
je 0x4014af
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4014c5
push 0x500bd0
push str._sinf_s
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
push ebx
push str.DriverDate
push dword [ebp + 8]
mov dword [ebp - 4], 0x104
call esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401502
call fcn.00445dc2
push eax
push str._err_S
push 2
call fcn.004487a4
add esp, 0xc
pop esi
pop ebx
leave
ret 0xc
Function at 0x40200c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp edi, ebx
je 0x402104
cmp dword [edi + 8], ebx
je 0x402104
cmp dword [0x501804], ebx
jne 0x402104
mov si, word [ebp + 8]
push 0x3a
pop eax
push 0x5c
mov word [ebp - 6], ax
pop eax
mov word [ebp - 4], ax
xor eax, eax
push 0x66
mov word [ebp - 2], ax
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x6e]
push ebx
push eax
mov word [ebp - 8], si
call fcn.00442d2f
add esp, 0xc
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 0x402104
mov eax, dword [edi + 8]
push dword [eax]
lea eax, [ebp - 0x70]
push eax
movzx eax, si
push eax
push str.CheckNewDriveLetter__c_...____vn_s__c_i
push 4
call fcn.004487a4
mov eax, dword [edi + 8]
add esp, 0x14
cmp dword [eax], ebx
jle 0x402104
mov esi, dword [eax + ebx*4 + 4]
test esi, esi
je 0x4020fc
push dword [esi + 0x840]
lea ecx, [esi + 0x930]
push dword [esi + 0xc]
lea eax, [esi + 0x848]
push dword [esi + 8]
push ecx
push eax
push ebx
push str._Volumes__i__vn_s_mp_s_used_i_present_i_devnum_i
push 4
call fcn.004487a4
add esp, 0x20
cmp dword [esi + 8], 0
je 0x4020fc
cmp dword [esi + 0xc], 0
je 0x4020fc
cmp dword [esi + 0x840], 0
je 0x4020fc
lea eax, [ebp - 0x70]
push eax
lea eax, [esi + 0x848]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40210d
mov eax, dword [edi + 8]
inc ebx
cmp ebx, dword [eax]
jl 0x4020a0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
mov ecx, esi
call fcn.00406194
mov ecx, dword [0x5034f8]
push 1
push dword [esi + 0x14]
call fcn.004076b3
test eax, eax
je 0x402136
push 1
mov ecx, eax
call fcn.0040a7ba
call fcn.0043482f
cmp dword [0x498b08], 0
je 0x40215c
mov ecx, dword [0x5034f8]
push 0
push dword [esi + 0x10]
call fcn.004076b3
test eax, eax
je 0x40215c
push 1
mov ecx, eax
call fcn.0040a7ba
lea eax, [esi + 0x18]
jmp 0x402106
Function at 0x402843
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push dword [ebp + 8]
call fcn.00401c84
mov esi, eax
xor eax, eax
cmp esi, eax
je 0x402934
push ebx
push edi
lea edi, [esi + 0x10a8]
mov dword [ebp + 8], eax
cmp word [edi], ax
jne 0x4028e1
cmp word [esi + 0xc30], ax
je 0x4028e1
mov ebx, dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
push 0x104
push edi
lea eax, [esi + 0xc38]
push eax
call ebx
test eax, eax
jne 0x4028e1
push 0x44d2dc
lea eax, [esi + 0xc30]
push eax
call fcn.00426eb8
test eax, eax
je 0x4028e1
lea eax, [esi + 0xc30]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x44d0ac
push 0x44d2dc
lea eax, [ebp - 0x208]
push eax
call fcn.00427b24
push 0x104
push edi
lea eax, [ebp - 0x200]
push eax
call ebx
cmp word [edi], 0
mov ebx, dword [ebp + 0xc]
je 0x4028f9
push edi
call fcn.00428c34
mov dword [ebx], eax
mov dword [ebp + 8], 1
lea eax, [esi + 0x13b0]
cmp word [eax], 0
je 0x402914
push eax
call fcn.00428c34
mov ecx, dword [ebp + 8]
inc dword [ebp + 8]
mov dword [ebx + ecx*4], eax
add esi, 0x1330
cmp word [esi], 0
je 0x40292f
push esi
call fcn.00428c34
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 0x402d22
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 0x402e94
push 0x44d4c0
lea ebx, [esi + 0xfc8]
push ebx
call fcn.00426e06
test eax, eax
je 0x402e94
lea edi, [esi + 0x13b0]
cmp word [edi], 0
je 0x402e94
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00442d2f
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
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x402e94
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.004487a4
push str.Device_Parameters
lea eax, [esi + 0xe38]
push eax
push str.SystemCurrentControlSetEnum
lea eax, [ebp - 0x60c]
push 0x44d3fc
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.004266bc
test eax, eax
je 0x402e94
push 0x208
lea eax, [ebp - 0xa1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x402e94
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.004487a4
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 0x44d3b0
push edi
call dword [sym.imp.SHLWAPI.dll_StrTrimW]
mov ecx, dword [0x5034f8]
push 0
push dword [esi + 0x10]
call fcn.004076b3
test eax, eax
je 0x402e8f
push 1
mov ecx, eax
call fcn.0040a7ba
xor eax, eax
inc eax
jmp 0x402e96
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x404dd2
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, 0x471858
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], 0x44c9fc
mov dword [ebp - 0x20], 0x471868
mov dword [ebp - 0x1c], 0x4718b8
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 0x404fa2
lea eax, [ebp - 0x48]
push eax
push ebx
jmp 0x404f84
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 0x404f7a
push dword [ebp - 0x50]
mov ecx, dword [ebp - 0x14]
call fcn.00401acd
mov esi, eax
cmp esi, ebx
je 0x404f7a
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 0x404ec6
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 0x404f22
lea eax, [ebp - 0x460]
push eax
call fcn.0042b755
cmp edi, ebx
mov dword [esi + 0x3a24], eax
jl 0x404eff
xor ecx, ecx
inc ecx
cmp edi, ecx
jle 0x404ef9
push 2
pop ecx
cmp edi, ecx
je 0x404ef9
push 3
pop ecx
cmp edi, ecx
jne 0x404eff
mov dword [esi + 0x3a28], ecx
push eax
mov eax, dword [esi + 0x3a28]
push dword [eax*4 + 0x498018]
lea eax, [esi + 0x1088]
push str._S_i
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
cmp edi, ebx
jl 0x404f58
cmp edi, 1
jle 0x404f3d
cmp edi, 2
jne 0x404f58
push dword [esi + 0x3a24]
push str..CdRom_i
jmp 0x404f48
push dword [esi + 0x3a24]
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 0x404f73
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 0x404e52
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 0x404e2c
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40511f
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.004487a4
add esp, 0xc
cmp dword [edi + 0x400c], ebx
mov dword [ebp - 0x14], ebx
jle 0x4052be
lea eax, [edi + 0xc]
mov dword [ebp - 0xc], eax
push esi
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
cmp esi, ebx
je 0x4052a7
cmp dword [esi], ebx
je 0x4052a7
cmp dword [esi + 8], ebx
je 0x4052a7
cmp dword [0x503548], ebx
jne 0x40518e
cmp dword [esi + 0x3a2c], ebx
jne 0x4052a7
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.004487a4
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x24]
cmp eax, 0x2710
jae 0x4052a4
push edi
push dword [esi + 0x10]
push 0x44e4bc
push 4
call fcn.004487a4
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 0x4052a4
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 0x405291
push dword [ebp - 4]
lea eax, [ebp - 0x1a4]
push eax
call fcn.00401338
test eax, eax
jne 0x405291
push dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.00401acd
mov esi, eax
cmp esi, ebx
je 0x405246
cmp dword [esi + 8], ebx
je 0x40523f
mov eax, 0x44e4b8
jmp 0x40524b
mov eax, 0x44e4b4
jmp 0x40524b
mov eax, 0x44e4b0
push eax
push esi
push dword [ebp - 4]
push str._DevInstChild_u_pDevChild0x_08Ix_pDevChild__IsPresent_S
push 4
call fcn.004487a4
add esp, 0x14
cmp esi, ebx
je 0x405268
cmp dword [esi + 8], ebx
jne 0x405291
cmp dword [ebp + 8], ebx
je 0x40527e
push ebx
push ebx
push dword [ebp - 4]
push 0x44d0ac
call fcn.0043a83c
jmp 0x405291
push dword [ebp - 4]
mov ecx, dword [ebp - 8]
push ebx
call fcn.0040434a
test eax, eax
je 0x405291
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 0x4051e9
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 0x40515c
pop esi
mov eax, dword [ebp - 0x10]
pop edi
pop ebx
leave
ret 4
Function at 0x405a42
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc08
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
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.00428da8
push 0x7fe
lea eax, [ebp - 0x804]
push 0
push eax
mov dword [ebp - 0x808], 0x20
call fcn.00442d2f
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 0x405add
push str.CStatusText::PrintfStatusText
push 0x53
push str..CStatusText.cpp
push str.INT3_in__S_line__u__function__S
push 1
call fcn.004487a4
add esp, 0x14
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
mov word [ebp - 0x5c2], ax
cmp dword [0x50da14], 4
jl 0x405afd
lea eax, [ebp - 0x808]
push eax
push ebx
push str.STATUS__u_:__s
push 4
call fcn.004487a4
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 0x405b55
or ebx, 0xffffffff
call edi
mov ecx, dword [esi]
mov dword [ebp + 8], eax
xor eax, eax
test ecx, ecx
jle 0x405b55
lea edx, [esi + 0x2c]
mov edi, dword [edx - 0x28]
cmp word [edi], 0
je 0x405b4d
mov edi, dword [edx]
sub edi, dword [ebp + 8]
cmp edi, 0xffffffff
jae 0x405b4d
mov ebx, eax
inc eax
add edx, 4
cmp eax, ecx
jl 0x405b38
and dword [ebp - 4], 0
pop edi
test ebx, ebx
jl 0x405b94
cmp dword [0x50da14], 5
jl 0x405b7d
push dword [esi + ebx*4 + 4]
push dword [ebp + 0xc]
push str.SB_SETTEXT__i___s
push 5
call fcn.004487a4
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 0x405bb2
lea eax, [ebp - 4]
push eax
push 0x64
push 2
push 0x44d0ac
push dword [ebp + 0xc]
push 0x40b
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
cmp dword [ebp + 0x10], 0
je 0x405bcc
push 0x4059d2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_SetTimer]
pop esi
pop ebx
leave
ret

Function at 0x4060a1
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 0x4060ca
dec eax
je 0x4060c5
dec eax
dec eax
jne 0x4060c5
push 2
pop eax
jmp 0x40610e
xor eax, eax
inc eax
jmp 0x40610e
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 0x44e7a0
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 0x406113
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x44e968]
mov dword [ebp - 8], eax
mov eax, dword [0x44e96c]
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 0x406177
cmp eax, 3
jbe 0x406152
cmp eax, 5
jne 0x406177
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 0x406177
push dword [ebp + 8]
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x406184
inc word [ebp - 8]
cmp word [ebp - 8], 0x5a
jbe 0x406139
jmp 0x40618f
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
pop esi
leave
ret 8