joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42bbe5
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
test byte [0x5089e0], 1
jne 0x42bc0e
or dword [0x5089e0], 1
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x5089dc], eax
test byte [0x5089e0], 2
jne 0x42bc34
or dword [0x5089e0], 2
push str.GetModuleFileNameExW
push dword [0x5089dc]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5089d8], eax
cmp dword [0x5089d8], 0
jne 0x42bc44
xor eax, eax
jmp 0x42bd92
push edi
push dword [ebp + 8]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
call edi
push 0
push 2
mov dword [ebp - 0xc], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x42bc6b
xor eax, eax
jmp 0x42bd91
push ebx
push esi
lea ecx, [ebp - 0x238]
push ecx
push eax
mov dword [ebp - 0x238], 0x22c
call sub.KERNEL32.dll_Process32FirstW
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x42bd7b
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push dword [ebp - 0xc]
lea eax, [ebp - 0x214]
push eax
call esi
test eax, eax
jne 0x42bd64
cmp dword [ebp + 0xc], 0xffffffff
je 0x42bcd6
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x230]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x42bcd6
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 4], eax
jne 0x42bd64
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x444], ax
lea eax, [ebp - 0x442]
push eax
call fcn.00448216
add esp, 0xc
push dword [ebp - 0x230]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
test eax, eax
je 0x42bd59
push 0x104
lea ecx, [ebp - 0x444]
push ecx
push 0
push eax
call dword [0x5089d8]
dec eax
cmp eax, 0x102
ja 0x42bd52
push 0x5c
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
lea eax, [ebp - 0x444]
push eax
je 0x42bd46
push dword [ebp + 8]
jmp 0x42bd4c
call edi
push dword [ebp - 0xc]
push eax
call esi
test eax, eax
je 0x42bd7f
push dword [ebp - 4]
call ebx
jmp 0x42bd64
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x42bd96
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 8]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x42bc98
xor esi, esi
jmp 0x42bd9c
push dword [ebp - 4]
call ebx
push dword [ebp - 8]
call ebx
mov eax, dword [ebp - 0x230]
pop esi
pop ebx
pop edi
leave
ret 8
mov esi, dword [ebp - 0x230]
push dword [ebp - 8]
call ebx
mov eax, esi
jmp 0x42bd8f
Function at 0x42c06b
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp + 8], edi
cmp edi, 0xffffffff
jne 0x42c09a
xor eax, eax
jmp 0x42c127
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x42c0b2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42c093
add eax, 2
push esi
push eax
call fcn.004483d6
mov esi, dword [ebp + 0xc]
pop ecx
push ebx
lea ecx, [ebp - 4]
push ecx
push 3
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [esi], eax
mov dword [ebp - 4], ebx
call edi
test eax, eax
je 0x42c124
push 3
push 0x471614
push dword [esi]
call fcn.004481d3
add esp, 0xc
test eax, eax
je 0x42c0fb
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push dword [esi]
push dword [ebp + 8]
call edi
test eax, eax
je 0x42c116
mov eax, dword [esi]
mov ecx, dword [ebp - 8]
mov byte [ecx + eax], bl
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
jmp 0x42c126
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret 8

Function at 0x42c1a5
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, 0x3e8
cmp dword [ebp + 0xc], ebx
jae 0x42c1bb
pop ebx
pop ebp
jmp dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov edi, eax
call esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x42c1f1
call esi
sub eax, edi
cmp eax, dword [ebp + 0xc]
jae 0x42c1ec
cmp dword [0x50bb7c], 0
je 0x42c1c7
mov eax, 0x102
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x42c980
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa5c
push ebx
push esi
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0xa5c]
push dword [ebp + 8]
push str.__s___s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
xor esi, esi
xor eax, eax
mov dword [ebp - 0x10], esi
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x38
stosd dword es:[edi], eax
lea eax, [ebp - 0x48]
push esi
push eax
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], 0x4716c8
call fcn.00448216
mov ax, word [ebp + 0x14]
add esp, 0x1c
cmp ax, si
je 0x42c9e2
or dword [ebp - 0x28], 1
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0xa5c]
push esi
push esi
push esi
push esi
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
cmp ebx, esi
je 0x42ca18
push dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0xc]
call edi
xor eax, eax
cmp ebx, esi
pop edi
pop esi
setne al
pop ebx
leave
ret 0x10
Function at 0x42cad1
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.00427e3d
test eax, eax
je 0x42cb09
push 0
push 0x2000000
push 3
push 0
push 7
push dword [esp + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x42cb40
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x42cb42
test dword [esp + 0xc], 0x40000000
je 0x42cb40
push 0
push 0x2000000
push 1
push 0
push 7
push dword [esp + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x42cb40
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x42cb04
xor eax, eax
pop esi
ret 8

Function at 0x42cb46
Capabilities:
Copy file
Create directory
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
push ebx
push esi
push edi
mov edi, 0x104
push edi
lea eax, [ebp - 0x414]
push eax
push str._ALLUSERSPROFILE_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x5c
lea eax, [ebp - 0x414]
push eax
call fcn.00427c74
push str.Uwe_Sieber
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov esi, 0x50a880
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x4532dc
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call fcn.00427e3d
mov dword [ebp - 4], eax
mov ebx, 0x4575f4
test eax, eax
je 0x42cc18
lea eax, [ebp - 0x20c]
push eax
push edi
lea eax, [ebp - 0x61c]
push eax
push 0x453148
push str.NoIniWrite
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x42cc18
push 0x50adb0
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x42cc18
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x42ccde
push esi
call fcn.00427e94
xor edi, edi
cmp eax, edi
je 0x42cc67
cmp dword [ebp - 4], edi
je 0x42ccde
lea eax, [ebp - 0x20c]
push eax
call fcn.00428781
push esi
mov edi, eax
mov ebx, edx
call fcn.00428781
cmp ebx, edx
jb 0x42ccde
ja 0x42cc55
cmp edi, eax
jbe 0x42ccde
push 0
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x42ccde
push esi
call fcn.00427e6d
test eax, eax
jne 0x42ccde
lea eax, [ebp - 0x414]
push eax
call fcn.00427e3d
test eax, eax
jne 0x42cc8f
push edi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
call fcn.00427e3d
test eax, eax
je 0x42ccb8
lea eax, [ebp - 0x20c]
push eax
call fcn.00427e3d
test eax, eax
jne 0x42ccb8
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x20c]
push eax
push 0x50adb0
push str.NoIniWrite
push ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42d38b
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x42d404
cmp word [esi], 0
je 0x42d404
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x100
ja 0x42d404
cmp word [esi], 0x5c
jne 0x42d3c7
cmp word [esi + 2], 0x5c
jne 0x42d3c7
cmp word [esi + 6], 0x5c
jne 0x42d3c7
add esi, 8
push esi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x5c
lea eax, [ebp - 0x208]
push eax
call fcn.00427ca0
push 0x104
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
neg eax
sbb eax, eax
neg eax
jmp 0x42d42c
push str.DosDeviceNameExists
push 0x1ded
push str..Tools.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
pop esi
leave
ret 4

Function at 0x42d431
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x108
push esi
push edi
xor eax, eax
mov dword [ebp + 0x64], 0x2e
lea edi, [ebp + 0x68]
push 4
stosd dword es:[edi], eax
lea eax, [ebp + 0x64]
push eax
push 0xf
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor eax, eax
push 0x7e
mov word [ebp - 0x1c], ax
xor esi, esi
lea eax, [ebp - 0x1a]
push esi
push eax
call fcn.00448216
push dword [ebp + 0x78]
lea eax, [ebp - 0x9c]
push dword [ebp + 0x74]
push str._I64u
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
cmp edi, esi
jbe 0x42d4d2
lea ecx, [ebp - 0x1c]
push ebx
mov ax, word [ebp + esi*2 - 0x9c]
mov word [ecx], ax
inc ecx
mov eax, edi
sub eax, esi
inc ecx
dec eax
je 0x42d4cc
push 3
xor edx, edx
pop ebx
div ebx
test edx, edx
jne 0x42d4cc
mov ax, word [ebp + 0x64]
mov word [ecx], ax
inc ecx
inc ecx
inc esi
cmp esi, edi
jb 0x42d4a4
pop ebx
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
pop edi
pop esi
add ebp, 0x6c
leave
ret 0xc
Function at 0x42e4fa
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push esi
mov esi, dword [ebp + 8]
push str.DeviceCdRom
push esi
call fcn.00428960
test eax, eax
je 0x42e533
add esi, 0x1a
push esi
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
or dword [eax], 0xffffffff
xor eax, eax
inc eax
jmp 0x42e6ac
push str.DeviceFloppy
push esi
call fcn.00428960
test eax, eax
je 0x42e547
add esi, 0x1c
jmp 0x42e519
cmp dword [0x50abf8], 6
jae 0x42e557
xor eax, eax
jmp 0x42e6ac
push str.HarddiskVolume
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
je 0x42e550
push edi
push esi
push str.GetNt6VolumeDeviceAndPartitionNumber__s_...
push 3
call fcn.0044def7
mov eax, dword [0x4a2aa8]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004483d6
mov edi, dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
add esp, 0x10
xor esi, esi
jmp 0x42e5d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x42e694
push dword [ebp - 4]
call fcn.00448411
add dword [0x4a2aa8], 0x1000
mov eax, dword [0x4a2aa8]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004483d6
pop ecx
pop ecx
mov ecx, dword [0x4a2aa8]
dec ecx
push ecx
push eax
push esi
mov dword [ebp - 4], eax
call edi
mov dword [ebp - 8], eax
cmp eax, esi
je 0x42e59b
push ebx
xor ebx, ebx
cmp eax, esi
jle 0x42e682
mov eax, dword [ebp - 4]
lea esi, [eax + ebx*2]
cmp word [esi], 0
je 0x42e682
push str.Harddisk
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrW]
cmp eax, esi
jne 0x42e66e
push str.Partition
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrW]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x42e66e
push 0x104
lea eax, [ebp - 0x214]
push eax
push esi
call edi
test eax, eax
je 0x42e66e
cmp dword [0x517934], 5
jl 0x42e65a
lea eax, [ebp - 0x214]
push eax
push esi
push str.___s___s
push 5
call fcn.0044def7
add esp, 0x10
push dword [ebp + 8]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x42e6b1
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [ebx + eax + 1]
cmp ebx, dword [ebp - 8]
jl 0x42e5f8
push str._not_found
push 3
call fcn.0044def7
pop ecx
pop ecx
xor esi, esi
jmp 0x42e6e6
call fcn.0044b48b
push eax
push str._qdd_all__err_S
push 3
call fcn.0044def7
add esp, 0xc
xor eax, eax
pop edi
pop esi
leave
ret 0xc
mov edi, dword [sym.imp.SHLWAPI.dll_StrToIntW]
lea eax, [esi + 0x10]
push eax
call edi
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
mov eax, dword [ebp - 0xc]
add eax, 0x12
push eax
call edi
mov ecx, dword [ebp + 0x10]
push eax
mov dword [ecx], eax
push dword [ebx]
push esi
push str._found__s____pDevNum_i_pPartNum_i
push 3
call fcn.0044def7
xor esi, esi
add esp, 0x14
inc esi
push dword [ebp - 4]
call fcn.00448411
pop ecx
mov eax, esi
pop ebx
jmp 0x42e6ab
Function at 0x42f0d3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x65c
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push 0x50ad20
lea eax, [ebp - 0x25c]
push str._sSystem32_rundll32.exe
push eax
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x65c]
push str.__s__url_OpenURL__s
push eax
call esi
add esp, 0x1c
cmp dword [0x50abf8], 6
jb 0x42f148
call fcn.00428dc5
test eax, eax
je 0x42f148
call fcn.0042d159
test eax, eax
je 0x42f148
push 3
push 0x50a800
lea eax, [ebp - 0x65c]
push eax
lea eax, [ebp - 0x25c]
push eax
call fcn.0042c7d9
jmp 0x42f1b4
push edi
xor esi, esi
xor eax, eax
mov dword [ebp - 0x10], esi
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x38
stosd dword es:[edi], eax
lea eax, [ebp - 0x48]
push esi
push eax
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], 0x4716c8
call fcn.00448216
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x65c]
push eax
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
test eax, eax
je 0x42f1b2
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
xor eax, eax
inc eax
jmp 0x42f1b4
xor eax, eax
pop esi
leave
ret 4
Function at 0x433786
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push 0x204
lea eax, [ebp - 0x204]
push 0
push eax
mov dword [ebp - 0x208], 0x2d
call fcn.00448216
add esp, 0xc
cmp dword [ebp + 8], 0x8000
jne 0x433803
push 0x104
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 0xc]
push str.DBT_DEVTYP_PORT_arrived_port_s_kn_s
push 1
call fcn.0044def7
mov ax, word [ebp - 0x208]
sub ax, 0x2d
movzx eax, ax
add esp, 0x10
neg eax
sbb eax, eax
lea ecx, [ebp - 0x208]
and eax, ecx
push eax
jmp 0x433817
push dword [ebp + 0xc]
push str.DBT_DEVTYP_PORT_removed_port_s
push 1
call fcn.0044def7
add esp, 0xc
push 0
push dword [ebp + 0xc]
mov ecx, dword [0x50d7ec]
call fcn.0040556c
leave
ret 8
Function at 0x434ef4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push dword [ebp + 8]
call fcn.00427e3d
test eax, eax
jne 0x434f31
push 0x10
push 0x45759c
push str.File_not_found
push dword [0x50b228]
call fcn.0044f54a
mov dword [0x50bb78], 1
xor eax, eax
jmp 0x435155
mov eax, dword [0x50d860]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x434f4a
push eax
call fcn.00448411
pop ecx
mov dword [0x50d860], ebx
push 0x50d860
push dword [ebp + 8]
call fcn.0042c06b
cmp eax, 0x64
jge 0x434f7b
mov eax, dword [0x50d860]
cmp eax, ebx
je 0x435152
push eax
call fcn.00448411
pop ecx
mov dword [0x50d860], ebx
jmp 0x435152
push str.Report
push ebx
push 0x7f02
call fcn.004346f7
push dword [0x50b240]
mov dword [0x50b1d4], 1
call fcn.00433a86
push dword [0x50b248]
call fcn.00433a86
push dword [0x50b230]
push dword [0x50d860]
call fcn.0044f720
test eax, eax
je 0x43514c
push esi
push edi
xor eax, eax
push 0x3fe
mov word [ebp - 0x408], ax
lea eax, [ebp - 0x406]
push ebx
push eax
call fcn.00448216
add esp, 0xc
push 0x1ff
lea eax, [ebp - 0x408]
push eax
push dword [0x50b228]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x435052
mov esi, 0x4557e0
push esi
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrW]
cmp eax, ebx
je 0x43501c
xor ecx, ecx
mov word [eax], cx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x408]
push eax
call esi
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x408]
push eax
call esi
lea eax, [ebp - 0x408]
push eax
push dword [0x50b228]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [0x50d848]
mov esi, dword [sym.imp.USER32.dll_UnregisterDeviceNotification]
cmp eax, ebx
je 0x435064
push eax
call esi
mov eax, dword [0x50d84c]
mov dword [0x50d848], ebx
cmp eax, ebx
je 0x435076
push eax
call esi
mov ecx, dword [0x50d7ec]
mov dword [0x50d84c], ebx
call fcn.00405261
mov ecx, dword [0x50d7e8]
call fcn.00407f1d
mov ecx, dword [0x50d7e4]
call fcn.0040dfe4
mov ecx, dword [0x50d7f0]
call fcn.00445c77
mov esi, dword [sym.imp.USER32.dll_GetMenu]
push ebx
push dword [0x50b228]
call esi
mov edi, dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call edi
push 2
push dword [0x50b228]
mov dword [ebp - 8], eax
call esi
push eax
call edi
mov esi, dword [sym.imp.USER32.dll_EnableMenuItem]
push 1
push 0x9cae
push dword [ebp - 8]
mov dword [ebp - 4], eax
call esi
xor edi, edi
push 0x401
push edi
push dword [ebp - 4]
call esi
inc edi
cmp edi, 0xe
jl 0x4350e7
push dword [0x50aa8c]
push dword [0x50ad1c]
push dword [0x50b100]
push dword [0x50a458]
push str.Host_Controllers:__i____Root_Hubs:__i____Standard_Hubs:__i____Peripheral_Devices:__i
push ebx
push ebx
push dword [0x50bb9c]
call fcn.00405e29
add esp, 0x20
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push 0x45dc80
push ebx
push 1
push dword [0x50bb9c]
call fcn.00405e29
add esp, 0x14
xor eax, eax
pop edi
inc eax
pop esi
jmp 0x435154
mov dword [0x50b1d4], ebx
xor eax, eax
pop ebx
leave
ret 4
Function at 0x43a270
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [0x517934], 4
push edi
mov edi, dword [ebp + 0xc]
jl 0x43a2dc
lea eax, [esi + 0xd0e]
cmp word [eax], bx
jne 0x43a29b
lea eax, [esi + 0xd64]
mov ecx, edi
cmp edi, ebx
jne 0x43a2a6
mov ecx, 0x452d1c
push eax
push ecx
push dword [esi + 0x824]
push esi
push str.ChangeLeaf_0x_08Ix__name_s__text_s______s
push 4
call fcn.0044def7
add esp, 0x18
push dword [esi + 8]
push dword [0x50b230]
call fcn.00435935
push eax
push str._currenttext_s
push 4
call fcn.0044def7
add esp, 0xc
push dword [esi + 8]
push dword [0x50b230]
call fcn.00429af0
test eax, eax
jne 0x43a308
cmp dword [0x517934], 4
jl 0x43a3d5
push dword [esi + 8]
push str._0x_08Ix_is_not_a_tree_item____abort
jmp 0x43a3cb
push 0x34
lea eax, [ebp - 0x34]
push ebx
push eax
call fcn.00448216
mov eax, dword [esi + 8]
mov dword [ebp - 0x34], eax
xor eax, eax
add esp, 0xc
cmp edi, ebx
setne al
push esi
mov dword [ebp - 0x28], edi
or eax, 0x22
mov dword [ebp - 0x38], eax
call fcn.00439ad4
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x38]
push eax
push ebx
push 0x113f
push dword [0x50b230]
mov dword [0x50b1f8], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x43a3b6
push dword [0x50b230]
mov dword [0x50b1f8], ebx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [ebp - 0x34]
cmp eax, dword [0x50bb90]
jne 0x43a3b1
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x516e94]
cmp eax, 0xbb8
jae 0x43a3a5
push 0x417066
push 0xa
push 0x12340005
push dword [0x50b228]
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x43a3aa
call fcn.00416e8e
call esi
mov dword [0x516e94], eax
xor eax, eax
inc eax
jmp 0x43a3d7
cmp dword [0x517934], 4
jl 0x43a3d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._TreeView_SetItem_err_u
push 4
call fcn.0044def7
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x43a6e2
Capabilities:
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
push ebx
push esi
push edi
push str.Report
xor edi, edi
push edi
push 0x7f02
call fcn.004346f7
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push edi
push eax
call fcn.00448216
xor eax, eax
push esi
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x40e]
push edi
push eax
call fcn.00448216
xor eax, eax
push esi
mov word [ebp - 0x618], ax
lea eax, [ebp - 0x616]
push edi
push eax
call fcn.00448216
add esp, 0x24
push 0x50a880
mov esi, 0x104
push esi
lea eax, [ebp - 0x410]
push eax
push 0x453148
mov ebx, str.ReportPath
push ebx
mov edi, 0x4575f4
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
lea eax, [ebp - 0x618]
push eax
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x618]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.004294d5
test eax, eax
je 0x43a7ea
lea eax, [ebp - 0x208]
push eax
call fcn.00434ef4
mov esi, eax
push 0
lea eax, [ebp - 0x208]
push eax
call fcn.0042c12d
push 0x50a880
lea eax, [ebp - 0x208]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push str.Report
push 0
push 0x7f00
call fcn.004346f7
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
xor esi, esi
jmp 0x43a7d2
Function at 0x43d4d8
Capabilities:
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
push ebx
push esi
push edi
push str.Report
xor edi, edi
push edi
push 0x7f02
call fcn.004346f7
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
mov dword [ebp - 4], edi
call fcn.00448216
xor eax, eax
push esi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push edi
push eax
call fcn.00448216
xor eax, eax
push esi
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push edi
push eax
call fcn.00448216
push 0x50a4e8
lea eax, [ebp - 0x20c]
push str.UsbTreeView_report__s.txt
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x30
push 0x50a880
mov esi, 0x104
push esi
lea eax, [ebp - 0x414]
push eax
push 0x453148
mov ebx, str.ReportPath
push ebx
mov edi, 0x4575f4
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00429361
test eax, eax
je 0x43d602
push dword [0x50b228]
call dword [sym.imp.USER32.dll_UpdateWindow]
lea eax, [ebp - 0x20c]
push eax
call fcn.0043d429
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
je 0x43d602
lea ecx, [ebp - 0x20c]
cmp eax, ecx
jbe 0x43d602
xor ecx, ecx
push 0x50a880
mov word [eax - 2], cx
lea eax, [ebp - 0x20c]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push str.Report
push 0
push 0x7f00
call fcn.004346f7
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret