joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c387
Capabilities:
Move file

Disassembly:
push 0x24
mov eax, 0x452d33
call fcn.0043b392
lea ecx, [ebp - 0x30]
call fcn.0042ac24
and dword [ebp - 4], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00415256
mov byte [ebp - 4], 2
lea eax, [ebp - 0x14]
push eax
call fcn.00410228
mov byte [ebp - 4], 3
lea eax, [ebp - 0x18]
push eax
push 0x45bc38
lea ecx, [ebp - 0x14]
call fcn.00413313
pop ecx
pop ecx
mov dword [ebp - 0x1c], eax
test eax, eax
jge 0x40c403
mov byte [ebp - 4], 2
lea eax, [ebp - 0x14]
push eax
call fcn.004061a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00410121
or dword [ebp - 4], 0xffffffff
call fcn.0042ac3a
mov eax, dword [ebp - 0x1c]
call fcn.0043b437
ret 0x14
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x14]
mov ecx, dword [ebp + 0x14]
call fcn.00418960
mov dword [ebp - 0x1c], eax
test eax, eax
jl 0x40c3d6
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40c42c
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.00401aa1
push str..exe
mov ecx, esi
call fcn.0040851e
push dword [esi]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x40c3d6
call fcn.00402fa5
mov dword [ebp - 0x1c], eax
jmp 0x40c3d6
Function at 0x40d7fe
Capabilities:
Get common file path
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [0x46cd10]
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 0x459e5c
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 0x40d85e
push 0x800
call eax
test eax, eax
jne 0x40d857
push str.Failed_to_SetDefaultDlLDirectories_n
jmp 0x40d863
push str.Succeeded_to_SetDefaultDlLDirectories_n
jmp 0x40d863
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 0x40d9d7
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.00439000
add esp, 0xc
test eax, eax
jne 0x40d9bb
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.00436350
lea eax, [ebp - 0x428]
push eax
mov esi, 0x10e
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.00438f86
push 0x45c080
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.00438f86
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 0x40d9c2
push str.Failed_to_append_filename_on_system_path_n
call ebx
inc dword [ebp - 0x42c]
cmp dword [ebp - 0x42c], 0xd
jb 0x40d92b
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004357d1
leave
ret
Function at 0x40da1e
Capabilities:
Set registry value

Disassembly:
push 0x1c
mov eax, 0x452e53
call fcn.0043b3c8
cmp byte [ebx + 0xc8], 0
jne 0x40db27
mov eax, dword [ebx + 0xa8]
xor esi, esi
cmp eax, esi
jne 0x40db20
lea ecx, [ebp - 0x24]
call fcn.00415256
mov dword [ebp - 4], esi
push dword [ebx + 0xb8]
lea eax, [ebp - 0x24]
push str.SOFTWARESlimWare_Utilities_Inc_sRegistration
push eax
call fcn.00401fbb
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.0040840c
cmp eax, esi
jne 0x40daf2
push str.LI_UPDATE
mov ecx, 0x471b34
call fcn.004169d0
test eax, eax
je 0x40daae
lea eax, [ebx + 0xdc]
push 0x4599c4
push eax
call fcn.0040ed28
test eax, eax
pop ecx
pop ecx
je 0x40daf2
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 0x40daf2
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 [0x471b30]
test ecx, ecx
je 0x40db08
push eax
call fcn.00412cde
mov ecx, dword [0x471b30]
test ecx, ecx
je 0x40db08
push 1
push str.InstallerFinished
call fcn.00412d7c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00408448
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00410121
mov byte [ebx + 0xc8], 1
call fcn.0043b44b
ret

Function at 0x40db2d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.0042fa1b
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 0x40db4e
xor eax, eax
jmp 0x40db61
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40db4a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
pop esi
pop ebp
ret 8
Function at 0x40ecc1
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 0x40ed24
cmp dword [ebp + 0xc], 1
je 0x40ecfd
cmp dword [ebp + 0xc], 2
je 0x40ecfd
push 0xd
pop eax
jmp 0x40ed24
test edi, edi
mov eax, dword [ebp - 4]
je 0x40ed1e
test eax, eax
je 0x40ed1a
test al, 1
jne 0x40ecf8
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x40ed1e
jmp 0x40ecf8
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x40ee0f
Capabilities:
Delete file

Disassembly:
push 4
mov eax, 0x45287d
call fcn.0043b35f
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 0x40ee57
lea ebx, [esi + 0x110]
mov eax, edi
mov ecx, ebx
call fcn.0040846d
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc edi
cmp edi, dword [esi + 0x118]
jne 0x40ee3d
mov byte [ebp - 4], 2
lea ecx, [esi + 0x178]
call fcn.0042fb01
mov byte [ebp - 4], 1
lea ecx, [esi + 0x124]
call fcn.0042fb01
mov byte [ebp - 4], 0
lea ecx, [esi + 0x110]
call fcn.004308ec
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00410657
call fcn.0043b437
ret

Function at 0x40f414
Capabilities:
Delete file
Move file

Disassembly:
push 4
mov eax, 0x4502a8
call fcn.0043b35f
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 0x40f456
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40f456
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.00410121
or dword [ebp - 4], 0xffffffff
mov dword [edi], vtable.CProgressPageProxy::Caller.0
call fcn.0043b437
ret
Function at 0x413313
Capabilities:
Get common file path

Disassembly:
push 0x28
mov eax, 0x450b00
call fcn.0043b392
mov edi, ecx
lea ecx, [ebp - 0x34]
call fcn.0042ac24
and dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0xc]
call fcn.004016b9
and dword [edi], 0
lea ecx, [ebp - 0x14]
call fcn.00415256
mov byte [ebp - 4], 2
mov esi, 0x105
push esi
lea ecx, [ebp - 0x14]
call fcn.0040c364
mov dword [ebp - 0x20], eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x413389
call fcn.00402fa5
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00410121
or dword [ebp - 4], 0xffffffff
call fcn.0042ac3a
mov eax, esi
call fcn.0043b437
ret
or ebx, 0xffffffff
push ebx
lea ecx, [ebp - 0x14]
call fcn.004052ec
lea ecx, [ebp - 0x18]
call fcn.00415256
mov byte [ebp - 4], 3
push esi
lea ecx, [ebp - 0x18]
call fcn.0040c364
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 0x4133e3
call fcn.00402fa5
mov esi, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00410121
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00410121
mov dword [ebp - 4], ebx
jmp 0x41337c
push ebx
lea ecx, [ebp - 0x18]
call fcn.004052ec
lea eax, [ebp - 0x1c]
push eax
call fcn.00410228
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 0x41344e
mov byte [ebp - 4], 3
lea eax, [ebp - 0x1c]
push eax
call fcn.004061a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00410121
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00410121
mov dword [ebp - 4], ebx
call fcn.0042ac3a
mov eax, dword [ebp - 0x24]
jmp 0x413383
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.00401603
mov byte [ebp - 4], 3
lea eax, [ebp - 0x1c]
push eax
call fcn.004061a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00410121
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00410121
mov dword [ebp - 4], ebx
call fcn.0042ac3a
xor eax, eax
jmp 0x413383

Function at 0x4134ca
Capabilities:
Accept command line arguments

Disassembly:
push 0xc
mov eax, 0x45010c
call fcn.0043b392
mov edi, ecx
call fcn.004016b9
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 0x4134fa
mov eax, 0x80004005
jmp 0x413534
and dword [ebp - 4], 0
push dword [esi]
mov ecx, edi
call fcn.00401603
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 0x413534
call fcn.0043b437
ret
Function at 0x41353a
Capabilities:
Create process on windows

Disassembly:
push 0x58
mov eax, 0x450ac6
call fcn.0043b35f
lea ecx, [ebp - 0x10]
call fcn.00415256
xor edi, edi
mov dword [ebp - 4], edi
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.004134ca
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.00436350
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.0040c2ca
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.004052ec
cmp esi, edi
jne 0x4135d2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00410121
mov eax, edi
call fcn.0043b437
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 0x4135be
Function at 0x41396b
Capabilities:
Get installed programs
Query or enumerate registry key

Disassembly:
push 0x240
mov eax, 0x4516ff
call fcn.0043b3c8
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.0040d2bf
mov ecx, dword [ebp - 0x22c]
push 0x459e5c
call fcn.00401510
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x248], esi
call fcn.00401510
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 0x413b87
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 0x413b87
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 0x413b6b
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x238]
call fcn.00401510
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x220]
call fcn.00415256
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 0x413b4d
push ecx
mov ecx, esp
mov dword [ebp - 0x244], esp
push str.DisplayName
call fcn.00401510
mov byte [ebp - 4], 5
push dword [ebp - 0x234]
mov byte [ebp - 4], 4
lea edi, [ebp - 0x24c]
call fcn.004138d0
pop ecx
pop ecx
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x220]
call fcn.00401ab6
mov byte [ebp - 4], 4
mov ecx, edi
call fcn.00410121
lea edi, [ebp - 0x220]
call fcn.0040d2bf
push dword [ebp + 0xc]
mov ecx, edi
call fcn.004042b0
test eax, eax
jne 0x413b4d
push ecx
mov ecx, esp
mov dword [ebp - 0x244], esp
push str.UninstallString
call fcn.00401510
mov byte [ebp - 4], 7
push dword [ebp - 0x234]
mov byte [ebp - 4], 4
lea edi, [ebp - 0x240]
call fcn.004138d0
pop ecx
pop ecx
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x22c]
push eax
call fcn.00401aa1
mov byte [ebp - 4], 4
mov ecx, edi
call fcn.00410121
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x220]
call fcn.00410121
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x238]
call fcn.00410121
inc dword [ebp - 0x228]
cmp dword [ebp - 0x23c], ebx
mov dword [ebp - 0x224], 0x104
je 0x413a1d
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.00410121
mov byte [ebp - 4], bl
lea ecx, [ebp + 0xc]
call fcn.00410121
mov eax, dword [ebp - 0x22c]
call fcn.0043b44b
ret
Function at 0x413bb9
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x22c
mov eax, 0x4521dc
call fcn.0043b3c8
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 0x413cce
lea ecx, [ebp - 0x21c]
call fcn.00408448
cmp eax, esi
mov ecx, dword [ebp - 0x224]
mov dword [ebp - 0x21c], ecx
jne 0x413cce
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 0x413cca
cmp word [ebp - 0x218], 0x76
jne 0x413c90
lea eax, [ebp - 0x216]
push eax
lea ebx, [ebp - 0x230]
call fcn.0041558b
mov ecx, dword [ebp - 0x22c]
cmp ecx, dword [edi + 4]
jb 0x413c90
mov eax, dword [ebp - 0x230]
ja 0x413c8b
cmp eax, dword [edi]
jbe 0x413c90
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 0x413c58
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.00408448
mov eax, edi
call fcn.0043b44b
ret

Function at 0x413ce5
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x46cd10]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
mov dword [ebp - 0x118], 0x114
call fcn.00436350
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 5
jne 0x413d3e
cmp dword [ebp - 0x110], 3
jae 0x413d44
cmp dword [ebp - 0x114], 5
ja 0x413d44
xor eax, eax
jmp 0x413d47
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004357d1
leave
ret
Function at 0x413d53
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push 0x220
mov eax, 0x450a11
call fcn.0043b3c8
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.00415256
mov dword [ebp - 0x228], esi
call fcn.004137b0
test al, al
je 0x413e78
lea eax, [ebp + 8]
push eax
mov ecx, ebx
call fcn.00401ab6
push str.SOFTWAREMicrosoftWindowsCurrentVersion
lea ecx, [ebp - 0x224]
call fcn.00401510
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 0x413e58
lea ecx, [ebp - 0x220]
call fcn.00408448
cmp eax, edi
mov ecx, dword [ebp - 0x21c]
mov dword [ebp - 0x220], ecx
jne 0x413e58
push str.ProgramFilesDir
lea eax, [ebp - 0x220]
push eax
lea esi, [ebp - 0x21c]
lea edi, [ebp - 0x218]
mov dword [ebp - 0x21c], 0x104
call fcn.0040ecc1
test eax, eax
jne 0x413e58
mov eax, edi
push eax
lea ecx, [ebp - 0x21c]
call fcn.00401510
mov byte [ebp - 4], 4
push dword [eax]
push str._ProgramFiles_
push ebx
call fcn.004080d1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x21c]
call fcn.00410121
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x220]
call fcn.00408448
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x224]
call fcn.00410121
xor edi, edi
mov eax, dword [ebx]
cmp dword [eax - 0xc], edi
je 0x413e8a
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x413eac
mov esi, dword [ebp + 8]
mov eax, 0x3fff
push eax
push eax
mov ecx, ebx
call fcn.0040c364
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0xffffffffffffffff
mov ecx, ebx
call fcn.004052ec
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00410121
mov eax, ebx
call fcn.0043b44b
ret
Function at 0x414532
Capabilities:
Identify system language via api

Disassembly:
push 8
mov eax, 0x44f79b
call fcn.0043b35f
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], edi
mov esi, dword [ebp + 8]
push str.en_us
call fcn.004154b5
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 0x45dd9c
push 0x17
push edi
push 0x4599d4
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, edi
jl 0x41459c
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 0x4145ac
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 8]
call fcn.0043b437
ret

Function at 0x4145d6
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push 0x64
mov eax, 0x4521b6
call fcn.0043b35f
mov esi, ecx
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
xor ebx, ebx
cmp eax, ebx
je 0x41470a
lea eax, [ebp - 0x14]
push eax
call fcn.00413f1d
pop ecx
mov dword [ebp - 4], ebx
mov edi, dword [ebp - 0x14]
mov eax, dword [edi - 0xc]
cmp eax, ebx
mov byte [ebp - 0xd], bl
jne 0x414633
lea edi, [ebp - 0x1c]
mov byte [ebp - 0xd], 1
call fcn.0041441f
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x14]
call fcn.00401ab6
mov byte [ebp - 4], bl
mov ecx, edi
call fcn.00410121
mov edi, dword [ebp - 0x14]
cmp dword [edi - 0xc], ebx
je 0x4146eb
movzx ecx, byte [ebp - 0xd]
mov eax, dword [esi]
push ecx
push eax
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.004144c9
mov byte [ebp - 4], 2
push 0x40
lea eax, [ebp - 0x6c]
push ebx
push eax
mov dword [ebp - 0x70], 0x44
call fcn.00436350
add esp, 0x1c
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x44], 1
mov word [ebp - 0x40], 3
call fcn.00415256
mov byte [ebp - 4], 3
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
call fcn.004134ca
pop ecx
xor ecx, ecx
test eax, eax
setge cl
mov eax, ecx
neg eax
sbb eax, eax
and eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x1c]
mov esi, eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040c2ca
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4146d2
push dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x2c]
call esi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00410121
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call fcn.00410121
jmp 0x4146fe
mov esi, dword [esi]
push 3
push ebx
push ebx
push esi
push 0x45d0e8
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00410121
call fcn.0043b437
ret