joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402860
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40cd40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x30]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x24], ebp
jne 0x40288f
mov eax, 0x40e12c
push 0x41013c
push eax
call fcn.004060ee
mov edi, eax
add esp, 8
cmp edi, ebp
jne 0x4028ce
push 1
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.00401600
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
call sub.compress.dll_class_CBSDecoder____cdecl_CreateBSDecoder_void_
mov esi, eax
cmp esi, ebp
mov dword [esp + 0x18], esi
setne bl
mov byte [esp + 0x14], bl
cmp esi, ebp
mov byte [esp + 0x24], 1
jne 0x40291f
push edi
call fcn.00405e04
add esp, 4
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
push 1
call fcn.00401600
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x30]
cmp eax, ebp
mov dword [esp + 0x10], ebp
mov dword [ecx], ebp
jne 0x402936
mov eax, 0x40e12c
mov edx, dword [esi]
lea ebp, [esp + 0x10]
push ebp
push ecx
push eax
mov ecx, esi
call dword [edx + 4]
mov ebp, eax
push edi
test ebp, ebp
je 0x4029b0
call fcn.00405e04
add esp, 4
mov byte [esp + 0x24], 0
test bl, bl
je 0x402964
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x40299b
mov al, byte [ecx - 1]
test al, al
je 0x402991
cmp al, 0xff
je 0x402991
dec al
pop edi
mov byte [ecx - 1], al
mov eax, ebp
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
dec ecx
push ecx
call fcn.00402ae6
add esp, 4
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
call fcn.00405e04
add esp, 4
mov byte [esp + 0x24], 0
test bl, bl
je 0x4029c9
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x4029ed
mov al, byte [ecx - 1]
test al, al
je 0x4029e3
cmp al, 0xff
je 0x4029e3
dec al
mov byte [ecx - 1], al
jmp 0x4029ed
dec ecx
push ecx
call fcn.00402ae6
add esp, 4
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x409c49
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x410e10
cmp edx, dword [eax]
je 0x409c6b
add eax, 8
inc ecx
cmp eax, 0x410ea0
jl 0x409c5c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x410e10]
jne 0x409d99
mov eax, dword [0x411664]
cmp eax, 1
je 0x409d73
test eax, eax
jne 0x409c9c
cmp dword [0x410544], 1
je 0x409d73
cmp edx, 0xfc
je 0x409d99
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [0x40e0a0]
test eax, eax
jne 0x409cd3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040a8e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00406470
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x409d16
lea eax, [ebp - 0x1a4]
push eax
call fcn.00406470
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40e768
push edi
call fcn.0040b310
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040a8e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040a8f0
lea eax, [ebp - 0xa0]
push 0x40e748
push eax
call fcn.0040a8f0
push dword [esi + 0x410e14]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040a8f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040c152
add esp, 0x2c
pop edi
jmp 0x409d99
lea eax, [ebp + 8]
lea esi, [esi + 0x410e14]
push 0
push eax
push dword [esi]
call fcn.00406470
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [0x40e08c]
push eax
call dword [0x40e07c]
pop esi
leave
ret

Function at 0x438ca2
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x438a14
add eax, 1
add edi, edi
call fcn.00438cd5
or edi, eax
inc edi
inc eax
xor dword [ebx], edx
push edi
mov edi, dword [esp]
add esp, 4
inc ebx
inc eax
sub eax, 0x7a99162f
mov eax, edi
cmp ebx, ecx
jne fcn.00438ca2
sub edi, eax
ret
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

Function at 0x401090
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_narrow_argv
call sym.__initialize_narrow_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___argv
mov edi, dword [eax]
call sym.__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._main
mov dword [esp], eax
call sym._exit
nop
nop
nop
nop
nop

Function at 0x401100
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58
call sym.___main
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov ebx, eax
movzx eax, byte [eax]
test al, al
je 0x40117d
cmp al, 9
je 0x401170
cmp al, 0x20
je 0x401170
mov dword [ebp - 0x54], 0
xor edi, edi
nop
cmp al, 0x5c
je 0x4011d0
cmp al, 0x22
je 0x4011e0
mov dword [ebp - 0x54], 0
movzx eax, byte [ebx + 1]
inc ebx
test al, al
je 0x40117d
cmp al, 9
sete cl
cmp al, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x401130
test edi, 1
jne 0x401130
lea esi, [esi]
movzx eax, byte [ebx + 1]
inc ebx
cmp al, 9
je 0x401170
cmp al, 0x20
je 0x401170
lea eax, [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
sub esp, 4
test byte [ebp - 0x24], 1
jne 0x401198
mov word [ebp - 0x20], 1
movzx esi, word [ebp - 0x20]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._WinMain_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
inc dword [ebp - 0x54]
jmp 0x401147
and dword [ebp - 0x54], 1
jne 0x401140
xor edi, 1
jmp 0x401147
Function at 0x4013e5
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 0x40151e
push esi
push str.GetDriverInfoReg__s_...
push 3
call fcn.00451479
push esi
lea eax, [ebp - 0x610]
push str.SYSTEMCurrentControlSetControlClass_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
test byte [0x4aa6a0], 1
mov dword [ebp + 8], ebx
jne 0x40144a
or dword [0x4aa6a0], 1
mov eax, dword [0x51008c]
neg eax
sbb eax, eax
and eax, 0x100
inc eax
mov dword [0x4aa69c], eax
jmp 0x40144f
mov eax, dword [0x4aa69c]
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 0x401509
cmp dword [ebp + 8], ebx
je 0x401509
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 0x4014e1
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 0x4014cb
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4014e1
push 0x510190
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 0x40151e
call fcn.0044e479
push eax
push str._err_S
push 2
call fcn.00451479
add esp, 0xc
pop esi
pop ebx
leave
ret 0xc
Function at 0x40220f
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 0x40234c
cmp dword [edi + 8], ebx
je 0x40234c
cmp dword [0x510ff4], ebx
jne 0x40234c
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.0044b15e
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
jne 0x40229e
call fcn.0044e457
push eax
lea eax, [ebp - 8]
push eax
movzx eax, si
push eax
push str.CheckNewDriveLetter__c___GetVolumeNameForVolumeMountPoint__s___err_s
push 4
call fcn.00451479
add esp, 0x14
jmp 0x40234c
mov eax, dword [edi + 8]
push dword [eax + 0x18]
lea eax, [ebp - 0x70]
push eax
movzx eax, si
push eax
push str.CheckNewDriveLetter__c_...____vn_s__c_i
push 4
call fcn.00451479
mov eax, dword [edi + 8]
add esp, 0x14
cmp dword [eax + 0x18], ebx
jle 0x40233e
mov dword [ebp + 8], 0x1c
mov ecx, dword [ebp + 8]
mov esi, dword [ecx + eax]
test esi, esi
je 0x402331
cmp dword [0x51cdd4], 4
jl 0x402307
lea eax, [esi + 0x930]
push eax
lea eax, [esi + 0x848]
push eax
push dword [esi + 0x840]
push dword [esi + 0xc]
push dword [esi + 8]
push ebx
push str._Volumes__2i__used_i_present_i_devnum__2i_vn_s_mp_s
push 4
call fcn.00451479
add esp, 0x20
cmp dword [esi + 8], 0
je 0x402331
cmp dword [esi + 0xc], 0
je 0x402331
cmp dword [esi + 0x840], 0xffffffff
jle 0x402331
lea eax, [ebp - 0x70]
push eax
lea eax, [esi + 0x848]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x402355
mov eax, dword [edi + 8]
add dword [ebp + 8], 4
inc ebx
cmp ebx, dword [eax + 0x18]
jl 0x4022ca
push str._not_found_in_list
push 4
call fcn.00451479
pop ecx
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
mov ecx, esi
call fcn.0040681c
mov ecx, dword [0x512c60]
xor ebx, ebx
push ebx
push 1
push dword [esi + 0x14]
call fcn.0040838c
mov edi, eax
cmp edi, ebx
je 0x402392
push 1
mov ecx, edi
call fcn.0040bce8
push edi
call fcn.00435d48
test eax, eax
jne 0x402392
push str.cndl
call fcn.0043ec88
cmp dword [0x4a7b40], ebx
je 0x4023b7
mov ecx, dword [0x512c60]
push ebx
push ebx
push dword [esi + 0x10]
call fcn.0040838c
cmp eax, ebx
je 0x4023b7
push 1
mov ecx, eax
call fcn.0040bce8
lea eax, [esi + 0x18]
jmp 0x40234e
Function at 0x402ad1
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push dword [ebp + 8]
call fcn.00401e60
mov esi, eax
xor eax, eax
cmp esi, eax
je 0x402bc2
push ebx
push edi
lea edi, [esi + 0x10ac]
mov dword [ebp + 8], eax
cmp word [edi], ax
jne 0x402b6f
cmp word [esi + 0xc34], ax
je 0x402b6f
mov ebx, dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
push 0x104
push edi
lea eax, [esi + 0xc3c]
push eax
call ebx
test eax, eax
jne 0x402b6f
push 0x456434
lea eax, [esi + 0xc34]
push eax
call fcn.00429eb0
test eax, eax
je 0x402b6f
lea eax, [esi + 0xc34]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x4561e0
push 0x456434
lea eax, [ebp - 0x208]
push eax
call fcn.0042abcf
push 0x104
push edi
lea eax, [ebp - 0x200]
push eax
call ebx
cmp word [edi], 0
mov ebx, dword [ebp + 0xc]
je 0x402b87
push edi
call fcn.0042c86f
mov dword [ebx], eax
mov dword [ebp + 8], 1
lea eax, [esi + 0x13b4]
cmp word [eax], 0
je 0x402ba2
push eax
call fcn.0042c86f
mov ecx, dword [ebp + 8]
inc dword [ebp + 8]
mov dword [ebx + ecx*4], eax
add esi, 0x1334
cmp word [esi], 0
je 0x402bbd
push esi
call fcn.0042c86f
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 0x402fb0
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 + 0xc], 0
push edi
je 0x403170
cmp dword [0x51cdd4], 4
jl 0x402fef
lea eax, [esi + 0xc34]
push eax
lea eax, [esi + 0xfcc]
push eax
push str.CDevList::CheckForChangedComPort_ddn_s_devpath_s
push 4
call fcn.00451479
add esp, 0x10
push 0x456644
lea ebx, [esi + 0xfcc]
push ebx
call fcn.00429dfe
test eax, eax
je 0x403170
lea edi, [esi + 0x13b4]
cmp word [edi], 0
je 0x403170
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0044b15e
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.00451479
add esp, 0x10
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x403170
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.00451479
push str.Device_Parameters
lea eax, [esi + 0xe3c]
push eax
push str.SystemCurrentControlSetEnum
lea eax, [ebp - 0x60c]
push 0x456568
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.004296c8
test eax, eax
je 0x403170
push ebx
push str.new_res_PortName_s
push 4
call fcn.00451479
add esp, 0xc
push 0x208
lea eax, [ebp - 0xa1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x403170
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.00451479
add esp, 0x14
xor ebx, ebx
push ebx
lea eax, [ebp + 8]
push eax
lea edi, [esi + 0x173c]
push edi
lea eax, [ebp - 4]
push eax
push 0xd
push dword [esi + 0x14]
mov dword [ebp + 8], 0x100
call dword [sym.imp.CFGMGR32.dll_CM_Get_DevNode_Registry_PropertyW]
push 0x456508
push edi
call dword [sym.imp.SHLWAPI.dll_StrTrimW]
mov ecx, dword [0x512c60]
push ebx
push ebx
push dword [esi + 0x14]
call fcn.0040838c
cmp eax, ebx
je 0x40316b
push 1
mov ecx, eax
call fcn.0040bce8
xor eax, eax
inc eax
jmp 0x403172
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4055a5
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.00451479
add esp, 0xc
cmp dword [edi + 0x400c], ebx
mov dword [ebp - 0x14], ebx
jle 0x405744
lea eax, [edi + 0xc]
mov dword [ebp - 0xc], eax
push esi
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
cmp esi, ebx
je 0x40572d
cmp dword [esi], ebx
je 0x40572d
cmp dword [esi + 0xc], ebx
je 0x40572d
cmp dword [0x512cb0], ebx
jne 0x405614
cmp dword [esi + 0x3ab8], ebx
jne 0x40572d
lea edi, [esi + 0xe3c]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x28]
push eax
push edi
push dword [esi + 0x14]
push str._thinking_of__u___s____u
push 4
call fcn.00451479
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x28]
cmp eax, 0x2710
jae 0x40572a
push edi
push dword [esi + 0x14]
push 0x45777c
push 4
call fcn.00451479
add esp, 0x10
push ebx
push dword [esi + 0x14]
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.CFGMGR32.dll_CM_Get_Child]
test eax, eax
jne 0x40572a
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 0x405717
push dword [ebp - 4]
lea eax, [ebp - 0x1a4]
push eax
call fcn.00401354
test eax, eax
jne 0x405717
push dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.00401c46
mov esi, eax
cmp esi, ebx
je 0x4056cc
cmp dword [esi + 0xc], ebx
je 0x4056c5
mov eax, 0x457778
jmp 0x4056d1
mov eax, 0x457774
jmp 0x4056d1
mov eax, 0x457770
push eax
push esi
push dword [ebp - 4]
push str._DevInstChild_u_pDevChild0x_08Ix_pDevChild__IsPresent_S
push 4
call fcn.00451479
add esp, 0x14
cmp esi, ebx
je 0x4056ee
cmp dword [esi + 0xc], ebx
jne 0x405717
cmp dword [ebp + 8], ebx
je 0x405704
push ebx
push ebx
push dword [ebp - 4]
push 0x4561e0
call fcn.00440f36
jmp 0x405717
push dword [ebp - 4]
mov ecx, dword [ebp - 8]
push ebx
call fcn.0040474e
test eax, eax
je 0x405717
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 0x40566f
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 0x4055e2
pop esi
mov eax, dword [ebp - 0x10]
pop edi
pop ebx
leave
ret 4
Function at 0x40601d
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 0x4061b0
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.0042c9e7
push 0x7fe
lea eax, [ebp - 0x804]
push 0
push eax
mov dword [ebp - 0x808], 0x20
call fcn.0044b15e
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 0x4060c0
push str.CStatusText::PrintfStatusText
push 0x58
push str..CStatusText.cpp
push str.INT3_in__S_line__u__function__S
push 1
call fcn.00451479
add esp, 0x14
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
mov word [ebp - 0x5c2], ax
cmp dword [0x51cdd4], 4
jl 0x4060e0
lea eax, [ebp - 0x808]
push eax
push ebx
push str.STATUS__u_:__s
push 4
call fcn.00451479
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 0x406138
or ebx, 0xffffffff
call edi
mov ecx, dword [esi]
mov dword [ebp + 8], eax
xor eax, eax
test ecx, ecx
jle 0x406138
lea edx, [esi + 0x2c]
mov edi, dword [edx - 0x28]
cmp word [edi], 0
je 0x406130
mov edi, dword [edx]
sub edi, dword [ebp + 8]
cmp edi, 0xffffffff
jae 0x406130
mov ebx, eax
inc eax
add edx, 4
cmp eax, ecx
jl 0x40611b
and dword [ebp - 4], 0
pop edi
test ebx, ebx
jl 0x406177
cmp dword [0x51cdd4], 5
jl 0x406160
push dword [esi + ebx*4 + 4]
push dword [ebp + 0xc]
push str.SB_SETTEXT__i___s
push 5
call fcn.00451479
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 0x406195
lea eax, [ebp - 4]
push eax
push 0x64
push 2
push 0x4561e0
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 0x4061b0
push 0x405fad
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 0x406729
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 0x406752
dec eax
je 0x40674d
dec eax
dec eax
jne 0x40674d
push 2
pop eax
jmp 0x406796
xor eax, eax
inc eax
jmp 0x406796
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 0x457a84
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 0x40679b
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x457c88]
mov dword [ebp - 8], eax
mov eax, dword [0x457c8c]
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 0x4067ff
cmp eax, 3
jbe 0x4067da
cmp eax, 5
jne 0x4067ff
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 0x4067ff
push dword [ebp + 8]
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40680c
inc word [ebp - 8]
cmp word [ebp - 8], 0x5a
jbe 0x4067c1
jmp 0x406817
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
pop esi
leave
ret 8
Function at 0x40681c
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 0x406856
cmp dword [esi + 0x840], 0xffffffff
jne 0x406856
add esi, 0x930
xor eax, eax
cmp word [esi], di
je 0x40697c
mov word [esi], ax
inc eax
jmp 0x40697c
push ebx
mov ebx, 0x28a0
push ebx
call fcn.0044b31e
push ebx
push edi
push eax
mov dword [ebp - 4], eax
call fcn.0044b15e
lea edi, [esi + 0x848]
xor eax, eax
add esp, 0x10
cmp word [edi], ax
je 0x406980
cmp dword [0x4ad6a8], eax
je 0x406934
push edi
push str.GetVolumePathNamesForVolumeName__s_...
push 3
mov dword [ebp - 0x10], eax
call fcn.00451479
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push 0x1450
push dword [ebp - 4]
push edi
call dword [0x4ad6a8]
test eax, eax
je 0x40690f
cmp dword [0x51cdd4], 3
jl 0x4068fa
push dword [ebp - 4]
call fcn.004293fd
mov edi, eax
test edi, edi
je 0x4068e6
push edi
push str._OK__mp_s
push 3
call fcn.00451479
push edi
call fcn.0044b359
add esp, 0x10
jmp 0x4068fa
push 0x456110
push str._OK__mp_s
push 3
call fcn.00451479
add esp, 0xc
push ebx
add esi, 0x930
push esi
push dword [ebp - 4]
call fcn.0044b11b
add esp, 0xc
jmp 0x40695f
call fcn.0044e479
push eax
push str._err_S
push 3
call fcn.00451479
add esp, 0xc
xor eax, eax
mov word [esi + 0x930], ax
xor esi, esi
jmp 0x406a3a
push dword [ebp - 4]
push edi
call fcn.0040679b
push dword [ebp - 4]
push str.Letter_s
push 3
call fcn.00451479
push ebx
add esi, 0x930
push esi
push dword [ebp - 4]
call fcn.0044b11b
add esp, 0x18
test eax, eax
je 0x40692d
push ebx
push dword [ebp - 4]
push esi
call fcn.0044b1c8
push dword [ebp - 4]
call fcn.0044b359
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 0x40692d
mov esi, 0x457c98
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 0x406a14
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 0x406a14
lea eax, [ebp - 0xc]
push eax
push str.Letter_s
push 3
call fcn.00451479
lea eax, [ebp - 0xc]
push eax
push 0x457c90
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.0044b11b
add esp, 0x24
test eax, eax
jne 0x406a24
inc word [ebp - 0xc]
cmp word [ebp - 0xc], 0x5a
jbe 0x4069a4
jmp 0x40692d
push ebx
push dword [ebp - 4]
add esi, 0x930
push esi
call fcn.0044b1c8
xor esi, esi
add esp, 0xc
inc esi
push dword [ebp - 4]
call fcn.0044b359
pop ecx
mov eax, esi
jmp 0x40697b