joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402c04
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x28
mov eax, 0x4536ec
call fcn.0043d5d1
lea ecx, [ebp - 0x1c]
call fcn.0042dbbb
and dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
call fcn.00402e30
or dword [ebp - 4], 0xffffffff
call fcn.0042dbd1
and dword [ebp - 0x18], 0
push 0x21
push 1
mov edi, 0x400000
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x402d07
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x402cfe
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
xor ebx, ebx
cmp eax, ebx
je 0x402d07
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
je 0x402d07
mov dword [ebp - 4], 3
shr esi, 1
lea edi, [eax + esi*2]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ebx
mov esi, eax
mov dword [ebp - 0x28], esi
cmp esi, edi
je 0x402cca
cmp word [esi], bx
jne 0x402cc6
cmp dword [ebp - 0x20], ebx
je 0x402cc0
push dword [ebp - 0x20]
push dword [ebp + 8]
mov ecx, dword [ebp - 0x24]
call fcn.00402d9a
lea eax, [esi + 2]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ebx
jmp 0x402cc6
lea eax, [esi + 2]
mov dword [ebp - 0x20], eax
inc esi
inc esi
jmp 0x402c96
or dword [ebp - 4], 0xffffffff
jmp 0x402d05
mov dword [ebp - 0x18], 1
jmp 0x402d0f
call fcn.004033f2
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
jmp 0x402d32
call fcn.0043d676
ret 4
Function at 0x406703
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406766
cmp dword [ebp + 0xc], 1
je 0x40673f
cmp dword [ebp + 0xc], 2
je 0x40673f
push 0xd
pop eax
jmp 0x406766
test edi, edi
mov eax, dword [ebp - 4]
je 0x406760
test eax, eax
je 0x40675c
test al, 1
jne 0x40673a
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x406760
jmp 0x40673a
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x40a439
Capabilities:
Terminate process

Disassembly:
push 0xc
mov eax, 0x4552ab
call fcn.0043d59e
mov eax, dword [esi + 0xa0]
cmp eax, 1
jge 0x40a46f
push 0xbd2
lea eax, [ebp - 0x18]
push eax
call fcn.00404814
and dword [ebp - 4], 0
lea eax, [ebp - 0x18]
mov ecx, 0x475af8
jmp fcn.0040f46a
lea edi, [esi + 0x98]
dec eax
mov ecx, edi
call fcn.00409a97
mov ebx, str.CFinishedPage
push ebx
mov ecx, eax
call fcn.00401e2b
test eax, eax
je 0x40a499
push ebx
push dword [edi + 8]
mov ecx, edi
call fcn.00432af1
mov eax, dword [esi + 0xa0]
dec eax
lea ecx, [esi + 0x90]
cmp dword [ecx], eax
je 0x40a4cc
mov dword [ecx], eax
mov ecx, edi
call fcn.00409a97
push dword [eax]
call fcn.004389c4
pop ecx
push eax
push 0
push 0x8002
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
call fcn.0043d676
ret

Function at 0x40a4d2
Capabilities:
Terminate process

Disassembly:
push 0xc
mov eax, 0x4552ab
call fcn.0043d59e
lea esi, [edi + 0xa0]
mov eax, dword [esi]
cmp eax, 1
jne 0x40a4fa
cmp dword [edi + 0x90], 0
jne 0x40a4fa
push edi
call fcn.0040a647
mov esi, dword [esi]
cmp esi, 1
jge 0x40a520
push 0xbd2
lea eax, [ebp - 0x18]
push eax
call fcn.00404814
and dword [ebp - 4], 0
lea eax, [ebp - 0x18]
mov ecx, 0x475af8
jmp fcn.0040f46a
dec esi
cmp dword [edi + 0x90], esi
je 0x40a53b
push 0
push 0
push 0x8002
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
call fcn.0043d676
ret
Function at 0x40da9e
Capabilities:
Move file

Disassembly:
push 0x24
mov eax, 0x455178
call fcn.0043d5d1
lea ecx, [ebp - 0x30]
call fcn.0042dbbb
and dword [ebp - 4], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.004061fb
mov byte [ebp - 4], 2
lea eax, [ebp - 0x14]
push eax
call fcn.004098c0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x18]
push eax
push 0x45f860
lea ecx, [ebp - 0x14]
call fcn.00414cb7
pop ecx
pop ecx
mov dword [ebp - 0x1c], eax
test eax, eax
jge 0x40db1a
mov byte [ebp - 4], 2
lea eax, [ebp - 0x14]
push eax
call fcn.00416f32
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00406225
or dword [ebp - 4], 0xffffffff
call fcn.0042dbd1
mov eax, dword [ebp - 0x1c]
call fcn.0043d676
ret 0x14
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x14]
mov ecx, dword [ebp + 0x14]
call fcn.0041a9f0
mov dword [ebp - 0x1c], eax
test eax, eax
jl 0x40daed
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40db43
and dword [ebp - 0x14], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x18]
push eax
mov esi, dword [ebp + 0x18]
mov ecx, esi
call fcn.00401adf
push str..exe
mov ecx, esi
call fcn.00409c01
push dword [esi]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x40daed
call fcn.004033f2
mov dword [ebp - 0x1c], eax
jmp 0x40daed
Function at 0x40ee81
Capabilities:
Get common file path
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [0x470d08]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.Calling_SetDllDirectory_n
call ebx
push 0x45d0fc
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40eee1
push 0x800
call eax
test eax, eax
jne 0x40eeda
push str.Failed_to_SetDefaultDlLDirectories_n
jmp 0x40eee6
push str.Succeeded_to_SetDefaultDlLDirectories_n
jmp 0x40eee6
push str.Failed_to_load_SetDefaultDlLDirectories_n
call ebx
push 0x104
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x40f05a
push esi
push edi
lea esi, [ebp + eax*2 - 0x428]
mov edi, 0x103
sub edi, eax
mov word [esi], 0x5c
inc esi
inc esi
and dword [ebp - 0x42c], 0
mov dword [ebp - 0x430], edi
mov dword [ebp - 0x434], esi
mov dword [ebp - 0x468], str.BCRYPT.DLL
mov dword [ebp - 0x464], str.RSAENH.DLL
mov dword [ebp - 0x460], str.CRYPT32.DLL
mov dword [ebp - 0x45c], str.MSASN1.DLL
mov dword [ebp - 0x458], str.USERENV.DLL
mov dword [ebp - 0x454], str.WINTRUST.DLL
mov dword [ebp - 0x450], str.GDIPLUS.DLL
mov dword [ebp - 0x44c], str.MSI.DLL
mov dword [ebp - 0x448], str.OLEACC.DLL
mov dword [ebp - 0x444], str.OLEDLG.DLL
mov dword [ebp - 0x440], str.RICHED20.DLL
mov dword [ebp - 0x43c], str.VERSION.DLL
mov dword [ebp - 0x438], str.WINHTTP.DLL
mov eax, dword [ebp - 0x42c]
push dword [ebp + eax*4 - 0x468]
push edi
push esi
call fcn.004391ef
add esp, 0xc
test eax, eax
jne 0x40f03e
mov esi, str.Loading
lea edi, [ebp - 0x220]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x20a
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x20e]
push eax
movsw word es:[edi], word [esi]
call fcn.00437fa0
lea eax, [ebp - 0x428]
push eax
mov esi, 0x10e
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.0043ae6a
push str._n012
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.0043ae6a
add esp, 0x24
lea eax, [ebp - 0x220]
push eax
call ebx
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [ebp - 0x434]
mov edi, dword [ebp - 0x430]
jmp 0x40f045
push str.Failed_to_append_filename_on_system_path_n
call ebx
inc dword [ebp - 0x42c]
cmp dword [ebp - 0x42c], 0xd
jb 0x40efae
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00437f1d
leave
ret
Function at 0x40f09e
Capabilities:
Set registry value

Disassembly:
push 0x1c
mov eax, 0x455395
call fcn.0043d607
cmp byte [ebx + 0xcc], 0
jne 0x40f1e3
mov eax, dword [ebx + 0xa8]
xor esi, esi
cmp eax, esi
je 0x40f0ea
cmp dword [ebx + 0xa4], esi
mov edx, dword [ebx + 0x19c]
push esi
je 0x40f0d9
push str.InstallBroken
jmp 0x40f0de
push str.InstallCancelled
call fcn.004061a3
pop ecx
pop ecx
jmp 0x40f1dc
lea ecx, [ebp - 0x24]
call fcn.004061fb
mov dword [ebp - 4], esi
push dword [ebx + 0xbc]
lea eax, [ebp - 0x24]
push str.SOFTWARESlimWare_Utilities_Inc_sRegistration
push eax
call fcn.0040241f
add esp, 0xc
mov dword [ebp - 0x28], esi
mov byte [ebp - 4], 1
push dword [ebp - 0x24]
lea edi, [ebp - 0x28]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00409a52
cmp eax, esi
jne 0x40f197
push str.LI_UPDATE
mov ecx, 0x475c9c
call fcn.00418a70
test eax, eax
je 0x40f151
lea eax, [ebx + 0xe0]
push 0x45c9c4
push eax
call fcn.00410062
test eax, eax
pop ecx
pop ecx
je 0x40f197
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
push 0x10
lea eax, [ebp - 0x20]
push eax
push 3
push esi
push str.InstallationID
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40f197
lea eax, [ebx + 0xe0]
lea esi, [ebp - 0x20]
mov edi, eax
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 ecx, dword [0x475c98]
test ecx, ecx
je 0x40f1af
push eax
call fcn.00413f7e
xor esi, esi
mov ecx, dword [0x475c98]
cmp ecx, esi
je 0x40f1b1
push 1
push str.InstallerFinished
call fcn.0041401c
jmp 0x40f1b1
xor esi, esi
mov eax, dword [ebx + 0x19c]
push esi
push str.InstallFinished
call fcn.00406190
pop ecx
pop ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0040676a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00406225
mov byte [ebx + 0xcc], 1
call fcn.0043d68a
ret

Function at 0x40f1e9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.00431ab6
push dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x40f20a
xor eax, eax
jmp 0x40f21d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40f206
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
pop esi
pop ebp
ret 8

Function at 0x40f46a
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, eax
test esi, esi
push edi
je 0x40f4a1
mov ebx, ecx
add ebx, 0x19c
mov edi, dword [ebx]
test edi, edi
je 0x40f496
call fcn.00409ce7
mov edx, dword [ebx]
push 0
push str.InstallBroken
call fcn.004061a3
pop ecx
pop ecx
mov eax, dword [esi]
push 0
push 0
mov ecx, esi
call dword [eax + 0x14]
push 1
call fcn.0043b174
int3
Function at 0x410149
Capabilities:
Delete file

Disassembly:
push 4
mov eax, 0x454d08
call fcn.0043d59e
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CProgressPage.0
mov dword [ebp - 4], 3
xor edi, edi
cmp dword [esi + 0x118], edi
je 0x410191
lea ebx, [esi + 0x110]
mov eax, edi
mov ecx, ebx
call fcn.00409a97
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc edi
cmp edi, dword [esi + 0x118]
jne 0x410177
mov byte [ebp - 4], 2
lea ecx, [esi + 0x178]
call fcn.00431b9c
mov byte [ebp - 4], 1
lea ecx, [esi + 0x124]
call fcn.00431b9c
mov byte [ebp - 4], 0
lea ecx, [esi + 0x110]
call fcn.0043298a
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00411904
call fcn.0043d676
ret

Function at 0x410703
Capabilities:
Delete file
Move file

Disassembly:
push 4
mov eax, 0x45257d
call fcn.0043d59e
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.RememberTempFile.0
mov dword [ebp - 4], 1
lea esi, [edi + 4]
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x410745
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x410745
mov eax, dword [esi]
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.00406225
or dword [ebp - 4], 0xffffffff
mov dword [edi], vtable.CProgressPageProxy::Caller.0
call fcn.0043d676
ret
Function at 0x414cb7
Capabilities:
Get common file path

Disassembly:
push 0x28
mov eax, 0x452d33
call fcn.0043d5d1
mov edi, ecx
lea ecx, [ebp - 0x34]
call fcn.0042dbbb
and dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0xc]
call fcn.004016c4
and dword [edi], 0
lea ecx, [ebp - 0x14]
call fcn.004061fb
mov byte [ebp - 4], 2
mov esi, 0x105
push esi
lea ecx, [ebp - 0x14]
call fcn.00409bde
mov dword [ebp - 0x20], eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x414d2d
call fcn.004033f2
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00406225
or dword [ebp - 4], 0xffffffff
call fcn.0042dbd1
mov eax, esi
call fcn.0043d676
ret
or ebx, 0xffffffff
push ebx
lea ecx, [ebp - 0x14]
call fcn.004054ab
lea ecx, [ebp - 0x18]
call fcn.004061fb
mov byte [ebp - 4], 3
push esi
lea ecx, [ebp - 0x18]
call fcn.00409bde
mov esi, eax
push esi
push 0
push dword [ebp + 8]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x414d87
call fcn.004033f2
mov esi, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00406225
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00406225
mov dword [ebp - 4], ebx
jmp 0x414d20
push ebx
lea ecx, [ebp - 0x18]
call fcn.004054ab
lea eax, [ebp - 0x1c]
push eax
call fcn.004098c0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x1c]
push eax
push 0
push 1
push 0x80
push 0x1041
push esi
call dword [sym.imp.SHLWAPI.dll_SHCreateStreamOnFileEx]
mov dword [ebp - 0x24], eax
test eax, eax
jge 0x414df2
mov byte [ebp - 4], 3
lea eax, [ebp - 0x1c]
push eax
call fcn.00416f32
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00406225
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00406225
mov dword [ebp - 4], ebx
call fcn.0042dbd1
mov eax, dword [ebp - 0x24]
jmp 0x414d27
mov eax, dword [ebp - 0x1c]
mov dword [edi], eax
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
push esi
mov ecx, dword [ebp + 0xc]
call fcn.0040160e
mov byte [ebp - 4], 3
lea eax, [ebp - 0x1c]
push eax
call fcn.00416f32
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00406225
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00406225
mov dword [ebp - 4], ebx
call fcn.0042dbd1
xor eax, eax
jmp 0x414d27

Function at 0x414e6e
Capabilities:
Accept command line arguments

Disassembly:
push 0xc
mov eax, 0x45240c
call fcn.0043d5d1
mov edi, ecx
call fcn.004016c4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
jne 0x414e9e
mov eax, 0x80004005
jmp 0x414ed8
and dword [ebp - 4], 0
push dword [esi]
mov ecx, edi
call fcn.0040160e
or dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
jmp 0x414ed8
call fcn.0043d676
ret
Function at 0x414ede
Capabilities:
Create process on windows

Disassembly:
push 0x58
mov eax, 0x452cf9
call fcn.0043d59e
lea ecx, [ebp - 0x10]
call fcn.004061fb
xor edi, edi
mov dword [ebp - 4], edi
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.00414e6e
xor ecx, ecx
test eax, eax
setge cl
push 0x40
lea eax, [ebp - 0x60]
push edi
push eax
mov dword [ebp - 0x64], 0x44
mov esi, ecx
call fcn.00437fa0
mov ecx, dword [ebp + 8]
add esp, 0x10
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push edi
push edi
push 0x1000000
push edi
neg esi
push edi
sbb esi, esi
and esi, dword [ebp - 0x10]
push edi
call fcn.0040da04
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
mov ebx, eax
call fcn.004054ab
cmp esi, edi
jne 0x414f76
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00406225
mov eax, edi
call fcn.0043d676
ret
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp - 0x20]
jmp 0x414f62
Function at 0x4153c7
Capabilities:
Get installed programs
Query or enumerate registry key

Disassembly:
push 0x240
mov eax, 0x453a3c
call fcn.0043d607
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x248], ebx
xor esi, esi
inc esi
mov dword [ebp - 4], esi
lea edi, [ebp + 0xc]
call fcn.0040e8ff
mov ecx, dword [ebp - 0x22c]
push 0x45d0fc
call fcn.0040151b
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x248], esi
call fcn.0040151b
mov byte [ebp - 4], 2
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x21c]
push eax
push 0x20019
push ebx
push dword [ebp - 0x230]
push reloc.OLEAUT32.dll_SysReAllocString
call esi
cmp eax, ebx
jne 0x4155e3
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x224]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [ebp - 0x224], ebx
je 0x4155e3
mov dword [ebp - 0x228], ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x228]
mov dword [ebp - 0x224], 0x104
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebx
mov dword [ebp - 0x23c], eax
jne 0x4155c7
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x238]
call fcn.0040151b
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x220]
call fcn.004061fb
mov byte [ebp - 4], 4
lea eax, [ebp - 0x234]
push eax
push 0xf003f
push ebx
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
call esi
cmp eax, ebx
jne 0x4155a9
push ecx
mov ecx, esp
mov dword [ebp - 0x244], esp
push str.DisplayName
call fcn.0040151b
mov byte [ebp - 4], 5
push dword [ebp - 0x234]
mov byte [ebp - 4], 4
lea edi, [ebp - 0x24c]
call fcn.0041532c
pop ecx
pop ecx
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x220]
call fcn.00401af4
mov byte [ebp - 4], 4
mov ecx, edi
call fcn.00406225
lea edi, [ebp - 0x220]
call fcn.0040e8ff
push dword [ebp + 0xc]
mov ecx, edi
call fcn.00401e2b
test eax, eax
jne 0x4155a9
push ecx
mov ecx, esp
mov dword [ebp - 0x244], esp
push str.UninstallString
call fcn.0040151b
mov byte [ebp - 4], 7
push dword [ebp - 0x234]
mov byte [ebp - 4], 4
lea edi, [ebp - 0x240]
call fcn.0041532c
pop ecx
pop ecx
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x22c]
push eax
call fcn.00401adf
mov byte [ebp - 4], 4
mov ecx, edi
call fcn.00406225
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x220]
call fcn.00406225
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x238]
call fcn.00406225
inc dword [ebp - 0x228]
cmp dword [ebp - 0x23c], ebx
mov dword [ebp - 0x224], 0x104
je 0x415479
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.00406225
mov byte [ebp - 4], bl
lea ecx, [ebp + 0xc]
call fcn.00406225
mov eax, dword [ebp - 0x22c]
call fcn.0043d68a
ret
Function at 0x415615
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x22c
mov eax, 0x4546cf
call fcn.0043d607
xor esi, esi
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [ebp - 0x21c], esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x224]
push eax
push 0x20019
push esi
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x224], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x41572a
lea ecx, [ebp - 0x21c]
call fcn.0040676a
cmp eax, esi
mov ecx, dword [ebp - 0x224]
mov dword [ebp - 0x21c], ecx
jne 0x41572a
lea eax, [ebp - 0x230]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
push ecx
mov dword [ebp - 0x220], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x228], 1
jmp 0x415726
cmp word [ebp - 0x218], 0x76
jne 0x4156ec
lea eax, [ebp - 0x216]
push eax
lea ebx, [ebp - 0x230]
call fcn.004175dc
mov ecx, dword [ebp - 0x22c]
cmp ecx, dword [edi + 4]
jb 0x4156ec
mov eax, dword [ebp - 0x230]
ja 0x4156e7
cmp eax, dword [edi]
jbe 0x4156ec
mov dword [edi], eax
mov dword [edi + 4], ecx
lea eax, [ebp - 0x238]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x228]
mov dword [ebp - 0x220], 0x104
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc dword [ebp - 0x228]
cmp eax, esi
je 0x4156b4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.0040676a
mov eax, edi
call fcn.0043d68a
ret
Function at 0x415741
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x22c
mov eax, 0x45469c
call fcn.0043d607
xor ebx, ebx
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP
lea ecx, [ebp - 0x230]
mov byte [ebp - 0x219], bl
call fcn.0040151b
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x22c]
push eax
push 0x20019
push ebx
push dword [ebp - 0x230]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x41587d
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x224]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [ebp - 0x224], ebx
je 0x41587d
mov dword [ebp - 0x228], ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x228]
mov dword [ebp - 0x224], 0x104
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
cmp edi, ebx
jne 0x415865
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x220]
call fcn.0040151b
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax - 0xc]
cmp ecx, ebx
jle 0x415857
movzx eax, word [eax]
cmp ax, 0x76
jne 0x415857
push 0x76
lea eax, [ebp - 0x220]
push eax
call fcn.00412820
push dword [ebp - 0x220]
lea ebx, [ebp - 0x238]
call fcn.004175dc
mov eax, dword [ebp - 0x234]
shr eax, 0x10
xor ebx, ebx
cmp ax, 2
jne 0x415857
mov byte [ebp - 0x219], 1
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x220]
call fcn.00406225
inc dword [ebp - 0x228]
cmp edi, ebx
mov dword [ebp - 0x224], 0x104
je 0x4157c0
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00406225
mov al, byte [ebp - 0x219]
call fcn.0043d68a
ret
Function at 0x415917
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push 0x220
mov eax, 0x452c44
call fcn.0043d607
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x228], edi
xor esi, esi
inc esi
mov dword [ebp - 4], esi
mov ecx, ebx
call fcn.004061fb
mov dword [ebp - 0x228], esi
call fcn.0041520c
test al, al
je 0x415a3c
lea eax, [ebp + 8]
push eax
mov ecx, ebx
call fcn.00401af4
push str.SOFTWAREMicrosoftWindowsCurrentVersion
lea ecx, [ebp - 0x224]
call fcn.0040151b
mov byte [ebp - 4], 2
mov dword [ebp - 0x220], edi
mov byte [ebp - 4], 3
lea eax, [ebp - 0x21c]
push eax
push 0x20119
push edi
push dword [ebp - 0x224]
mov dword [ebp - 0x21c], edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x415a1c
lea ecx, [ebp - 0x220]
call fcn.0040676a
cmp eax, edi
mov ecx, dword [ebp - 0x21c]
mov dword [ebp - 0x220], ecx
jne 0x415a1c
push str.ProgramFilesDir
lea eax, [ebp - 0x220]
push eax
lea esi, [ebp - 0x21c]
lea edi, [ebp - 0x218]
mov dword [ebp - 0x21c], 0x104
call fcn.00406703
test eax, eax
jne 0x415a1c
mov eax, edi
push eax
lea ecx, [ebp - 0x21c]
call fcn.0040151b
mov byte [ebp - 4], 4
push dword [eax]
push str._ProgramFiles_
push ebx
call fcn.004096ce
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x21c]
call fcn.00406225
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x220]
call fcn.0040676a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x224]
call fcn.00406225
xor edi, edi
mov eax, dword [ebx]
cmp dword [eax - 0xc], edi
je 0x415a4e
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x415a70
mov esi, dword [ebp + 8]
mov eax, 0x3fff
push eax
push eax
mov ecx, ebx
call fcn.00409bde
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0xffffffffffffffff
mov ecx, ebx
call fcn.004054ab
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00406225
mov eax, ebx
call fcn.0043d68a
ret