joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x418cab
push eax
mov dword fs:[0], esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
test ebx, ebx
mov dword [edi], 0
mov dword [edi + 4], 0
je 0x4010b5
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x401083
mov ecx, edi
call fcn.004011e0
test eax, eax
jne 0x401083
mov esi, str.NSMWClass
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x401075
test cl, cl
je 0x401071
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x401075
add eax, 2
add esi, 2
test cl, cl
jne 0x401051
xor eax, eax
jmp 0x40107a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401083
mov ebx, str.NSMWClassVista
push ebx
call fcn.0040f9b8
push 0x1b4
mov dword [edi + 4], eax
call fcn.0040e3e0
add esp, 8
mov dword [ebp + 8], eax
test eax, eax
mov dword [ebp - 4], 0
je 0x4010b1
push ebx
mov ecx, eax
call fcn.00401fd0
jmp 0x4010b3
xor eax, eax
mov dword [edi], eax
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401e00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419390
push 0x410e48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
jne 0x401e7d
mov dword [ebp - 4], 0
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x20], eax
cmp dword [eax], 0x4550
mov dword [ebp - 4], 0xffffffff
jne 0x401e7d
push eax
push str..text
call fcn.00401db0
add esp, 8
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402200
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov al, byte [ecx + 4]
push ebx
push esi
push edi
test al, al
mov dword [ebp - 4], ecx
je 0x402230
push str.already_created
push 0xf0
call fcn.004033e0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
mov al, byte [ecx + 5]
test al, al
je 0x402251
push str.already_opened
push 0xf2
call fcn.004033e0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push 0x5c
push ebx
mov byte [ecx], 0
call fcn.0040ff10
mov ecx, dword [ebp - 0x94]
add esp, 8
cmp ecx, 5
jae 0x402290
test eax, eax
je 0x4022b5
lea ebx, [eax + 1]
jmp 0x4022b5
test eax, eax
jne 0x4022b5
mov edi, str.Local_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [ebp + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [ebp + 8]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x40
jbe 0x402309
mov ecx, dword [ebp - 4]
push str.name_too_long
push 0x10c
call fcn.004033e0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 4]
mov edi, ebx
or ecx, 0xffffffff
lea edx, [eax + 0x3c]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4037c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4213e4]
push ebx
mov ebx, dword [ebp + 0x14]
test eax, eax
je 0x4037ec
test bl, 8
jne 0x4037ec
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [0x4213e4]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
push eax
push ecx
push edx
call fcn.004039a0
add esp, 0x10
test bl, 4
pop ebx
jne 0x40382d
mov eax, dword [0x420b94]
test eax, eax
jne 0x403825
mov eax, dword [0x4213d8]
test eax, eax
je 0x403825
mov dword [0x420b94], 1
call eax
push 3
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop ebp
ret
Function at 0x405540
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push edi
push 0x404530
mov dword [0x420cb8], 0
call fcn.00403870
push 0x4054e0
call fcn.004037b0
add esp, 8
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x218]
push ecx
call fcn.004016b0
lea edx, [ebp - 0x218]
push 0x5c
push edx
call fcn.00401450
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4055a6
inc ebx
jmp 0x4055ab
mov ebx, str._________
push 0x2e
push ebx
call fcn.00401310
add esp, 8
test eax, eax
je 0x4055bd
mov byte [eax], 0
push ebx
lea eax, [ebp - 0x94]
push str._s.dmp.0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
add esp, 0xc
lea ecx, [ebp - 0x94]
push ecx
push 0
push 0
push 0
call edi
test eax, eax
je 0x4056f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4056f1
push esi
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
push 1
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 8], 1
xor esi, esi
inc esi
lea edx, [ebp - 0x114]
push esi
push ebx
push str._s.dmp._d
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x114]
lea ecx, [ebp - 0x10]
push eax
push 0
push 0
push ecx
call edi
test eax, eax
mov dword [0x420cb0], eax
je 0x40569b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x405692
mov edx, dword [0x420cb0]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x420cb0], 0
jmp 0x40569b
mov eax, dword [0x420cb0]
test eax, eax
jne 0x4056a0
cmp esi, 0x64
jl 0x40563a
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
push 0
push 0
push 0
call edi
push 0
push 0
push 0
push 0
mov dword [0x420ca8], eax
call edi
lea ecx, [ebp - 0x14]
mov dword [0x420ba0], eax
push ecx
push 0
push 0
push 0x405700
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 2
push eax
mov dword [0x420cb8], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405bc0
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
push 0xf003f
push 0
mov ebx, ecx
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x405bea
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x104]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x104]
push 0
push ecx
push 1
push 2
lea eax, [ebx + 4]
push 0x110
push 0xf01ff
push eax
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edi, eax
test edi, edi
jne 0x405c3f
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, ebx
call fcn.00405d00
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405d00
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
push edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
mov ebx, ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, str.SYSTEMCurrentControlSetServicesEventLogApplication_
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x108]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebp - 4], 0
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x108]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx + 4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [ebp - 4]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x108]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x405da2
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea edi, [ebp - 0x20c]
or ecx, 0xffffffff
xor eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
repne scasb al, byte es:[edi]
not ecx
lea edx, [ebp - 0x20c]
push ecx
push edx
push 2
push eax
mov eax, dword [ebp - 4]
push str.EventMessageFile
push eax
call esi
mov edx, dword [ebp - 4]
lea ecx, [ebp - 8]
push 4
push ecx
push 4
push 0
push str.TypesSupported
push edx
mov dword [ebp - 8], 7
call esi
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405e10
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x18]
push esi
mov esi, ecx
mov ecx, dword [ebp + 0x14]
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
xor edi, edi
lea eax, [ebp - 0xc]
mov ecx, 3
cmp dword [eax], 0
je 0x405e3c
inc edi
add eax, 4
dec ecx
jne 0x405e36
mov eax, dword [esi + 0x70]
test eax, eax
jne 0x405e5f
mov ecx, esi
call fcn.00405d00
lea eax, [esi + 4]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov dword [esi + 0x70], eax
mov esi, dword [esi + 0x70]
test esi, esi
je 0x405e82
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xc]
push 0
push ecx
push 0
push edi
push 0
push edx
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14

Function at 0x406270
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov eax, dword [ebp + 8]
add eax, 4
lea ecx, [ebp - 0x400]
push eax
push str.__s___lu_:
push ecx
call fcn.00411470
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
push edx
push eax
lea edi, [ebp - 0x400]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ecx, [ebp + ecx - 0x400]
push ecx
call fcn.0041141f
mov edi, 0x41c58c
or ecx, 0xffffffff
xor eax, eax
add esp, 0x1c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x400]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [ebp - 0x400]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4065d0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, ecx
push 0
push 0
mov eax, dword [edi]
push str.Waiting_for_service
push 0xcf
push 1
call dword [eax + 4]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 8], ebx
jne 0x406628
mov edx, dword [edi]
push eax
push eax
push str.Error_opening_service_manager
push 0xcf
push 1
mov ecx, edi
call dword [edx + 4]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0x3c
jge 0x406658
mov eax, dword [ebp + 8]
push 4
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x406681
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 4]
jmp 0x40662f
mov edx, dword [edi]
push 0
push 0
push str.Error_opening_service
push 0xcf
push 1
mov ecx, edi
call dword [edx + 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov edx, dword [edi]
xor ebx, ebx
push ebx
push ebx
push str.Opened_ok__now_wait
push 0xcf
push 1
mov ecx, edi
call dword [edx + 4]
cmp dword [ebp - 0x20], 4
je 0x4066cd
cmp ebx, 0x3c
jge 0x4066cd
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov eax, dword [ebp - 0x20]
inc ebx
cmp eax, 4
jne 0x4066a9
lea ecx, [ebp - 0x24]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov ecx, dword [ebp - 0x20]
xor ebx, ebx
cmp ecx, 4
sete bl
test ebx, ebx
je 0x406700
mov edx, dword [edi]
push 0
push 0
push str.Service_not_running
push 0xcf
push 1
mov ecx, edi
call dword [edx + 4]
jmp 0x406717
mov eax, dword [edi]
push 0
push 0
push str.Service_running
push 0xcf
push 1
mov ecx, edi
call dword [eax + 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
mov ecx, dword [ebp - 8]
push ecx
call esi
pop edi
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x406cf0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
mov edx, ecx
push esi
push edi
or ecx, 0xffffffff
mov edi, str.SYSTEMCurrentControlSetServices_
xor eax, eax
lea ebx, [ebp - 0x408]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [edx + 4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x408]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [ebp - 0x408]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Parameters
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [ebp - 8]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 4]
lea edx, [ebp - 0x408]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
pop edi
pop esi
test eax, eax
pop ebx
jne 0x406dd3
mov ecx, dword [ebp - 4]
lea eax, [ebp + 8]
push 4
push eax
push 4
push 0
push str.RecoverLimit
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 4

Function at 0x406de0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
mov edx, ecx
push esi
push edi
or ecx, 0xffffffff
mov edi, str.SYSTEMCurrentControlSetServices_
xor eax, eax
lea ebx, [ebp - 0x400]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [edx + 4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x400]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [ebp - 0x400]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Parameters
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [ebp - 0x400]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407dd0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push esi
mov esi, ecx
push 0
push 0
mov eax, dword [esi]
push str.CreateMainWnd
push 0xcf
push 4
call dword [eax + 4]
mov eax, dword [esi + 0x29c]
test eax, eax
je 0x407e0a
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x407ee7
mov eax, dword [ebp + 8]
test eax, eax
je 0x407e18
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call fcn.00401eb0
push eax
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.PCI_Remote_Installation_Server
push str.PCI_RIService
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
test eax, eax
mov dword [esi + 0x29c], eax
jne 0x407e6f
push 0x4a1
push str.E:_nsmsrc_nsm11301130ctl32pcirisvr.cpp
push str.m_hWnd
call fcn.00403830
add esp, 0xc
mov ecx, dword [esi + 0x29c]
mov dword [0x420ef0], ecx
mov eax, dword [esi + 0x29c]
test eax, eax
jne 0x407eb4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x80]
push str.Error_creating_window_:__d
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esi]
add esp, 0xc
lea ecx, [ebp - 0x80]
push 0
push 0
push ecx
push 0xcf
push 1
mov ecx, esi
call dword [eax + 4]
mov edx, dword [esi]
push 0
push 0
push str.Window_created
push 0xcf
push 4
mov ecx, esi
call dword [edx + 4]
mov eax, dword [esi + 0x29c]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x29c]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x408d40
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
push 0
push 0
mov eax, dword [esi]
push str.Display_PreInstall_message
push 0xcf
push 4
call dword [eax + 4]
mov eax, dword [esi + 0x288]
test eax, eax
je 0x408eb1
push 0x50
call fcn.0040e3e0
push 0x100
mov edi, eax
call fcn.0040e3e0
add esp, 8
mov ebx, eax
mov byte [edi], 0
push str.pcirisvr.ini
push 0x50
push edi
push 0x420ff8
push str.Title
push str.Main
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str.pcirisvr.ini
push 0x100
push ebx
push 0x420ff8
push str.Message
push str.Main
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edx, dword [esi]
push 0
push 0
push edi
push 0xcf
push 4
mov ecx, esi
call dword [edx + 4]
mov eax, dword [esi]
push 0
push 0
push ebx
push 0xcf
push 4
mov ecx, esi
call dword [eax + 4]
mov dword [esi + 0x2c4], 0
mov al, byte [edi]
test al, al
je 0x408e84
cmp byte [ebx], 0
je 0x408e84
push 0x18
call fcn.0040e3e0
xor ecx, ecx
add esp, 4
cmp eax, ecx
je 0x408e2a
mov dword [eax + 4], ecx
mov dword [eax], 0x41942c
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], ebx
mov dword [ebp - 4], eax
jmp 0x408e2d
mov dword [ebp - 4], ecx
push 0x67
push ecx
mov ecx, dword [ebp - 4]
call fcn.0040caa0
mov ecx, dword [ebp - 4]
mov dword [0x420eec], eax
mov edx, dword [esi]
mov dword [esi + 0x2c4], ecx
mov eax, dword [0x420eec]
push 0
test eax, eax
push 0
je 0x408e74
push str.Create_dialog__set_text
push 0xcf
push 4
mov ecx, esi
call dword [edx + 4]
mov eax, dword [0x420eec]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x408e98
push 0
push 0xd9
push 4
mov ecx, esi
call dword [edx + 4]
jmp 0x408e98
mov eax, dword [esi]
push 0
push 0
push 0
push 0xda
push 4
mov ecx, esi
call dword [eax + 4]
mov eax, dword [esi + 0x2c4]
test eax, eax
jne 0x408eb1
push edi
call fcn.0040f9ad
push ebx
call fcn.0040f9ad
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4094a0
Capabilities:
Get installed programs
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40959b
xor ebx, ebx
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 4]
push 0
push 0
push 0
lea eax, [ebp - 0x618]
push edx
push eax
push ebx
push ecx
mov dword [ebp - 0x10], 0x400
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
test esi, esi
jne 0x409588
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0x20019
push eax
lea eax, [ebp - 0x618]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x409588
mov ecx, 0x80
lea edi, [ebp - 0x218]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 8]
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x218]
push edx
push eax
push esi
push esi
push str.DisplayName
push ecx
mov dword [ebp - 0xc], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40957e
lea edi, [ebp - 0x218]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40957e
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x218]
push edx
push eax
call fcn.004014c0
add esp, 8
test eax, eax
je 0x4095a6
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebx
test esi, esi
je 0x4094d1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4