joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4018c0
Capabilities:
Get file size

Disassembly:
sub esp, 0x44c
push ebp
push esi
push edi
push 0x40d7d0
push 0x40ede0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esp + 0x45c]
push 0x104
push 0x40ede0
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push 0x40ede0
push 0x40aa2c
lea ecx, [esp + 0x60]
push str._s___s_n
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0x18]
mov edi, eax
push str._rename_
push 0x40aa10
push edx
mov dword [esp + 0x1c], edi
call esi
add esp, 0xc
mov ebp, eax
push 0
push 0x8000080
push 4
push 0
push 0
push 0xc0000000
push 0x40e5a0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x14], esi
jne 0x401960
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x44c
ret
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push 0
lea eax, [ebx + ebp]
add eax, edi
push eax
push 0
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esp + 0x10], eax
je 0x401a42
push 0
push 0
push 0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, eax
test ebp, ebp
je 0x401a37
push str._rename_
push ebp
call fcn.00405a30
add esp, 8
test eax, eax
jne 0x4019e8
push str._Rename_
push ebp
call fcn.00405a30
add esp, 8
test eax, eax
jne 0x4019e8
lea ecx, [esp + 0x1c]
lea edx, [ebp + ebx]
push ecx
push 0x40aa00
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
add ebx, eax
mov eax, ebx
jmp 0x401a0e
push 0xa
push eax
call fcn.00405970
mov esi, eax
add esp, 8
inc esi
lea eax, [ebp + ebx]
sub eax, esi
push eax
lea ecx, [esi + edi]
push esi
push ecx
call fcn.00405620
add esp, 0xc
sub esi, ebp
mov eax, esi
mov ecx, edi
lea esi, [esp + 0x5c]
mov edx, ecx
lea edi, [ebp + eax]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
add ebx, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x44c
ret
Function at 0x401a70
Capabilities:
Delete file
Enumerate files on windows
Move file
Set file attributes

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
sub esp, 0x248
lea edx, [esp + 4]
push eax
push ecx
push edx
call fcn.00401830
add esp, 0xc
test eax, eax
je 0x401b61
lea eax, [esp + 0x108]
lea ecx, [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp], eax
je 0x401b61
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov eax, dword [esp + 0x25c]
lea edx, [esp + 0x144]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.00401830
add esp, 0xc
test eax, eax
je 0x401b46
lea edx, [esp + 0x14]
push 0
push edx
call fcn.004055d0
add esp, 8
test eax, eax
jne 0x401b46
lea eax, [esp + 0x14]
push pe_nt_image_headers32
push eax
call esi
lea ecx, [esp + 0x14]
push ecx
call edi
test eax, eax
jne 0x401b46
cmp byte [0x40eb80], 1
jne 0x401b32
push 4
lea edx, [esp + 0x18]
push 0
push edx
call ebp
jmp 0x401b46
push 1
lea eax, [esp + 0x18]
push 0x40aa2c
push eax
call fcn.004018c0
add esp, 0xc
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x118]
push ecx
push edx
call ebx
test eax, eax
jne 0x401ad1
pop ebx
pop ebp
pop esi
pop edi
add esp, 0x248
ret
Function at 0x401eb0
Capabilities:
Delete registry key
Delete registry value
Delete service
Stop service

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x224
cmp eax, 1
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
jne 0x401ee8
cmp dword [0x40d7b0], 1
jne 0x401ee1
lea eax, [esp + 0x134]
push str.ltmodem5
push eax
jmp 0x401f22
push str.ltmodem
jmp 0x401f1a
cmp eax, 2
jne 0x401efc
lea edx, [esp + 0x134]
push str.LucentSoftmodem
push edx
jmp 0x401f22
cmp eax, 3
jne 0x401f10
lea eax, [esp + 0x134]
push str.ToshibaSoftmodem
push eax
jmp 0x401f22
cmp eax, 4
jne 0x401f24
push str.agrsm
lea ecx, [esp + 0x138]
push ecx
call edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
lea edx, [esp + 0x134]
push 0xf01ff
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
lea eax, [esp + 0x14]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [str.SoftwareMicrosoftWindowsCurrentVersionUnimodemDeviceSpecific_]
lea edx, [esp + 0x30]
push ecx
push edx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x30]
push 0x40e7e0
push eax
call esi
lea ecx, [esp + 0x30]
push str.Responses
push ecx
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 0x10]
push edx
push 0x20019
lea eax, [esp + 0x38]
push 0
push eax
push 0x80000002
call ebx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x401fc5
lea ecx, [esp + 0x30]
push ecx
push 0x80000002
call ebp
mov edx, dword [str.SoftwareMicrosoftWindowsCurrentVersionUnimodemDeviceSpecific_]
lea eax, [esp + 0x30]
push edx
push eax
call edi
lea ecx, [esp + 0x30]
push 0x40e7e0
push ecx
call esi
lea edx, [esp + 0x10]
lea eax, [esp + 0x30]
push edx
push 0x20019
push 0
push eax
push 0x80000002
call ebx
test eax, eax
jne 0x402007
lea ecx, [esp + 0x30]
push ecx
push 0x80000002
call ebp
mov eax, dword [0x40a21c]
test eax, eax
je 0x402083
mov edx, dword [str.SoftwareLucent]
push edx
call fcn.004020b0
mov eax, dword [str.SoftwareAgere]
add esp, 4
push eax
call fcn.004020b0
mov ecx, dword [str.SoftwareToshibaSoftModem]
add esp, 4
push ecx
call fcn.004020b0
mov eax, dword [str.SoftwareToshiba]
add esp, 4
lea edx, [esp + 0x10]
push edx
push 0xf003f
push 0
push eax
push 0x80000002
call ebx
test eax, eax
jne 0x402083
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.CleanUpRegistry
push ecx
call esi
mov edx, dword [esp + 0x10]
push str.CabsFlag
push edx
call esi
mov eax, dword [esp + 0x10]
push str.ModemType
push eax
call esi
mov ecx, dword [str.SoftwareLucent_Technologies]
push ecx
call fcn.004020b0
mov edx, dword [str.SoftwareGenericSoftModemUninstallInfo]
add esp, 4
push edx
call fcn.004020b0
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x224
ret
Function at 0x4020b0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x620
lea eax, [esp]
push edi
mov edi, dword [esp + 0x628]
push eax
push 0x30019
push 0
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402172
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push 0
push 0
push 0
lea eax, [esp + 0x30]
push edx
push eax
push 0
push ecx
mov dword [esp + 0x34], 0x100
call ebp
test eax, eax
jne 0x402158
lea edx, [esp + 0x220]
push edi
push edx
call ebx
lea eax, [esp + 0x220]
push 0x40aa58
push eax
call esi
lea ecx, [esp + 0x20]
lea edx, [esp + 0x220]
push ecx
push edx
call esi
lea eax, [esp + 0x220]
push eax
call fcn.004020b0
add esp, 4
jmp 0x4020f3
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop ebx
pop ebp
pop esi
pop edi
add esp, 0x620
ret

Function at 0x402180
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x380
lea eax, [esp + 0x100]
push ebx
push ebp
push esi
push edi
push str.Enum
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x110]
push 0x40aa58
push ecx
call edi
mov ebx, dword [esp + 0x394]
push ebx
call fcn.00405ab0
add esp, 4
push 0x40aabc
push ebx
call fcn.00405a30
mov ebp, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
add esp, 8
test esi, esi
je 0x402221
push 0x26
push esi
call fcn.00405970
add esp, 8
inc eax
push 0x26
push eax
call fcn.00405970
sub eax, esi
add esp, 8
inc eax
lea edx, [esp + 0x10]
push eax
push esi
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x110]
push eax
push ecx
call edi
lea edx, [esp + 0x110]
push edx
push 0x80000002
call ebp
push str.BIOS
push ebx
call fcn.00405a30
mov esi, eax
add esp, 8
test esi, esi
je 0x40226e
push 0x2c
push esi
call fcn.00405970
sub eax, esi
add esp, 8
inc eax
push eax
lea eax, [esp + 0x14]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x110]
push ecx
push edx
call edi
lea eax, [esp + 0x110]
push eax
push 0x80000002
call ebp
push 0x40aab0
push ebx
call fcn.00405a30
add esp, 8
test eax, eax
je 0x4022ac
push str.ISAPNP
push ebx
call fcn.00405a30
add esp, 8
test eax, eax
je 0x4022ac
lea ecx, [esp + 0x110]
push eax
push ecx
call edi
lea edx, [esp + 0x110]
push edx
push 0x80000002
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x380
ret
Function at 0x402710
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x94
push esi
push 0x1c
push 0x40
mov dword [esp + 0xc], 0x4d36e978
mov word [esp + 0x10], 0xe325
mov word [esp + 0x12], 0x11ce
mov byte [esp + 0x14], 0xbf
mov byte [esp + 0x15], 0xc1
mov byte [esp + 0x16], 8
mov byte [esp + 0x17], 0
mov byte [esp + 0x18], 0x2b
mov byte [esp + 0x19], 0xe1
mov byte [esp + 0x1a], 3
mov byte [esp + 0x1b], 0x18
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x402772
mov eax, 1
pop esi
add esp, 0x94
ret
push edi
push ebp
push ebx
push 2
push 0
lea eax, [esp + 0x18]
push 0
push eax
mov dword [esi], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov ebp, dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov edi, dword [esp + 0x20]
mov ebx, eax
push esi
push 0
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x40280c
push 0x20019
push 2
push 0
push 1
push esi
push ebx
mov dword [esp + 0x38], pe_nt_image_headers32
call ebp
mov edi, eax
cmp edi, 0xffffffff
je 0x402802
lea ecx, [esp + 0x20]
lea edx, [esp + 0x24]
push ecx
push edx
push 0
push 0
push 0x40a070
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402802
lea eax, [esp + 0x24]
push str.Controllerless_Modem_Port
push eax
call fcn.00405a30
add esp, 8
test eax, eax
je 0x402802
push esi
push ebx
push 5
call dword [sym.imp.SETUPAPI.dll_SetupDiCallClassInstaller]
push esi
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiDeleteDeviceInfo]
jmp 0x402798
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp edi, 0xffffffff
je 0x40281f
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00402e90
pop ebx
pop ebp
pop edi
xor eax, eax
pop esi
add esp, 0x94
ret
Function at 0x402840
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x118
push esi
push 0x1c
push 0x40
mov dword [esp + 0x10], 0x4d36e96d
mov word [esp + 0x14], 0xe325
mov word [esp + 0x16], 0x11ce
mov byte [esp + 0x18], 0xbf
mov byte [esp + 0x19], 0xc1
mov byte [esp + 0x1a], 8
mov byte [esp + 0x1b], 0
mov byte [esp + 0x1c], 0x2b
mov byte [esp + 0x1d], 0xe1
mov byte [esp + 0x1e], 3
mov byte [esp + 0x1f], 0x18
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x4028a2
mov eax, 1
pop esi
add esp, 0x118
ret
push edi
push ebp
push ebx
push 2
push 0
lea eax, [esp + 0x1c]
push 0
push eax
mov dword [esi], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, dword [esp + 0x10]
mov ebx, eax
push esi
push 0
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x402a0e
push 0x20019
push 2
push 0
push 1
push esi
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov edi, eax
cmp edi, 0xffffffff
je 0x402a01
mov eax, dword [esp + 0x12c]
test eax, eax
jne 0x4029f7
lea ecx, [esp + 0x24]
lea edx, [esp + 0x28]
push ecx
push edx
push 0
push 0
push str.Manufacturer
push edi
mov dword [esp + 0x3c], 0x100
call ebp
test eax, eax
jne 0x402a01
lea eax, [esp + 0x28]
push eax
call fcn.00405ab0
mov ecx, dword [0x40a030]
add esp, 4
lea edx, [esp + 0x28]
push ecx
push edx
call fcn.00405a30
add esp, 8
test eax, eax
jne 0x4029cf
mov eax, dword [str.LUCENT]
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.00405a30
add esp, 8
test eax, eax
jne 0x4029cf
mov edx, dword [str.AGERE]
lea eax, [esp + 0x28]
push edx
push eax
call fcn.00405a30
add esp, 8
test eax, eax
jne 0x4029cf
mov ecx, dword [str.COMPAQ]
lea edx, [esp + 0x28]
push ecx
push edx
call fcn.00405a30
add esp, 8
test eax, eax
jne 0x4029cf
mov eax, dword [str.TOSHIBA]
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.00405a30
add esp, 8
test eax, eax
jne 0x4029cf
mov eax, dword [0x40d7c8]
test eax, eax
je 0x402a01
lea edx, [esp + 0x28]
push 0x40dfe0
push edx
call fcn.00405a30
add esp, 8
test eax, eax
je 0x402a01
lea eax, [esp + 0x10]
mov dword [0x40d7ac], 1
push eax
push 0x40e020
push 0
push 0
push str.InfPath
push edi
mov dword [esp + 0x28], 0x100
call ebp
push esi
push ebx
push 5
call dword [sym.imp.SETUPAPI.dll_SetupDiCallClassInstaller]
push esi
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiDeleteDeviceInfo]
jmp 0x4028c8
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp edi, 0xffffffff
je 0x402a21
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [0x40d7ac]
xor eax, eax
pop ebx
pop ebp
test ecx, ecx
pop edi
pop esi
setne al
add esp, 0x118
ret
Function at 0x402d70
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x414
push esi
push 0x1c
push 0x40
mov dword [esp + 0xc], 0x4d36e96c
mov word [esp + 0x10], 0xe325
mov word [esp + 0x12], 0x11ce
mov byte [esp + 0x14], 0xbf
mov byte [esp + 0x15], 0xc1
mov byte [esp + 0x16], 8
mov byte [esp + 0x17], 0
mov byte [esp + 0x18], 0x2b
mov byte [esp + 0x19], 0xe1
mov byte [esp + 0x1a], 3
mov byte [esp + 0x1b], 0x18
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x402dd2
mov eax, 1
pop esi
add esp, 0x414
ret
push edi
push ebp
push ebx
push 2
push 0
lea eax, [esp + 0x18]
push 0
push eax
mov dword [esi], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov ebp, dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov edi, dword [esp + 0x20]
mov ebx, eax
push esi
push 0
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x402e6c
push 0x20019
push 2
push 0
push 1
push esi
push ebx
call ebp
mov edi, eax
cmp edi, 0xffffffff
je 0x402e62
lea ecx, [esp + 0x20]
lea edx, [esp + 0x24]
push ecx
push edx
push 0
push 0
push 0x40a070
push edi
mov dword [esp + 0x38], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402e62
lea eax, [esp + 0x24]
push str.Unimodem
push eax
call fcn.00405a30
add esp, 8
test eax, eax
je 0x402e62
push esi
push ebx
push 5
call dword [sym.imp.SETUPAPI.dll_SetupDiCallClassInstaller]
push esi
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiDeleteDeviceInfo]
jmp 0x402df8
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp edi, 0xffffffff
je 0x402e7f
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop ebp
pop edi
mov eax, 1
pop esi
add esp, 0x414
ret
Function at 0x4030a0
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x414
push ebx
push ebp
push esi
lea eax, [esp + 0x18]
push edi
xor ebx, ebx
push eax
push 0x20008
mov byte [esp + 0x18], bl
mov byte [esp + 0x19], bl
mov byte [esp + 0x1a], bl
mov byte [esp + 0x1b], bl
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1d], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4030eb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x414
ret
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push 0x400
push edx
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ecx, dword [esp + 0x1c]
mov esi, eax
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
jne 0x403125
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x414
ret
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x403153
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x414
ret
mov eax, dword [esp + 0x24]
xor ebp, ebp
xor esi, esi
cmp eax, ebx
jbe 0x40318a
mov ebx, dword [sym.imp.ADVAPI32.dll_EqualSid]
lea edi, [esp + 0x28]
mov ecx, dword [edi]
mov edx, dword [esp + 0x18]
push ecx
push edx
call ebx
test eax, eax
jne 0x403185
mov eax, dword [esp + 0x24]
inc esi
add edi, 8
cmp esi, eax
jb 0x403169
jmp 0x40318a
mov ebp, 1
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x414
ret
Function at 0x4037a0
Capabilities:
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
sub esp, 0x244
lea edx, [esp]
push eax
push ecx
push edx
call fcn.00401830
add esp, 0xc
test eax, eax
je 0x403856
lea eax, [esp + 0x104]
push ebx
lea ecx, [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40384e
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov eax, dword [esp + 0x258]
lea edx, [esp + 0x140]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.00401830
add esp, 0xc
test eax, eax
je 0x40383c
lea edx, [esp + 0x10]
push 0
push edx
call fcn.004055d0
add esp, 8
test eax, eax
jne 0x40383c
lea eax, [esp + 0x10]
push pe_nt_image_headers32
push eax
call esi
lea ecx, [esp + 0x10]
push ecx
call edi
lea edx, [esp + 0x114]
push edx
push ebx
call ebp
test eax, eax
jne 0x4037f5
pop ebp
pop esi
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
add esp, 0x244
ret

Function at 0x403860
Capabilities:
Delete directory
Set file attributes

Disassembly:
sub esp, 0x460
push esi
push edi
mov ecx, 0xd
mov esi, str.ProfilesAll_UsersStart_MenuProgramsThinkPad_Modem
lea edi, [esp + 0x30]
mov eax, dword [str.ThinkP.exe]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edx, dword [0x40ab9c]
mov ecx, 7
movsb byte es:[edi], byte [esi]
mov esi, str.StartM1ProgramsThinkP1
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x40ab98]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [esp + 8], eax
lea eax, [esp + 0x68]
push 0x40d7d0
push eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
call esi
lea ecx, [esp + 0x68]
push 0x40dec0
push ecx
call esi
cmp byte [0x40eb80], 1
jne 0x4038db
lea edx, [esp + 0x30]
lea eax, [esp + 0x68]
push edx
push eax
jmp 0x4038e5
lea ecx, [esp + 0x14]
lea edx, [esp + 0x68]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 8]
lea ecx, [esp + 0x68]
push eax
push ecx
call fcn.004037a0
add esp, 8
lea edx, [esp + 0x68]
push pe_nt_image_headers32
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
add esp, 0x460
ret
Function at 0x403930
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xa0
mov eax, dword [0x40d7c4]
push ebx
push esi
sub eax, 3
push edi
mov dword [esp + 0x10], 0x40
je 0x403962
dec eax
lea edx, [esp + 0x2c]
je 0x40395a
mov edi, dword [str.SoftwareLucent]
jmp 0x40396c
mov edi, dword [str.SoftwareAgere]
jmp 0x40396c
mov edi, dword [str.SoftwareToshibaSoftModem]
lea edx, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x2c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
push ecx
push 0xf003f
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403a34
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0
push str.CleanUpRegistry
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4039e4
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
add esp, 0xa0
ret
lea ecx, [esp + 0x14]
push ecx
call fcn.00405ab0
add esp, 4
mov esi, str.N4321
lea eax, [esp + 0x14]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x403a22
test cl, cl
je 0x403a1e
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x403a22
add eax, 2
add esi, 2
test cl, cl
jne 0x4039fa
xor eax, eax
jmp 0x403a27
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
test eax, eax
setne cl
mov dword [0x40a21c], ecx
pop edi
pop esi
pop ebx
add esp, 0xa0
ret
Function at 0x403a40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xa0
mov eax, dword [0x40d7c4]
push ebx
push esi
sub eax, 3
push edi
mov dword [esp + 0x10], 0x40
je 0x403a72
dec eax
lea edx, [esp + 0x2c]
je 0x403a6a
mov edi, dword [str.SoftwareLucent]
jmp 0x403a7c
mov edi, dword [str.SoftwareAgere]
jmp 0x403a7c
mov edi, dword [str.SoftwareToshibaSoftModem]
lea edx, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x2c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
push ecx
push 0xf003f
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403b4f
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0
push str.CabsFlag
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x403af4
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
add esp, 0xa0
ret
lea ecx, [esp + 0x14]
push ecx
call fcn.00405ab0
add esp, 4
mov esi, str.N4321
lea eax, [esp + 0x14]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x403b32
test cl, cl
je 0x403b2e
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x403b32
add eax, 2
add esi, 2
test cl, cl
jne 0x403b0a
xor eax, eax
jmp 0x403b37
sbb eax, eax
sbb eax, 0xffffffff
mov edx, dword [esp + 0xc]
xor ecx, ecx
test eax, eax
setne cl
push edx
mov dword [0x40d7c0], ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
add esp, 0xa0
ret
Function at 0x403da0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x88
mov eax, dword [0x40d7c4]
push esi
sub eax, 3
push edi
mov dword [esp + 0xc], 0x40
je 0x403dd1
dec eax
lea edx, [esp + 0x10]
je 0x403dc9
mov edi, dword [str.SoftwareLucent]
jmp 0x403ddb
mov edi, dword [str.SoftwareAgere]
jmp 0x403ddb
mov edi, dword [str.SoftwareToshibaSoftModem]
lea edx, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 8]
push ecx
push 0xf003f
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403e7a
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push 0x40dfe0
push 0
push 0
push 0x40abec
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x403e58
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x40d7c8], 0
pop edi
pop esi
add esp, 0x88
ret
push 0x40dfe0
call fcn.00405ab0
mov eax, dword [esp + 0xc]
add esp, 4
mov dword [0x40d7c8], 1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 0x88
ret