joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405c10
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x54f4f1
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5b3890]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
xor edi, edi
mov dword [esp + 0xc], edi
cmp dword [esp + 0x24], edi
je 0x405c9d
push edi
push 0xffffffffffffffff
push 0x56ba1c
mov dword [esi + 0x10], 0x56beb4
mov dword [esi + 0x94], 0x56beac
call fcn.00402e30
add esp, 0xc
mov dword [esi + 0x80], eax
mov dword [esi + 0x84], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x88], edi
push edi
lea ecx, [esi + 0x90]
mov dword [esp + 0x20], edi
mov dword [esp + 0x10], 1
call fcn.00405a60
mov dword [esp + 0xc], 3
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, dword [esi + 0x10]
mov dword [esi], vtable.cColoredDlg.1.0
mov ecx, dword [eax + 8]
mov dword [ecx + esi + 0x10], vtable.cColoredDlg.0
mov edx, dword [esi + 0x10]
mov eax, dword [edx + 8]
lea ecx, [eax - 0x80]
mov dword [eax + esi + 0xc], ecx
lea ecx, [esi + 0x48]
mov dword [esp + 0x1c], 2
call fcn.00495930
push edi
push 0xffffffffffffffff
push edi
mov byte [esp + 0x28], 3
mov dword [esi + 0x44], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
call fcn.00402e30
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0x14], 0xffffff
mov edx, dword [eax + 4]
add esp, 0xc
cmp dword [edx + esi + 0x20], edi
je 0x405d27
mov eax, dword [eax + 8]
mov edx, dword [eax + esi + 0x10]
lea ecx, [eax + esi + 0x10]
mov eax, dword [edx + 0x20]
push edi
push edi
push 0x110
call eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x74], edi
mov byte [esi + 0x70], 1
mov dword [esi + 0x6c], 0x64
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov byte [esi + 0x34], 1
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret 4
Function at 0x405d90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54f599
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5b3890]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
xor edi, edi
mov dword [esp + 0x10], edi
lea ebx, [edi + 1]
cmp dword [esp + 0x54], edi
je 0x405e41
push edi
push 0xffffffffffffffff
push 0x56ba1c
mov dword [esi], 0x56bf04
mov dword [esi + 0xa4], 0x56befc
mov dword [esi + 0x104], 0x56bef0
call fcn.00402e30
add esp, 0xc
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], edi
mov dword [esi + 0x8c], edi
mov dword [esi + 0x98], edi
push edi
lea ecx, [esi + 0xa0]
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], ebx
call fcn.00405a60
push edi
lea ecx, [esi + 0xf4]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], 3
call fcn.00405c10
mov dword [esp + 0x10], 7
mov eax, dword [esi]
mov ecx, dword [eax + 8]
mov dword [esi + ecx], vtable.cMBTextDlg.1.0
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov dword [esi + eax], vtable.cMBTextDlg.0
mov ecx, dword [esi]
mov eax, dword [ecx + 8]
lea edx, [eax - 0xa0]
mov dword [eax + esi - 4], edx
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov byte [esi + 0x20], bl
mov dword [esp + 0x20], 3
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov byte [esi + 0x38], bl
xor eax, eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov byte [esi + 0x60], bl
push 0xffffffffffffffff
lea ebx, [esi + 0x74]
push edi
mov ecx, ebx
mov byte [esp + 0x28], 5
call fcn.0049eff0
mov dword [ebx], vtable.cWCStr.0
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x48]
push edx
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x4c], 6
call fcn.004054f0
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 0x30
Function at 0x4068e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54f748
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
mov eax, dword [0x5b3890]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x14]
call fcn.0049eff0
mov dword [esp + 0xc], vtable.cWCSF.0
mov eax, dword [esp + 0x2c]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths
lea ecx, [esp + 0x14]
push 0x56be54
push ecx
mov dword [esp + 0x34], 0
call fcn.00403e80
movzx eax, byte [esp + 0x44]
mov ecx, dword [esp + 0x20]
add esp, 0x10
neg eax
sbb eax, eax
lea edx, [esp + 8]
push edx
and eax, 0x100
or eax, 0x20019
push eax
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x406998
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0xc], vtable.cWCS.0
call fcn.0049ee80
xor al, al
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x20
ret
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 8]
push edx
push 0x56ba1c
push eax
call fcn.0041c860
mov ecx, dword [esp + 0x14]
add esp, 0xc
push ecx
mov bl, al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0xc], vtable.cWCS.0
call fcn.0049ee80
mov al, bl
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x20
ret

Function at 0x406a80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54f778
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x5b3890]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x2c]
cmp edi, dword [esi + 4]
jne 0x406ad6
mov eax, dword [esp + 0x30]
cmp eax, 0xffffffff
je 0x406abf
push eax
call fcn.0049f100
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret 8
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x14]
call fcn.0049eff0
mov eax, dword [esp + 0x30]
push eax
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0
call fcn.0049eeb0
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
mov edi, eax
call fcn.0049e930
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0xc], vtable.cWCS.0
call fcn.0049ee80
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret 8
Function at 0x406e60
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x54f860
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
mov eax, dword [0x5b3890]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ecx, cl
neg ecx
sbb ecx, ecx
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x58]
and ecx, 0x100
or ecx, 0x20019
push ecx
xor ebx, ebx
push ebx
push edx
push eax
call ebp
cmp eax, ebx
jne 0x407012
mov eax, dword [esp + 0x10]
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x28]
push ecx
push ebx
push ebx
lea edx, [esp + 0x30]
push edx
push ebx
push ebx
push ebx
push eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov esi, eax
cmp esi, ebx
je 0x406f04
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
push 0x400
lea ecx, [esp + 0x34]
call fcn.0049f020
mov dword [esp + 0x30], vtable.cWCStr.0
mov esi, dword [esp + 0x14]
mov dword [esp + 0x48], ebx
cmp esi, ebx
je 0x406fe9
lea ebx, [ebx]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x2c]
push eax
push ecx
dec esi
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x28]
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x406fe9
cmp eax, ebx
jne 0x406fe1
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
push edi
push 0x20019
push ebx
push eax
push ecx
call ebp
cmp eax, ebx
jne 0x406fe1
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x28]
call fcn.0049eff0
mov dword [esp + 0x20], vtable.cWCStr.0
mov eax, dword [edi]
lea edx, [esp + 0x20]
push edx
push str.DisplayName
push eax
mov byte [esp + 0x54], 1
call fcn.0041c860
add esp, 0xc
test al, al
je 0x406fc3
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x24]
push 0xffffffffffffffff
push ecx
push edx
call fcn.0049ea40
add esp, 0xc
test eax, eax
je 0x407025
mov eax, dword [edi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], bl
mov dword [esp + 0x20], vtable.cWCS.0
call fcn.0049ee80
cmp esi, ebx
jne 0x406f30
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x30]
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x30], vtable.cWCS.0
call fcn.0049ee80
mov eax, 2
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x54]
add ecx, 0x10
call fcn.0049e930
mov esi, vtable.cWCS.0
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], bl
mov dword [esp + 0x20], esi
call fcn.0049ee80
lea ecx, [esp + 0x30]
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x30], esi
call fcn.0049ee80
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
Function at 0x408140
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54fa60
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
mov eax, dword [0x5b3890]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
push 0xffa
lea ecx, [esp + 0x10]
call fcn.0049f020
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], 0
test eax, eax
jne 0x4081b1
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0xc], vtable.cWCS.0
call fcn.0049ee80
mov eax, str._NULL_
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x20
ret
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0xc], ecx
lea ecx, [esp + 0xc]
push ecx
push edx
push eax
mov byte [esp + 0x34], 1
call fcn.004a2b30
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x3c]
add esp, 0x10
push 0xffffffffffffffff
push eax
mov ecx, esi
call fcn.0049eeb0
mov esi, dword [esi + 4]
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0xc], vtable.cWCS.0
call fcn.0049ee80
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x20
ret

Function at 0x408e60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54fbc8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x5b3890]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push eax
push 0
push ecx
push edx
lea ecx, [esp + 0x18]
call fcn.00408de0
mov eax, dword [esp + 0xc]
push 0xffffffffffffffff
push eax
mov ecx, esi
mov dword [esp + 0x28], 0
call fcn.0049eeb0
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 8], vtable.cWCS.0
call fcn.0049ee80
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x1c
ret 0xc

Function at 0x40b2d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54ff58
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push edi
mov eax, dword [0x5b3890]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x14]
call fcn.0049eff0
mov dword [esp + 0xc], vtable.cWCStr.0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push 1
lea eax, [esp + 0x10]
push eax
push ecx
push edx
mov dword [esp + 0x34], 0
call fcn.0040ab20
add esp, 0x10
test al, al
jne 0x40b35c
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0xc], vtable.cWCS.0
lea ecx, [esp + 0xc]
call fcn.0049ee80
xor al, al
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x1c
ret
mov ebx, dword [esp + 0x10]
push 1
mov edi, 0x56d01c
call fcn.00408750
add esp, 4
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0xc], vtable.cWCS.0
lea ecx, [esp + 0xc]
test al, al
je 0x40b343
call fcn.0049ee80
mov al, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x1c
ret
Function at 0x40b930
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x81c
mov eax, dword [0x5b3890]
xor eax, esp
mov dword [esp + 0x818], eax
mov eax, dword [esp + 0x820]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push esi
push edi
mov esi, ecx
lea ecx, [esp + 0x10]
push ecx
push 0x20119
push 0
mov edi, edx
push edi
push esi
mov dword [esp + 0x30], eax
call ebp
test eax, eax
je 0x40b984
lea edx, [esp + 0x10]
push edx
push 0x20019
push 0
push edi
push esi
call ebp
test eax, eax
jne 0x40b9bb
xor eax, eax
push eax
push eax
push eax
push eax
lea ecx, [esp + 0x28]
push ecx
push eax
push eax
lea edx, [esp + 0x30]
push edx
push eax
push eax
push eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x40b9d5
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x818]
xor ecx, esp
call fcn.0051916c
add esp, 0x81c
ret
mov esi, dword [esp + 0x14]
mov byte [esp + 0xf], 0
test esi, esi
je 0x40ba40
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebp, 0x400
lea ecx, [ecx]
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0
push 0
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x38]
push eax
dec esi
push esi
push ecx
mov dword [esp + 0x40], ebp
call edi
test eax, eax
jne 0x40ba25
lea edx, [esp + 0x24]
push ebx
push edx
call fcn.004a0960
add esp, 8
test al, al
jne 0x40ba2b
test esi, esi
jne 0x40b9f0
jmp 0x40ba40
mov ecx, dword [esp + 0x1c]
push 0xffffffffffffffff
lea eax, [esp + 0x28]
push eax
call fcn.00406a80
mov byte [esp + 0xf], 1
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x824]
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0051916c
add esp, 0x81c
ret
Function at 0x40dc30
Capabilities:
Get common file path

Disassembly:
push esi
push 0
push 0x10
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0
push 0
push edi
mov esi, str.ntuser.dat
call fcn.004b30d0
lea ecx, [edi + eax*2]
add esp, 0xc
sub ecx, esi
movzx eax, word [esi]
mov word [ecx + esi], ax
add esi, 2
test ax, ax
jne 0x40dc55
push edi
call fcn.004ba280
dec eax
add esp, 4
neg eax
sbb eax, eax
inc eax
pop esi
ret

Function at 0x40e040
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5502f0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
mov eax, dword [0x5b3890]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x10]
call fcn.0049eff0
mov dword [esp + 8], vtable.cWCStr.0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push eax
push ecx
mov dword [esp + 0x38], 0
call fcn.0041a790
mov edx, dword [str._sOpera_SoftwareOpera_StableDefault]
push eax
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00401080
mov eax, dword [esp + 0x58]
add esp, 0x14
test eax, eax
je 0x40e0c0
push eax
lea ecx, [esp + 0xc]
push 0x56dbc0
push ecx
call fcn.00408140
add esp, 0xc
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x20]
call fcn.0049eff0
mov dword [esp + 0x18], vtable.cWCStr.0
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0xc]
push 1
push 0
push edx
push eax
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0x44], 1
call fcn.00431c60
mov ecx, dword [esp + 0x54]
mov edx, dword [ecx]
mov eax, dword [esp + 0x30]
mov edx, dword [edx]
add esp, 0x14
push 0xffffffffffffffff
push eax
call edx
lea ecx, [esp + 0x18]
mov bl, al
mov byte [esp + 0x30], 0
mov dword [esp + 0x18], vtable.cWCS.0
call fcn.0049ee80
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 8], vtable.cWCS.0
call fcn.0049ee80
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x2c
ret 0x14
Function at 0x40ecb0
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x550428
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x5b3890]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0040e350
xor ebx, ebx
mov dword [esp + 0x24], eax
cmp dword [eax], ebx
jne 0x40eeb0
push 0xffffffffffffffff
lea ecx, [esp + 0x3c]
push ebx
call fcn.0049eff0
mov dword [esp + 0x38], vtable.cWCSF.0
cmp esi, ebx
jne 0x40ed3b
mov ecx, dword [esp + 0x58]
mov edx, dword [str.MicrosoftWindowsCurrentVersionUninstall]
lea eax, [esp + 0x14]
push eax
or ecx, 9
push ecx
push ebx
push edx
push str.SOFTWARE
lea eax, [esp + 0x4c]
push 0x56be54
push eax
mov dword [esp + 0x6c], ebx
call fcn.00403e80
add esp, 0x10
push eax
push reloc.OLEAUT32.dll_SysReAllocString
jmp 0x40ed75
mov edx, dword [esp + 0x58]
mov eax, dword [str.MicrosoftWindowsCurrentVersionUninstall]
lea ecx, [esp + 0x14]
push ecx
or edx, 9
push edx
push ebx
push eax
push str.Software
push esi
lea ecx, [esp + 0x50]
push 0x56c704
push ecx
mov dword [esp + 0x70], 1
call fcn.00403e80
add esp, 0x14
push eax
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [esp + 0x38]
mov esi, eax
mov dword [esp + 0x50], 0xffffffff
mov dword [esp + 0x38], vtable.cWCS.0
call fcn.0049ee80
cmp esi, ebx
jne 0x40edcf
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x2c]
push edx
push ebx
push ebx
lea eax, [esp + 0x34]
push eax
push ebx
push ebx
push ebx
push ecx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, ebx
je 0x40ede4
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x44
ret
mov esi, dword [esp + 0x18]
mov byte [esp + 0x13], bl
cmp esi, ebx
je 0x40ee87
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ebx, [ebx]
push 0x400
lea ecx, [esp + 0x2c]
dec esi
call fcn.0049f020
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x30]
push ecx
push edx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x2c]
push esi
push eax
mov dword [esp + 0x70], 2
call edi
cmp eax, ebx
jne 0x40ee4a
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
call fcn.0040e8e0
test al, al
jne 0x40ee69
lea ecx, [esp + 0x28]
mov dword [esp + 0x50], 0xffffffff
mov dword [esp + 0x28], vtable.cWCS.0
call fcn.0049ee80
cmp esi, ebx
jne 0x40ee00
jmp 0x40ee87
lea ecx, [esp + 0x28]
mov byte [esp + 0x13], 1
mov dword [esp + 0x50], 0xffffffff
mov dword [esp + 0x28], vtable.cWCS.0
call fcn.0049ee80
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esp + 0x13], bl
je 0x40edcf
mov eax, dword [esp + 0x24]
xor edx, edx
cmp dword [esp + 0x58], 0x100
sete dl
mov dword [eax + 0x10], edx
mov al, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x44
ret
Function at 0x40fb10
Capabilities:
Get installed programs

Disassembly:
sub esp, 0x410
mov eax, dword [0x5b3890]
xor eax, esp
mov dword [esp + 0x40c], eax
push esi
push 0x3ff
lea eax, [esp + 0x15]
push 0
push eax
mov byte [esp + 0x1c], 0
call fcn.00519500
add esp, 0xc
call fcn.0040f9f0
cmp dword [eax], 0
jne 0x40fc84
mov edx, dword [str.SoftwareMicrosoftWindowsCurrentVersionUninstallOpera]
lea ecx, [esp + 8]
push ecx
push 1
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 0x400
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40fbe0
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push 0x56e024
push eax
call fcn.004b42b0
mov ecx, dword [esp + 0x20]
add esp, 0x18
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40fbe0
cmp word [esp + 0x10], 0x22
lea edx, [esp + 0x10]
mov esi, 0x20
jne 0x40fbc1
mov esi, 0x22
lea edx, [esp + 0x12]
xor eax, eax
cmp word [edx], ax
je 0x40fbe0
mov ecx, edx
lea ebx, [ebx]
cmp word [ecx], si
je 0x40fbf8
inc eax
cmp word [edx + eax*2], 0
lea ecx, [edx + eax*2]
jne 0x40fbd0
xor al, al
pop esi
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.0051916c
add esp, 0x410
ret
xor ecx, ecx
mov word [edx + eax*2], cx
lea esi, [ecx + 2]
test eax, eax
je 0x40fc1f
movzx ecx, word [edx + eax*2]
cmp cx, 0x5c
je 0x40fc15
cmp cx, 0x2f
jne 0x40fc1a
sub esi, 1
je 0x40fc37
sub eax, 1
jne 0x40fc05
xor al, al
pop esi
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.0051916c
add esp, 0x410
ret
inc eax
lea esi, [edx + eax*2]
xor eax, eax
mov word [esi], ax
mov eax, str.Opera.exe
sub esi, eax
jmp 0x40fc50
movzx ecx, word [eax]
mov word [esi + eax], cx
add eax, 2
test cx, cx
jne 0x40fc50
push 0xffffffffffffffff
push edx
call fcn.0040f9f0
push eax
call fcn.004ae9d0
add esp, 0xc
test al, al
je 0x40fbe0
call fcn.0040f9f0
mov dword [eax + 8], 0
call fcn.0040f9f0
cmp dword [eax + 4], 0
jne 0x40fcd8
mov dword [esp + 4], 0x400
call fcn.0040f9f0
mov eax, dword [eax]
push 0
push 0x56de58
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.004a33a0
add esp, 0x14
test eax, eax
je 0x40fbe0
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
push ecx
call fcn.0040f9f0
add eax, 4
push eax
call fcn.004ae9d0
add esp, 0xc
mov ecx, dword [esp + 0x410]
pop esi
xor ecx, esp
mov al, 1
call fcn.0051916c
add esp, 0x410
ret