joyce8/EMBER2024-capa huggingface dataset:
Function at 0x550400
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5900f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [0x591444]
push 0
lea ecx, [esp + 0x20]
call fcn.00587e9c
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0054fd60
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00587dca
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0058468b
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0058468b
push 1
push 0
push 0
mov ecx, esi
call fcn.00584633
push 1
push 0
push 1
mov ecx, esi
call fcn.00584633
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00587f0e
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x550580
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x590118
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00587e9c
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0054fd60
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00587dca
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [0x591444]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x550644
cmp dword [esp + 0x40], 1
jne 0x550642
cmp ecx, eax
jge 0x550644
mov eax, ecx
cmp eax, 0xc8
jge 0x550650
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00550400
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [0x591448]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00587f0e
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x550e40
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5901c3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00582aab
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x771bd8
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x771b20
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x59114c]
push eax
mov ecx, edi
call fcn.00588144
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0058979d
test eax, eax
je 0x550f5c
mov ecx, dword [esp + 0x3c]
call fcn.00588171
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x59141c]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x550f20
push edi
mov ecx, esi
call fcn.005857d7
mov ecx, esi
call fcn.00551100
cmp dword [esp + 0x38], 1
jne 0x550f55
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00585912
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x553150
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x553183
push esi
call fcn.00561510
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x55317c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x553209
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x5531f2
mov eax, dword [esi + 8]
test eax, eax
je 0x5531a7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x5531ee
cmp eax, 2
je 0x5531f2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x55319a
cmp eax, 3
je 0x5531cd
cmp eax, 1
jne 0x55319a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x55319a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x55319a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00553230
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x553218
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00553230
add esp, 4
pop esi
ret
Function at 0x40280f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x28
mov eax, 0x452976
call fcn.0043c9f3
lea ecx, [ebp - 0x1c]
call fcn.0042c2a8
and dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
call fcn.00402a3b
or dword [ebp - 4], 0xffffffff
call fcn.0042c2be
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 0x402912
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x402909
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
xor ebx, ebx
cmp eax, ebx
je 0x402912
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
je 0x402912
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 0x4028d5
cmp word [esi], bx
jne 0x4028d1
cmp dword [ebp - 0x20], ebx
je 0x4028cb
push dword [ebp - 0x20]
push dword [ebp + 8]
mov ecx, dword [ebp - 0x24]
call fcn.004029a5
lea eax, [esi + 2]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ebx
jmp 0x4028d1
lea eax, [esi + 2]
mov dword [ebp - 0x20], eax
inc esi
inc esi
jmp 0x4028a1
or dword [ebp - 4], 0xffffffff
jmp 0x402910
mov dword [ebp - 0x18], 1
jmp 0x40291a
call fcn.00403063
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
jmp 0x40293d
call fcn.0043ca98
ret 4
Function at 0x40c4f6
Capabilities:
Move file

Disassembly:
push 0x24
mov eax, 0x4544e0
call fcn.0043c9f3
lea ecx, [ebp - 0x30]
call fcn.0042c2a8
and dword [ebp - 4], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.0041611a
mov byte [ebp - 4], 2
lea eax, [ebp - 0x14]
push eax
call fcn.00408403
mov byte [ebp - 4], 3
lea eax, [ebp - 0x18]
push eax
push 0x45dd10
lea ecx, [ebp - 0x14]
call fcn.00413841
pop ecx
pop ecx
mov dword [ebp - 0x1c], eax
test eax, eax
jge 0x40c572
mov byte [ebp - 4], 2
lea eax, [ebp - 0x14]
push eax
call fcn.00414e77
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00410215
or dword [ebp - 4], 0xffffffff
call fcn.0042c2be
mov eax, dword [ebp - 0x1c]
call fcn.0043ca98
ret 0x14
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x14]
mov ecx, dword [ebp + 0x14]
call fcn.00419e40
mov dword [ebp - 0x1c], eax
test eax, eax
jl 0x40c545
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40c59b
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.00401aaf
push str..exe
mov ecx, esi
call fcn.004086b1
push dword [esi]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x40c545
call fcn.00403063
mov dword [ebp - 0x1c], eax
jmp 0x40c545
Function at 0x40d927
Capabilities:
Get common file path
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [0x46fd08]
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 0x45be5c
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 0x40d987
push 0x800
call eax
test eax, eax
jne 0x40d980
push str.Failed_to_SetDefaultDlLDirectories_n
jmp 0x40d98c
push str.Succeeded_to_SetDefaultDlLDirectories_n
jmp 0x40d98c
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 0x40db00
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.0043a701
add esp, 0xc
test eax, eax
jne 0x40dae4
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.004379c0
lea eax, [ebp - 0x428]
push eax
mov esi, 0x10e
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.0043a687
push 0x45e158
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.0043a687
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 0x40daeb
push str.Failed_to_append_filename_on_system_path_n
call ebx
inc dword [ebp - 0x42c]
cmp dword [ebp - 0x42c], 0xd
jb 0x40da54
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00436e4b
leave
ret
Function at 0x40db44
Capabilities:
Set registry value

Disassembly:
push 0x1c
mov eax, 0x4545ed
call fcn.0043ca29
cmp byte [ebx + 0xc8], 0
jne 0x40dc4f
mov eax, dword [ebx + 0xa8]
xor esi, esi
cmp eax, esi
jne 0x40dc48
lea ecx, [ebp - 0x24]
call fcn.0041611a
mov dword [ebp - 4], esi
push dword [ebx + 0xb8]
lea eax, [ebp - 0x24]
push str.SOFTWARESlimWare_Utilities_Inc_sRegistration
push eax
call fcn.00401fc9
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.004085f0
cmp eax, esi
jne 0x40dc18
push str.LI_UPDATE
mov ecx, 0x474b54
call fcn.004179d0
test eax, eax
je 0x40dbd4
lea eax, [ebx + 0xdc]
push 0x45b9cc
push eax
call fcn.0040ee5f
test eax, eax
pop ecx
pop ecx
je 0x40dc18
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 0x40dc18
lea eax, [ebx + 0xdc]
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 [0x474b50]
test ecx, ecx
je 0x40dc30
push eax
call fcn.00412fc8
mov ecx, dword [0x474b50]
test ecx, ecx
je 0x40dc30
push 0
push 1
push str.InstallerFinished
call fcn.00413066
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0040862c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00410215
mov byte [ebx + 0xc8], 1
call fcn.0043caac
ret

Function at 0x40dc55
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.00431098
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 0x40dc76
xor eax, eax
jmp 0x40dc89
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40dc72
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
pop esi
pop ebp
ret 8
Function at 0x40edf8
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 0x40ee5b
cmp dword [ebp + 0xc], 1
je 0x40ee34
cmp dword [ebp + 0xc], 2
je 0x40ee34
push 0xd
pop eax
jmp 0x40ee5b
test edi, edi
mov eax, dword [ebp - 4]
je 0x40ee55
test eax, eax
je 0x40ee51
test al, 1
jne 0x40ee2f
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x40ee55
jmp 0x40ee2f
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x40ef46
Capabilities:
Delete file

Disassembly:
push 4
mov eax, 0x453fc9
call fcn.0043c9c0
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 0x40ef8e
lea ebx, [esi + 0x110]
mov eax, edi
mov ecx, ebx
call fcn.00408651
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc edi
cmp edi, dword [esi + 0x118]
jne 0x40ef74
mov byte [ebp - 4], 2
lea ecx, [esi + 0x178]
call fcn.0043117e
mov byte [ebp - 4], 1
lea ecx, [esi + 0x124]
call fcn.0043117e
mov byte [ebp - 4], 0
lea ecx, [esi + 0x110]
call fcn.00431f6c
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00410737
call fcn.0043ca98
ret

Function at 0x40f509
Capabilities:
Delete file
Move file

Disassembly:
push 4
mov eax, 0x451998
call fcn.0043c9c0
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 0x40f54b
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40f54b
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.00410215
or dword [ebp - 4], 0xffffffff
mov dword [edi], vtable.CProgressPageProxy::Caller.0
call fcn.0043ca98
ret
Function at 0x413841
Capabilities:
Get common file path

Disassembly:
push 0x28
mov eax, 0x4521be
call fcn.0043c9f3
mov edi, ecx
lea ecx, [ebp - 0x34]
call fcn.0042c2a8
and dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0xc]
call fcn.004016db
and dword [edi], 0
lea ecx, [ebp - 0x14]
call fcn.0041611a
mov byte [ebp - 4], 2
mov esi, 0x105
push esi
lea ecx, [ebp - 0x14]
call fcn.0040c4d3
mov dword [ebp - 0x20], eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4138b7
call fcn.00403063
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00410215
or dword [ebp - 4], 0xffffffff
call fcn.0042c2be
mov eax, esi
call fcn.0043ca98
ret
or ebx, 0xffffffff
push ebx
lea ecx, [ebp - 0x14]
call fcn.004052d6
lea ecx, [ebp - 0x18]
call fcn.0041611a
mov byte [ebp - 4], 3
push esi
lea ecx, [ebp - 0x18]
call fcn.0040c4d3
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 0x413911
call fcn.00403063
mov esi, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00410215
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00410215
mov dword [ebp - 4], ebx
jmp 0x4138aa
push ebx
lea ecx, [ebp - 0x18]
call fcn.004052d6
lea eax, [ebp - 0x1c]
push eax
call fcn.00408403
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 0x41397c
mov byte [ebp - 4], 3
lea eax, [ebp - 0x1c]
push eax
call fcn.00414e77
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00410215
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00410215
mov dword [ebp - 4], ebx
call fcn.0042c2be
mov eax, dword [ebp - 0x24]
jmp 0x4138b1
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.00401625
mov byte [ebp - 4], 3
lea eax, [ebp - 0x1c]
push eax
call fcn.00414e77
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00410215
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00410215
mov dword [ebp - 4], ebx
call fcn.0042c2be
xor eax, eax
jmp 0x4138b1

Function at 0x4139f8
Capabilities:
Accept command line arguments

Disassembly:
push 0xc
mov eax, 0x4517fc
call fcn.0043c9f3
mov edi, ecx
call fcn.004016db
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 0x413a28
mov eax, 0x80004005
jmp 0x413a62
and dword [ebp - 4], 0
push dword [esi]
mov ecx, edi
call fcn.00401625
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 0x413a62
call fcn.0043ca98
ret
Function at 0x413a68
Capabilities:
Create process on windows

Disassembly:
push 0x58
mov eax, 0x452184
call fcn.0043c9c0
lea ecx, [ebp - 0x10]
call fcn.0041611a
xor edi, edi
mov dword [ebp - 4], edi
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.004139f8
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.004379c0
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.0040c439
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.004052d6
cmp esi, edi
jne 0x413b00
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00410215
mov eax, edi
call fcn.0043ca98
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 0x413aec
Function at 0x413e99
Capabilities:
Get installed programs
Query or enumerate registry key

Disassembly:
push 0x240
mov eax, 0x452d62
call fcn.0043ca29
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.0040d42d
mov ecx, dword [ebp - 0x22c]
push 0x45be5c
call fcn.00401513
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x248], esi
call fcn.00401513
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 0x4140b5
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 0x4140b5
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 0x414099
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x238]
call fcn.00401513
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x220]
call fcn.0041611a
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 0x41407b
push ecx
mov ecx, esp
mov dword [ebp - 0x244], esp
push str.DisplayName
call fcn.00401513
mov byte [ebp - 4], 5
push dword [ebp - 0x234]
mov byte [ebp - 4], 4
lea edi, [ebp - 0x24c]
call fcn.00413dfe
pop ecx
pop ecx
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x220]
call fcn.00401ac4
mov byte [ebp - 4], 4
mov ecx, edi
call fcn.00410215
lea edi, [ebp - 0x220]
call fcn.0040d42d
push dword [ebp + 0xc]
mov ecx, edi
call fcn.004042d8
test eax, eax
jne 0x41407b
push ecx
mov ecx, esp
mov dword [ebp - 0x244], esp
push str.UninstallString
call fcn.00401513
mov byte [ebp - 4], 7
push dword [ebp - 0x234]
mov byte [ebp - 4], 4
lea edi, [ebp - 0x240]
call fcn.00413dfe
pop ecx
pop ecx
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x22c]
push eax
call fcn.00401aaf
mov byte [ebp - 4], 4
mov ecx, edi
call fcn.00410215
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x220]
call fcn.00410215
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x238]
call fcn.00410215
inc dword [ebp - 0x228]
cmp dword [ebp - 0x23c], ebx
mov dword [ebp - 0x224], 0x104
je 0x413f4b
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.00410215
mov byte [ebp - 4], bl
lea ecx, [ebp + 0xc]
call fcn.00410215
mov eax, dword [ebp - 0x22c]
call fcn.0043caac
ret