joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40edb2
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 0x45c10c
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 0x40ee12
push 0x800
call eax
test eax, eax
jne 0x40ee0b
push str.Failed_to_SetDefaultDlLDirectories_n
jmp 0x40ee17
push str.Succeeded_to_SetDefaultDlLDirectories_n
jmp 0x40ee17
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 0x40ef8b
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 - 0x434], edi
mov dword [ebp - 0x430], 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.00438fdf
add esp, 0xc
test eax, eax
jne 0x40ef6f
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.00437d90
lea eax, [ebp - 0x428]
push eax
mov esi, 0x10e
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.0043ac5a
push str._n012
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.0043ac5a
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 edi, dword [ebp - 0x434]
mov esi, dword [ebp - 0x430]
jmp 0x40ef76
push str.Failed_to_append_filename_on_system_path_n
call ebx
inc dword [ebp - 0x42c]
cmp dword [ebp - 0x42c], 0xd
jb 0x40eedf
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00437d0a
leave
ret
Function at 0x40efcf
Capabilities:
Set registry value

Disassembly:
push 0x1c
mov eax, 0x455235
call fcn.0043d2a8
cmp byte [ebx + 0xcc], 0
jne 0x40f114
mov eax, dword [ebx + 0xa8]
xor esi, esi
cmp eax, esi
je 0x40f01b
cmp dword [ebx + 0xa4], esi
mov edx, dword [ebx + 0x19c]
push esi
je 0x40f00a
push str.InstallBroken
jmp 0x40f00f
push str.InstallCancelled
call fcn.0040618f
pop ecx
pop ecx
jmp 0x40f10d
lea ecx, [ebp - 0x24]
call fcn.004061e7
mov dword [ebp - 4], esi
push dword [ebx + 0xbc]
lea eax, [ebp - 0x24]
push str.SOFTWARESlimWare_Utilities_Inc_sRegistration
push eax
call fcn.0040247e
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.00409960
cmp eax, esi
jne 0x40f0c8
push str.LI_UPDATE
mov ecx, 0x474cbc
call fcn.00418860
test eax, eax
je 0x40f082
lea eax, [ebx + 0xe0]
push 0x45b9d4
push eax
call fcn.0040ff32
test eax, eax
pop ecx
pop ecx
je 0x40f0c8
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 0x40f0c8
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 [0x474cb8]
test ecx, ecx
je 0x40f0e0
push eax
call fcn.00413f26
xor esi, esi
mov ecx, dword [0x474cb8]
cmp ecx, esi
je 0x40f0e2
push 1
push str.InstallerFinished
call fcn.00413fc4
jmp 0x40f0e2
xor esi, esi
mov eax, dword [ebx + 0x19c]
push esi
push str.InstallFinished
call fcn.0040617c
pop ecx
pop ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004067c8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00401b5e
mov byte [ebx + 0xcc], 1
call fcn.0043d32b
ret

Function at 0x40f11a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.004318ad
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 0x40f13b
xor eax, eax
jmp 0x40f14e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40f137
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
pop esi
pop ebp
ret 8

Function at 0x40f39b
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, eax
test esi, esi
push edi
je 0x40f3d2
mov ebx, ecx
add ebx, 0x19c
mov edi, dword [ebx]
test edi, edi
je 0x40f3c7
call fcn.00409bf5
mov edx, dword [ebx]
push 0
push str.InstallBroken
call fcn.0040618f
pop ecx
pop ecx
mov eax, dword [esi]
push 0
push 0
mov ecx, esi
call dword [eax + 0x14]
push 1
call fcn.0043af64
int3
Function at 0x410019
Capabilities:
Delete file

Disassembly:
push 4
mov eax, 0x454ba8
call fcn.0043d23f
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 0x410061
lea ebx, [esi + 0x110]
mov eax, edi
mov ecx, ebx
call fcn.004099a5
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc edi
cmp edi, dword [esi + 0x118]
jne 0x410047
mov byte [ebp - 4], 2
lea ecx, [esi + 0x178]
call fcn.00431993
mov byte [ebp - 4], 1
lea ecx, [esi + 0x124]
call fcn.00431993
mov byte [ebp - 4], 0
lea ecx, [esi + 0x110]
call fcn.0043277e
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.0041174c
call fcn.0043d317
ret

Function at 0x4105d3
Capabilities:
Delete file
Move file

Disassembly:
push 4
mov eax, 0x45249d
call fcn.0043d23f
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 0x410615
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x410615
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.00401b5e
or dword [ebp - 4], 0xffffffff
mov dword [edi], vtable.CProgressPageProxy::Caller.0
call fcn.0043d317
ret
Function at 0x414b45
Capabilities:
Get common file path

Disassembly:
push 0x28
mov eax, 0x452c48
call fcn.0043d272
mov edi, ecx
lea ecx, [ebp - 0x34]
call fcn.0042d9b2
and dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0xc]
call fcn.00401715
and dword [edi], 0
lea ecx, [ebp - 0x14]
call fcn.004061e7
mov byte [ebp - 4], 2
mov esi, 0x105
push esi
lea ecx, [ebp - 0x14]
call fcn.00409aec
mov dword [ebp - 0x20], eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x414bbb
call fcn.00403451
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00401b5e
or dword [ebp - 4], 0xffffffff
call fcn.0042d9c8
mov eax, esi
call fcn.0043d317
ret
or ebx, 0xffffffff
push ebx
lea ecx, [ebp - 0x14]
call fcn.0040549a
lea ecx, [ebp - 0x18]
call fcn.004061e7
mov byte [ebp - 4], 3
push esi
lea ecx, [ebp - 0x18]
call fcn.00409aec
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 0x414c15
call fcn.00403451
mov esi, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00401b5e
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00401b5e
mov dword [ebp - 4], ebx
jmp 0x414bae
push ebx
lea ecx, [ebp - 0x18]
call fcn.0040549a
lea eax, [ebp - 0x1c]
push eax
call fcn.004097da
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 0x414c80
mov byte [ebp - 4], 3
lea eax, [ebp - 0x1c]
push eax
call fcn.00415e8b
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00401b5e
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00401b5e
mov dword [ebp - 4], ebx
call fcn.0042d9c8
mov eax, dword [ebp - 0x24]
jmp 0x414bb5
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.0040165f
mov byte [ebp - 4], 3
lea eax, [ebp - 0x1c]
push eax
call fcn.00415e8b
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00401b5e
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00401b5e
mov dword [ebp - 4], ebx
call fcn.0042d9c8
xor eax, eax
jmp 0x414bb5

Function at 0x414cfc
Capabilities:
Accept command line arguments

Disassembly:
push 0xc
mov eax, 0x45232c
call fcn.0043d272
mov edi, ecx
call fcn.00401715
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 0x414d2c
mov eax, 0x80004005
jmp 0x414d66
and dword [ebp - 4], 0
push dword [esi]
mov ecx, edi
call fcn.0040165f
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 0x414d66
call fcn.0043d317
ret
Function at 0x414d6c
Capabilities:
Create process on windows

Disassembly:
push 0x58
mov eax, 0x452c0e
call fcn.0043d23f
lea ecx, [ebp - 0x10]
call fcn.004061e7
xor edi, edi
mov dword [ebp - 4], edi
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.00414cfc
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.00437d90
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.0040d9aa
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.0040549a
cmp esi, edi
jne 0x414e04
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401b5e
mov eax, edi
call fcn.0043d317
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 0x414df0
Function at 0x415255
Capabilities:
Get installed programs
Query or enumerate registry key

Disassembly:
push 0x240
mov eax, 0x4539b9
call fcn.0043d2a8
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.0040e862
mov ecx, dword [ebp - 0x22c]
push 0x45c10c
call fcn.0040154d
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x248], esi
call fcn.0040154d
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 0x415471
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 0x415471
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 0x415455
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x238]
call fcn.0040154d
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x220]
call fcn.004061e7
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 0x415437
push ecx
mov ecx, esp
mov dword [ebp - 0x244], esp
push str.DisplayName
call fcn.0040154d
mov byte [ebp - 4], 5
push dword [ebp - 0x234]
mov byte [ebp - 4], 4
lea edi, [ebp - 0x24c]
call fcn.004151ba
pop ecx
pop ecx
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x220]
call fcn.00401afe
mov byte [ebp - 4], 4
mov ecx, edi
call fcn.00401b5e
lea edi, [ebp - 0x220]
call fcn.0040e862
push dword [ebp + 0xc]
mov ecx, edi
call fcn.00401ed3
test eax, eax
jne 0x415437
push ecx
mov ecx, esp
mov dword [ebp - 0x244], esp
push str.UninstallString
call fcn.0040154d
mov byte [ebp - 4], 7
push dword [ebp - 0x234]
mov byte [ebp - 4], 4
lea edi, [ebp - 0x240]
call fcn.004151ba
pop ecx
pop ecx
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x22c]
push eax
call fcn.00401ae9
mov byte [ebp - 4], 4
mov ecx, edi
call fcn.00401b5e
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x220]
call fcn.00401b5e
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x238]
call fcn.00401b5e
inc dword [ebp - 0x228]
cmp dword [ebp - 0x23c], ebx
mov dword [ebp - 0x224], 0x104
je 0x415307
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.00401b5e
mov byte [ebp - 4], bl
lea ecx, [ebp + 0xc]
call fcn.00401b5e
mov eax, dword [ebp - 0x22c]
call fcn.0043d32b
ret
Function at 0x4154a3
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x22c
mov eax, 0x4545bf
call fcn.0043d2a8
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 0x4155b8
lea ecx, [ebp - 0x21c]
call fcn.004067c8
cmp eax, esi
mov ecx, dword [ebp - 0x224]
mov dword [ebp - 0x21c], ecx
jne 0x4155b8
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 0x4155b4
cmp word [ebp - 0x218], 0x76
jne 0x41557a
lea eax, [ebp - 0x216]
push eax
lea ebx, [ebp - 0x230]
call fcn.004173be
mov ecx, dword [ebp - 0x22c]
cmp ecx, dword [edi + 4]
jb 0x41557a
mov eax, dword [ebp - 0x230]
ja 0x415575
cmp eax, dword [edi]
jbe 0x41557a
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 0x415542
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.004067c8
mov eax, edi
call fcn.0043d32b
ret
Function at 0x4155cf
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x22c
mov eax, 0x45458c
call fcn.0043d2a8
xor ebx, ebx
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP
lea ecx, [ebp - 0x230]
mov byte [ebp - 0x219], bl
call fcn.0040154d
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 0x41570b
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 0x41570b
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 0x4156f3
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x220]
call fcn.0040154d
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax - 0xc]
cmp ecx, ebx
jle 0x4156e5
movzx eax, word [eax]
cmp ax, 0x76
jne 0x4156e5
push 0x76
lea eax, [ebp - 0x220]
push eax
call fcn.00412668
push dword [ebp - 0x220]
lea ebx, [ebp - 0x238]
call fcn.004173be
mov eax, dword [ebp - 0x234]
shr eax, 0x10
xor ebx, ebx
cmp ax, 2
jne 0x4156e5
mov byte [ebp - 0x219], 1
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x220]
call fcn.00401b5e
inc dword [ebp - 0x228]
cmp edi, ebx
mov dword [ebp - 0x224], 0x104
je 0x41564e
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00401b5e
mov al, byte [ebp - 0x219]
call fcn.0043d32b
ret
Function at 0x4157a5
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push 0x220
mov eax, 0x452b8c
call fcn.0043d2a8
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.004061e7
mov dword [ebp - 0x228], esi
call fcn.0041509a
test al, al
je 0x4158ca
lea eax, [ebp + 8]
push eax
mov ecx, ebx
call fcn.00401afe
push str.SOFTWAREMicrosoftWindowsCurrentVersion
lea ecx, [ebp - 0x224]
call fcn.0040154d
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 0x4158aa
lea ecx, [ebp - 0x220]
call fcn.004067c8
cmp eax, edi
mov ecx, dword [ebp - 0x21c]
mov dword [ebp - 0x220], ecx
jne 0x4158aa
push str.ProgramFilesDir
lea eax, [ebp - 0x220]
push eax
lea esi, [ebp - 0x21c]
lea edi, [ebp - 0x218]
mov dword [ebp - 0x21c], 0x104
call fcn.00406761
test eax, eax
jne 0x4158aa
mov eax, edi
push eax
lea ecx, [ebp - 0x21c]
call fcn.0040154d
mov byte [ebp - 4], 4
push dword [eax]
push str._ProgramFiles_
push ebx
call fcn.004095e8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x21c]
call fcn.00401b5e
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x220]
call fcn.004067c8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x224]
call fcn.00401b5e
xor edi, edi
mov eax, dword [ebx]
cmp dword [eax - 0xc], edi
je 0x4158dc
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4158fe
mov esi, dword [ebp + 8]
mov eax, 0x3fff
push eax
push eax
mov ecx, ebx
call fcn.00409aec
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0xffffffffffffffff
mov ecx, ebx
call fcn.0040549a
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00401b5e
mov eax, ebx
call fcn.0043d32b
ret
Function at 0x415e08
Capabilities:
Identify system language via api

Disassembly:
push 8
mov eax, 0x4518f3
call fcn.0043d23f
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], edi
mov esi, dword [ebp + 8]
push str.en_us
call fcn.004172e8
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 2
lea eax, [ebp - 0x10]
push eax
push 0x460840
push 0x17
push edi
push 0x45b9e4
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, edi
jl 0x415e72
mov eax, dword [ebp - 0x10]
mov esi, dword [eax]
push dword [ebp + 8]
mov ebx, eax
add esi, 0x34
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
push eax
push ebx
call dword [esi]
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x10]
cmp eax, edi
je 0x415e82
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 8]
call fcn.0043d317
ret
Function at 0x4183e0
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
cmp byte [eax + 0x29], 0
je 0x4183fa
mov eax, 1
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push edi
xor edi, edi
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 8]
push edx
push edi
push 0x2001f
push edi
push edi
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call ebx
cmp eax, edi
jne 0x418432
mov ecx, dword [ebp - 8]
xor eax, eax
mov dword [ebp - 4], ecx
cmp eax, edi
push esi
mov esi, eax
jne 0x418552
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.InstallerData
push ecx
mov dword [ebp - 0xc], edi
call ebx
test eax, eax
jne 0x418467
mov edi, dword [ebp - 0xc]
test eax, eax
mov esi, eax
jne 0x418547
lea edx, [ebp + 0xc]
push edx
call fcn.0040a0c1
push 0x7fff
lea eax, [ebp + 0xc]
push eax
call fcn.0040e888
test al, al
jne 0x4184ba
lea ecx, [ebp + 0xc]
push ecx
call fcn.004050c7
test edi, edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4184a2
push edi
call esi
mov eax, dword [ebp - 4]
test eax, eax
je 0x4184ac
push eax
call esi
pop esi
pop edi
mov eax, 0x8007000e
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp + 8]
cmp byte [edx + 0x28], 0
jne 0x41852c
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0x10], 0x7fff
mov ecx, dword [ebp + 0xc]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push ecx
push 0
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x41852c
mov edx, dword [ebp + 0xc]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x4184d0
call fcn.0040a113
mov esi, eax
lea eax, [ebp + 0xc]
push eax
call fcn.004050c7
test edi, edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x418517
push edi
call ebx
mov eax, dword [ebp - 4]
test eax, eax
je 0x418569
push eax
call ebx
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
add ecx, 0x10
mov dword [ebp - 0x10], ecx
call fcn.00418e80
test eax, eax
jne 0x418577
lea ecx, [ebp + 0xc]
push ecx
call fcn.004050c7
test edi, edi
je 0x418552
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
call fcn.0040a113
mov esi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x418569
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
push ecx
mov ebx, eax
call fcn.00419030
cmp dword [ebx + 0xc], 0
mov dword [ebp + 8], eax
je 0x4185b3
mov esi, dword [ebx + 4]
test esi, esi
mov ebx, dword [ebx]
je 0x4185bb
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
push esi
push 1
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jne 0x4185c5
cmp dword [ebp + 8], 0
jne 0x418574
jmp 0x41853e
push 0x80004005
call fcn.004017ee
mov eax, esi
jmp 0x4184fa
Function at 0x419860
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, eax
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 4]
push 0
push eax
push ecx
push 2
push 0
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
mov dword [esi + 8], eax
jne 0x41989a
call fcn.00403451
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
push 0
push ecx
mov dword [esi + 0x10], 0
mov edx, dword [esi + 0x10]
push edx
mov dword [esi + 4], ecx
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x14]
push ecx
push 4
push eax
mov dword [esi + 0x18], 4
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
test eax, eax
mov dword [esi], eax
jne 0x4198ee
call fcn.00403451
mov edx, dword [esi + 8]
push edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret