joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4027c0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x415070]
push esi
mov esi, dword [esp + 0x114]
mov dword [esp + 0x108], eax
push edi
mov edi, dword [esp + 0x114]
lea eax, [esp + 8]
push eax
call fcn.00402690
add esp, 4
lea ecx, [esp + 8]
push ecx
push 0x104
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x411dd6
push str.SPLevel
push str.ServicePack
call esi
test eax, eax
je 0x40284f
lea edx, [esp + 8]
push edx
push 0x104
push edi
push 0x411dd6
push str.NTVersion
push str.ServicePack
call esi
test eax, eax
je 0x40284f
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x104]
call fcn.0040851d
add esp, 0x108
ret
mov ecx, dword [esp + 0x10c]
pop edi
xor eax, eax
pop esi
call fcn.0040851d
add esp, 0x108
ret

Function at 0x402970
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x415070]
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
lea eax, [esp + 4]
push eax
call fcn.00402690
add esp, 4
lea ecx, [esp + 4]
push ecx
push 0x104
push esi
push 0x411dd6
push str.ProductCode
push str.ProductInformation
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [esp + 0x108]
pop esi
call fcn.0040851d
add esp, 0x108
ret

Function at 0x4029d0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x40c
mov eax, dword [0x415070]
push ebx
push esi
mov esi, dword [esp + 0x424]
mov dword [esp + 0x410], eax
push edi
mov edi, dword [esp + 0x41c]
lea eax, [esp + 0x20c]
push eax
call fcn.00402690
mov edx, dword [esp + 0x428]
mov eax, dword [0x416b54]
add esp, 4
push 0x104
lea ecx, [esp + 0x314]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [esp + 0x20c]
push ecx
push 0x104
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x31c]
push eax
push str.MessageText
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x10c]
push ecx
call fcn.00402760
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 4
lea edx, [esp + 0x10c]
push edx
call esi
mov ebx, eax
lea eax, [esp + 0xc]
push eax
call esi
add ebx, eax
cmp ebx, dword [esp + 0x420]
jle 0x402aa0
push str.Function:GetCustomErrorMessage_____szError_size_is_too_small
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x408]
call fcn.0040851d
add esp, 0x40c
ret
lea ecx, [esp + 0x10c]
push ecx
lea edx, [esp + 0x10]
push edx
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [esp + 0x420]
add esp, 0xc
pop edi
pop esi
pop ebx
call fcn.0040851d
add esp, 0x40c
ret
Function at 0x402bd0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x13c
mov eax, dword [0x415070]
mov dword [esp + 0x138], eax
mov eax, dword [0x4170c4]
test eax, eax
jne 0x402c4a
lea eax, [esp + 0x34]
push eax
call fcn.00402690
add esp, 4
lea ecx, [esp + 0x34]
push ecx
push 0x32
lea edx, [esp + 8]
push edx
push 0x4126f4
push str.InstMsi
push str.InstallMSI
mov byte [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp]
cmp al, 0x32
je 0x402c4a
cmp dword [0x416b60], 4
ja 0x402c32
cmp al, 0x30
jne 0x402c4a
mov eax, 1
mov ecx, dword [esp + 0x138]
call fcn.0040851d
add esp, 0x13c
ret
mov ecx, dword [esp + 0x138]
xor eax, eax
call fcn.0040851d
add esp, 0x13c
ret

Function at 0x402c70
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x415070]
mov dword [esp + 0x104], eax
lea eax, [esp]
push eax
call fcn.00402690
add esp, 4
lea ecx, [esp]
push ecx
push 0
push str.AutorunIfInstalled
push str.ProductInformation
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [esp + 0x104]
call fcn.0040851d
add esp, 0x108
ret

Function at 0x4030f0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x415070]
push ebx
push esi
mov esi, dword [esp + 0x114]
mov dword [esp + 0x10c], eax
push edi
mov edi, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
call fcn.00402690
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add esp, 4
lea ecx, [esp + 0xc]
push ecx
push 0x104
push esi
push 0x411dd6
push str.RegKey
mov byte [edi], 0
push 0x4126e8
mov byte [esi], 0
call ebx
lea edx, [esp + 0xc]
push edx
push 0x104
push edi
push 0x411dd6
push str.RegValue
push 0x4126e8
call ebx
cmp byte [esi], 0
je 0x403189
cmp byte [edi], 0
je 0x403189
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x104]
call fcn.0040851d
add esp, 0x108
ret
mov ecx, dword [esp + 0x110]
pop edi
pop esi
xor eax, eax
pop ebx
call fcn.0040851d
add esp, 0x108
ret
Function at 0x4031b0
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
sub esp, 0x810
mov eax, dword [0x415070]
push ebx
push ebp
push esi
mov dword [esp + 0x818], eax
mov eax, dword [esp + 0x820]
push edi
push 0x415720
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40330f
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov ebp, dword [sym.imp.USER32.dll_MessageBoxA]
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ecx]
mov eax, dword [0x417094]
test eax, eax
jne 0x40332b
mov edx, dword [0x416b54]
push 0x100
lea ecx, [esp + 0x18]
push ecx
push 2
push edx
call edi
lea eax, [esp + 0x514]
push eax
call fcn.00402690
add esp, 4
lea ecx, [esp + 0x514]
push ecx
push 0x104
lea edx, [esp + 0x620]
push edx
push 0x411dd6
push str.DisplayName
push str.ProductInformation
call ebx
lea eax, [esp + 0x618]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x31c]
push edx
call esi
mov ecx, dword [0x416b54]
add esp, 0xc
push 0xff
lea eax, [esp + 0x218]
push eax
push 1
push ecx
call edi
lea edx, [esp + 0x718]
push edx
call fcn.00402690
add esp, 4
lea eax, [esp + 0x718]
push eax
push 0x104
lea ecx, [esp + 0x41c]
push ecx
push 0x411dd6
push str.DisplayName
push str.ProductInformation
call ebx
lea edx, [esp + 0x414]
push edx
lea eax, [esp + 0x218]
push eax
lea ecx, [esp + 0x11c]
push ecx
call esi
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push 0x11
lea edx, [esp + 0x118]
push edx
lea eax, [esp + 0x31c]
push eax
push ecx
call ebp
cmp eax, 2
je 0x40332b
push 0x415720
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x403200
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x80c]
call fcn.0040851d
add esp, 0x810
ret
mov ecx, dword [esp + 0x81c]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
call fcn.0040851d
add esp, 0x810
ret
Function at 0x4033d0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x1c]
push eax
xor ebx, ebx
push edi
mov dword [esp + 0x24], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
xor edx, edx
cmp eax, ebx
sete dl
mov dword [ebp], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
mov dword [ecx], ebx
mov esi, edx
cmp esi, ebx
jne 0x4034d8
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
mov eax, dword [esp + 0x10]
push ebx
push eax
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
mov esi, eax
neg esi
sbb esi, esi
inc esi
jne 0x4034cd
mov eax, dword [esp + 0x28]
xor esi, esi
cmp eax, esi
jne 0x403478
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push 0x412614
push ebx
mov dword [esp + 0x20], esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x403471
cmp dword [esp + 0x10], esi
je 0x403471
mov eax, dword [esp + 0x14]
cmp eax, esi
jne 0x4034be
mov esi, 1
jmp 0x4034cd
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push str.StringFileInfo040904B0ProductVersion
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40349f
cmp dword [esp + 0x10], esi
je 0x40349f
mov eax, dword [esp + 0x18]
cmp eax, esi
jne 0x4034a6
mov esi, 1
jmp 0x4034cd
mov edx, dword [esp + 0x30]
push edx
push ebp
push eax
call fcn.00402870
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
inc esi
jmp 0x4034cd
mov ecx, dword [eax + 0x10]
mov dword [ebp], ecx
mov edx, dword [eax + 0x14]
mov eax, dword [esp + 0x30]
mov dword [eax], edx
test ebx, ebx
je 0x4034d8
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
xor eax, eax
test esi, esi
pop esi
pop ebp
sete al
pop ebx
add esp, 0x10
ret

Function at 0x4034f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x108
mov eax, dword [0x415070]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x118]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [esp + 0x114], eax
push 0x415720
lea eax, [esp + 0x14]
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.msi
lea ecx, [esp + 0x14]
push ecx
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea edx, [esp + 0x10]
push edx
call ebp
cmp eax, 0xffffffff
je 0x403547
test al, 0x10
jne 0x403553
push 0x415720
lea eax, [esp + 0x14]
push eax
call edi
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esp + eax + 0xf], 0x5c
je 0x403571
push 0x412614
lea edx, [esp + 0x14]
push edx
call ebx
lea eax, [esp + 0x10]
push eax
push esi
call edi
mov eax, dword [0x416b60]
test eax, eax
mov eax, str.instmsiW.exe
jne 0x40358c
mov eax, str.instmsi.exe
push eax
push esi
call ebx
mov eax, dword [0x416b60]
test eax, eax
je 0x4035b1
push esi
call ebp
cmp eax, 0xffffffff
jne 0x4035b1
lea ecx, [esp + 0x10]
push ecx
push esi
call edi
push str.instmsi.exe
push esi
call ebx
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebp
pop ebx
call fcn.0040851d
add esp, 0x108
ret
Function at 0x403aa0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x118
mov eax, dword [0x415070]
push esi
mov esi, dword [esp + 0x120]
mov dword [esp + 0x118], eax
lea eax, [esp + 0x14]
push 0x411dd6
push eax
mov dword [esp + 0x14], 0x104
mov dword [esp + 0x10], 1
call fcn.00408f9f
add esp, 8
test esi, esi
je 0x403c07
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403af0
sub eax, edx
mov dword [esp + 0x10], eax
je 0x403c07
push esi
push str.MSSQLSERVER
call fcn.0040ae99
add esp, 8
test eax, eax
jne 0x403b80
mov edx, dword [0x4025c0]
lea ecx, [esp + 4]
push ecx
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x403b60
mov edx, dword [esp + 4]
lea eax, [esp + 0xc]
push eax
push 0x416040
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x41197c
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x403b76
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x114]
call fcn.0040851d
add esp, 0x118
ret
mov ecx, dword [esp + 4]
push ecx
jmp 0x403c01
push str.Setup
push esi
push str.SOFTWAREMicrosoftMicrosoft_Sql_Server
lea edx, [esp + 0x20]
push str._s_s_s
push edx
call fcn.00408f9f
add esp, 0x14
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x403b60
mov ecx, dword [esp + 4]
lea edx, [esp + 0xc]
push edx
push 0x416040
lea eax, [esp + 0x10]
push eax
push 0
push 0x41197c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x403bfc
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x114]
call fcn.0040851d
add esp, 0x118
ret
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x411dd6
push 0x416040
call fcn.004087a2
mov ecx, dword [esp + 0x120]
add esp, 8
neg eax
sbb eax, eax
neg eax
pop esi
call fcn.0040851d
add esp, 0x118
ret
Function at 0x404080
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ecx
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 4]
push eax
push 0x14
push 0
mov dword [esp + 0x10], 0
mov byte [esi], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x4040e4
mov eax, dword [esp + 4]
test eax, eax
je 0x4040e4
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x4040e4
lea ecx, [esp + 0xc]
push ecx
push 1
call dword [sym.imp.ole32.dll_CoGetMalloc]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4040e4
mov ecx, dword [esp + 4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x14]
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
push eax
call dword [edx + 8]
pop esi
pop ecx
ret

Function at 0x4040f0
Capabilities:
Get file attributes
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x415070]
push ebx
mov ebx, dword [esp + 0x11c]
push ebp
mov ebp, dword [esp + 0x11c]
mov dword [esp + 0x114], eax
mov eax, dword [0x416b60]
push esi
test eax, eax
push edi
mov eax, str.SoftwareMicrosoftWindows_NTCurrentVersionFonts
jne 0x404127
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionFonts
lea ecx, [esp + 0x14]
push ecx
push 1
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x404144
xor edi, edi
jmp 0x404148
mov edi, dword [esp + 0x14]
xor esi, esi
test edi, edi
mov dword [esp + 0x10], 0x104
je 0x4041cd
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
push esi
push esi
push ebp
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4041c6
cmp byte [esp + 0x19], 0x3a
je 0x40419d
cmp byte [esp + 0x18], 0x5c
je 0x40419d
push ebx
call fcn.00404080
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 4
push 0x412614
push ebx
call esi
lea ecx, [esp + 0x18]
push ecx
push ebx
call esi
jmp 0x4041a9
lea edx, [esp + 0x18]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [0x416b60], 5
jae 0x4041c1
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x4041c1
xor esi, esi
jmp 0x4041c6
mov esi, 1
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x11c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
call fcn.0040851d
add esp, 0x110
ret
Function at 0x404530
Capabilities:
Compare security identifiers

Disassembly:
mov eax, 0x1018
call fcn.00408760
mov eax, dword [0x415070]
mov dword [esp + 0x1014], eax
mov eax, dword [0x416b60]
push ebx
xor ebx, ebx
cmp eax, ebx
jne 0x40456b
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x1014]
call fcn.0040851d
add esp, 0x1018
ret
lea eax, [esp + 4]
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 0x4045b3
pop ebx
mov ecx, dword [esp + 0x1014]
call fcn.0040851d
add esp, 0x1018
ret
mov eax, dword [esp + 4]
push esi
lea ecx, [esp + 0x10]
push ecx
push 0x1000
lea edx, [esp + 0x24]
push edx
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ecx, dword [esp + 8]
push ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
jne 0x4045f8
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1014]
call fcn.0040851d
add esp, 0x1018
ret
lea edx, [esp + 0xc]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4045e1
mov eax, dword [esp + 0x1c]
push ebp
xor ebp, ebp
xor esi, esi
cmp eax, ebx
jbe 0x404655
mov ebx, dword [sym.imp.ADVAPI32.dll_EqualSid]
push edi
lea edi, [esp + 0x28]
mov ecx, dword [edi]
mov edx, dword [esp + 0x14]
push ecx
push edx
call ebx
test eax, eax
jne 0x40464f
mov eax, dword [esp + 0x24]
inc esi
add edi, 8
cmp esi, eax
jb 0x404633
jmp 0x404654
mov ebp, 1
pop edi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [esp + 0x1020]
mov eax, ebp
pop ebp
pop esi
pop ebx
call fcn.0040851d
add esp, 0x1018
ret

Function at 0x404fa0
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push esi
push edi
mov esi, 0x400
push esi
push 0x40
call ebp
push ebx
push esi
mov edi, eax
push edi
push 0x412794
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
lea ecx, [esi - 2]
cmp eax, ecx
jb 0x404ff5
push edi
add esi, esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp esi, 0x8000
jle 0x404fb5
push 0x1b
push 0
call fcn.00402d30
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
test edi, edi
jne 0x40500b
push 0x1b
push edi
call fcn.00402d30
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov esi, edi
mov ebx, 1
test esi, esi
je 0x405052
mov al, byte [esi]
test al, al
je 0x405052
cmp al, 0x3b
je 0x40503c
push 0x3d
push esi
call fcn.00402f80
inc eax
mov esi, eax
push esi
call fcn.004025d0
push esi
call fcn.00404f20
add esp, 0x10
mov ebx, eax
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405041
sub eax, edx
test ebx, ebx
lea esi, [esi + eax + 1]
jne 0x405012
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret
Function at 0x405340
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
sub esp, 0x15c
mov eax, dword [0x415070]
mov dword [esp + 0x158], eax
lea eax, [esp + 0x54]
push esi
push eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0x14
call fcn.00402690
add esp, 4
lea ecx, [esp + 0x58]
push ecx
push 0x14
lea edx, [esp + 0x38]
push edx
push str.5.00.0000.0000
push str.Version
push 0x411c24
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 4]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftInternet_Explorer
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4053b2
xor esi, esi
jmp 0x40542d
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push str.Version
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4053db
xor esi, esi
jmp 0x40542d
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.004052f0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x50]
push edx
call fcn.004052f0
mov eax, dword [esp + 0x20]
add esp, 0x10
xor esi, esi
cmp eax, 5
jne 0x40542d
xor eax, eax
lea esp, [esp]
mov ecx, dword [esp + eax + 0x20]
mov edx, dword [esp + eax + 0x10]
cmp ecx, edx
jg 0x405428
jl 0x40542d
add eax, 4
cmp eax, 0x10
jl 0x405410
jmp 0x40542d
mov esi, 1
mov eax, dword [esp + 4]
test eax, eax
je 0x40543c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x15c]
mov eax, esi
pop esi
call fcn.0040851d
add esp, 0x15c
ret

Function at 0x405460
Capabilities:
Check os version
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1b0
mov eax, dword [0x415070]
push esi
push edi
mov dword [esp + 0x1b4], eax
xor eax, eax
mov ecx, 0x25
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
mov esi, 1
mov dword [esp + 0x14], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40556a
cmp dword [esp + 0x20], 2
jne 0x40556a
cmp dword [esp + 0x14], 5
jb 0x40556a
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
and eax, 0x3ff
cmp eax, 0x11
je 0x4054e2
cmp eax, 0x12
je 0x4054e2
cmp eax, 0x2a
je 0x4054e2
cmp eax, 0x1e
jne 0x40556a
push 0x104
lea ecx, [esp + 0xac]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.OLEAUT32.DLL
lea edx, [esp + 0xac]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0xb0]
push 0
push edx
call fcn.004033d0
add esp, 0x10
test eax, eax
je 0x40553f
mov eax, dword [esp + 0xc]
cmp eax, 0x20028
ja 0x405553
jne 0x40553f
cmp dword [esp + 8], 0x11a20000
jae 0x405553
xor eax, eax
mov ecx, dword [esp + 0x1b4]
call fcn.0040851d
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 1
mov ecx, dword [esp + 0x1b4]
call fcn.0040851d
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x1b4]
mov eax, esi
call fcn.0040851d
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405590
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x415070]
mov dword [esp + 0x208], eax
mov eax, dword [0x416b64]
test eax, eax
jne 0x4055f0
push 0x104
lea eax, [esp + 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x104]
push ecx
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.MSI.DLL
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x416b64], eax
mov ecx, dword [esp + 0x208]
call fcn.0040851d
add esp, 0x20c
ret

Function at 0x405740
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x624
mov eax, dword [0x415070]
mov dl, byte [0x411dd6]
mov dword [esp + 0x620], eax
xor eax, eax
push ebx
push esi
push edi
mov byte [esp + 0x18], dl
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x228], dl
mov esi, dword [ebp + 8]
mov ecx, 0xff
lea edi, [esp + 0x229]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x120], dl
mov ecx, 0x40
lea edi, [esp + 0x121]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
xor ebx, ebx
push eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call fcn.00402760
add esp, 4
push 0x104
lea ecx, [esp + 0x124]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4058ad
push esi
lea edx, [esp + 0x124]
push edx
lea eax, [esp + 0x230]
push str.__s___s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
add esp, 0x10
push ebx
lea ecx, [esp + 0x14]
push ecx
push ebx
push 0x2001b
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call esi
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
jne 0x405859
lea edx, [esp + 0x228]
push edx
call ebx
mov edx, dword [esp + 0x10]
inc eax
push eax
lea eax, [esp + 0x22c]
push eax
push 1
push 0
lea ecx, [esp + 0x28]
push ecx
push edx
call edi
test eax, eax
je 0x4058a5
push 0
lea eax, [esp + 0x14]
push eax
push 0
push 0x2001b
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000001
call esi
test eax, eax
jne 0x4058ad
lea ecx, [esp + 0x228]
push ecx
call ebx
mov ecx, dword [esp + 0x10]
inc eax
push eax
lea edx, [esp + 0x22c]
push edx
push 1
push 0
lea eax, [esp + 0x28]
push eax
push ecx
call edi
test eax, eax
jne 0x4058ad
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4058bc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x62c]
mov eax, dword [esp + 0x14]
call fcn.0040851d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret