joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ce99
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 0x42cec8
xor eax, eax
jmp 0x42cf55
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x42cee0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42cec1
add eax, 2
push esi
push eax
call fcn.00449e38
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 0x42cf52
push 3
push 0x473dd4
push dword [esi]
call fcn.00449c35
add esp, 0xc
test eax, eax
je 0x42cf29
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 0x42cf44
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 0x42cf54
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, 0x3e8
cmp dword [ebp + 0xc], ebx
jae 0x42d00e
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 0x42d044
call esi
sub eax, edi
cmp eax, dword [ebp + 0xc]
jae 0x42d03f
cmp dword [0x50efd4], 0
je 0x42d01a
mov eax, 0x102
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x42d793
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], 0x473e88
call fcn.00449c78
mov ax, word [ebp + 0x14]
add esp, 0x1c
cmp ax, si
je 0x42d7f5
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 0x42d82b
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 0x42d8e4
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.00428a6a
test eax, eax
je 0x42d91c
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 0x42d953
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x42d955
test dword [esp + 0xc], 0x40000000
je 0x42d953
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 0x42d953
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x42d917
xor eax, eax
pop esi
ret 8

Function at 0x42d959
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.004288a1
push str.Uwe_Sieber
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov esi, 0x50dcd0
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x455344
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call fcn.00428a6a
mov dword [ebp - 4], eax
mov ebx, 0x4598c8
test eax, eax
je 0x42da2b
lea eax, [ebp - 0x20c]
push eax
push edi
lea eax, [ebp - 0x61c]
push eax
push 0x4551b0
push str.NoIniWrite
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x42da2b
push 0x50e200
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x42da2b
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x42daf1
push esi
call fcn.00428ac1
xor edi, edi
cmp eax, edi
je 0x42da7a
cmp dword [ebp - 4], edi
je 0x42daf1
lea eax, [ebp - 0x20c]
push eax
call fcn.004293ad
push esi
mov edi, eax
mov ebx, edx
call fcn.004293ad
cmp ebx, edx
jb 0x42daf1
ja 0x42da68
cmp edi, eax
jbe 0x42daf1
push 0
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x42daf1
push esi
call fcn.00428a9a
test eax, eax
jne 0x42daf1
lea eax, [ebp - 0x414]
push eax
call fcn.00428a6a
test eax, eax
jne 0x42daa2
push edi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
call fcn.00428a6a
test eax, eax
je 0x42dacb
lea eax, [ebp - 0x20c]
push eax
call fcn.00428a6a
test eax, eax
jne 0x42dacb
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 0x50e200
push str.NoIniWrite
push ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42e16e
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x42e1e7
cmp word [esi], 0
je 0x42e1e7
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x100
ja 0x42e1e7
cmp word [esi], 0x5c
jne 0x42e1aa
cmp word [esi + 2], 0x5c
jne 0x42e1aa
cmp word [esi + 6], 0x5c
jne 0x42e1aa
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.004288cd
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 0x42e20f
push str.DosDeviceNameExists
push 0x1ebb
push str..Tools.cpp
push str.INT3_in__S_line__u__function__S
push 1
call fcn.0044fe2e
add esp, 0x14
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
pop esi
leave
ret 4

Function at 0x42e214
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.00449c78
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 0x42e2b5
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 0x42e2af
push 3
xor edx, edx
pop ebx
div ebx
test edx, edx
jne 0x42e2af
mov ax, word [ebp + 0x64]
mov word [ecx], ax
inc ecx
inc ecx
inc esi
cmp esi, edi
jb 0x42e287
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 0x42f3e4
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.0042958c
test eax, eax
je 0x42f41d
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 0x42f596
push str.DeviceFloppy
push esi
call fcn.0042958c
test eax, eax
je 0x42f431
add esi, 0x1c
jmp 0x42f403
cmp dword [0x50e048], 6
jae 0x42f441
xor eax, eax
jmp 0x42f596
push str.HarddiskVolume
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
je 0x42f43a
push edi
push esi
push str.GetNt6VolumeDeviceAndPartitionNumber__s_...
push 3
call fcn.0044fe2e
mov eax, dword [0x4a5ac0]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00449e38
mov edi, dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
add esp, 0x10
xor esi, esi
jmp 0x42f4c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x42f57e
push dword [ebp - 4]
call fcn.00449e73
add dword [0x4a5ac0], 0x1000
mov eax, dword [0x4a5ac0]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00449e38
pop ecx
pop ecx
mov ecx, dword [0x4a5ac0]
dec ecx
push ecx
push eax
push esi
mov dword [ebp - 4], eax
call edi
mov dword [ebp - 8], eax
cmp eax, esi
je 0x42f485
push ebx
xor ebx, ebx
cmp eax, esi
jle 0x42f56c
mov eax, dword [ebp - 4]
lea esi, [eax + ebx*2]
cmp word [esi], 0
je 0x42f56c
push 0x473608
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrW]
cmp eax, esi
jne 0x42f558
push str.Partition
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrW]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x42f558
push 0x104
lea eax, [ebp - 0x214]
push eax
push esi
call edi
test eax, eax
je 0x42f558
cmp dword [0x51adac], 5
jl 0x42f544
lea eax, [ebp - 0x214]
push eax
push esi
push str.___s___s
push 5
call fcn.0044fe2e
add esp, 0x10
push dword [ebp + 8]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x42f59b
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [ebx + eax + 1]
cmp ebx, dword [ebp - 8]
jl 0x42f4e2
push str._not_found
push 3
call fcn.0044fe2e
pop ecx
pop ecx
xor esi, esi
jmp 0x42f5d0
call fcn.0044cf74
push eax
push str._qdd_all__err_S
push 3
call fcn.0044fe2e
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.0044fe2e
xor esi, esi
add esp, 0x14
inc esi
push dword [ebp - 4]
call fcn.00449e73
pop ecx
mov eax, esi
pop ebx
jmp 0x42f595
Function at 0x430136
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 0x50e170
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 [0x50e048], 6
jb 0x4301ab
call fcn.004299cd
test eax, eax
je 0x4301ab
call fcn.0042df6c
test eax, eax
je 0x4301ab
push 3
push 0x50dc50
lea eax, [ebp - 0x65c]
push eax
lea eax, [ebp - 0x25c]
push eax
call fcn.0042d5ec
jmp 0x430217
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], 0x473e88
call fcn.00449c78
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 0x430215
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 0x430217
xor eax, eax
pop esi
leave
ret 4
Function at 0x4348c8
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.00449c78
add esp, 0xc
cmp dword [ebp + 8], 0x8000
jne 0x434945
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.0044fe2e
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 0x434959
push dword [ebp + 0xc]
push str.DBT_DEVTYP_PORT_removed_port_s
push 1
call fcn.0044fe2e
add esp, 0xc
push 0
push dword [ebp + 0xc]
mov ecx, dword [0x510c44]
call fcn.004056bc
leave
ret 8
Function at 0x436083
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push dword [ebp + 8]
call fcn.00428a6a
test eax, eax
jne 0x4360c0
push 0x10
push 0x459870
push str.File_not_found
push dword [0x50e67c]
call fcn.0045149d
mov dword [0x50efd0], 1
xor eax, eax
jmp 0x4362e4
mov eax, dword [0x510cb8]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x4360d9
push eax
call fcn.00449e73
pop ecx
mov dword [0x510cb8], ebx
push 0x510cb8
push dword [ebp + 8]
call fcn.0042ce99
cmp eax, 0x64
jge 0x43610a
mov eax, dword [0x510cb8]
cmp eax, ebx
je 0x4362e1
push eax
call fcn.00449e73
pop ecx
mov dword [0x510cb8], ebx
jmp 0x4362e1
push str.Report
push ebx
push 0x7f02
call fcn.00435888
push dword [0x50e694]
mov dword [0x50e628], 1
call fcn.00434c16
push dword [0x50e69c]
call fcn.00434c16
push dword [0x50e684]
push dword [0x510cb8]
call fcn.00451673
test eax, eax
je 0x4362db
push esi
push edi
xor eax, eax
push 0x3fe
mov word [ebp - 0x408], ax
lea eax, [ebp - 0x406]
push ebx
push eax
call fcn.00449c78
add esp, 0xc
push 0x1ff
lea eax, [ebp - 0x408]
push eax
push dword [0x50e67c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x4361e1
mov esi, 0x4577f0
push esi
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrW]
cmp eax, ebx
je 0x4361ab
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 [0x50e67c]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [0x510ca0]
mov esi, dword [sym.imp.USER32.dll_UnregisterDeviceNotification]
cmp eax, ebx
je 0x4361f3
push eax
call esi
mov eax, dword [0x510ca4]
mov dword [0x510ca0], ebx
cmp eax, ebx
je 0x436205
push eax
call esi
mov ecx, dword [0x510c44]
mov dword [0x510ca4], ebx
call fcn.004053b1
mov ecx, dword [0x510c40]
call fcn.00407e45
mov ecx, dword [0x510c3c]
call fcn.0040e6eb
mov ecx, dword [0x510c48]
call fcn.004476d9
mov esi, dword [sym.imp.USER32.dll_GetMenu]
push ebx
push dword [0x50e67c]
call esi
mov edi, dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call edi
push 2
push dword [0x50e67c]
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 0x436276
push dword [0x50dedc]
push dword [0x50e16c]
push dword [0x50e550]
push dword [0x50d8a8]
push str.Host_Controllers:__i____Root_Hubs:__i____Standard_Hubs:__i____Peripheral_Devices:__i
push ebx
push ebx
push dword [0x50eff4]
call fcn.00405f8f
add esp, 0x20
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push 0x45ff8c
push ebx
push 1
push dword [0x50eff4]
call fcn.00405f8f
add esp, 0x14
xor eax, eax
pop edi
inc eax
pop esi
jmp 0x4362e3
mov dword [0x50e628], ebx
xor eax, eax
pop ebx
leave
ret 4
Function at 0x438ef5
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [0x50e660]
push ebx
xor ebx, ebx
inc ebx
cmp eax, ebx
jg 0x439016
push esi
push edi
push eax
push dword [0x50e67c]
call fcn.0044aa02
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
xor edi, edi
push edi
push edi
push 0xb
push dword [0x50e67c]
call esi
call fcn.004379bc
push edi
push ebx
push 0xb
push dword [0x50e67c]
call esi
call fcn.004340a0
mov eax, dword [0x50e660]
push dword [eax*4 + 0x50e1f0]
push edi
push 0x111d
push dword [0x50e684]
call esi
mov eax, dword [0x50e660]
push dword [eax*4 + 0x50e03c]
push edi
push 0x111e
push dword [0x50e684]
call esi
mov eax, dword [0x50e660]
push ebx
push dword [eax*4 + 0x50e1f8]
push dword [0x50e688]
call fcn.0042a8c3
mov eax, dword [0x50e660]
push dword [eax*4 + 0x50e548]
push edi
push 0x443
push dword [0x50e688]
call esi
push edi
push ebx
push 0xb
push dword [0x50e67c]
call esi
push dword [0x50e6a4]
call dword [sym.imp.USER32.dll_GetDC]
push edi
push edi
mov esi, eax
call fcn.0043329f
push esi
push dword [0x50e6a4]
call fcn.0043329f
push esi
push dword [0x50e6a4]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov esi, dword [sym.imp.USER32.dll_RedrawWindow]
mov ebx, 0x705
push ebx
push edi
push edi
push dword [0x50e684]
call esi
push ebx
push edi
push edi
push dword [0x50e688]
call esi
push 0x385
push edi
push edi
push dword [0x50e67c]
call esi
pop edi
pop esi
pop ebx
jmp fcn.004363db
pop ebx
ret
Function at 0x43b783
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 [0x51adac], 4
push edi
mov edi, dword [ebp + 0xc]
jl 0x43b7ef
lea eax, [esi + 0xd90]
cmp word [eax], bx
jne 0x43b7ae
lea eax, [esi + 0xde4]
mov ecx, edi
cmp edi, ebx
jne 0x43b7b9
mov ecx, 0x454d64
push eax
push ecx
push dword [esi + 0x828]
push esi
push str.ChangeLeaf_0x_08Ix__name_s__newtext_s______s
push 4
call fcn.0044fe2e
add esp, 0x18
push dword [esi + 8]
push dword [0x50e684]
call fcn.004368a4
push eax
push str._currenttext_s
push 4
call fcn.0044fe2e
add esp, 0xc
push dword [esi + 8]
push dword [0x50e684]
call fcn.0042a6f8
test eax, eax
jne 0x43b81b
cmp dword [0x51adac], 4
jl 0x43b8e8
push dword [esi + 8]
push str._0x_08Ix_is_not_a_tree_item____abort
jmp 0x43b8de
push 0x34
lea eax, [ebp - 0x34]
push ebx
push eax
call fcn.00449c78
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.0043afeb
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x38]
push eax
push ebx
push 0x113f
push dword [0x50e684]
mov dword [0x50e64c], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x43b8c9
push dword [0x50e684]
mov dword [0x50e64c], ebx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [ebp - 0x34]
cmp eax, dword [0x50efe8]
jne 0x43b8c4
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x51a2ec]
cmp eax, 0xbb8
jae 0x43b8b8
push 0x417b6b
push 0xa
push 0x12340005
push dword [0x50e67c]
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x43b8bd
call fcn.00417993
call esi
mov dword [0x51a2ec], eax
xor eax, eax
inc eax
jmp 0x43b8ea
cmp dword [0x51adac], 4
jl 0x43b8e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._TreeView_SetItem_err_u
push 4
call fcn.0044fe2e
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x43bbf5
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.00435888
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push edi
push eax
call fcn.00449c78
xor eax, eax
push esi
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x40e]
push edi
push eax
call fcn.00449c78
xor eax, eax
push esi
mov word [ebp - 0x618], ax
lea eax, [ebp - 0x616]
push edi
push eax
call fcn.00449c78
add esp, 0x24
push 0x50dcd0
mov esi, 0x104
push esi
lea eax, [ebp - 0x410]
push eax
push 0x4551b0
mov ebx, str.ReportPath
push ebx
mov edi, 0x4598c8
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.0042a0dd
test eax, eax
je 0x43bcfd
lea eax, [ebp - 0x208]
push eax
call fcn.00436083
mov esi, eax
push 0
lea eax, [ebp - 0x208]
push eax
call fcn.0042cf5b
push 0x50dcd0
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.00435888
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
xor esi, esi
jmp 0x43bce5
Function at 0x43e8fa
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.00435888
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.00449c78
xor eax, eax
push esi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push edi
push eax
call fcn.00449c78
xor eax, eax
push esi
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push edi
push eax
call fcn.00449c78
push 0x50d938
lea eax, [ebp - 0x20c]
push str.UsbTreeView_report__s.txt
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x30
push 0x50dcd0
mov esi, 0x104
push esi
lea eax, [ebp - 0x414]
push eax
push 0x4551b0
mov ebx, str.ReportPath
push ebx
mov edi, 0x4598c8
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.00429f69
test eax, eax
je 0x43ea24
push dword [0x50e67c]
call dword [sym.imp.USER32.dll_UpdateWindow]
lea eax, [ebp - 0x20c]
push eax
call fcn.0043e84b
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
je 0x43ea24
lea ecx, [ebp - 0x20c]
cmp eax, ecx
jbe 0x43ea24
xor ecx, ecx
push 0x50dcd0
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.00435888
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret