joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405077
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, 0x47b3f0
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], 0x4529ec
mov dword [ebp - 0x20], 0x47b400
mov dword [ebp - 0x1c], 0x47b450
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 0x405247
lea eax, [ebp - 0x48]
push eax
push ebx
jmp 0x405229
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 0x40521f
push dword [ebp - 0x50]
mov ecx, dword [ebp - 0x14]
call fcn.00401afc
mov esi, eax
cmp esi, ebx
je 0x40521f
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 0x40516b
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 0x4051c7
lea eax, [ebp - 0x460]
push eax
call fcn.0042e6f4
cmp edi, ebx
mov dword [esi + 0x3a30], eax
jl 0x4051a4
xor ecx, ecx
inc ecx
cmp edi, ecx
jle 0x40519e
push 2
pop ecx
cmp edi, ecx
je 0x40519e
push 3
pop ecx
cmp edi, ecx
jne 0x4051a4
mov dword [esi + 0x3a34], ecx
push eax
mov eax, dword [esi + 0x3a34]
push dword [eax*4 + 0x4a2018]
lea eax, [esi + 0x1088]
push str._S_i
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
cmp edi, ebx
jl 0x4051fd
cmp edi, 1
jle 0x4051e2
cmp edi, 2
jne 0x4051fd
push dword [esi + 0x3a30]
push str..CdRom_i
jmp 0x4051ed
push dword [esi + 0x3a30]
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 0x405218
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 0x4050f7
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 0x4050d1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4053c4
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.0044def7
add esp, 0xc
cmp dword [edi + 0x400c], ebx
mov dword [ebp - 0x14], ebx
jle 0x405563
lea eax, [edi + 0xc]
mov dword [ebp - 0xc], eax
push esi
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
cmp esi, ebx
je 0x40554c
cmp dword [esi], ebx
je 0x40554c
cmp dword [esi + 8], ebx
je 0x40554c
cmp dword [0x50d838], ebx
jne 0x405433
cmp dword [esi + 0x3a38], ebx
jne 0x40554c
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.0044def7
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x24]
cmp eax, 0x2710
jae 0x405549
push edi
push dword [esi + 0x10]
push 0x4546fc
push 4
call fcn.0044def7
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 0x405549
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 0x405536
push dword [ebp - 4]
lea eax, [ebp - 0x1a4]
push eax
call fcn.00401354
test eax, eax
jne 0x405536
push dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.00401afc
mov esi, eax
cmp esi, ebx
je 0x4054eb
cmp dword [esi + 8], ebx
je 0x4054e4
mov eax, 0x4546f8
jmp 0x4054f0
mov eax, 0x4546f4
jmp 0x4054f0
mov eax, 0x4546f0
push eax
push esi
push dword [ebp - 4]
push str._DevInstChild_u_pDevChild0x_08Ix_pDevChild__IsPresent_S
push 4
call fcn.0044def7
add esp, 0x14
cmp esi, ebx
je 0x40550d
cmp dword [esi + 8], ebx
jne 0x405536
cmp dword [ebp + 8], ebx
je 0x405523
push ebx
push ebx
push dword [ebp - 4]
push 0x453148
call fcn.0043f0b9
jmp 0x405536
push dword [ebp - 4]
mov ecx, dword [ebp - 8]
push ebx
call fcn.0040455f
test eax, eax
je 0x405536
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 0x40548e
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 0x405401
pop esi
mov eax, dword [ebp - 0x10]
pop edi
pop ebx
leave
ret 4
Function at 0x405e29
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 0x405fbc
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.0042b33a
push 0x7fe
lea eax, [ebp - 0x804]
push 0
push eax
mov dword [ebp - 0x808], 0x20
call fcn.00448216
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 0x405ecc
push str.CStatusText::PrintfStatusText
push 0x58
push str..CStatusText.cpp
push str.INT3_in__S_line__u__function__S
push 1
call fcn.0044def7
add esp, 0x14
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
mov word [ebp - 0x5c2], ax
cmp dword [0x517934], 4
jl 0x405eec
lea eax, [ebp - 0x808]
push eax
push ebx
push str.STATUS__u_:__s
push 4
call fcn.0044def7
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 0x405f44
or ebx, 0xffffffff
call edi
mov ecx, dword [esi]
mov dword [ebp + 8], eax
xor eax, eax
test ecx, ecx
jle 0x405f44
lea edx, [esi + 0x2c]
mov edi, dword [edx - 0x28]
cmp word [edi], 0
je 0x405f3c
mov edi, dword [edx]
sub edi, dword [ebp + 8]
cmp edi, 0xffffffff
jae 0x405f3c
mov ebx, eax
inc eax
add edx, 4
cmp eax, ecx
jl 0x405f27
and dword [ebp - 4], 0
pop edi
test ebx, ebx
jl 0x405f83
cmp dword [0x517934], 5
jl 0x405f6c
push dword [esi + ebx*4 + 4]
push dword [ebp + 0xc]
push str.SB_SETTEXT__i___s
push 5
call fcn.0044def7
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 0x405fa1
lea eax, [ebp - 4]
push eax
push 0x64
push 2
push 0x453148
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 0x405fbc
push 0x405db9
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 0x406547
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 0x406570
dec eax
je 0x40656b
dec eax
dec eax
jne 0x40656b
push 2
pop eax
jmp 0x4065b4
xor eax, eax
inc eax
jmp 0x4065b4
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 0x454a04
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 0x4065b9
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x454c08]
mov dword [ebp - 8], eax
mov eax, dword [0x454c0c]
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 0x40661d
cmp eax, 3
jbe 0x4065f8
cmp eax, 5
jne 0x40661d
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 0x40661d
push dword [ebp + 8]
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40662a
inc word [ebp - 8]
cmp word [ebp - 8], 0x5a
jbe 0x4065df
jmp 0x406635
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
pop esi
leave
ret 8
Function at 0x40663a
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 0x406674
cmp dword [esi + 0x840], 0xffffffff
jne 0x406674
add esi, 0x930
xor eax, eax
cmp word [esi], di
je 0x40679a
mov word [esi], ax
inc eax
jmp 0x40679a
push ebx
mov ebx, 0x28a0
push ebx
call fcn.004483d6
push ebx
push edi
push eax
mov dword [ebp - 4], eax
call fcn.00448216
lea edi, [esi + 0x848]
xor eax, eax
add esp, 0x10
cmp word [edi], ax
je 0x40679e
cmp dword [0x4a8640], eax
je 0x406752
push edi
push str.GetVolumePathNamesForVolumeName__s_...
push 3
mov dword [ebp - 0x10], eax
call fcn.0044def7
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push 0x1450
push dword [ebp - 4]
push edi
call dword [0x4a8640]
test eax, eax
je 0x40672d
cmp dword [0x517934], 3
jl 0x406718
push dword [ebp - 4]
call fcn.00427f7b
mov edi, eax
test edi, edi
je 0x406704
push edi
push str._OK__mp_s
push 3
call fcn.0044def7
push edi
call fcn.00448411
add esp, 0x10
jmp 0x406718
push 0x453078
push str._OK__mp_s
push 3
call fcn.0044def7
add esp, 0xc
push ebx
add esi, 0x930
push esi
push dword [ebp - 4]
call fcn.004481d3
add esp, 0xc
jmp 0x40677d
call fcn.0044b48b
push eax
push str._err_S
push 3
call fcn.0044def7
add esp, 0xc
xor eax, eax
mov word [esi + 0x930], ax
xor esi, esi
jmp 0x406858
push dword [ebp - 4]
push edi
call fcn.004065b9
push dword [ebp - 4]
push str.Letter_s
push 3
call fcn.0044def7
push ebx
add esi, 0x930
push esi
push dword [ebp - 4]
call fcn.004481d3
add esp, 0x18
test eax, eax
je 0x40674b
push ebx
push dword [ebp - 4]
push esi
call fcn.00448280
push dword [ebp - 4]
call fcn.00448411
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 0x40674b
mov esi, 0x454c18
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 0x406832
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 0x406832
lea eax, [ebp - 0xc]
push eax
push str.Letter_s
push 3
call fcn.0044def7
lea eax, [ebp - 0xc]
push eax
push 0x454c10
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.004481d3
add esp, 0x24
test eax, eax
jne 0x406842
inc word [ebp - 0xc]
cmp word [ebp - 0xc], 0x5a
jbe 0x4067c2
jmp 0x40674b
push ebx
push dword [ebp - 4]
add esi, 0x930
push esi
call fcn.00448280
xor esi, esi
add esp, 0xc
inc esi
push dword [ebp - 4]
call fcn.00448411
pop ecx
mov eax, esi
jmp 0x406799
Function at 0x406868
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 0x406a1c
lea edi, [esi + 0x848]
cmp word [edi], bx
je 0x406a1c
mov eax, dword [0x50bb98]
push edi
push str.GetVolumeInformation__s_...
push 3
mov dword [ebp - 4], eax
call fcn.0044def7
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 [0x50bb7c], ebx
jne 0x406a1c
mov ecx, dword [ebp - 4]
cmp ecx, dword [0x50bb98]
jne 0x406a1c
cmp eax, ebx
je 0x4069c0
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.0044def7
mov eax, dword [ebp - 4]
add esp, 0x14
cmp eax, dword [0x50bb98]
jne 0x4069bb
push 0x454ca0
lea eax, [ebp - 0x48]
push eax
mov dword [esi + 0x3574], ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x406969
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 0x406969
cmp dword [ebp - 4], 0xff5
jae 0x406951
push 0x454c98
jmp 0x40695f
cmp dword [ebp - 4], 0xfff5
jae 0x406969
push 0x454c90
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 + 0x32e4]
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 + 0x32f8]
push eax
call edi
lea eax, [ebp - 0x48]
push eax
lea eax, [esi + 0x34fa]
push eax
call edi
mov eax, dword [ebp - 8]
mov dword [esi + 0x32e0], eax
mov byte [esi + 0x353a], bl
xor eax, eax
inc eax
jmp 0x406a1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x3574], eax
call fcn.0044b469
push eax
push str._err_s
push 3
call fcn.0044def7
xor eax, eax
add esp, 0xc
cmp dword [esi + 0x3574], 0x80310000
mov word [esi + 0x32e4], ax
mov word [esi + 0x32f8], ax
mov word [esi + 0x34fa], ax
mov dword [esi + 0x32e0], ebx
jne 0x406a1c
push str.locked_by_BitLocker
add esi, 0x353a
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406f9c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x420
cmp word [eax], 0x5c
jne 0x406fb1
add eax, 8
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x5c
lea eax, [ebp - 0x218]
push eax
call fcn.00427ca0
push 0x104
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x406fee
leave
ret 0xc
push esi
push str.Volume
push 0
lea ecx, [ebp - 0x10]
call fcn.00446089
xor esi, esi
cmp dword [ebp - 4], esi
jle 0x407022
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 8]
push dword [eax + esi*8]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x407026
inc esi
cmp esi, dword [ebp - 4]
jl 0x407005
xor esi, esi
jmp 0x407041
mov eax, dword [ebp - 8]
push dword [eax + esi*8 + 4]
push 0x454e14
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_wsprintfW]
xor esi, esi
add esp, 0xc
inc esi
lea ecx, [ebp - 0x10]
call fcn.00445f3a
mov eax, esi
pop esi
jmp 0x406fea
Function at 0x407b19
Capabilities:
Get disk information

Disassembly:
push esi
lea esi, [ecx + 0xfd0]
push dword [esi]
mov ecx, dword [0x50d7ec]
call fcn.0040121c
test eax, eax
je 0x407c09
mov esi, dword [esi]
mov ecx, dword [0x50d7ec]
push ebx
push ebp
push edi
push esi
call fcn.00404a15
xor ebx, ebx
push ebx
push dword [esi + 0x10]
lea edi, [esi + 0x39f4]
push edi
lea eax, [esi + 0x39f0]
push eax
call dword [sym.imp.CFGMGR32.dll_CM_Get_DevNode_Status]
xor ebp, ebp
inc ebp
test eax, eax
jne 0x407b6c
mov dword [esi + 8], ebp
jmp 0x407b75
mov dword [edi], 0x2d
mov dword [esi + 8], ebx
cmp dword [esi + 8], ebx
je 0x407c06
cmp dword [esi + 0x3a3c], ebx
jne 0x407b8e
cmp dword [esi + 0x3a38], ebx
je 0x407c06
lea edi, [esi + 0x3a30]
cmp dword [edi], 0xffffffff
jne 0x407ba7
lea eax, [esi + 0xc30]
push eax
call fcn.0042e6f4
mov dword [edi], eax
cmp dword [esi + 0x3a38], ebx
je 0x407c06
cmp dword [esi + 0x3b04], ebx
jne 0x407bcd
mov eax, dword [0x50d7ec]
push dword [esi + 0x10]
mov ecx, dword [eax + 8]
call fcn.004061f7
mov dword [esi + 0x3b04], eax
mov eax, dword [esi + 0x3b04]
cmp eax, ebx
je 0x407be9
pop edi
mov dword [eax + 0xc], ebp
mov ecx, dword [esi + 0x3b04]
pop ebp
pop ebx
pop esi
jmp fcn.0040663a
push dword [esi + 0x10]
lea eax, [esi + 0xc30]
push eax
mov eax, dword [0x50d7ec]
mov ecx, dword [eax + 8]
call fcn.0040705f
mov dword [esi + 0x3b04], eax
pop edi
pop ebp
pop ebx
pop esi
ret
Function at 0x40d89e
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, ecx
push dword [esi + 0x824]
push str.StartArrivalHighlight__s_
push 4
call fcn.0044def7
mov eax, dword [0x50b2e0]
mov ecx, dword [0x50b2e4]
add esp, 0xc
add ecx, eax
je 0x40d963
push edi
mov dword [esi + 0xfec], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xfe8], eax
cmp dword [0x517934], 4
mov edi, fcn.0043b759
jl 0x40d914
push dword [esi + 0x824]
push dword [esi + 8]
push edi
push dword [0x50b2e0]
push esi
push dword [0x50b228]
push str.SetTimer_0x_08Ix__0x_08Ix___u__0x_08Ix_EndOfTreeNodeHighlight_TimerProc___hTreeItem0x_08Ix___s
push 4
call fcn.0044def7
add esp, 0x20
push edi
push dword [0x50b2e0]
push esi
push dword [0x50b228]
call dword [sym.imp.USER32.dll_SetTimer]
cmp dword [0x50b2ec], 0
pop edi
je 0x40d95b
push dword [esi + 8]
call fcn.00435575
test eax, eax
je 0x40d95b
cmp dword [esi + 0xd60], 0
je 0x40d95b
mov ecx, esi
call fcn.00407e0e
test eax, eax
je 0x40d95b
push 1
mov ecx, esi
call fcn.0040786e
mov ecx, esi
pop esi
jmp fcn.0040b7ab
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
push 0x113
push dword [0x50b228]
call fcn.0043b759
pop esi
ret

Function at 0x40eec8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, 0x45753c
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 0x40ef00
push 0xb
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ebx, dword [ebp + 0x10]
jmp 0x40ef2d
mov eax, 0x7fff
cmp ebx, eax
ja 0x40ef10
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 0x40eef8
sub ebx, dword [ebp - 4]
add edi, dword [ebp - 4]
test ebx, ebx
jne 0x40ef05
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 0x40ef49
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 0x40eff8
push str.AttachConsole
call fcn.00427978
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40effe
push 0xffffffffffffffff
call eax
test eax, eax
je 0x40effe
push 0xfffffffffffffff5
call esi
mov ebx, eax
test ebx, ebx
je 0x40effe
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x40eff8
cmp word [ebp - 0x1c], 0
je 0x40eff8
push edi
movsx edi, word [ebp - 0x1c]
mov eax, 0x105
cmp edi, eax
jbe 0x40efb6
mov edi, eax
mov ax, word [ebp - 0x1a]
push 0x20c
push 0
mov esi, 0x4c06e8
push esi
mov word [0x4a2098], ax
call fcn.00448216
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 0x40f00e
push 0xfffffffffffffff5
call esi
mov ebx, eax
test ebx, ebx
jne 0x40eff8
push 0x10
push dword [0x4a2ab4]
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 0x41138d
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.0040f62c
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi]
push eax
push eax
push str.bLength__________________:_0x_02X___u_bytes__r_n
call fcn.0040f62c
movzx eax, byte [esi + 1]
push eax
push str.bDescriptorType__________:_0x_02X__HID_Descriptor__r_n
call fcn.0040f62c
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.0040f62c
add esp, 0x28
cmp edi, 2
jle 0x4113f3
push edi
push str._ERROR__As_of_year_2020_there_is_no_USB_HID_spec_Version__X.x_r_n
call fcn.0040f62c
pop ecx
pop ecx
movzx ecx, byte [esi + 4]
push ecx
call fcn.00411373
push eax
push ecx
push ecx
push str.bCountryCode_____________:_0x_02X___02u___s__r_n
call fcn.0040f62c
movzx eax, byte [esi + 5]
push eax
push str.bNumDescriptors__________:_0x_02X_r_n
call fcn.0040f62c
add esp, 0x18
push esi
call fcn.00423168
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 0x411448
push str._ERROR__bLength_too_small_for_bNumDescriptors
call fcn.0040f62c
pop ecx
jmp 0x411529
mov byte [ebp + 0xf], 0
test cl, cl
jbe 0x411529
push ebx
movzx edi, byte [ebp + 0xf]
lea eax, [edi + 1]
push eax
push str.Descriptor__u:_r_n
call fcn.0040f62c
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.004112cd
push eax
push ebx
push str.bDescriptorType__________:_0x_02X___s__r_n
call fcn.0040f62c
add esp, 0xc
test bl, bl
jns 0x41149b
push str._CAUTION__Bit_7_is_reserved_and_should_be_0_r_n
call fcn.0040f62c
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.0040f62c
and dword [ebp - 8], 0
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x4c0a58
push edi
push dword [ebp + 0x10]
mov dword [ebp - 4], 0x40000
push esi
push dword [ebp + 8]
call fcn.0040a049
test eax, eax
je 0x411504
mov eax, dword [ebp - 0xc]
cmp byte [eax], 0x22
jne 0x4114f5
movzx eax, word [ebx]
push eax
push 0x4c0a58
call fcn.00422d07
push dword [ebp - 4]
push 0x4c0a58
call fcn.0042314c
jmp 0x411519
push dword [ebp - 8]
call fcn.004495cc
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.0040f62c
pop ecx
pop ecx
inc byte [ebp + 0xf]
mov al, byte [ebp + 0xf]
cmp al, byte [esi + 5]
jb 0x411455
pop ebx
pop edi
pop esi
leave
ret 0xc