joyce8/EMBER2024-capa huggingface dataset:
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 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x4075a0
Capabilities:
Encode data using xor

Disassembly:
test dword [eax + 0x47], edx
xor eax, 0x7d2974ed
xor dword [ecx + 0x20], esp
pop eax
add ebx, ebx
push 0xc046648b
cmc
push 0xeb701027
inc ebp
dec ebx
sal dl, 1
jo 0x407586
push edi
aas
ljmp 0xd24e
Function at 0x40d29e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407ccb
mov dword [ebp - 0x14], eax
cmp dword [0x813e18], esi
jne 0x40d391
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d31e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d471
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d471
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d471
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x813e18], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x813e1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x813e20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x813e28], eax
test eax, eax
je 0x40d38e
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x813e24], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d3b6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d3a9
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d3cb
push 4
pop eax
jmp 0x40d473
cmp dword [ebp - 0x14], esi
je 0x40d3cb
push dword [0x813e18]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d3b0
mov eax, dword [0x813e24]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d429
cmp dword [0x813e28], edi
je 0x40d429
push eax
call ebx
push dword [0x813e28]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d429
test eax, eax
je 0x40d429
call ecx
test eax, eax
je 0x40d41e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d41e
test byte [ebp - 8], 1
jne 0x40d429
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d459
mov eax, dword [0x813e1c]
cmp eax, edi
je 0x40d456
push eax
call ebx
test eax, eax
je 0x40d456
call eax
mov esi, eax
test esi, esi
je 0x40d456
mov eax, dword [0x813e20]
cmp eax, edi
je 0x40d456
push eax
call ebx
test eax, eax
je 0x40d456
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x813e18]
call ebx
test eax, eax
je 0x40d471
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d473
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004043de
mov esp, ebp
pop ebp
ret
Function at 0x461870
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x44400d
lea edi, [esi - 0x4300d]
push edi
or ebp, 0xffffffff
jmp 0x461892
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x461899
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x461888
mov eax, 1
add ebx, ebx
jne 0x4618ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4618bc
jne 0x4618db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4618db
dec eax
add ebx, ebx
jne 0x4618c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4618a0
add ebx, ebx
jne 0x4618d7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x46192d
xor ecx, ecx
sub eax, 3
jb 0x4618f3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x461962
sar eax, 1
mov ebp, eax
jmp 0x4618fe
add ebx, ebx
jne 0x4618fe
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4618cc
inc ecx
add ebx, ebx
jne 0x46190c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4618cc
add ebx, ebx
jne 0x461919
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x46190e
jne 0x46192a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x46190e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x46194c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x46193e
jmp 0x46188e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x46194c
add edi, ecx
jmp 0x46188e
pop esi
mov edi, esi
mov ecx, 0x1391
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x46196a
cmp byte [edi], 0x12
jne 0x46196a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x46196f
lea edi, [esi + 0x5d000]
mov eax, dword [edi]
or eax, eax
je 0x4619e7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x78d74]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x78e60]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46199c
mov ecx, edi
jns 0x4619cb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x78e68]
or eax, eax
je 0x4619e1
mov dword [ebx], eax
add ebx, 4
jmp 0x4619b9
call dword [esi + 0x78e64]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x461a18
cmp al, 0xef
ja 0x461a0b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4619ed
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4619fa
mov ebp, dword [esi + 0x78e6c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x197]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x461a4c
sub esp, 0xffffff80
jmp 0x413a80
Function at 0xe044f8
Capabilities:
Encode data using xor

Disassembly:
jmp 0xe04502
pushal
call 0xe04508
pop ebp
sub ebp, 0x10
sub ebp, 0xa044f8
jmp 0xe0451e
mov eax, 0xa044f8
add eax, ebp
add eax, 0x4c
mov ecx, 0x5ba
mov edx, 0xd1ef84d5
xor byte [eax], dl
inc eax
dec ecx
jne 0xe04535
jmp 0xe04548
pop esi
sbb byte [esi + 0x5c], bl
jmp 0x55b61b26
Function at 0x402bb4
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 0x402c17
cmp dword [ebp + 0xc], 1
je 0x402bf0
cmp dword [ebp + 0xc], 2
je 0x402bf0
push 0xd
pop eax
jmp 0x402c17
test edi, edi
mov eax, dword [ebp - 4]
je 0x402c11
test eax, eax
je 0x402c0d
test al, 1
jne 0x402beb
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x402c11
jmp 0x402beb
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x40300f
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, 0xc
push ebx
xor ebx, ebx
cmp byte [eax + 0xd], bl
jne 0x4030fd
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push edi
push ebx
lea eax, [ebp - 4]
push eax
push ebx
mov edi, 0xf003f
push edi
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x4030fb
push ebx
lea eax, [ebp + 0xc]
push eax
push ebx
push edi
push ebx
push ebx
push ebx
push str.InstallerData
push dword [ebp - 4]
call esi
cmp eax, ebx
jne 0x4030fb
push 0xfffe
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, ebx
je 0x4030fb
mov edi, dword [ebp + 8]
cmp byte [edi + 0xc], bl
jne 0x4030ae
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp + 8]
push eax
push esi
push ebx
push dword [ebp + 0xc]
mov dword [ebp + 8], 0x7fff
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, ebx
jne 0x4030ae
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x403084
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [edi + 4]
mov edi, dword [edi + 8]
imul edi, edi, 0xc
add edi, esi
jmp 0x4030f7
cmp byte [esi + 8], bl
je 0x4030f4
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 0xc]
push eax
mov dword [ebp + 8], eax
mov dword [ebp - 0xc], ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push dword [ebp + 8]
push 1
push ebx
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add esi, 0xc
cmp esi, edi
jne 0x4030c2
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4033e4
Capabilities:
Terminate process

Disassembly:
push 0xc
mov eax, 0x4499a8
call fcn.004336b6
mov eax, dword [esi + 0xa0]
cmp eax, 1
jge 0x40341a
push 0xbd2
lea eax, [ebp - 0x18]
push eax
call fcn.00407b03
and dword [ebp - 4], 0
lea eax, [ebp - 0x18]
mov ecx, 0x466540
jmp fcn.00404a30
lea edi, [esi + 0x98]
dec eax
mov ecx, edi
call fcn.0040437e
mov ebx, str.CFinishedPage
push ebx
mov ecx, eax
call fcn.00401dc4
test eax, eax
je 0x403444
push ebx
push dword [edi + 8]
mov ecx, edi
call fcn.004263b4
mov eax, dword [esi + 0xa0]
dec eax
lea ecx, [esi + 0x90]
cmp dword [ecx], eax
je 0x403477
mov dword [ecx], eax
mov ecx, edi
call fcn.0040437e
push dword [eax]
call fcn.0042f7a2
pop ecx
push eax
push 0
push 0x8002
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
call fcn.00433755
ret

Function at 0x4034a0
Capabilities:
Terminate process

Disassembly:
push 0xc
mov eax, 0x4499a8
call fcn.004336b6
mov ebx, ecx
lea esi, [ebx + 0xa0]
mov eax, dword [esi]
cmp eax, 1
jne 0x4034c9
cmp dword [ebx + 0x90], 0
jne 0x4034c9
call fcn.00403637
mov esi, dword [esi]
cmp esi, 1
jge 0x4034ef
push 0xbd2
lea eax, [ebp - 0x18]
push eax
call fcn.00407b03
and dword [ebp - 4], 0
lea eax, [ebp - 0x18]
mov ecx, 0x466540
jmp fcn.00404a30
dec esi
cmp dword [ebx + 0x90], esi
je 0x40350a
push 0
push 0
push 0x8002
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
call fcn.00433755
ret

Function at 0x403637
Capabilities:
Terminate process

Disassembly:
push 0x2c
mov eax, 0x449983
call fcn.004336b6
lea ecx, [ebp - 0x10]
call fcn.00409202
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push 0x4517e8
mov ecx, 0x4666bc
call fcn.00422f84
test eax, eax
jne 0x403685
push 0xbd3
lea eax, [ebp - 0x24]
push eax
call fcn.00407b03
mov byte [ebp - 4], 1
lea eax, [ebp - 0x24]
mov ecx, 0x466540
jmp fcn.00404a30
lea ecx, [ebp - 0x38]
call fcn.0042609c
mov byte [ebp - 4], 2
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x4517fc
lea edi, [ebp - 0x38]
call fcn.00401555
mov byte [ebp - 4], 3
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00402def
mov byte [ebp - 4], 4
mov byte [ebp - 4], 2
call fcn.0040aeb8
mov edi, dword [ebp - 0x30]
xor esi, esi
inc esi
cmp edi, esi
pop ecx
pop ecx
jbe 0x403744
test esi, esi
jl 0x403762
cmp esi, dword [ebp - 0x30]
jge 0x403762
mov eax, dword [ebp - 0x34]
lea eax, [eax + esi*4]
mov ecx, dword [eax]
cmp dword [ecx - 0xc], 0
je 0x40373f
push str.CProgressPage
push eax
call fcn.00404044
test al, al
pop ecx
pop ecx
je 0x403708
push ebx
call fcn.004038a9
jmp 0x403724
cmp esi, dword [ebp - 0x30]
jge 0x403762
mov eax, dword [ebp - 0x34]
lea eax, [eax + esi*4]
push 0x450f00
push eax
call fcn.00404044
test al, al
pop ecx
pop ecx
jne 0x40373f
cmp esi, dword [ebp - 0x30]
jge 0x403762
mov eax, dword [ebp - 0x34]
lea eax, [eax + esi*4]
lea ecx, [ebx + 0x98]
mov edx, dword [ecx + 8]
push eax
push edx
call fcn.00426364
inc esi
cmp esi, edi
jb 0x4036d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.0042624d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040922c
call fcn.00433755
ret
jmp fcn.00423e92
Function at 0x404779
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
call fcn.00425722
push dword [esp + 0xc]
mov esi, dword [eax + 0xc]
push dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x404799
xor eax, eax
jmp 0x4047ac
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404795
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
pop esi
ret 8

Function at 0x404a30
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, eax
test esi, esi
je 0x404a69
push ebx
mov ebx, ecx
add ebx, 0x1b4
push edi
mov edi, dword [ebx]
test edi, edi
je 0x404a5c
call fcn.004099b3
mov edx, dword [ebx]
push 0
push str.InstallBroken
call fcn.004091ac
pop ecx
pop ecx
mov eax, dword [esi]
push 0
push 0
mov ecx, esi
call dword [eax + 0x14]
pop edi
pop ebx
push 1
call fcn.0042fa85
pop esi
Function at 0x405393
Capabilities:
Delete file

Disassembly:
push 4
mov eax, 0x44983b
call fcn.004336b6
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 0x4053db
lea ebx, [esi + 0x110]
mov eax, edi
mov ecx, ebx
call fcn.0040437e
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc edi
cmp edi, dword [esi + 0x118]
jne 0x4053c1
mov byte [ebp - 4], 2
lea ecx, [esi + 0x178]
call fcn.004299e3
mov byte [ebp - 4], 1
lea ecx, [esi + 0x124]
call fcn.004299e3
mov byte [ebp - 4], 0
lea ecx, [esi + 0x110]
call fcn.0042624d
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.0040f2b6
call fcn.00433755
ret

Function at 0x4057d5
Capabilities:
Delete file
Move file

Disassembly:
push 4
mov eax, 0x447c31
call fcn.004336b6
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 0x405817
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x405817
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.0040922c
or dword [ebp - 4], 0xffffffff
mov dword [edi], vtable.CProgressPageProxy::Caller.0
call fcn.00433755
ret
Function at 0x409a77
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x10000
mov edi, 0x8007000e
call fcn.0042fe02
mov ebx, eax
xor esi, esi
cmp ebx, esi
pop ecx
je 0x409b25
push 0x7fff
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x409ac4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x409ac0
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x409b25
push esi
push esi
push 3
push esi
push 1
push SysReAllocString
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x409aac
lea eax, [ebp - 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x409aac
cmp dword [ebp - 4], 0x7fffffff
jg 0x409b25
push esi
push esi
push esi
push 8
push esi
push ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, esi
je 0x409aac
push esi
push esi
push esi
push 1
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
je 0x409aac
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [ecx + 0x14], eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40ac0d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push 0x40
xor esi, esi
lea eax, [ebp - 0x50]
push esi
push eax
mov dword [ebp - 0x54], 0x44
call fcn.0042f220
mov ecx, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push 0x1000000
push esi
push esi
push esi
call fcn.00402b31
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
mov ebx, eax
call fcn.00402c4a
cmp edi, esi
jne 0x40ac6c
xor eax, eax
jmp 0x40ac7f
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40af64
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x461de0]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x14
mov eax, 0x4481d7
call fcn.004336b6
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x214]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], ebx
xor esi, esi
inc esi
mov dword [ebp - 4], esi
push 0x4539b0
mov ecx, edi
call fcn.00401555
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 0x218]
mov dword [ebp - 0x1c], esi
push dword [ebp - 0x14]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x40afe6
lea eax, [ebp]
push eax
mov ecx, edi
call fcn.0040165e
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x218]
call fcn.0040922c
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0042f20b
add ebp, 0x20c
leave
ret
Function at 0x40b019
Capabilities:
Get installed programs
Query or enumerate registry key

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x461de0]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x34
mov eax, 0x448a75
call fcn.004336b6
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x214]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x3c], ebx
xor esi, esi
inc esi
mov dword [ebp - 4], esi
lea edi, [ebp + 0x218]
call fcn.0040ba45
mov ecx, dword [ebp - 0x20]
push 0x452084
call fcn.00401555
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x3c], esi
call fcn.00401555
mov byte [ebp - 4], 2
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x10]
push eax
push 0x20019
push ebx
push dword [ebp - 0x24]
push reloc.OLEAUT32.dll_SysReAllocString
call esi
cmp eax, ebx
jne 0x40b1e4
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [ebp - 0x18], ebx
je 0x40b1e4
mov dword [ebp - 0x1c], ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], 0x104
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebx
mov dword [ebp - 0x30], eax
jne 0x40b1d1
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401555
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.00409202
mov byte [ebp - 4], 4
lea eax, [ebp - 0x28]
push eax
push 0xf003f
push ebx
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
call esi
cmp eax, ebx
jne 0x40b1b9
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push str.DisplayName
call fcn.00401555
mov byte [ebp - 4], 5
push dword [ebp - 0x28]
mov byte [ebp - 4], 4
lea edi, [ebp - 0x40]
call fcn.0040af64
pop ecx
pop ecx
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x14]
call fcn.00401ab0
mov byte [ebp - 4], 4
mov ecx, edi
call fcn.0040922c
lea edi, [ebp - 0x14]
call fcn.0040ba45
push dword [ebp + 0x218]
mov ecx, edi
call fcn.00401dc4
test eax, eax
jne 0x40b1b9
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push str.UninstallString
call fcn.00401555
mov byte [ebp - 4], 7
push dword [ebp - 0x28]
mov byte [ebp - 4], 4
lea edi, [ebp - 0x34]
call fcn.0040af64
pop ecx
pop ecx
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x20]
push eax
call fcn.00401ab0
mov byte [ebp - 4], 4
mov ecx, edi
call fcn.0040922c
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.0040922c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.0040922c
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x30], ebx
mov dword [ebp - 0x18], 0x104
je 0x40b0c5
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.0040922c
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x218]
call fcn.0040922c
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0042f20b
add ebp, 0x20c
leave
ret
Function at 0x40b371
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x461de0]
xor eax, ebp
mov dword [ebp + 0x94], eax
push 0x110
lea eax, [ebp - 0x7c]
push 0
push eax
mov dword [ebp - 0x80], 0x114
call fcn.0042f220
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 6
jne 0x40b3c0
cmp dword [ebp - 0x78], 2
jae 0x40b3c6
cmp dword [ebp - 0x7c], 6
ja 0x40b3c6
xor eax, eax
jmp 0x40b3c9
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.0042f20b
add ebp, 0x98
leave
ret