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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push dword [ebp + 8]
call fcn.00401cb8
mov esi, eax
xor eax, eax
cmp esi, eax
je 0x402967
push ebx
push edi
lea edi, [esi + 0x10a4]
mov dword [ebp + 8], eax
cmp word [edi], ax
jne 0x402914
cmp word [esi + 0xc2c], ax
je 0x402914
mov ebx, dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
push 0x104
push edi
lea eax, [esi + 0xc34]
push eax
call ebx
test eax, eax
jne 0x402914
push 0x44af9c
lea eax, [esi + 0xc2c]
push eax
call fcn.004258c1
test eax, eax
je 0x402914
lea eax, [esi + 0xc2c]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x44ad64
push 0x44af9c
lea eax, [ebp - 0x208]
push eax
call fcn.004264af
push 0x104
push edi
lea eax, [ebp - 0x200]
push eax
call ebx
cmp word [edi], 0
mov ebx, dword [ebp + 0xc]
je 0x40292c
push edi
call fcn.0042748c
mov dword [ebx], eax
mov dword [ebp + 8], 1
lea eax, [esi + 0x13ac]
cmp word [eax], 0
je 0x402947
push eax
call fcn.0042748c
mov ecx, dword [ebp + 8]
inc dword [ebp + 8]
mov dword [ebx + ecx*4], eax
add esi, 0x132c
cmp word [esi], 0
je 0x402962
push esi
call fcn.0042748c
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 0x402d51
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 0x402ec3
push 0x44b180
lea ebx, [esi + 0xfc4]
push ebx
call fcn.0042580f
test eax, eax
je 0x402ec3
lea edi, [esi + 0x13ac]
cmp word [edi], 0
je 0x402ec3
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0043fd94
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 0x402ec3
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.00445f0b
push str.Device_Parameters
lea eax, [esi + 0xe34]
push eax
push str.SystemCurrentControlSetEnum
lea eax, [ebp - 0x60c]
push 0x44b0bc
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.004250c5
test eax, eax
je 0x402ec3
push 0x208
lea eax, [ebp - 0xa1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x402ec3
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.00445f0b
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 0x44b070
push edi
call dword [sym.imp.SHLWAPI.dll_StrTrimW]
mov ecx, dword [0x4fd5c0]
push 0
push dword [esi + 0x10]
call fcn.00407353
test eax, eax
je 0x402ebe
push 1
mov ecx, eax
call fcn.0040a12e
xor eax, eax
inc eax
jmp 0x402ec5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x404dbd
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, 0x46e634
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], 0x44a7b4
mov dword [ebp - 0x20], 0x46e644
mov dword [ebp - 0x1c], 0x46e694
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 0x404f8d
lea eax, [ebp - 0x48]
push eax
push ebx
jmp 0x404f6f
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 0x404f65
push dword [ebp - 0x50]
mov ecx, dword [ebp - 0x14]
call fcn.00401b35
mov esi, eax
cmp esi, ebx
je 0x404f65
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 0x404eb1
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 0x404f0d
lea eax, [ebp - 0x460]
push eax
call fcn.00429f79
cmp edi, ebx
mov dword [esi + 0x3a20], eax
jl 0x404eea
xor ecx, ecx
inc ecx
cmp edi, ecx
jle 0x404ee4
push 2
pop ecx
cmp edi, ecx
je 0x404ee4
push 3
pop ecx
cmp edi, ecx
jne 0x404eea
mov dword [esi + 0x3a24], ecx
push eax
mov eax, dword [esi + 0x3a24]
push dword [eax*4 + 0x493014]
lea eax, [esi + 0x1084]
push str._S_i
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
cmp edi, ebx
jl 0x404f43
cmp edi, 1
jle 0x404f28
cmp edi, 2
jne 0x404f43
push dword [esi + 0x3a20]
push str..CdRom_i
jmp 0x404f33
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 0x404f5e
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 0x404e3d
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 0x404e17
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405677
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.00427600
push 0x7fe
lea eax, [ebp - 0x804]
push 0
push eax
mov dword [ebp - 0x808], 0x20
call fcn.0043fd94
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 0x405712
push str.CStatusText::PrintfStatusText
push 0x53
push str..CStatusText.cpp
push str.INT3_in__S_line__u__function__S
push 1
call fcn.00445f0b
add esp, 0x14
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
mov word [ebp - 0x5c2], ax
cmp dword [0x507a24], 4
jl 0x405732
lea eax, [ebp - 0x808]
push eax
push ebx
push str.STATUS__u_:__s
push 4
call fcn.00445f0b
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 0x40578a
or ebx, 0xffffffff
call edi
mov ecx, dword [esi]
mov dword [ebp + 8], eax
xor eax, eax
test ecx, ecx
jle 0x40578a
lea edx, [esi + 0x2c]
mov edi, dword [edx - 0x28]
cmp word [edi], 0
je 0x405782
mov edi, dword [edx]
sub edi, dword [ebp + 8]
cmp edi, 0xffffffff
jae 0x405782
mov ebx, eax
inc eax
add edx, 4
cmp eax, ecx
jl 0x40576d
and dword [ebp - 4], 0
pop edi
test ebx, ebx
jl 0x4057c9
cmp dword [0x507a24], 5
jl 0x4057b2
push dword [esi + ebx*4 + 4]
push dword [ebp + 0xc]
push str.SB_SETTEXT__i___s
push 5
call fcn.00445f0b
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 0x4057e7
lea eax, [ebp - 4]
push eax
push 0x64
push 2
push 0x44ad64
push dword [ebp + 0xc]
push 0x40b
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
cmp dword [ebp + 0x10], 0
je 0x405801
push 0x405607
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 0x405cd4
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 0x405cfd
dec eax
je 0x405cf8
dec eax
dec eax
jne 0x405cf8
push 2
pop eax
jmp 0x405d41
xor eax, eax
inc eax
jmp 0x405d41
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 0x44c380
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 0x405d46
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x44c548]
mov dword [ebp - 8], eax
mov eax, dword [0x44c54c]
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 0x405daa
cmp eax, 3
jbe 0x405d85
cmp eax, 5
jne 0x405daa
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 0x405daa
push dword [ebp + 8]
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x405db7
inc word [ebp - 8]
cmp word [ebp - 8], 0x5a
jbe 0x405d6c
jmp 0x405dc2
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
pop esi
leave
ret 8
Function at 0x405dc7
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 0x405e01
cmp dword [esi + 0x840], 0xffffffff
jne 0x405e01
add esi, 0x930
xor eax, eax
cmp word [esi], di
je 0x405f27
mov word [esi], ax
inc eax
jmp 0x405f27
push ebx
mov ebx, 0x28a0
push ebx
call fcn.0043ff54
push ebx
push edi
push eax
mov dword [ebp - 4], eax
call fcn.0043fd94
lea edi, [esi + 0x848]
xor eax, eax
add esp, 0x10
cmp word [edi], ax
je 0x405f2b
cmp dword [0x498808], eax
je 0x405edf
push edi
push str.GetVolumePathNamesForVolumeName__s_...
push 3
mov dword [ebp - 0x10], eax
call fcn.00445f0b
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push 0x1450
push dword [ebp - 4]
push edi
call dword [0x498808]
test eax, eax
je 0x405eba
cmp dword [0x507a24], 3
jl 0x405ea5
push dword [ebp - 4]
call fcn.00424dfa
mov edi, eax
test edi, edi
je 0x405e91
push edi
push str._OK__mp_s
push 3
call fcn.00445f0b
push edi
call fcn.0043ffc9
add esp, 0x10
jmp 0x405ea5
push 0x44acfc
push str._OK__mp_s
push 3
call fcn.00445f0b
add esp, 0xc
push ebx
add esi, 0x930
push esi
push dword [ebp - 4]
call fcn.0043fd51
add esp, 0xc
jmp 0x405f0a
call fcn.0044394a
push eax
push str._err_S
push 3
call fcn.00445f0b
add esp, 0xc
xor eax, eax
mov word [esi + 0x930], ax
xor esi, esi
jmp 0x405fe5
push dword [ebp - 4]
push edi
call fcn.00405d46
push dword [ebp - 4]
push str.Letter_s
push 3
call fcn.00445f0b
push ebx
add esi, 0x930
push esi
push dword [ebp - 4]
call fcn.0043fd51
add esp, 0x18
test eax, eax
je 0x405ed8
push ebx
push dword [ebp - 4]
push esi
call fcn.0043fdfe
push dword [ebp - 4]
call fcn.0043ffc9
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 0x405ed8
mov esi, 0x44c558
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 0x405fbf
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 0x405fbf
lea eax, [ebp - 0xc]
push eax
push str.Letter_s
push 3
call fcn.00445f0b
lea eax, [ebp - 0xc]
push eax
push 0x44c550
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.0043fd51
add esp, 0x24
test eax, eax
jne 0x405fcf
inc word [ebp - 0xc]
cmp word [ebp - 0xc], 0x5a
jbe 0x405f4f
jmp 0x405ed8
push ebx
push dword [ebp - 4]
add esi, 0x930
push esi
call fcn.0043fdfe
xor esi, esi
add esp, 0xc
inc esi
push dword [ebp - 4]
call fcn.0043ffc9
pop ecx
mov eax, esi
jmp 0x405f26
Function at 0x405ff5
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 0x4061a9
lea edi, [esi + 0x848]
cmp word [edi], bx
je 0x4061a9
mov eax, dword [0x4fb8ec]
push edi
push str.GetVolumeInformation__s_...
push 3
mov dword [ebp - 4], eax
call fcn.00445f0b
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 [0x4fb8d0], ebx
jne 0x4061a9
mov ecx, dword [ebp - 4]
cmp ecx, dword [0x4fb8ec]
jne 0x4061a9
cmp eax, ebx
je 0x40614d
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.00445f0b
mov eax, dword [ebp - 4]
add esp, 0x14
cmp eax, dword [0x4fb8ec]
jne 0x406148
push 0x44c5e0
lea eax, [ebp - 0x48]
push eax
mov dword [esi + 0x34f4], ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x4060f6
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 0x4060f6
cmp dword [ebp - 4], 0xff5
jae 0x4060de
push 0x44c5d8
jmp 0x4060ec
cmp dword [ebp - 4], 0xfff5
jae 0x4060f6
push 0x44c5d0
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 0x4061ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x34f4], eax
call fcn.00443928
push eax
push str._err_s
push 3
call fcn.00445f0b
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 0x4061a9
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 0x40bfc8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, ecx
push dword [esi + 0x81c]
push str.StartArrivalHighlight__s_
push 4
call fcn.00445f0b
mov eax, dword [0x4fb260]
mov ecx, dword [0x4fb25c]
add esp, 0xc
add eax, ecx
je 0x40c0c1
push edi
mov dword [esi + 0xfe0], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xfdc], eax
cmp dword [0x507a24], 4
mov edi, fcn.00434579
jl 0x40c03e
push dword [esi + 0x81c]
push dword [esi + 8]
push edi
push dword [0x4fb25c]
push esi
push dword [0x4fb1c0]
push str.SetTimer_0x_08Ix__0x_08Ix___u__0x_08Ix_EndOfTreeNodeHighlight_TimerProc___hTreeItem0x_08Ix___s
push 4
call fcn.00445f0b
add esp, 0x20
push edi
push dword [0x4fb25c]
push esi
push dword [0x4fb1c0]
call dword [sym.imp.USER32.dll_SetTimer]
cmp dword [0x4fb268], 0
pop edi
je 0x40c0b9
push dword [esi + 8]
call fcn.0042fc44
test eax, eax
je 0x40c0b9
mov ecx, dword [esi + 0xd48]
test ecx, ecx
je 0x40c093
call fcn.00406e3a
test eax, eax
je 0x40c0b9
push dword [esi + 8]
push 0
push 0x1114
push dword [0x4fb1c8]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40c0b9
push str.TV_NODE_INFO::StartArrivalHighlight
push 0x10d
push str..CUsbDevs.cpp
push str.INT3_in__S_line__u__function__S
push 1
call fcn.00445f0b
add esp, 0x14
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
pop esi
jmp fcn.0040a0c7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
push 0x113
push dword [0x4fb1c0]
call fcn.00434579
pop esi
ret

Function at 0x40caa0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, 0x44e600
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 0x40cad8
push 0xb
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ebx, dword [ebp + 0x10]
jmp 0x40cb05
mov eax, 0x7fff
cmp ebx, eax
ja 0x40cae8
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 0x40cad0
sub ebx, dword [ebp - 4]
add edi, dword [ebp - 4]
test ebx, ebx
jne 0x40cadd
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 0x40cb20
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 0x40cbcf
push str.AttachConsole
call fcn.004248bf
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40cbd5
push 0xffffffffffffffff
call eax
test eax, eax
je 0x40cbd5
push 0xfffffffffffffff5
call esi
mov ebx, eax
test ebx, ebx
je 0x40cbd5
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x40cbcf
cmp word [ebp - 0x1c], 0
je 0x40cbcf
push edi
movsx edi, word [ebp - 0x1c]
mov eax, 0x105
cmp edi, eax
jbe 0x40cb8d
mov edi, eax
mov ax, word [ebp - 0x1a]
push 0x20c
push 0
mov esi, 0x4b0870
push esi
mov word [0x493068], ax
call fcn.0043fd94
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 0x40cbe5
push 0xfffffffffffffff5
call esi
mov ebx, eax
test ebx, ebx
jne 0x40cbcf
push 0x10
push dword [0x493a1c]
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 0x40ef30
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.0040d20e
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi]
push eax
push eax
push str.bLength__________________:_0x_02X___u_bytes__r_n
call fcn.0040d20e
movzx eax, byte [esi + 1]
push eax
push str.bDescriptorType__________:_0x_02X__HID_Descriptor__r_n
call fcn.0040d20e
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.0040d20e
add esp, 0x28
cmp edi, 2
jle 0x40ef96
push edi
push str._ERROR__As_of_year_2020_there_is_no_USB_HID_spec_Version__X.x_r_n
call fcn.0040d20e
pop ecx
pop ecx
movzx ecx, byte [esi + 4]
push ecx
call fcn.0040ef16
push eax
push ecx
push ecx
push str.bCountryCode_____________:_0x_02X___02u___s__r_n
call fcn.0040d20e
movzx eax, byte [esi + 5]
push eax
push str.bNumDescriptors__________:_0x_02X_r_n
call fcn.0040d20e
add esp, 0x18
push esi
call fcn.0042031d
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 0x40efeb
push str._ERROR__bLength_too_small_for_bNumDescriptors
call fcn.0040d20e
pop ecx
jmp 0x40f0cc
mov byte [ebp + 0xf], 0
test cl, cl
jbe 0x40f0cc
push ebx
movzx edi, byte [ebp + 0xf]
lea eax, [edi + 1]
push eax
push str.Descriptor__u:_r_n
call fcn.0040d20e
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.0040ee70
push eax
push ebx
push str.bDescriptorType__________:_0x_02X___s__r_n
call fcn.0040d20e
add esp, 0xc
test bl, bl
jns 0x40f03e
push str._CAUTION__Bit_7_is_reserved_and_should_be_0_r_n
call fcn.0040d20e
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.0040d20e
and dword [ebp - 8], 0
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x4b0bd0
push edi
push dword [ebp + 0x10]
mov dword [ebp - 4], 0x40000
push esi
push dword [ebp + 8]
call fcn.00408c82
test eax, eax
je 0x40f0a7
mov eax, dword [ebp - 0xc]
cmp byte [eax], 0x22
jne 0x40f098
movzx eax, word [ebx]
push eax
push 0x4b0bd0
call fcn.0041febc
push dword [ebp - 4]
push 0x4b0bd0
call fcn.00420301
jmp 0x40f0bc
push dword [ebp - 8]
call fcn.00440b33
push eax
push str.Error_reading_descriptor_:__s__due_to_a_obscure_limitation_of_the_Win32_USB_API__see_UsbTreeView.txt__r_n
call fcn.0040d20e
pop ecx
pop ecx
inc byte [ebp + 0xf]
mov al, byte [ebp + 0xf]
cmp al, byte [esi + 5]
jb 0x40eff8
pop ebx
pop edi
pop esi
leave
ret 0xc