joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4369b0
Capabilities:
Enumerate files on windows

Disassembly:
push 0x478
mov eax, 0x5b0c4d
call fcn.0058f792
mov esi, dword [ebp + 8]
xor edi, edi
mov ebx, dword [ebp + 0xc]
xor eax, eax
and dword [ebp - 0x224], edi
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
and dword [ebp - 4], eax
test esi, esi
je 0x436b56
push 0
push 0x5c4f10
mov ecx, ebx
call fcn.00404be0
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.0058e700
push esi
lea eax, [ebp - 0x21c]
push 0x105
push eax
call fcn.00591d62
lea eax, [ebp - 0x21c]
push 0x5c
push eax
call fcn.00591e9b
add esp, 0x20
test eax, eax
je 0x436a3b
xor ecx, ecx
mov word [eax + 2], cx
jmp 0x436a44
xor eax, eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x484]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x436b56
lea eax, [ebp - 0x458]
push 0x5c5de0
push eax
call fcn.00591d24
pop ecx
pop ecx
test eax, eax
je 0x436b39
lea eax, [ebp - 0x458]
push 0x5c5fb0
push eax
call fcn.00591d24
pop ecx
pop ecx
test eax, eax
je 0x436b39
cmp word [ebp - 0x21c], 0
jne 0x436aa1
xor eax, eax
jmp 0x436aae
lea eax, [ebp - 0x21c]
push eax
call fcn.0058edd4
pop ecx
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x234]
call fcn.00404be0
cmp word [ebp - 0x458], 0
jne 0x436acf
xor eax, eax
jmp 0x436adc
lea eax, [ebp - 0x458]
push eax
call fcn.0058edd4
pop ecx
push eax
lea eax, [ebp - 0x458]
push eax
lea ecx, [ebp - 0x234]
call fcn.00404a83
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
push eax
call fcn.004366b8
pop ecx
test eax, eax
je 0x436b39
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x234]
mov ecx, ebx
push eax
call fcn.004049b6
push 0x5c6c8c
call fcn.0058edd4
pop ecx
push eax
push 0x5c6c8c
mov ecx, ebx
call fcn.00404a83
inc edi
lea eax, [ebp - 0x484]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x436a5d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push 1
lea ecx, [ebp - 0x234]
call fcn.00404970
mov eax, edi
call fcn.0058f741
ret
Function at 0x442a76
Capabilities:
Check for time delay via gettickcount
Create process on windows
Read .ini file
Terminate process

Disassembly:
push 0x270
mov eax, 0x5b1882
call fcn.0058f792
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push str.istdrv.debug.ini
push 0
push str.LaunchAppWait
push str.Setup
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
or dword [ebp - 0x228], 0xffffffff
mov edi, eax
push 0x5cff40
push str.CInstallAction::LaunchExe
push 5
mov dword [ebp - 0x224], edi
call fcn.00424dad
add esp, 0xc
test esi, esi
je 0x442cb3
xor eax, eax
cmp ax, word [esi]
je 0x442cb3
push 0x44
push eax
lea eax, [ebp - 0x27c]
push eax
call fcn.0058e700
push 0x20a
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x27c], 0x44
push 0
push eax
call fcn.0058e700
add esp, 0x18
lea eax, [ebp - 0x21c]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
push 0x5c58f8
mov esi, 0x105
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.00591c0a
push ebx
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.00591c0a
add esp, 0x18
lea eax, [ebp - 0x238]
xor esi, esi
push eax
lea eax, [ebp - 0x27c]
push eax
push esi
push esi
push 0x20
push esi
push esi
push esi
lea eax, [ebp - 0x21c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x442cb3
push dword [ebp - 0x234]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
mov eax, dword [ebp + 0x10]
test eax, eax
js 0x442cab
cmp eax, 1
jle 0x442c44
cmp eax, 2
je 0x442bbb
cmp eax, 3
je 0x442c44
cmp eax, 0x64
jne 0x442cab
mov dword [ebp - 0x228], esi
jmp 0x442cab
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov dword [ebp - 0x224], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp dword [ebp + 0x14], 0
jbe 0x442bdc
cmp dword [ebp + 0x14], eax
jbe 0x442c2d
call fcn.00474a71
mov ecx, dword [eax + 4]
call fcn.0047605a
xor esi, esi
inc esi
push 0x1f4
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
call fcn.00470341
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21d]
call fcn.0040801f
cmp esi, 0x102
jne 0x442c3b
mov esi, dword [ebp - 0x224]
jmp 0x442bc9
push 0xffffffffffffffff
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x442cab
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00474a71
mov ecx, dword [eax + 4]
call fcn.0047605a
push 0x1f4
mov dword [ebp - 4], esi
call edi
push 0x64
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
call fcn.00470341
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21d]
call fcn.0040801f
push 0
cmp esi, 0x102
pop esi
je 0x442c4a
push dword [ebp - 0x224]
call edi
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x238]
call ebx
push 0x5cff5c
push str.CInstallAction::LaunchExe
push 5
call fcn.00424dad
mov eax, dword [ebp - 0x228]
add esp, 0xc
call fcn.0058f741
ret 0x10
Function at 0x44361d
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x5cff40
xor ebx, ebx
mov edi, ecx
push str.CInstallAction::PnPWaitAction
push 5
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call fcn.00424dad
mov ecx, dword [ebp + 0xc]
add esp, 0xc
push 0x64
pop edx
test cx, cx
js 0x443653
cmp dx, cx
jge 0x443655
mov ecx, ebx
mov eax, dword [ebp + 0x10]
test ax, ax
js 0x443662
cmp dx, ax
jge 0x443664
mov eax, edx
movzx eax, al
shl ax, 8
movzx esi, ax
movzx eax, cl
or esi, eax
shl esi, 0x10
cmp dword [ebp + 8], ebx
je 0x44368c
mov ecx, edi
call fcn.0043ea77
push 0x64
push ebx
mov ecx, edi
call fcn.0044959a
lea eax, [ebp - 8]
mov dword [ebp + 0xc], ebx
push eax
push dword [ebp + 8]
lea eax, [ebp + 0xc]
mov ecx, edi
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 5
push dword [edi + 0xac]
push esi
call fcn.00441f2a
mov ecx, edi
test eax, eax
jne 0x443720
or dword [edi + 8], 0xffffffff
call fcn.0043f98f
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x443708
mov ecx, 0x2af9
cmp ebx, ecx
jne 0x4436e6
push dword [ebp - 8]
mov eax, dword [ebp + 0xc]
add eax, 0x12c
push eax
push ecx
push edi
call fcn.00442cfd
add esp, 0x10
jmp 0x443708
mov ecx, dword [section..data]
push ebx
call fcn.004151db
mov ecx, dword [section..data]
push eax
push ebx
call fcn.004151a4
push eax
push ebx
mov ecx, edi
call fcn.00442e21
push 0x5cff78
push str.CInstallAction::PnPWaitAction
push 5
call fcn.00424dad
add esp, 0xc
xor eax, eax
jmp 0x443783
push ebx
push 0x64
call fcn.00449540
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xc8
call esi
push str.istdrv.debug.ini
push ebx
push str.WaitProgress
push str.Setup
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x443756
push 0xbb8
call esi
mov ecx, edi
call fcn.0043f98f
cmp dword [edi + 0xb0], ebx
je 0x44376c
mov dword [edi + 8], 0x64
push 0x5cff5c
push str.CInstallAction::PnPWaitAction
push 5
call fcn.00424dad
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x44378c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x5cff40
xor ebx, ebx
mov esi, ecx
push str.CInstallAction::PreFinishAction
push 5
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.00424dad
mov ecx, dword [ebp + 0xc]
add esp, 0xc
push 0x64
pop edx
test cx, cx
js 0x4437c2
cmp dx, cx
jge 0x4437c4
mov ecx, ebx
mov eax, dword [ebp + 0x10]
test ax, ax
js 0x4437d1
cmp dx, ax
jge 0x4437d3
mov eax, edx
movzx eax, al
shl ax, 8
movzx edi, ax
movzx eax, cl
or edi, eax
shl edi, 0x10
cmp dword [ebp + 8], ebx
je 0x4437fb
mov ecx, esi
call fcn.0043ea77
push 0x64
push ebx
mov ecx, esi
call fcn.0044959a
lea eax, [ebp - 4]
mov dword [ebp + 0xc], ebx
push eax
push dword [ebp + 8]
lea eax, [ebp + 0xc]
mov ecx, esi
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 8
push dword [esi + 0xac]
push edi
call fcn.00441f2a
mov ecx, esi
test eax, eax
jne 0x443845
or dword [esi + 8], 0xffffffff
call fcn.0043f98f
push 0x5cff78
push str.CInstallAction::PreFinishAction
push 5
call fcn.00424dad
add esp, 0xc
xor eax, eax
jmp 0x4438a8
push ebx
push 0x64
call fcn.00449540
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xc8
call edi
push str.istdrv.debug.ini
push ebx
push str.WaitProgress
push str.Setup
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x44387b
push 0xbb8
call edi
mov ecx, esi
call fcn.0043f98f
cmp dword [esi + 0xb0], ebx
je 0x443891
mov dword [esi + 8], 0x64
push 0x5cff5c
push str.CInstallAction::PreFinishAction
push 5
call fcn.00424dad
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4438b1
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x5cff40
xor ebx, ebx
mov edi, ecx
push str.CInstallAction::PrePnPWaitAction
push 5
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call fcn.00424dad
mov ecx, dword [ebp + 0xc]
add esp, 0xc
push 0x64
pop edx
test cx, cx
js 0x4438e7
cmp dx, cx
jge 0x4438e9
mov ecx, ebx
mov eax, dword [ebp + 0x10]
test ax, ax
js 0x4438f6
cmp dx, ax
jge 0x4438f8
mov eax, edx
movzx eax, al
shl ax, 8
movzx esi, ax
movzx eax, cl
or esi, eax
shl esi, 0x10
cmp dword [ebp + 8], ebx
je 0x443920
mov ecx, edi
call fcn.0043ea77
push 0x64
push ebx
mov ecx, edi
call fcn.0044959a
lea eax, [ebp - 8]
mov dword [ebp + 0xc], ebx
push eax
push dword [ebp + 8]
lea eax, [ebp + 0xc]
mov ecx, edi
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 7
push dword [edi + 0xac]
push esi
call fcn.00441f2a
mov ecx, edi
test eax, eax
jne 0x4439b4
or dword [edi + 8], 0xffffffff
call fcn.0043f98f
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x44399c
mov ecx, 0x2af9
cmp ebx, ecx
jne 0x44397a
push dword [ebp - 8]
mov eax, dword [ebp + 0xc]
add eax, 0x1f4
push eax
push ecx
push edi
call fcn.00442cfd
add esp, 0x10
jmp 0x44399c
mov ecx, dword [section..data]
push ebx
call fcn.004151db
mov ecx, dword [section..data]
push eax
push ebx
call fcn.004151a4
push eax
push ebx
mov ecx, edi
call fcn.00442e21
push 0x5cff78
push str.CInstallAction::PrePnPWaitAction
push 5
call fcn.00424dad
add esp, 0xc
xor eax, eax
jmp 0x443a17
push ebx
push 0x64
call fcn.00449540
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xc8
call esi
push str.istdrv.debug.ini
push ebx
push str.WaitProgress
push str.Setup
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x4439ea
push 0xbb8
call esi
mov ecx, edi
call fcn.0043f98f
cmp dword [edi + 0xb0], ebx
je 0x443a00
mov dword [edi + 8], 0x64
push 0x5cff5c
push str.CInstallAction::PrePnPWaitAction
push 5
call fcn.00424dad
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x44af58
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x637190]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x641b1c], 0
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0x20]
push esi
push edi
lea esi, [ebp + 8]
mov dword [ebp - 0x228], eax
lea edi, [ebp - 0x220]
mov dword [ebp - 0x22c], ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, 0x80004005
je 0x44b041
and dword [ebp - 0x224], 0
push str.Shell32.dll
call fcn.00405177
mov esi, eax
pop ecx
test esi, esi
jne 0x44afcd
push str.Shell32.dll_SAW_LoadLibrary_failed._n
push str.GetKnownFolderPath
push 4
call fcn.00424dad
add esp, 0xc
jmp 0x44b03a
push str.SHGetKnownFolderPath
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x44aff3
push str.SHGetKnownFolderPath_GetProcAddress_failed._n
push str.GetKnownFolderPath
push 4
call fcn.00424dad
add esp, 0xc
jmp 0x44b033
lea ecx, [ebp - 0x224]
push ecx
push dword [ebp - 0x228]
lea ecx, [ebp - 0x220]
push dword [ebp + 0x18]
push ecx
call eax
mov edi, eax
test edi, edi
jne 0x44b033
push dword [ebp - 0x224]
mov ecx, ebx
call fcn.00404bb9
cmp dword [ebp - 0x224], edi
je 0x44b033
push dword [ebp - 0x224]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
jmp 0x44b0f6
xor eax, eax
xor ebx, ebx
push 0x208
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
call fcn.0058e700
add esp, 0xc
mov dword [ebp - 0x224], 0xffff
lea eax, [ebp - 0x224]
lea esi, [ebp - 0x220]
push eax
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0044ad8b
add esp, 0x14
test eax, eax
jne 0x44b094
mov eax, 0x80070057
jmp 0x44b0f6
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.0044b11d
pop ecx
pop ecx
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 0x18]
push dword [ebp - 0x228]
push dword [ebp - 0x224]
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
jne 0x44b0f4
cmp word [ebp - 0x210], bx
je 0x44b0e1
lea eax, [ebp - 0x210]
push eax
call fcn.0058edd4
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x22c]
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.00404be0
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0058f6bb
mov esp, ebp
pop ebp
ret
Function at 0x457daf
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x637190]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0x5d56c0
push str.CLanguageSelector::GetMUIFallbackLangID
push 5
call fcn.00424dad
xor esi, esi
xor eax, eax
add esp, 0xc
mov word [ebp - 0x10], ax
mov dword [ebp - 0xe], esi
mov dword [ebp - 0xa], esi
mov dword [ebp - 0x14], esi
test edi, edi
je 0x457e4d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x457e4d
push edi
call fcn.00405177
mov edi, eax
pop ecx
test edi, edi
je 0x457e4d
push 5
lea eax, [ebp - 0x10]
push eax
push 2
push edi
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x457e2d
push 0x10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.005929f9
add esp, 0xc
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x5d56dc
push str.CLanguageSelector::GetMUIFallbackLangID
push 5
call fcn.00424dad
add esp, 0xc
mov ax, si
jmp 0x457e63
push 0x5d56f8
push str.CLanguageSelector::GetMUIFallbackLangID
push 5
call fcn.00424dad
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0058f6bb
mov esp, ebp
pop ebp
ret 4

Function at 0x45a8c1
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x637190]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, str.MS4SCRIPT::CompulsoryPnPFlagSet
push 0x5d60f0
push ebx
push 5
call fcn.00424dad
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x45a8f6
mov esi, dword [esi]
push edi
push 0x204
push esi
mov edi, 0x205
lea eax, [ebp - 0x81c]
push edi
push eax
call fcn.00591ddd
push 0
lea eax, [ebp - 0x81c]
push 0
push eax
call fcn.0046009f
add esp, 0x1c
mov esi, eax
lea eax, [ebp - 0x410]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push esi
lea eax, [ebp - 0x410]
push edi
push eax
call fcn.0046005a
add esp, 0xc
lea eax, [ebp - 0x410]
cmp dword [ebp + 8], 0
pop edi
je 0x45a962
push 0
push eax
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x45a97b
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45a97b
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x5d610c
push ebx
push 5
call fcn.00424dad
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop esi
pop ebx
call fcn.0058f6bb
mov esp, ebp
pop ebp
ret 8
Function at 0x45caa6
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push edi
push 0x5d6450
mov ebx, str.LoadSETUPAPI
push ebx
push 5
call fcn.00424dad
mov edi, dword [0x641a44]
add esp, 0xc
test edi, edi
jne 0x45cc2d
push str.setupapi.dll
call fcn.00405177
mov edi, eax
mov dword [esp], str.CFGMGR32.DLL
call fcn.00405177
mov dword [0x641a48], eax
pop ecx
test edi, edi
je 0x45cc2d
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5d6b18
push edi
call esi
push 0x5d61d4
push edi
mov dword [0x641a5c], eax
call esi
push 0x5d6b30
push edi
mov dword [0x641a60], eax
call esi
push 0x5d6b54
push edi
mov dword [0x641a64], eax
call esi
push 0x5d6274
push edi
mov dword [0x641a68], eax
call esi
push 0x5d6b6c
push edi
mov dword [0x641a6c], eax
call esi
push 0x5d6b88
push edi
mov dword [0x641a4c], eax
call esi
push 0x5d6b9c
push edi
mov dword [0x641a50], eax
call esi
push str.SetupFindNextLine
push edi
mov dword [0x641a70], eax
call esi
push str.SetupGetMultiSzFieldW
push edi
mov dword [0x641a74], eax
call esi
push str.SetupGetStringFieldW
push edi
mov dword [0x641a78], eax
call esi
push str.SetupFindFirstLineW
push edi
mov dword [0x641a7c], eax
call esi
push 0x5d6c08
push edi
mov dword [0x641a80], eax
call esi
push str.CMP_WaitNoPendingInstallEvents
push edi
mov dword [0x641a84], eax
call esi
push str.CM_Reenumerate_DevNode
push dword [0x641a48]
mov dword [0x641a54], eax
call esi
cmp dword [0x641a5c], 0
mov dword [0x641a58], eax
pop esi
je 0x45cc24
cmp dword [0x641a60], 0
je 0x45cc24
cmp dword [0x641a64], 0
je 0x45cc24
cmp dword [0x641a68], 0
je 0x45cc24
cmp dword [0x641a6c], 0
je 0x45cc24
cmp dword [0x641a70], 0
je 0x45cc24
cmp dword [0x641a74], 0
je 0x45cc24
cmp dword [0x641a78], 0
je 0x45cc24
cmp dword [0x641a7c], 0
je 0x45cc24
cmp dword [0x641a80], 0
je 0x45cc24
cmp dword [0x641a84], 0
jne 0x45cc2d
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
push 0x5d646c
push ebx
push 5
mov dword [0x641a44], edi
call fcn.00424dad
mov eax, dword [0x641a44]
add esp, 0xc
pop edi
pop ebx
ret
Function at 0x45cdbe
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push 0x5d6450
push str.OpenReg9x
push 5
call fcn.00424dad
add esp, 0xc
lea eax, [ebp - 4]
xor edi, edi
mov ebx, edi
push eax
push 0x20019
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45ce68
push esi
mov esi, dword [ebp + 0x18]
push esi
push edi
mov dword [esi], edi
mov edi, dword [ebp + 0x14]
push edi
push eax
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [edi], ebx
jbe 0x45ce2b
cmp dword [edi], 2
jbe 0x45ce24
cmp dword [edi], 7
jne 0x45ce2b
mov eax, dword [esi]
lea edi, [eax + 4]
jmp 0x45ce2f
mov eax, dword [esi]
lea edi, [eax + 2]
jmp 0x45ce2f
mov eax, dword [esi]
mov edi, eax
cmp edi, eax
jb 0x45ce5e
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x45ce5e
push esi
push ebx
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [esi], edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
push 0x5d646c
push str.OpenReg9x
push 5
call fcn.00424dad
add esp, 0xc
mov eax, ebx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45f108
Capabilities:
Create thread
Resume thread

Disassembly:
push 4
mov eax, 0x5b3bc1
call fcn.0058f75f
mov esi, ecx
push 0x5d6c64
push str.MS4SCRIPT::Initialize
push 5
mov dword [ebp - 4], 1
call fcn.00424dad
lea eax, [ebp + 8]
add esp, 0xc
xor bl, bl
cmp esi, eax
je 0x45f146
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00404b26
mov eax, dword [ebp + 0x20]
lea ecx, [esi + 0x50]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x24]
mov dword [esi + 0x1c], eax
lea eax, [ebp + 0x28]
cmp ecx, eax
je 0x45f166
push 0xffffffffffffffff
push 0
push eax
call fcn.00404b26
lea eax, [ebp - 0x10]
xor edi, edi
push eax
push 4
push esi
push 0x45f716
push edi
push edi
call fcn.00593eef
mov dword [esi + 0x20], eax
add esp, 0x18
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x24], eax
cmp dword [esi + 0x20], edi
je 0x45f19d
cmp dword [esi + 0x20], 0xffffffff
je 0x45f19d
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov bl, 1
push 0x5d6c80
push str.MS4SCRIPT::Initialize
push 5
call fcn.00424dad
add esp, 0xc
lea ecx, [ebp + 8]
push edi
push 1
call fcn.00404970
push edi
push 1
lea ecx, [ebp + 0x28]
call fcn.00404970
mov al, bl
call fcn.0058f72d
ret 0x38

Function at 0x460155
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x637190]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
inc eax
cmp dword [ebp - 0x108], eax
jne 0x46019c
cmp dword [ebp - 0x114], 4
jne 0x46019c
cmp dword [ebp - 0x110], 0xa
jae 0x46019e
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058f6bb
mov esp, ebp
pop ebp
ret
Function at 0x46427c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 4], ebx
call fcn.0046433a
test eax, eax
je 0x46430e
push edi
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esi + 4]
call ebx
mov eax, dword [ebp - 4]
lea edi, [eax + 2]
test eax, eax
je 0x464305
cmp edi, eax
jbe 0x464305
cmp dword [esi + 0x20], 0
je 0x4642cc
push dword [esi + 0x20]
call fcn.0045a8a4
and dword [esi + 0x20], 0
pop ecx
push 0x292
push 0x5d8abc
push edi
call fcn.0045a88d
add esp, 0xc
mov dword [esi + 0x20], eax
test eax, eax
je 0x46430d
push edi
push 0
push eax
call fcn.0058e700
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [esi + 0x20]
push 0
push 0
push dword [ebp + 8]
push dword [esi + 4]
call ebx
mov eax, dword [esi + 0x20]
shr edi, 1
mov dword [esi + 0x24], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x464358
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x637190]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x214], eax
push edi
xor eax, eax
mov ebx, ecx
mov word [ebp - 0x210], ax
mov edi, esi
push 0x105
lea eax, [ebp - 0x210]
push eax
push esi
jmp 0x4643c1
push 0x105
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
call fcn.00592342
add esp, 0xc
test eax, eax
je 0x4643d0
push 0x105
lea eax, [ebp - 0x210]
inc edi
push eax
push edi
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x464395
jmp 0x4643d3
xor esi, esi
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0058f6bb
mov esp, ebp
pop ebp
ret 4