joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43fa03
Capabilities:
Hash data with crc32

Disassembly:
je 0x43fbf7
jne 0x43fbf7
cmp dword [0x69a7642c], esi
lea edi, [eax + 0xcd0ea8]
cmp dword [0xd0c3a8], ecx
or dword [eax + 0x20], 0x80
mov byte [eax + esi - 1], 0
cmp dword [0xdeb3d8], edi
mov dword [0x112765ac], eax
mov dword [esi], 0xace0bc
movsx eax, word [ebp - 0x1c4]
push 0xaab9a8
int1
rcr byte [esi], 1
loop 0x43f2e7
sub eax, 0x22a93090
aaa
out 0x83, al
leave
jmp [eax + reloc.shlwapi.dll_PathAddBackslashA]
movsd dword es:[edi], dword [esi]
add byte [eax + 0x4561b4], bh
mov eax, 0x10d7a2b8
mov edx, 0xb1ced4
push 0xa76714
mov dword [esi], 0x9fb764
push 0x4f0dcc
mov dword [edx + esi + 0x13c], 0x10261f8c
push 0x697a2e6c
mov byte [ebp - 0x132], 0
mov ecx, 0x15
sti
and bh, byte [edi + 0x4232049f]
cmp byte [eax], bl
mov al, byte [0x6b249244]
dec edi
arpl word [eax], bx
cwde
jmp 0x43fa03
not ecx
xor ebx, ebx
je 0x43fafa
jne 0x43fafa
cmp dword [ebp + 0xc], eax
jmp dword [ecx*4 + 0x86d66c]
shr ecx, 8
je 0x43f8c9
jne 0x43f8c9
mov dword [0x112b2da8], eax
neg dword [ebp + 0x12]
push 0xa233fc
push 0x1016adc0
mov dword [0x1124da0c], eax
mov dword [0x111d2de4], eax
cmp dword [ebp + 0x1c], 0x80000000
mov dword [esi], 0xa0e618
pmaddwd xmm6, xmmword [0x69809430]
mov eax, 0x10dab0f8
push 0x100d8c6c
mov ecx, dword [0x42be3c]
movzx eax, word [0xf376c4]
add ebp, 0x518
mov dword [esi + 0x5c], 0x42edc0
push 0xaf4520
cmp byte [0xdef019], 0
mov dword [esp + 0xec], 0x1028d9a4
hlt
mov dword [ebp - 0x128], ebx
mov dword [ebp - 4], 0xfffffffe
push 0x43fb85
ret
push eax
push 0x43fe3a
ret
je 0x43f33b
movzx eax, byte [esi]
xor eax, ecx
je 0x43fd59
jne 0x43fd59
mov ecx, dword [0x1152b260]
lock cmpxchg dword [ebx], edx
mov dword [esi + 0x694], 1
mov dword [esi + 4], 0x63eba0
jmp dword [0x49140c]
xor ecx, dword [eax*4 + 0x401240]
push 0x43f5f1
ret
mov eax, edx
dec edx
mov dword [ebp - 0x130], edx
test eax, eax
jmp 0x43f814
mov dword [ebp - 0x124], esi
jmp 0x43f925
cmp ecx, 0x39b5d60d
sete bl
jmp 0x43f464
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4b19b0
push 0x4a41c0
mov eax, dword fs:[0]
jmp 0x43f67a
and eax, 0xff
jmp 0x43f37a
Function at 0x4a3b50
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x14
push 0x4b24e0
call fcn.004a7eb0
call fcn.004a7b81
movzx esi, ax
push 2
call fcn.004a7981
pop ecx
mov eax, 0x5a4d
cmp word [sym.imp.shlwapi.dll_StrChrA], ax
je 0x4a3a07
sub ebx, ebx
jmp 0x4a3a3a
mov eax, dword [0x40003c]
cmp dword [eax + sym.imp.shlwapi.dll_StrChrA], 0x4550
jne 0x4a3a03
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4a3a03
sub ebx, ebx
cmp dword [eax + 0x400074], 0xe
jbe 0x4a3a3a
cmp dword [eax + 0x4000e8], ebx
setne bl
mov dword [ebp - 0x1c], ebx
call fcn.004a73a3
or eax, eax
jne 0x4a3a4e
push 0x1c
call fcn.004a3b29
pop ecx
call fcn.004a6e06
or eax, eax
jne 0x4a3a5f
push 0x10
call fcn.004a3b29
pop ecx
call fcn.004a7a68
and dword [ebp - 4], 0
call fcn.004a73b8
or eax, eax
jns 0x4a3a79
push 0x1b
call fcn.004a3b29
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [0x5c46b0], eax
call fcn.004a7aa8
mov dword [0x5bee48], eax
call fcn.004a7666
or eax, eax
jns 0x4a3a9f
push 8
call fcn.004a6ee1
pop ecx
call fcn.004a789f
or eax, eax
jns 0x4a3ab0
push 9
call fcn.004a6ee1
pop ecx
push 1
call fcn.004a6f1b
pop ecx
or eax, eax
je 0x4a3ac3
push eax
call fcn.004a6ee1
pop ecx
call fcn.004a7e58
push esi
push eax
push 0
push sym.imp.shlwapi.dll_StrChrA
call main
push eax
pop esi
mov dword [ebp - 0x24], esi
or ebx, ebx
jne 0x4a3ae5
push esi
call fcn.004a7177
call fcn.004a6f0c
jmp 0x4a3b1a
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.004a7ef5
ret
call fcn.004a79ce
jmp 0x4a39d9
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219

Function at 0xa14000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0xa1400a
jmp 0xa1600f
jmp fcn.007d80b0
Function at 0x406128
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x40614d
mov dword [0x40a0f4], eax
add esp, 0xfffffff8
push 0x4060ec
push eax
call fcn.00407c20
jmp 0x406152
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x406168
mov dword [0x409054], 0x40624c
jmp 0x406172
mov dword [0x409054], 0x406200
leave
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
mov ecx, 0x93a00cd
nop
nop
nop
test eax, eax
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x432024
mov eax, section..data
nop
nop
mov ebx, 0x42f314
mov ecx, 0x6da304aa
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x402843
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x28
mov eax, 0x451124
call fcn.0043b161
lea ecx, [ebp - 0x1c]
call fcn.0042aa0e
and dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
call fcn.00402a6f
or dword [ebp - 4], 0xffffffff
call fcn.0042aa24
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 0x402946
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x40293d
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
xor ebx, ebx
cmp eax, ebx
je 0x402946
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
je 0x402946
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 0x402909
cmp word [esi], bx
jne 0x402905
cmp dword [ebp - 0x20], ebx
je 0x4028ff
push dword [ebp - 0x20]
push dword [ebp + 8]
mov ecx, dword [ebp - 0x24]
call fcn.004029d9
lea eax, [esi + 2]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ebx
jmp 0x402905
lea eax, [esi + 2]
mov dword [ebp - 0x20], eax
inc esi
inc esi
jmp 0x4028d5
or dword [ebp - 4], 0xffffffff
jmp 0x402944
mov dword [ebp - 0x18], 1
jmp 0x40294e
call fcn.00403031
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
jmp 0x402971
call fcn.0043b206
ret 4
Function at 0x40c3ea
Capabilities:
Move file

Disassembly:
push 0x24
mov eax, 0x4529f0
call fcn.0043b161
lea ecx, [ebp - 0x30]
call fcn.0042aa0e
and dword [ebp - 4], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00401b67
mov byte [ebp - 4], 2
lea eax, [ebp - 0x14]
push eax
call fcn.0040fda8
mov byte [ebp - 4], 3
lea eax, [ebp - 0x18]
push eax
push 0x45bc28
lea ecx, [ebp - 0x14]
call fcn.00412f15
pop ecx
pop ecx
mov dword [ebp - 0x1c], eax
test eax, eax
jge 0x40c466
mov byte [ebp - 4], 2
lea eax, [ebp - 0x14]
push eax
call fcn.00414c4c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00401b44
or dword [ebp - 4], 0xffffffff
call fcn.0042aa24
mov eax, dword [ebp - 0x1c]
call fcn.0043b206
ret 0x14
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x14]
mov ecx, dword [ebp + 0x14]
call fcn.00418710
mov dword [ebp - 0x1c], eax
test eax, eax
jl 0x40c439
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40c48f
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.00408591
push dword [esi]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x40c439
call fcn.00403031
mov dword [ebp - 0x1c], eax
jmp 0x40c439
Function at 0x40d767
Capabilities:
Get common file path
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [0x46cd08]
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 0x459e4c
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 0x40d7c7
push 0x800
call eax
test eax, eax
jne 0x40d7c0
push str.Failed_to_SetDefaultDlLDirectories_n
jmp 0x40d7cc
push str.Succeeded_to_SetDefaultDlLDirectories_n
jmp 0x40d7cc
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 0x40d940
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.00438a4a
add esp, 0xc
test eax, eax
jne 0x40d924
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.00436130
lea eax, [ebp - 0x428]
push eax
mov esi, 0x10e
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.00438f1b
push 0x45c070
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.00438f1b
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 0x40d92b
push str.Failed_to_append_filename_on_system_path_n
call ebx
inc dword [ebp - 0x42c]
cmp dword [ebp - 0x42c], 0xd
jb 0x40d894
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004355b1
leave
ret
Function at 0x40d987
Capabilities:
Set registry value

Disassembly:
push 0x1c
mov eax, 0x452b10
call fcn.0043b197
cmp byte [ebx + 0xc8], 0
jne 0x40da90
mov eax, dword [ebx + 0xa8]
xor esi, esi
cmp eax, esi
jne 0x40da89
lea ecx, [ebp - 0x24]
call fcn.00401b67
mov dword [ebp - 4], esi
push dword [ebx + 0xb8]
lea eax, [ebp - 0x24]
push str.SOFTWARESlimWare_Utilities_Inc_sRegistration
push eax
call fcn.00402046
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.0040847f
cmp eax, esi
jne 0x40da5b
push str.LI_UPDATE
mov ecx, 0x471b34
call fcn.004167c0
test eax, eax
je 0x40da17
lea eax, [ebx + 0xdc]
push 0x4599bc
push eax
call fcn.0040e8e3
test eax, eax
pop ecx
pop ecx
je 0x40da5b
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 0x40da5b
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 0x40da71
push eax
call fcn.004128e0
mov ecx, dword [0x471b30]
test ecx, ecx
je 0x40da71
push 1
push str.InstallerFinished
call fcn.0041297e
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004084bb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00401b44
mov byte [ebx + 0xc8], 1
call fcn.0043b21a
ret

Function at 0x40da96
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.0042f798
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 0x40dab7
xor eax, eax
jmp 0x40daca
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40dab3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
pop esi
pop ebp
ret 8
Function at 0x40e87c
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 0x40e8df
cmp dword [ebp + 0xc], 1
je 0x40e8b8
cmp dword [ebp + 0xc], 2
je 0x40e8b8
push 0xd
pop eax
jmp 0x40e8df
test edi, edi
mov eax, dword [ebp - 4]
je 0x40e8d9
test eax, eax
je 0x40e8d5
test al, 1
jne 0x40e8b3
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x40e8d9
jmp 0x40e8b3
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x40e9ca
Capabilities:
Delete file

Disassembly:
push 4
mov eax, 0x45253d
call fcn.0043b12e
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 0x40ea12
lea ebx, [esi + 0x110]
mov eax, edi
mov ecx, ebx
call fcn.004084e0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc edi
cmp edi, dword [esi + 0x118]
jne 0x40e9f8
mov byte [ebp - 4], 2
lea ecx, [esi + 0x178]
call fcn.0042f87e
mov byte [ebp - 4], 1
lea ecx, [esi + 0x124]
call fcn.0042f87e
mov byte [ebp - 4], 0
lea ecx, [esi + 0x110]
call fcn.00430669
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.004101e9
call fcn.0043b206
ret

Function at 0x40efcf
Capabilities:
Delete file
Move file

Disassembly:
push 4
mov eax, 0x450048
call fcn.0043b12e
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 0x40f011
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40f011
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.00401b44
or dword [ebp - 4], 0xffffffff
mov dword [edi], vtable.CProgressPageProxy::Caller.0
call fcn.0043b206
ret
Function at 0x412f15
Capabilities:
Get common file path

Disassembly:
push 0x28
mov eax, 0x4507f0
call fcn.0043b161
mov edi, ecx
lea ecx, [ebp - 0x34]
call fcn.0042aa0e
and dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0xc]
call fcn.004016c5
and dword [edi], 0
lea ecx, [ebp - 0x14]
call fcn.00401b67
mov byte [ebp - 4], 2
mov esi, 0x105
push esi
lea ecx, [ebp - 0x14]
call fcn.0040c3c7
mov dword [ebp - 0x20], eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x412f8b
call fcn.00403031
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00401b44
or dword [ebp - 4], 0xffffffff
call fcn.0042aa24
mov eax, esi
call fcn.0043b206
ret
or ebx, 0xffffffff
push ebx
lea ecx, [ebp - 0x14]
call fcn.0040530e
lea ecx, [ebp - 0x18]
call fcn.00401b67
mov byte [ebp - 4], 3
push esi
lea ecx, [ebp - 0x18]
call fcn.0040c3c7
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 0x412fe5
call fcn.00403031
mov esi, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00401b44
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00401b44
mov dword [ebp - 4], ebx
jmp 0x412f7e
push ebx
lea ecx, [ebp - 0x18]
call fcn.0040530e
lea eax, [ebp - 0x1c]
push eax
call fcn.0040fda8
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 0x413050
mov byte [ebp - 4], 3
lea eax, [ebp - 0x1c]
push eax
call fcn.00414c4c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00401b44
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00401b44
mov dword [ebp - 4], ebx
call fcn.0042aa24
mov eax, dword [ebp - 0x24]
jmp 0x412f85
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.0040160f
mov byte [ebp - 4], 3
lea eax, [ebp - 0x1c]
push eax
call fcn.00414c4c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00401b44
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00401b44
mov dword [ebp - 4], ebx
call fcn.0042aa24
xor eax, eax
jmp 0x412f85

Function at 0x4130cc
Capabilities:
Accept command line arguments

Disassembly:
push 0xc
mov eax, 0x44feac
call fcn.0043b161
mov edi, ecx
call fcn.004016c5
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 0x4130fc
mov eax, 0x80004005
jmp 0x413136
and dword [ebp - 4], 0
push dword [esi]
mov ecx, edi
call fcn.0040160f
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 0x413136
call fcn.0043b206
ret
Function at 0x41313c
Capabilities:
Create process on windows

Disassembly:
push 0x58
mov eax, 0x4507b6
call fcn.0043b12e
lea ecx, [ebp - 0x10]
call fcn.00401b67
xor edi, edi
mov dword [ebp - 4], edi
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.004130cc
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.00436130
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.0040c34d
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.0040530e
cmp esi, edi
jne 0x4131d4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401b44
mov eax, edi
call fcn.0043b206
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 0x4131c0
Function at 0x41356d
Capabilities:
Get installed programs
Query or enumerate registry key

Disassembly:
push 0x240
mov eax, 0x45143c
call fcn.0043b197
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.0040d228
mov ecx, dword [ebp - 0x22c]
push 0x459e4c
call fcn.0040151c
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x248], esi
call fcn.0040151c
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 0x413789
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 0x413789
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 0x41376d
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x238]
call fcn.0040151c
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x220]
call fcn.00401b67
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 0x41374f
push ecx
mov ecx, esp
mov dword [ebp - 0x244], esp
push str.DisplayName
call fcn.0040151c
mov byte [ebp - 4], 5
push dword [ebp - 0x234]
mov byte [ebp - 4], 4
lea edi, [ebp - 0x24c]
call fcn.004134d2
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.00401b44
lea edi, [ebp - 0x220]
call fcn.0040d228
push dword [ebp + 0xc]
mov ecx, edi
call fcn.004042c6
test eax, eax
jne 0x41374f
push ecx
mov ecx, esp
mov dword [ebp - 0x244], esp
push str.UninstallString
call fcn.0040151c
mov byte [ebp - 4], 7
push dword [ebp - 0x234]
mov byte [ebp - 4], 4
lea edi, [ebp - 0x240]
call fcn.004134d2
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.00401b44
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x220]
call fcn.00401b44
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x238]
call fcn.00401b44
inc dword [ebp - 0x228]
cmp dword [ebp - 0x23c], ebx
mov dword [ebp - 0x224], 0x104
je 0x41361f
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.00401b44
mov byte [ebp - 4], bl
lea ecx, [ebp + 0xc]
call fcn.00401b44
mov eax, dword [ebp - 0x22c]
call fcn.0043b21a
ret