joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402d9b
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 0x402f0d
push 0x44f4d0
lea ebx, [esi + 0xfc8]
push ebx
call fcn.00427780
test eax, eax
je 0x402f0d
lea edi, [esi + 0x13b0]
cmp word [edi], 0
je 0x402f0d
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00444396
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 0x402f0d
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.00449e4d
push str.Device_Parameters
lea eax, [esi + 0xe38]
push eax
push str.SystemCurrentControlSetEnum
lea eax, [ebp - 0x60c]
push 0x44f40c
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.0042706e
test eax, eax
je 0x402f0d
push 0x208
lea eax, [ebp - 0xa1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x402f0d
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.00449e4d
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 0x44f3c0
push edi
call dword [sym.imp.SHLWAPI.dll_StrTrimW]
mov ecx, dword [0x508064]
push 0
push dword [esi + 0x10]
call fcn.0040788c
test eax, eax
je 0x402f08
push 1
mov ecx, eax
call fcn.0040abaa
xor eax, eax
inc eax
jmp 0x402f0f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x404ef0
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, 0x476530
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], 0x44e9dc
mov dword [ebp - 0x20], 0x476540
mov dword [ebp - 0x1c], 0x476590
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 0x4050c0
lea eax, [ebp - 0x48]
push eax
push ebx
jmp 0x4050a2
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 0x405098
push dword [ebp - 0x50]
mov ecx, dword [ebp - 0x14]
call fcn.00401ae0
mov esi, eax
cmp esi, ebx
je 0x405098
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 0x404fe4
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 0x405040
lea eax, [ebp - 0x460]
push eax
call fcn.0042c423
cmp edi, ebx
mov dword [esi + 0x3a24], eax
jl 0x40501d
xor ecx, ecx
inc ecx
cmp edi, ecx
jle 0x405017
push 2
pop ecx
cmp edi, ecx
je 0x405017
push 3
pop ecx
cmp edi, ecx
jne 0x40501d
mov dword [esi + 0x3a28], ecx
push eax
mov eax, dword [esi + 0x3a28]
push dword [eax*4 + 0x49d018]
lea eax, [esi + 0x1088]
push str._S_i
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
cmp edi, ebx
jl 0x405076
cmp edi, 1
jle 0x40505b
cmp edi, 2
jne 0x405076
push dword [esi + 0x3a24]
push str..CdRom_i
jmp 0x405066
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 0x405091
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 0x404f70
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 0x404f4a
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40523d
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.00449e4d
add esp, 0xc
cmp dword [edi + 0x400c], ebx
mov dword [ebp - 0x14], ebx
jle 0x4053dc
lea eax, [edi + 0xc]
mov dword [ebp - 0xc], eax
push esi
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
cmp esi, ebx
je 0x4053c5
cmp dword [esi], ebx
je 0x4053c5
cmp dword [esi + 8], ebx
je 0x4053c5
cmp dword [0x5080b4], ebx
jne 0x4052ac
cmp dword [esi + 0x3a2c], ebx
jne 0x4053c5
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.00449e4d
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x24]
cmp eax, 0x2710
jae 0x4053c2
push edi
push dword [esi + 0x10]
push 0x450524
push 4
call fcn.00449e4d
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 0x4053c2
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 0x4053af
push dword [ebp - 4]
lea eax, [ebp - 0x1a4]
push eax
call fcn.00401338
test eax, eax
jne 0x4053af
push dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.00401ae0
mov esi, eax
cmp esi, ebx
je 0x405364
cmp dword [esi + 8], ebx
je 0x40535d
mov eax, 0x450520
jmp 0x405369
mov eax, 0x45051c
jmp 0x405369
mov eax, 0x450518
push eax
push esi
push dword [ebp - 4]
push str._DevInstChild_u_pDevChild0x_08Ix_pDevChild__IsPresent_S
push 4
call fcn.00449e4d
add esp, 0x14
cmp esi, ebx
je 0x405386
cmp dword [esi + 8], ebx
jne 0x4053af
cmp dword [ebp + 8], ebx
je 0x40539c
push ebx
push ebx
push dword [ebp - 4]
push 0x44f0b8
call fcn.0043ab59
jmp 0x4053af
push dword [ebp - 4]
mov ecx, dword [ebp - 8]
push ebx
call fcn.00404468
test eax, eax
je 0x4053af
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 0x405307
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 0x40527a
pop esi
mov eax, dword [ebp - 0x10]
pop edi
pop ebx
leave
ret 4
Function at 0x405bdb
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.004297a2
push 0x7fe
lea eax, [ebp - 0x804]
push 0
push eax
mov dword [ebp - 0x808], 0x20
call fcn.00444396
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 0x405c76
push str.CStatusText::PrintfStatusText
push 0x53
push str..CStatusText.cpp
push str.INT3_in__S_line__u__function__S
push 1
call fcn.00449e4d
add esp, 0x14
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
mov word [ebp - 0x5c2], ax
cmp dword [0x512584], 4
jl 0x405c96
lea eax, [ebp - 0x808]
push eax
push ebx
push str.STATUS__u_:__s
push 4
call fcn.00449e4d
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 0x405cee
or ebx, 0xffffffff
call edi
mov ecx, dword [esi]
mov dword [ebp + 8], eax
xor eax, eax
test ecx, ecx
jle 0x405cee
lea edx, [esi + 0x2c]
mov edi, dword [edx - 0x28]
cmp word [edi], 0
je 0x405ce6
mov edi, dword [edx]
sub edi, dword [ebp + 8]
cmp edi, 0xffffffff
jae 0x405ce6
mov ebx, eax
inc eax
add edx, 4
cmp eax, ecx
jl 0x405cd1
and dword [ebp - 4], 0
pop edi
test ebx, ebx
jl 0x405d2d
cmp dword [0x512584], 5
jl 0x405d16
push dword [esi + ebx*4 + 4]
push dword [ebp + 0xc]
push str.SB_SETTEXT__i___s
push 5
call fcn.00449e4d
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 0x405d4b
lea eax, [ebp - 4]
push eax
push 0x64
push 2
push 0x44f0b8
push dword [ebp + 0xc]
push 0x40b
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
cmp dword [ebp + 0x10], 0
je 0x405d65
push 0x405b6b
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 0x40627e
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 0x4062a7
dec eax
je 0x4062a2
dec eax
dec eax
jne 0x4062a2
push 2
pop eax
jmp 0x4062eb
xor eax, eax
inc eax
jmp 0x4062eb
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 0x45082c
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 0x4062f0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x450a1c]
mov dword [ebp - 8], eax
mov eax, dword [0x450a20]
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 0x406354
cmp eax, 3
jbe 0x40632f
cmp eax, 5
jne 0x406354
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 0x406354
push dword [ebp + 8]
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x406361
inc word [ebp - 8]
cmp word [ebp - 8], 0x5a
jbe 0x406316
jmp 0x40636c
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
pop esi
leave
ret 8
Function at 0x406371
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 0x4063ab
cmp dword [esi + 0x840], 0xffffffff
jne 0x4063ab
add esi, 0x930
xor eax, eax
cmp word [esi], di
je 0x4064d1
mov word [esi], ax
inc eax
jmp 0x4064d1
push ebx
mov ebx, 0x28a0
push ebx
call fcn.00444556
push ebx
push edi
push eax
mov dword [ebp - 4], eax
call fcn.00444396
lea edi, [esi + 0x848]
xor eax, eax
add esp, 0x10
cmp word [edi], ax
je 0x4064d5
cmp dword [0x4a35d0], eax
je 0x406489
push edi
push str.GetVolumePathNamesForVolumeName__s_...
push 3
mov dword [ebp - 0x10], eax
call fcn.00449e4d
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push 0x1450
push dword [ebp - 4]
push edi
call dword [0x4a35d0]
test eax, eax
je 0x406464
cmp dword [0x512584], 3
jl 0x40644f
push dword [ebp - 4]
call fcn.00426da3
mov edi, eax
test edi, edi
je 0x40643b
push edi
push str._OK__mp_s
push 3
call fcn.00449e4d
push edi
call fcn.004445cb
add esp, 0x10
jmp 0x40644f
push 0x44f050
push str._OK__mp_s
push 3
call fcn.00449e4d
add esp, 0xc
push ebx
add esi, 0x930
push esi
push dword [ebp - 4]
call fcn.00444353
add esp, 0xc
jmp 0x4064b4
call fcn.0044744a
push eax
push str._err_S
push 3
call fcn.00449e4d
add esp, 0xc
xor eax, eax
mov word [esi + 0x930], ax
xor esi, esi
jmp 0x40658f
push dword [ebp - 4]
push edi
call fcn.004062f0
push dword [ebp - 4]
push str.Letter_s
push 3
call fcn.00449e4d
push ebx
add esi, 0x930
push esi
push dword [ebp - 4]
call fcn.00444353
add esp, 0x18
test eax, eax
je 0x406482
push ebx
push dword [ebp - 4]
push esi
call fcn.00444400
push dword [ebp - 4]
call fcn.004445cb
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 0x406482
mov esi, 0x450a2c
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 0x406569
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 0x406569
lea eax, [ebp - 0xc]
push eax
push str.Letter_s
push 3
call fcn.00449e4d
lea eax, [ebp - 0xc]
push eax
push 0x450a24
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.00444353
add esp, 0x24
test eax, eax
jne 0x406579
inc word [ebp - 0xc]
cmp word [ebp - 0xc], 0x5a
jbe 0x4064f9
jmp 0x406482
push ebx
push dword [ebp - 4]
add esi, 0x930
push esi
call fcn.00444400
xor esi, esi
add esp, 0xc
inc esi
push dword [ebp - 4]
call fcn.004445cb
pop ecx
mov eax, esi
jmp 0x4064d0
Function at 0x40659f
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 0x406753
lea edi, [esi + 0x848]
cmp word [edi], bx
je 0x406753
mov eax, dword [0x50638c]
push edi
push str.GetVolumeInformation__s_...
push 3
mov dword [ebp - 4], eax
call fcn.00449e4d
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 [0x506370], ebx
jne 0x406753
mov ecx, dword [ebp - 4]
cmp ecx, dword [0x50638c]
jne 0x406753
cmp eax, ebx
je 0x4066f7
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.00449e4d
mov eax, dword [ebp - 4]
add esp, 0x14
cmp eax, dword [0x50638c]
jne 0x4066f2
push 0x450ab4
lea eax, [ebp - 0x48]
push eax
mov dword [esi + 0x34f4], ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x4066a0
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 0x4066a0
cmp dword [ebp - 4], 0xff5
jae 0x406688
push 0x450aac
jmp 0x406696
cmp dword [ebp - 4], 0xfff5
jae 0x4066a0
push 0x450aa4
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 + 0x3264]
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 + 0x3278]
push eax
call edi
lea eax, [ebp - 0x48]
push eax
lea eax, [esi + 0x347a]
push eax
call edi
mov eax, dword [ebp - 8]
mov dword [esi + 0x3260], eax
mov byte [esi + 0x34ba], bl
xor eax, eax
inc eax
jmp 0x406755
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x34f4], eax
call fcn.00447428
push eax
push str._err_s
push 3
call fcn.00449e4d
xor eax, eax
add esp, 0xc
cmp dword [esi + 0x34f4], 0x80310000
mov word [esi + 0x3264], ax
mov word [esi + 0x3278], ax
mov word [esi + 0x347a], ax
mov dword [esi + 0x3260], ebx
jne 0x406753
push str.locked_by_BitLocker
add esi, 0x34ba
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40cbf7
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, ecx
push dword [esi + 0x820]
push str.StartArrivalHighlight__s_
push 4
call fcn.00449e4d
mov eax, dword [0x505cdc]
mov ecx, dword [0x505cd8]
add esp, 0xc
add eax, ecx
je 0x40cce2
push edi
mov dword [esi + 0xfe0], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xfdc], eax
cmp dword [0x512584], 4
mov edi, fcn.004380aa
jl 0x40cc6d
push dword [esi + 0x820]
push dword [esi + 8]
push edi
push dword [0x505cd8]
push esi
push dword [0x505c28]
push str.SetTimer_0x_08Ix__0x_08Ix___u__0x_08Ix_EndOfTreeNodeHighlight_TimerProc___hTreeItem0x_08Ix___s
push 4
call fcn.00449e4d
add esp, 0x20
push edi
push dword [0x505cd8]
push esi
push dword [0x505c28]
call dword [sym.imp.USER32.dll_SetTimer]
cmp dword [0x505ce4], 0
pop edi
je 0x40ccda
push dword [esi + 8]
call fcn.00432721
test eax, eax
je 0x40ccda
cmp dword [esi + 0xd5c], 0
je 0x40ccb4
mov ecx, esi
call fcn.00407378
test eax, eax
je 0x40ccda
mov ecx, esi
call fcn.00407285
jmp 0x40ccda
push str.TV_NODE_INFO::StartArrivalHighlight
push 0x112
push str..CUsbDevs.cpp
push str.INT3_in__S_line__u__function__S
push 1
call fcn.00449e4d
add esp, 0x14
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
pop esi
jmp fcn.0040ab43
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
push 0x113
push dword [0x505c28]
call fcn.004380aa
pop esi
ret

Function at 0x40e1ca
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, 0x453084
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.KERNEL32.dll_WriteConsoleW]
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
push 2
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call esi
test eax, eax
jne 0x40e202
push 0xb
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ebx, dword [ebp + 0x10]
jmp 0x40e22f
mov eax, 0x7fff
cmp ebx, eax
ja 0x40e212
mov eax, ebx
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [ebp + 0xc]
lea eax, [eax + edi*2]
push eax
push dword [ebp + 8]
call esi
test eax, eax
je 0x40e1fa
sub ebx, dword [ebp - 4]
add edi, dword [ebp - 4]
test ebx, ebx
jne 0x40e207
push ebx
lea eax, [ebp - 4]
push eax
push 2
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call esi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40e24a
Capabilities:
Manipulate console buffer
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
call esi
mov ebx, eax
test ebx, ebx
jne 0x40e2f9
push str.AttachConsole
call fcn.00426868
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40e2ff
push 0xffffffffffffffff
call eax
test eax, eax
je 0x40e2ff
push 0xfffffffffffffff5
call esi
mov ebx, eax
test ebx, ebx
je 0x40e2ff
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x40e2f9
cmp word [ebp - 0x1c], 0
je 0x40e2f9
push edi
movsx edi, word [ebp - 0x1c]
mov eax, 0x105
cmp edi, eax
jbe 0x40e2b7
mov edi, eax
mov ax, word [ebp - 0x1a]
push 0x20c
push 0
mov esi, 0x4bb678
push esi
mov word [0x49d098], ax
call fcn.00444396
and dword [ebp - 8], 0
xor eax, eax
mov word [ebp - 4], ax
mov ax, word [ebp - 0x1a]
add esp, 0xc
mov word [ebp - 2], ax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
call dword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
je 0x40e30f
push 0xfffffffffffffff5
call esi
mov ebx, eax
test ebx, ebx
jne 0x40e2f9
push 0x10
push dword [0x49daa4]
push str.Error:_no_stdout_handle
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xa
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x410659
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push str._r_n____________________________HID_Descriptor______________________r_n
call fcn.0040e92d
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi]
push eax
push eax
push str.bLength__________________:_0x_02X___u_bytes__r_n
call fcn.0040e92d
movzx eax, byte [esi + 1]
push eax
push str.bDescriptorType__________:_0x_02X__HID_Descriptor__r_n
call fcn.0040e92d
movzx eax, word [esi + 2]
mov ecx, eax
mov edi, eax
and ecx, 0xff
push ecx
sar edi, 8
push edi
push eax
push str.bcdHID___________________:_0x_04X__HID_Version__X._02X__r_n
call fcn.0040e92d
add esp, 0x28
cmp edi, 2
jle 0x4106bf
push edi
push str._ERROR__As_of_year_2020_there_is_no_USB_HID_spec_Version__X.x_r_n
call fcn.0040e92d
pop ecx
pop ecx
movzx ecx, byte [esi + 4]
push ecx
call fcn.0041063f
push eax
push ecx
push ecx
push str.bCountryCode_____________:_0x_02X___02u___s__r_n
call fcn.0040e92d
movzx eax, byte [esi + 5]
push eax
push str.bNumDescriptors__________:_0x_02X_r_n
call fcn.0040e92d
add esp, 0x18
push esi
call fcn.004220a0
movzx eax, byte [esi]
sub eax, 5
push 3
cdq
pop edi
idiv edi
mov cl, byte [esi + 5]
movzx edx, cl
cmp edx, eax
jle 0x410714
push str._ERROR__bLength_too_small_for_bNumDescriptors
call fcn.0040e92d
pop ecx
jmp 0x4107f5
mov byte [ebp + 0xf], 0
test cl, cl
jbe 0x4107f5
push ebx
movzx edi, byte [ebp + 0xf]
lea eax, [edi + 1]
push eax
push str.Descriptor__u:_r_n
call fcn.0040e92d
lea eax, [edi + 2]
imul eax, eax, 3
add eax, esi
movzx ebx, byte [eax]
pop ecx
pop ecx
push ebx
mov dword [ebp - 0xc], eax
call fcn.00410599
push eax
push ebx
push str.bDescriptorType__________:_0x_02X___s__r_n
call fcn.0040e92d
add esp, 0xc
test bl, bl
jns 0x410767
push str._CAUTION__Bit_7_is_reserved_and_should_be_0_r_n
call fcn.0040e92d
pop ecx
mov eax, edi
imul eax, eax, 3
lea ebx, [eax + esi + 7]
movzx eax, word [ebx]
push eax
push eax
push str.wDescriptorLength________:_0x_04X___u_bytes__r_n
call fcn.0040e92d
and dword [ebp - 8], 0
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x4bb9e8
push edi
push dword [ebp + 0x10]
mov dword [ebp - 4], 0x40000
push esi
push dword [ebp + 8]
call fcn.004094d7
test eax, eax
je 0x4107d0
mov eax, dword [ebp - 0xc]
cmp byte [eax], 0x22
jne 0x4107c1
movzx eax, word [ebx]
push eax
push 0x4bb9e8
call fcn.00421c3f
push dword [ebp - 4]
push 0x4bb9e8
call fcn.00422084
jmp 0x4107e5
push dword [ebp - 8]
call fcn.004455fb
push eax
push str.Error_reading_descriptor_:__s__due_to_a_obscure_limitation_of_the_Win32_USB_API__see_F1_Help__r_n
call fcn.0040e92d
pop ecx
pop ecx
inc byte [ebp + 0xf]
mov al, byte [ebp + 0xf]
cmp al, byte [esi + 5]
jb 0x410721
pop ebx
pop edi
pop esi
leave
ret 0xc