joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e4c0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46cec8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004658b3
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043de60
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004657e1
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004620a5
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004620a5
push 1
push 0
push 0
mov ecx, esi
call fcn.0046204d
push 1
push 0
push 1
mov ecx, esi
call fcn.0046204d
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00465925
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43e640
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46cee8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004658b3
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043de60
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004657e1
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43e704
cmp dword [esp + 0x40], 1
jne 0x43e702
cmp ecx, eax
jge 0x43e704
mov eax, ecx
cmp eax, 0xc8
jge 0x43e710
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043e4c0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00465925
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43ee90
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46cf53
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004604c5
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00465b5b
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00467171
test eax, eax
je 0x43efac
mov ecx, dword [esp + 0x3c]
call fcn.00465b88
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43ef70
push edi
mov ecx, esi
call fcn.004631ef
mov ecx, esi
call fcn.0043f110
cmp dword [esp + 0x38], 1
jne 0x43efa5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0046332a
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4419c0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4419f3
push esi
call fcn.00444ab0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4419ec
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x441a79
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x441a62
mov eax, dword [esi + 8]
test eax, eax
je 0x441a17
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x441a5e
cmp eax, 2
je 0x441a62
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x441a0a
cmp eax, 3
je 0x441a3d
cmp eax, 1
jne 0x441a0a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x441a0a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x441a0a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00441aa0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x441a88
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00441aa0
add esp, 4
pop esi
ret

Function at 0x4612bb
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4612f3
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045f36f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045f347
jmp 0x4612ff
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4629a9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4629eb
call fcn.00468562
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4629eb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4629e2
xor eax, eax
jmp 0x4629f3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004629f9
pop edi
pop esi
pop ebx
ret 4

Function at 0x468a92
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x468ac0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x468ade
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004689f8
jmp 0x468ade
mov eax, dword [esi + 0x14]
test eax, eax
je 0x468ade
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004689f8
test edi, edi
mov eax, edi
jne 0x468ac8
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Get token membership

Disassembly:
sub esp, 0x14
mov eax, dword [0x438b20]
push ebx
xor ebx, ebx
mov dword [esp + 0x14], eax
lea eax, [esp + 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
mov dword [esp + 4], eax
je 0x401076
mov eax, dword [esp + 8]
lea edx, [esp + 4]
push edx
push eax
push ebx
call sub.ADVAPI32.dll_CheckTokenMembership
test eax, eax
jne 0x401067
mov dword [esp + 4], ebx
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x14]
pop ebx
call fcn.00404758
add esp, 0x14
ret
Function at 0x401090
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, dword [0x43bb3c]
sub esp, 0x20
cmp eax, 5
jae 0x4010a4
or eax, 0xffffffff
add esp, 0x20
ret
mov eax, dword [esp + 0x24]
push ebp
or ebp, 0xffffffff
cmp eax, ebp
jne 0x4010b7
mov eax, ebp
pop ebp
add esp, 0x20
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [esp + 0xc]
push eax
push 0x2001f
push 0
push str.SoftwareMicrosoftDriver_Signing
push 0x80000001
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], 0
call esi
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jne 0x40114b
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push 0
push str.Policy
push eax
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401140
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp + 0x30]
je 0x401140
mov eax, dword [esp + 0xc]
push 4
lea edx, [esp + 0x34]
push edx
push 4
push 0
push str.Policy
push eax
call edi
test eax, eax
je 0x401140
mov dword [esp + 0x10], ebp
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x30]
je 0x401299
call fcn.00401000
test eax, eax
je 0x401295
cmp dword [0x43bb3c], 5
jb 0x4011c5
mov eax, dword [0x43bb40]
test eax, eax
jne 0x4011c5
lea edx, [esp + 0xc]
push edx
push 0x2001f
push 0
push str.SoftwareMicrosoftDriver_Signing
push 0x80000002
call esi
test eax, eax
jne 0x401295
mov ecx, dword [esp + 0xc]
push 4
lea eax, [esp + 0x34]
push eax
push 3
push 0
push str.Policy
push ecx
call edi
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
add esp, 0x20
ret
push str.SetupApi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
test ebp, ebp
je 0x401295
push str.pSetupGetRealSystemTime
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x40128e
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push str.SystemWPAPnP
push 0x80000002
mov dword [esp + 0x28], 0
call esi
test eax, eax
jne 0x401243
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
push eax
push eax
mov eax, dword [esp + 0x1c]
push str.seed
push eax
mov dword [esp + 0x30], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40128e
xor edx, edx
mov dword [esp + 0x1e], edx
mov dword [esp + 0x22], edx
mov dword [esp + 0x26], edx
mov ecx, eax
mov word [esp + 0x26], ax
mov eax, edx
shr eax, 0x10
mov word [esp + 0x2a], dx
mov edx, dword [esp + 0x30]
or ax, 4
mov word [esp + 0x20], ax
lea eax, [esp + 0x1c]
shr ecx, 0x10
shl edx, 0xa
push eax
mov word [esp + 0x20], cx
mov word [esp + 0x2e], dx
call edi
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
add esp, 0x20
ret
Function at 0x401460
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x7e8
mov eax, dword [0x438b20]
mov dword [esp + 0x7e4], eax
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [esp + 0xe]
mov ecx, dword [esp + 0x7ec]
movzx eax, word [esp + 0xc]
push ecx
movzx ecx, word [esp + 0xe]
push edx
movzx edx, word [esp + 0x10]
push eax
movzx eax, word [esp + 0x12]
push ecx
movzx ecx, word [esp + 0x12]
push edx
movzx edx, word [esp + 0x14]
push eax
push ecx
push edx
lea eax, [esp + 0x34]
push str.__d__02d__02d__02d:_02d:_02d._03d___s_r_n
push eax
call fcn.00405063
lea eax, [esp + 0x3c]
add esp, 0x28
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4014c7
push 0
sub eax, edx
lea ecx, [esp + 0x14]
push ecx
push eax
mov eax, dword [0x439bb0]
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x7e4]
call fcn.00404758
add esp, 0x7e8
ret
Function at 0x401500
Capabilities:
Terminate process

Disassembly:
sub esp, 0x3ec
mov eax, dword [0x438b20]
push str.Retrieving_device_information...
add ecx, 0x7c
mov dword [esp + 0x3ec], eax
call fcn.004127eb
push 0x41c8e4
call fcn.00401460
push str._Enumerating_all_installed_devices_
call fcn.00401460
push 0x41c8e4
call fcn.00401460
push 0x76c0
call fcn.00405162
add esp, 0x10
test eax, eax
mov dword [0x439aa4], eax
je 0x401699
push esi
push edi
push str.Entering_getModemStatus____installed_modems_...
xor edi, edi
call fcn.00401460
mov eax, dword [0x439aa4]
push 1
push eax
call sym.DriverTool.exe_getModemStatus
push str.getModemStatus____installed_modems__finished.
call fcn.00401460
push str.Enumerating_all_installed_modems...
call fcn.00401460
mov eax, dword [0x439aa4]
mov cl, byte [eax]
add esp, 0x14
test cl, cl
je 0x4015d6
xor esi, esi
mov ecx, dword [eax + 0x12c]
push ecx
lea edx, [eax + 0x64]
push edx
push eax
push edi
lea eax, [esp + 0x18]
push str.Modem__d:__s___s___d
push eax
call fcn.00405063
lea ecx, [esp + 0x20]
push ecx
call fcn.00401460
mov edx, dword [0x439aa4]
add esi, 0x130
mov cl, byte [esi + edx]
lea eax, [esi + edx]
add esp, 0x1c
inc edi
test cl, cl
jne 0x401596
push 0xdea80
call fcn.00405162
add esp, 4
test eax, eax
mov dword [0x439aa0], eax
je 0x401685
push str.Entering_getModemStatus____all_devices_...
xor edi, edi
call fcn.00401460
mov eax, dword [0x439aa0]
push edi
push eax
call sym.DriverTool.exe_getModemStatus
push str.getModemStatus____all_devices__finished.
call fcn.00401460
push str.Enumerating_all_system_devices...
call fcn.00401460
mov eax, dword [0x439aa0]
mov cl, byte [eax]
add esp, 0x14
test cl, cl
je 0x401670
xor esi, esi
lea esp, [esp]
mov ecx, dword [eax + 0x12c]
push ecx
lea edx, [eax + 0x64]
push edx
push eax
push edi
lea eax, [esp + 0x18]
push str.Device__d:__s___s___d
push eax
call fcn.00405063
lea ecx, [esp + 0x20]
push ecx
call fcn.00401460
mov edx, dword [0x439aa0]
add esi, 0x130
mov cl, byte [esi + edx]
lea eax, [esi + edx]
add esp, 0x1c
inc edi
test cl, cl
jne 0x401630
mov ecx, dword [esp + 0x3f0]
pop edi
pop esi
call fcn.00404758
add esp, 0x3ec
ret
push str.getModems__unInstalledModems_:_malloc___failed.
call fcn.00401460
add esp, 4
push 1
call fcn.004048ed
push str.getModems__installedModems_:_malloc___failed.
call fcn.00401460
add esp, 4
push 1
call fcn.004048ed
int3
Function at 0x401cd0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x610
mov eax, dword [0x438b20]
push esi
push edi
push str.Installing_new_drivers...
add ecx, 0x7c
mov dword [esp + 0x618], eax
mov dword [esp + 0x10], str._sUSBMOT2000.INF
mov dword [esp + 0x14], str._sUSB_CMCS_2000.INF
mov dword [esp + 0x18], str._sUSBMOT2000XP.INF
mov dword [esp + 0x1c], str._sUSB_MOT_A1000.INF
mov dword [esp + 0x20], str._sUSB_MOT_BRIT.INF
xor esi, esi
call fcn.004127eb
push 0x41ccd0
call fcn.00401460
push str._Precopying_INF_files_
call fcn.00401460
push 0x41ccd0
call fcn.00401460
push 0x439aa8
push esi
call sym.DriverTool.exe_writeDriver
push 0x439aa8
push 1
call sym.DriverTool.exe_writeDriver
push 0x439aa8
push 2
call sym.DriverTool.exe_writeDriver
push 0x439aa8
push 3
call sym.DriverTool.exe_writeDriver
push 0x439aa8
push 4
call sym.DriverTool.exe_writeDriver
push 0x439aa8
push 5
call sym.DriverTool.exe_writeDriver
push 0x439aa8
push 6
call sym.DriverTool.exe_writeDriver
mov edi, dword [sym.imp.SETUPAPI.dll_SetupCopyOEMInfA]
add esp, 0x44
mov eax, dword [esp + esi*4 + 0xc]
push 0x439aa8
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00405063
push str.Calling_SetupCopyOEMInf__...
call fcn.00401460
add esp, 0x10
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x24]
push eax
push 0x104
lea ecx, [esp + 0x134]
push ecx
push 0
push 1
push 0x439aa8
lea edx, [esp + 0x40]
push edx
call edi
test eax, eax
je 0x401e41
mov eax, dword [esp + 8]
push eax
lea ecx, [esp + 0x12c]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x238]
push str.Successfully_copied__s_to__s__destComp:__s_
push eax
call fcn.00405063
lea ecx, [esp + 0x240]
push ecx
call fcn.00401460
add esp, 0x18
inc esi
cmp esi, 5
jb 0x401d95
push str.SetupCopyOEMInf___complete.
call fcn.00401460
mov ecx, dword [esp + 0x618]
add esp, 4
pop edi
pop esi
call fcn.00404758
add esp, 0x610
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x230]
push str.SetupCopyOEMInf_failed___GetLastError_is__d
push edx
call fcn.00405063
lea eax, [esp + 0x238]
push eax
call fcn.00401460
mov ecx, dword [0x439bb0]
add esp, 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
call fcn.004048ed
int3
Function at 0x401e80
Capabilities:
Query environment variable
Terminate process

Disassembly:
sub esp, 0x50c
mov eax, dword [0x438b20]
push 0x104
push 0x439aa8
push str.USERPROFILE
mov dword [esp + 0x514], eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x401ec1
push eax
push eax
push str.Could_not_determine_user_profile_directory____defaulting_to_C:_
call fcn.004184c1
mov dword [0x439aa8], 0x5c3a43
push esi
push edi
push 0x439aa8
lea eax, [esp + 0x10]
push str._sMotorola_Driver_Log.txt
push eax
call fcn.00405063
add esp, 0xc
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov esi, dword [esp + 0x518]
mov dword [0x439bb0], eax
jne 0x401f1f
mov eax, dword [esi + 0x70]
test eax, eax
jne 0x401f36
push 0
push 0
push str.Could_not_open_log_file_for_writing____logging_disabled.
call fcn.004184c1
jmp 0x401f36
push 2
push 0
push 0
push eax
mov dword [0x439bac], 1
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push str._r_n_r_n_____________________Begin_device_installation_log_____________________
call fcn.00401460
push 0
call fcn.00401090
mov edi, eax
push edi
lea edx, [esp + 0x11c]
push str.Changing_driver_warning_policy_to_DSP_IGNORE__old_policy:__d_.
push edx
call fcn.00405063
lea eax, [esp + 0x124]
push eax
call fcn.00401460
push esi
call fcn.00401800
mov ecx, esi
call fcn.00401500
push esi
call fcn.004016b0
mov eax, dword [esi + 0x74]
add esp, 0x20
test eax, eax
jne 0x402078
mov ecx, esi
call fcn.00401cd0
push str.Scanning_for_new_devices...
lea ecx, [esi + 0x7c]
call fcn.004127eb
push str.
call fcn.00401460
push str._Initiating_PNP_scan_for_hardware_devices_
call fcn.00401460
push str.
call fcn.00401460
add esp, 0xc
push 1
push 0
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.SETUPAPI.dll_CM_Locate_DevNodeA]
mov eax, dword [esp + 8]
push 1
push eax
call dword [sym.imp.SETUPAPI.dll_CM_Reenumerate_DevNode]
push 0x41ce6c
call fcn.00401460
push str._Beginning_to_wait_for_pending_device_installations_
call fcn.00401460
push 0x41ce6c
call fcn.00401460
add esp, 0xc
push 0x7530
call sub.SETUPAPI.dll_CMP_WaitNoPendingInstallEvents
test eax, eax
je 0x40201f
cmp eax, 0x102
je 0x402018
push str.CMP_WaitNoPendingInstallEvents___failed.
jmp 0x402024
push str.Pending_install_event_wait_timed_out.
jmp 0x402024
push str.Successful_wait_for_pending_device_installation.
call fcn.00401460
add esp, 4
push edi
call fcn.00401090
push edi
lea ecx, [esp + 0x118]
push str.Reverting_driver_warning_policy_to__d_from_DSP_IGNORE.
push ecx
call fcn.00405063
lea edx, [esp + 0x120]
push edx
call fcn.00401460
mov eax, dword [0x439bac]
add esp, 0x14
test eax, eax
je 0x40206a
mov eax, dword [0x439bb0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x70]
test eax, eax
je 0x402078
push 0
call fcn.004048ed
mov ecx, dword [esi + 0x1c]
push 0
push 0
push 0x8001
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [esp + 0x510]
pop edi
mov eax, 1
pop esi
call fcn.00404758
add esp, 0x50c
ret
Function at 0x402480
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4024aa
mov eax, 1
pop esi
pop ecx
ret
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push 0
lea ecx, [esp + 8]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4024ce
mov eax, 2
pop esi
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop ecx
ret

Function at 0x402850
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x3f8
mov eax, dword [0x438b20]
push ebx
push esi
mov dword [esp + 0x3fc], eax
push edi
mov eax, 0x1f4
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0xc]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SOFTWAREBVRP_Softwaremobile_PhoneTools
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4029a3
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x18]
push eax
push eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x224]
push ecx
push ebx
push edx
call ebp
test eax, eax
jne 0x402918
lea edi, [esp + 0x210]
mov esi, str.MainPath
mov ecx, 9
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4028df
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
lea ecx, [esp + 0x1c]
je 0x402955
mov eax, 0x1f4
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push ecx
mov ecx, dword [esp + 0x18]
push 0
push 0
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x224]
push eax
inc ebx
push ebx
push ecx
call ebp
test eax, eax
je 0x4028c3
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [esp + 0x40c]
mov ecx, 8
mov esi, str.C:Program_Filesmobile_PhoneTools
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop ebp
movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x3f4]
call fcn.00404758
add esp, 0x3f8
ret
mov esi, dword [esp + 0x40c]
mov edx, esi
lea eax, [esp + 0x1c]
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402964
push str.mphonetools.exe
push esi
call fcn.00404e00
mov byte [eax], 0
mov edx, dword [esp + 0x18]
add esp, 8
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x3f4]
call fcn.00404758
add esp, 0x3f8
ret
mov edi, dword [esp + 0x408]
mov ecx, 8
mov esi, str.C:Program_Filesmobile_PhoneTools
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x400]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, 2
pop ebx
call fcn.00404758
add esp, 0x3f8
ret