joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10031570
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10065029
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 8]
test eax, eax
je 0x100315b7
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
push dword [ebp - 0x24]
push 1
push 0x65d
call fcn.100316ef
add esp, 0xc
jmp 0x100316de
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x38], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax]
test eax, eax
je 0x100316bd
mov dword [ebp - 0x20], 0x1ed8
mov dword [ebp - 0x30], str.mmnjyis_yhlb_evv_llgypcgo_cum_uywsrxt_dtjwodu
cmp dword [ebp - 0x20], 0x209c
jle 0x10031675
and dword [ebp - 0x14], 0
jmp 0x100315ff
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x420f
jge 0x10031675
and dword [ebp - 0x18], 0
jmp 0x10031615
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x4b75
jge 0x10031673
and dword [ebp - 0x1c], 0
jmp 0x1003162b
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x5d74
jge 0x10031671
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x18]
or eax, dword [ebp - 0x1c]
cdq
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
lea ecx, [ebp - 0x68]
call fcn.10001a65
pop ecx
pop ecx
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
call fcn.10001b27
push eax
call fcn.1004b9e4
pop ecx
lea ecx, [ebp - 0x68]
call fcn.10001b1d
jmp 0x10031624
jmp 0x1003160e
jmp 0x100315f8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
and dword [ebp - 4], 0
cmp dword [ebp - 0x20], 0x1d55
jge 0x10031695
push dword [ebp - 0x30]
call fcn.1004b9e4
pop ecx
jmp 0x100316b1
or dword [ebp - 4], 0xffffffff
jmp 0x100316bb
jmp 0x100316de
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x44]
mov dword [eax], 0xffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1003306c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x100330d4
lea eax, [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x100330be
mov byte [ebp - 1], 0
push 0x7051
push 0x33b3
push 0
push 0x5901
lea eax, [ebp - 1]
push eax
push 0x6d19
push 0x62a6
push 0
push 0x97
call fcn.1003319e
add esp, 0x24
jmp 0x100330d2
mov byte [ebp - 2], 0
movzx eax, byte [ebp - 2]
test eax, eax
je 0x100330d2
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x100330f6
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
push 0x58b4
push 0x551e
push dword [ebp - 0xc]
push 0x7292
push 0
call fcn.10037646
add esp, 0x14
mov esp, ebp
pop ebp
ret
Function at 0x100335b8
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100650bc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1003374a
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax]
test eax, eax
je 0x10033712
mov byte [ebp - 0x11], 0
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x10033710
push 0
push 0x7ccf
push 0x17e7
push 0x5d91
call fcn.10044101
add esp, 0x10
mov dword [ebp - 0x24], 0x4a55
mov dword [ebp - 0x34], str.wzpympvzx_erf_ijbd_cdgq_zfbbxp_fboaiavr_jbphtopr_kypgrsl_zltjl_soaijgicp_peizgxt_qfvj_wgtok_ywkbzvr
cmp dword [ebp - 0x24], 0x4e18
jle 0x100336d4
and dword [ebp - 0x20], 0
jmp 0x10033657
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x186
jge 0x100336cc
and dword [ebp - 0x18], 0
jmp 0x1003366d
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x1092
jge 0x100336ca
and dword [ebp - 0x1c], 0
jmp 0x10033683
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xb97
jge 0x100336c8
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x1c]
and eax, dword [ebp - 0x20]
cdq
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
lea ecx, [ebp - 0x68]
call fcn.10001a65
pop ecx
pop ecx
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
call fcn.10001b27
push eax
call fcn.1004b9e4
pop ecx
lea ecx, [ebp - 0x68]
call fcn.10001b1d
jmp 0x1003367c
jmp 0x10033666
jmp 0x10033650
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and dword [ebp - 4], 0
cmp dword [ebp - 0x24], 0x49ba
jge 0x100336ea
push dword [ebp - 0x34]
call fcn.1004b9e4
pop ecx
jmp 0x10033706
or dword [ebp - 4], 0xffffffff
jmp 0x10033710
jmp 0x10033748
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
imul esi, dword [eax], 0xa
mov ecx, dword [ebp - 0x48]
call fcn.10019491
movsx eax, byte [eax]
lea eax, [esi + eax - 0x30]
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx]
mov dword [ecx], eax
jmp 0x1003375e
push 0x53c8
push 0
push 0x7e66
call fcn.100317d7
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10036ce6
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10065166
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x48
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x10036e13
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x28], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0x54ac
mov dword [ebp - 0x34], str.trckqgq_slawozkgm_tked_labznv_ppjoplb_ibe_qyylk_ogml
cmp dword [ebp - 0x1c], 0x56a8
jle 0x10036da7
and dword [ebp - 0x14], 0
jmp 0x10036d44
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x6d22
jge 0x10036d9f
and dword [ebp - 0x18], 0
jmp 0x10036d5a
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x7a85
jge 0x10036d9d
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x18]
cdq
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
lea ecx, [ebp - 0x58]
call fcn.10001a65
pop ecx
pop ecx
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
call fcn.10001b27
push eax
call fcn.1004b9e4
pop ecx
lea ecx, [ebp - 0x58]
call fcn.10001b1d
jmp 0x10036d53
jmp 0x10036d3d
push 0
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax]
test eax, eax
je 0x10036dcf
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
movzx eax, byte [eax]
test eax, eax
je 0x10036dcd
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
jmp 0x10036dd5
call dword [sym.imp.USER32.dll_CreateMenu]
and dword [ebp - 4], 0
cmp dword [ebp - 0x1c], 0x548e
jge 0x10036deb
push dword [ebp - 0x34]
call fcn.1004b9e4
pop ecx
jmp 0x10036e07
or dword [ebp - 4], 0xffffffff
jmp 0x10036e11
jmp 0x10036e44
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
push 0x7969
push 0x429d
push 0x402e
push 0x7ac6
push 0
push 0x1460
push dword [ebp - 0x38]
push 0x6395
call fcn.1003302e
add esp, 0x20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10039881
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x100398b2
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 8], eax
push 1
push dword [ebp - 8]
push 0x61de
push dword [ebp - 0xc]
call fcn.10039927
add esp, 0x10
jmp 0x10039923
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x1003991b
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x100398fc
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 3
jge 0x10039919
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x24]
call fcn.10001d70
mov dword [eax], 0x77862fd4
jmp 0x100398f1
jmp 0x10039923
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esp, ebp
pop ebp
ret
Function at 0x401fe2
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 0x4020da
cmp dword [edi + 8], ebx
je 0x4020da
cmp dword [0x4fa850], ebx
jne 0x4020da
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.0043f481
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 0x4020da
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.004453fb
mov eax, dword [edi + 8]
add esp, 0x14
cmp dword [eax], ebx
jle 0x4020da
mov esi, dword [eax + ebx*4 + 4]
test esi, esi
je 0x4020d2
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.004453fb
add esp, 0x20
cmp dword [esi + 8], 0
je 0x4020d2
cmp dword [esi + 0xc], 0
je 0x4020d2
cmp dword [esi + 0x840], 0
je 0x4020d2
lea eax, [ebp - 0x70]
push eax
lea eax, [esi + 0x848]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4020e3
mov eax, dword [edi + 8]
inc ebx
cmp ebx, dword [eax]
jl 0x402076
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
mov ecx, esi
call fcn.00405d34
mov ecx, dword [0x4fc540]
push 1
push dword [esi + 0x14]
call fcn.004072a3
test eax, eax
je 0x40210c
push 1
mov ecx, eax
call fcn.00409ef4
call fcn.004320cf
cmp dword [0x492a60], 0
je 0x402132
mov ecx, dword [0x4fc540]
push 0
push dword [esi + 0x10]
call fcn.004072a3
test eax, eax
je 0x402132
push 1
mov ecx, eax
call fcn.00409ef4
lea eax, [esi + 0x18]
jmp 0x4020dc
Function at 0x402818
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push dword [ebp + 8]
call fcn.00401c5a
mov esi, eax
xor eax, eax
cmp esi, eax
je 0x402909
push ebx
push edi
lea edi, [esi + 0x10a4]
mov dword [ebp + 8], eax
cmp word [edi], ax
jne 0x4028b6
cmp word [esi + 0xc2c], ax
je 0x4028b6
mov ebx, dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
push 0x104
push edi
lea eax, [esi + 0xc34]
push eax
call ebx
test eax, eax
jne 0x4028b6
push 0x449f6c
lea eax, [esi + 0xc2c]
push eax
call fcn.0042554d
test eax, eax
je 0x4028b6
lea eax, [esi + 0xc2c]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x449d34
push 0x449f6c
lea eax, [ebp - 0x208]
push eax
call fcn.0042613b
push 0x104
push edi
lea eax, [ebp - 0x200]
push eax
call ebx
cmp word [edi], 0
mov ebx, dword [ebp + 0xc]
je 0x4028ce
push edi
call fcn.00427118
mov dword [ebx], eax
mov dword [ebp + 8], 1
lea eax, [esi + 0x13ac]
cmp word [eax], 0
je 0x4028e9
push eax
call fcn.00427118
mov ecx, dword [ebp + 8]
inc dword [ebp + 8]
mov dword [ebx + ecx*4], eax
add esi, 0x132c
cmp word [esi], 0
je 0x402904
push esi
call fcn.00427118
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 0x402cf3
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 0x402e65
push 0x44a150
lea ebx, [esi + 0xfc4]
push ebx
call fcn.0042549b
test eax, eax
je 0x402e65
lea edi, [esi + 0x13ac]
cmp word [edi], 0
je 0x402e65
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0043f481
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 0x402e65
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.004453fb
push str.Device_Parameters
lea eax, [esi + 0xe34]
push eax
push str.SystemCurrentControlSetEnum
lea eax, [ebp - 0x60c]
push 0x44a08c
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.00424d51
test eax, eax
je 0x402e65
push 0x208
lea eax, [ebp - 0xa1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x402e65
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.004453fb
add esp, 0x14
push 0
lea eax, [ebp + 8]
push eax
lea edi, [esi + 0x1734]
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 0x44a040
push edi
call dword [sym.imp.SHLWAPI.dll_StrTrimW]
mov ecx, dword [0x4fc540]
push 0
push dword [esi + 0x10]
call fcn.004072a3
test eax, eax
je 0x402e60
push 1
mov ecx, eax
call fcn.00409ef4
xor eax, eax
inc eax
jmp 0x402e67
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x404d33
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, 0x46d134
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], 0x4497dc
mov dword [ebp - 0x20], 0x46d144
mov dword [ebp - 0x1c], 0x46d194
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 0x404f03
lea eax, [ebp - 0x48]
push eax
push ebx
jmp 0x404ee5
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 0x404edb
push dword [ebp - 0x50]
mov ecx, dword [ebp - 0x14]
call fcn.00401ad7
mov esi, eax
cmp esi, ebx
je 0x404edb
lea eax, [ebp - 0x460]
push eax
lea edi, [esi + 0xc2c]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 4
jbe 0x404e27
push 0x40
lea eax, [esi + 0x12ac]
push eax
lea eax, [esi + 0xc34]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov edi, dword [ebp - 4]
cmp edi, 3
jg 0x404e83
lea eax, [ebp - 0x460]
push eax
call fcn.00429c05
cmp edi, ebx
mov dword [esi + 0x3a20], eax
jl 0x404e60
xor ecx, ecx
inc ecx
cmp edi, ecx
jle 0x404e5a
push 2
pop ecx
cmp edi, ecx
je 0x404e5a
push 3
pop ecx
cmp edi, ecx
jne 0x404e60
mov dword [esi + 0x3a24], ecx
push eax
mov eax, dword [esi + 0x3a24]
push dword [eax*4 + 0x492018]
lea eax, [esi + 0x1084]
push str._S_i
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
cmp edi, ebx
jl 0x404eb9
cmp edi, 1
jle 0x404e9e
cmp edi, 2
jne 0x404eb9
push dword [esi + 0x3a20]
push str..CdRom_i
jmp 0x404ea9
push dword [esi + 0x3a20]
push str..PhysicalDrive_i
lea eax, [esi + 0x1044]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esi + 0x1044]
cmp word [eax], bx
je 0x404ed4
push 0x40
add esi, 0x132c
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 0x404db3
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 0x404d8d
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4055ed
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.0042728c
push 0x7fe
lea eax, [ebp - 0x804]
push 0
push eax
mov dword [ebp - 0x808], 0x20
call fcn.0043f481
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 0x405688
push str.CStatusText::PrintfStatusText
push 0x53
push str..CStatusText.cpp
push str.INT3_in__S_line__u__function__S
push 1
call fcn.004453fb
add esp, 0x14
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
mov word [ebp - 0x5c2], ax
cmp dword [0x506bac], 4
jl 0x4056a8
lea eax, [ebp - 0x808]
push eax
push ebx
push str.STATUS__u_:__s
push 4
call fcn.004453fb
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 0x405700
or ebx, 0xffffffff
call edi
mov ecx, dword [esi]
mov dword [ebp + 8], eax
xor eax, eax
test ecx, ecx
jle 0x405700
lea edx, [esi + 0x2c]
mov edi, dword [edx - 0x28]
cmp word [edi], 0
je 0x4056f8
mov edi, dword [edx]
sub edi, dword [ebp + 8]
cmp edi, 0xffffffff
jae 0x4056f8
mov ebx, eax
inc eax
add edx, 4
cmp eax, ecx
jl 0x4056e3
and dword [ebp - 4], 0
pop edi
test ebx, ebx
jl 0x40573f
cmp dword [0x506bac], 5
jl 0x405728
push dword [esi + ebx*4 + 4]
push dword [ebp + 0xc]
push str.SB_SETTEXT__i___s
push 5
call fcn.004453fb
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 0x40575d
lea eax, [ebp - 4]
push eax
push 0x64
push 2
push 0x449d34
push dword [ebp + 0xc]
push 0x40b
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
cmp dword [ebp + 0x10], 0
je 0x405777
push 0x40557d
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 0x405c41
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 0x405c6a
dec eax
je 0x405c65
dec eax
dec eax
jne 0x405c65
push 2
pop eax
jmp 0x405cae
xor eax, eax
inc eax
jmp 0x405cae
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 0x44b300
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 0x405cb3
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x44b4c8]
mov dword [ebp - 8], eax
mov eax, dword [0x44b4cc]
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 0x405d17
cmp eax, 3
jbe 0x405cf2
cmp eax, 5
jne 0x405d17
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 0x405d17
push dword [ebp + 8]
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x405d24
inc word [ebp - 8]
cmp word [ebp - 8], 0x5a
jbe 0x405cd9
jmp 0x405d2f
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
pop esi
leave
ret 8