joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4070bd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40d468
cmp edx, dword [eax]
je 0x4070df
add eax, 8
inc ecx
cmp eax, 0x40d4f8
jl 0x4070d0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40d468]
jne 0x40720d
mov eax, dword [0x40e498]
cmp eax, 1
je 0x4071e7
test eax, eax
jne 0x407110
cmp dword [0x40d39c], 1
je 0x4071e7
cmp edx, 0xfc
je 0x40720d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407147
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404340
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404190
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40718a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404190
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40b5ec
push edi
call fcn.00408c50
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404340
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404350
lea eax, [ebp - 0xa0]
push 0x40b5cc
push eax
call fcn.00404350
push dword [esi + 0x40d46c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404350
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00408bc2
add esp, 0x2c
pop edi
jmp 0x40720d
lea eax, [ebp + 8]
lea esi, [esi + 0x40d46c]
push 0
push eax
push dword [esi]
call fcn.00404190
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x4153e0
Capabilities:
Encode data using xor

Disassembly:
or dword [eax], eax
cmc
pop ebx
pop ecx
imul esi, dword [ecx - 0x24], 0x4d78885c
faddp st(2)
adc bh, dh
stosb byte es:[edi], al
popal
dec edx
and dword [edx - 0x278abf8a], esp
xor al, 0xee
invalid

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x3dbc6e67
nop
nop
test eax, eax
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x791d1d0c
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x1000134a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100013a3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10001394
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x10001390
cmp esi, ecx
jae 0x10001394
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec edx
jne 0x10001380
cmp esi, ecx
jb 0x10001398
xor eax, eax
jmp 0x100013a2
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x100020e4
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x10014f30
call fcn.10013ae5
mov ebx, edx
mov esi, ecx
mov dword [ebp - 0x20], esi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], edi
call fcn.10001479
push eax
mov ecx, esi
call fcn.10001710
mov dword [ebp - 4], edi
mov ecx, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], ecx
test edi, edi
je 0x10002141
lea eax, [ebp - 0x10]
push eax
push 0x20019
push ecx
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100021b4
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
test edi, edi
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp + 0xc]
mov eax, ebx
cmovne eax, ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100021b4
cmp dword [ebp - 0x18], 1
je 0x1000216e
cmp dword [ebp - 0x18], 2
jne 0x100021b4
push dword [ebp - 0x14]
call fcn.100046fb
push dword [ebp - 0x14]
mov edi, eax
push 0
push edi
call fcn.10005290
add esp, 0x10
lea eax, [ebp - 0x14]
cmp dword [ebp + 8], 0
cmovne ebx, dword [ebp - 0x10]
push eax
push edi
push 0
push 0
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100021ad
push edi
mov ecx, esi
call fcn.100016cd
push edi
call fcn.10004704
pop ecx
cmp dword [ebp - 0x10], 0
je 0x100021c3
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
call fcn.10013ac2
ret
Function at 0x100021cb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, edx
mov ebx, 0x80000001
xor edx, edx
mov dword [ebp - 8], edx
mov ecx, edx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
test edi, edi
je 0x1000220c
lea eax, [ebp - 4]
push eax
push 0x20019
push edx
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x10002258
mov ecx, dword [ebp - 4]
xor edx, edx
lea eax, [ebp - 0xc]
test edi, edi
push eax
push edx
lea eax, [ebp - 8]
push eax
push edx
mov eax, ebx
push str.nthp_prev
cmovne eax, ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x10002258
cmp dword [ebp - 8], 4
jne 0x10002255
lea eax, [ebp - 0xc]
test edi, edi
push eax
cmovne ebx, dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push str.nthp_prev
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
jmp 0x10002258
push 0xd
pop esi
cmp dword [ebp - 4], 0
je 0x10002267
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10002270
mov dword [eax], esi
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000227a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, edx
xor eax, eax
mov dword [ebp - 4], eax
push edi
mov edi, ecx
test ebx, ebx
je 0x100022a7
lea eax, [ebp - 4]
push eax
push 2
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x100022c3
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
test ebx, ebx
push dword [ebp + 0x10]
cmovne edi, eax
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp dword [ebp - 4], 0
je 0x100022d2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002978
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10014f7e
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x28], ebx
call fcn.100028e9
mov edi, dword [ebp + 0xc]
xor esi, esi
mov dword [esp + 0x20], esi
mov edx, esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x14], edx
test edi, edi
je 0x100029e6
lea eax, [esp + 0x14]
push eax
push 1
push esi
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10002b5d
mov edx, dword [esp + 0x14]
push esi
push esi
push esi
lea eax, [esp + 0x2c]
test edi, edi
push eax
lea eax, [esp + 0x34]
push eax
push esi
push esi
push esi
push esi
push esi
mov eax, 0x80000002
push esi
cmovne eax, edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x10002b5d
mov eax, dword [esp + 0x20]
mov ebx, esi
inc eax
mov dword [esp + 0x20], eax
cmp dword [esp + 0x24], ebx
jle 0x10002b59
mov dword [esp + 0x1c], eax
call fcn.10001479
push eax
lea ecx, [esp + 0x1c]
call fcn.10001710
push esi
push esi
push esi
push esi
lea eax, [esp + 0x2c]
mov dword [esp + 0x58], esi
push eax
push dword [esp + 0x30]
lea ecx, [esp + 0x30]
call fcn.10001825
push eax
test edi, edi
mov eax, 0x80000002
push ebx
cmovne eax, dword [esp + 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push ecx
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.10002688
test esi, esi
je 0x10002a8a
or dword [esp + 0x48], 0xffffffff
mov ecx, dword [esp + 0x18]
lea ecx, [ecx - 0x10]
jmp 0x10002b42
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
test edi, edi
mov eax, 0x80000002
push esi
cmovne eax, dword [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10002b3a
call fcn.10001479
push eax
lea ecx, [esp + 0x30]
call fcn.10001710
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x18]
mov byte [esp + 0x48], 1
push eax
lea ecx, [esp + 0x30]
call fcn.100022db
mov eax, dword [esp + 0x1c]
push eax
mov dword [esp + 0x3c], eax
call fcn.100046fb
pop ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x34], eax
push ecx
push eax
lea eax, [esp + 0x38]
test edi, edi
push eax
push 0
push dword [esp + 0x3c]
mov eax, 0x80000002
cmovne eax, dword [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10002b2e
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x2c]
push eax
call fcn.10002c1e
mov ecx, dword [esp + 0x2c]
lea ecx, [ecx - 0x10]
call fcn.1000145d
or dword [esp + 0x48], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.1000145d
inc ebx
cmp ebx, dword [esp + 0x24]
jge 0x10002b59
mov eax, dword [esp + 0x20]
xor esi, esi
jmp 0x10002a27
mov ebx, dword [esp + 0x28]
cmp dword [esp + 0x14], 0
je 0x10002b6e
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10002b86
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, ecx
push ebx
push esi
xor esi, esi
mov dword [ebp - 8], eax
mov ebx, dword [eax + 4]
mov dword [ebp - 4], esi
push edi
mov edi, esi
test ebx, ebx
jne 0x10002ba5
xor eax, eax
jmp 0x10002c15
cmp dword [ebp + 0xc], esi
je 0x10002bca
push esi
lea eax, [ebp - 4]
push eax
push esi
push 2
push esi
push esi
push esi
push dword [ebp + 0xc]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10002c04
mov eax, dword [ebp - 8]
test ebx, ebx
jle 0x10002c04
push esi
mov ecx, eax
call fcn.10002ca8
cmp dword [ebp + 0xc], 0
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
push 0
push dword [eax]
mov eax, 0x80000002
cmovne eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x10002bfc
inc edi
mov eax, dword [ebp - 8]
inc esi
cmp esi, ebx
jl 0x10002bce
cmp dword [ebp - 4], 0
je 0x10002c13
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10002d11
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
call fcn.10001479
push eax
lea ecx, [ebp - 8]
call fcn.10001710
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0xc]
push str.ProductCode
call fcn.10001bf2
pop ecx
mov edx, eax
lea ecx, [ebp + 8]
call fcn.10001d17
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.1000145d
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp dword [edi - 0xc], ebx
je 0x10002e64
lea eax, [ebp + 8]
mov edx, 0x1001f11c
push eax
push 0x1001a858
lea ecx, [ebp - 0x10]
call fcn.10001673
pop ecx
mov edx, eax
lea ecx, [ebp - 0xc]
call fcn.10002633
pop ecx
push ebx
lea ecx, [ebp - 4]
mov esi, 0x80000001
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push dword [eax]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ecx, dword [ebp - 0xc]
test eax, eax
setne bl
lea ecx, [ecx - 0x10]
call fcn.1000145d
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.1000145d
test bl, bl
jne 0x10002e64
push ecx
push ecx
push str.gc_inst_ext_id
push dword [0x1001f124]
mov edx, esi
lea ecx, [ebp + 8]
call fcn.100020e4
add esp, 0x10
lea ecx, [ebp - 8]
push eax
call fcn.100022db
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.1000145d
mov esi, dword [ebp - 8]
xor ebx, ebx
mov eax, dword [esi - 0xc]
test eax, eax
je 0x10002e1c
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push ebx
push str.gc_inst_ext_id
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 8]
call fcn.10001a71
mov esi, dword [ebp - 8]
call fcn.10003680
lea ecx, [ebp - 4]
call fcn.100037ff
lea ecx, [ebp - 4]
call fcn.10003967
lea ecx, [ebp - 4]
call fcn.10003bd0
push str.Updater.exe
lea ecx, [ebp + 8]
call fcn.1000161a
lea ecx, [ebp + 8]
call fcn.10003fbe
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.1000145d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10002e6a
mov esi, dword [ebp - 8]
xor ebx, ebx
inc ebx
lea ecx, [edi - 0x10]
call fcn.1000145d
lea ecx, [esi - 0x10]
call fcn.1000145d
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10003278
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
call fcn.10001479
push eax
lea ecx, [ebp - 4]
call fcn.10001710
lea eax, [ebp - 0xc]
mov ecx, 0x104
push eax
mov dword [ebp - 0xc], ecx
push ecx
lea ecx, [ebp - 4]
call fcn.10001825
push eax
push 0x1001ac4c
push str.86D4B82A_ABED_442A_BE86_96357B70F4FE
call dword [sym.imp.msi.dll_MsiGetPropertyW]
mov esi, dword [ebp - 4]
test eax, eax
jne 0x100033f8
push ecx
lea ecx, [ebp - 4]
call fcn.10002688
push str._1.msi
lea edx, [ebp - 4]
lea ecx, [ebp - 0x1c]
call fcn.1000203c
push eax
push 0x1001a858
lea edx, [ebp - 4]
lea ecx, [ebp - 0x18]
call fcn.10001f68
mov edx, eax
lea ecx, [ebp - 0x14]
call fcn.10001673
pop ecx
mov edx, eax
lea ecx, [ebp - 0x10]
call fcn.10002633
pop ecx
mov edx, eax
lea ecx, [ebp - 8]
call fcn.10001673
pop ecx
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.1000145d
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.1000145d
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.1000145d
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.1000145d
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push esi
call dword [sym.imp.msi.dll_MsiOpenProductW]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x10003366
cmp dword [ebp - 4], 0
je 0x100033ed
push dword [ebp - 4]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
jmp 0x100033ed
push ecx
mov ecx, dword [ebp - 4]
mov edx, str.RemoveChromeEntry
call fcn.10003407
mov ecx, dword [ebp - 4]
mov edx, str.vb_UninstCheckIfBrowserOpen
call fcn.10003407
mov ecx, dword [ebp - 4]
mov edx, str.vb_UninstAbortIfBrowserOpen
call fcn.10003407
mov ecx, dword [ebp - 4]
mov edx, str.RemoveUserProfileSettings
call fcn.10003407
mov ecx, dword [ebp - 4]
mov edx, str.vb_UnhideTB
call fcn.10003407
pop ecx
mov ecx, dword [ebp - 4]
call fcn.10003cab
push dword [ebp - 4]
call dword [sym.imp.msi.dll_MsiDatabaseGenerateTransformW]
cmp dword [ebp - 4], 0
je 0x100033c9
push dword [ebp - 4]
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov edx, dword [ebp - 8]
mov ecx, esi
call fcn.10003ee8
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.1000145d
lea ecx, [esi - 0x10]
call fcn.1000145d
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10003407
Capabilities:
Reference sql statements

Disassembly:
push 0x28
mov eax, 0x10014ff9
call fcn.10013ae5
mov ebx, edx
mov dword [ebp - 0x30], ebx
mov edi, ecx
mov dword [ebp - 0x34], edi
call fcn.10001479
push eax
lea ecx, [ebp - 0x18]
call fcn.10001710
xor esi, esi
mov dword [ebp - 4], esi
call fcn.10001479
push eax
lea ecx, [ebp - 0x1c]
call fcn.10001710
push str.SELECT__Condition__FROM__InstallExecuteSequence__WHERE__Action__s
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.1000161a
push str.UPDATE__InstallExecuteSequence__SET__Condition__s_WHERE__Action__s
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.1000161a
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
push ebx
mov byte [ebp - 4], 5
lea eax, [ebp - 0x18]
push dword [ebp - 0x24]
push eax
call fcn.10002864
mov ebx, dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
add esp, 0xc
cmp dword [ebp - 0x10], esi
je 0x1000348a
push dword [ebp - 0x10]
call ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 0x18]
push eax
push esi
push edi
call dword [sym.imp.msi.dll_MsiEnumClientsA]
test eax, eax
jne 0x10003568
push eax
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
jne 0x10003568
cmp dword [ebp - 0x14], eax
je 0x100034c0
push dword [ebp - 0x14]
call ebx
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
test eax, eax
jne 0x10003568
mov edx, dword [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.10001c89
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x28]
mov edx, eax
mov dword [esp], str._And__NOT_UPGRADINGPRODUCTCODE_
call fcn.10001673
pop ecx
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.100022db
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.1000145d
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.1000145d
push dword [ebp - 0x30]
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push edi
push dword [ebp - 0x20]
push eax
call fcn.10002864
add esp, 0x10
cmp dword [ebp - 0x10], 0
je 0x10003543
push dword [ebp - 0x10]
call ebx
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
and dword [ebp - 0x10], 0
push eax
push esi
push dword [ebp - 0x34]
call dword [sym.imp.msi.dll_MsiEnumClientsA]
test eax, eax
jne 0x1000356b
push eax
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiViewModify]
jmp 0x1000356b
mov edi, dword [ebp - 0x1c]
cmp dword [ebp - 0x14], 0
je 0x10003576
push dword [ebp - 0x14]
call ebx
cmp dword [ebp - 0x10], 0
je 0x10003581
push dword [ebp - 0x10]
call ebx
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.1000145d
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.1000145d
lea ecx, [edi - 0x10]
call fcn.1000145d
lea ecx, [esi - 0x10]
call fcn.1000145d
call fcn.10013ac2
ret
Function at 0x10003680
Capabilities:
Check os version

Disassembly:
push 0x12c
mov eax, 0x10015057
call fcn.10013b18
call fcn.10001479
push eax
lea ecx, [ebp - 0x134]
call fcn.10001710
xor edi, edi
lea eax, [ebp - 0x120]
push 0x110
push edi
mov dword [ebp - 4], edi
push eax
mov dword [ebp - 0x130], 2
call fcn.10005290
add esp, 0xc
mov dword [ebp - 0x124], 0x114
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x100037e6
cmp dword [ebp - 0x120], 6
mov eax, edi
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x12c], edi
jb 0x10003731
push str.ieframe.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x1000372b
push str.IEGetWriteableHKCU
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10003724
lea ecx, [ebp - 0x128]
push ecx
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x128]
lea ecx, [ebp - 0x12c]
test eax, eax
push ecx
push 0x20019
push edi
push dword [0x1001f134]
mov esi, 0x80000001
cmove eax, esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100037e6
mov edx, dword [ebp - 0x12c]
push ecx
push ecx
push str.HomePageGuard
push edi
lea ecx, [ebp - 0x138]
call fcn.100020e4
add esp, 0x10
push 0x1001a854
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.100026a8
mov ecx, dword [ebp - 0x138]
neg eax
sbb eax, eax
add ecx, 0xfffffff0
inc eax
mov dword [ebp - 0x130], eax
call fcn.1000145d
mov edx, dword [0x1001f13c]
lea eax, [ebp - 0x130]
push ecx
push 4
push eax
push 4
push str.hpgDisable
mov ecx, esi
call fcn.1000227a
add esp, 0x14
lea ecx, [ebp - 0x134]
call fcn.10001a71
push dword [ebp - 0x12c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x128]
call esi
jmp 0x100037e9
xor edi, edi
inc edi
mov ecx, dword [ebp - 0x134]
add ecx, 0xfffffff0
call fcn.1000145d
mov eax, edi
call fcn.10013ad6
ret
Function at 0x100037ff
Capabilities:
Set registry value

Disassembly:
push 0x10
mov eax, 0x1001509f
call fcn.10013ae5
mov ebx, ecx
call fcn.10001479
push eax
lea ecx, [ebp - 0x10]
call fcn.10001710
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
push str.Macro
mov edx, 0x1001f144
mov dword [ebp - 0x14], 1
call fcn.10001673
push ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
push str.homepageurl
push dword [eax]
mov edx, 0x80000002
call fcn.100020e4
add esp, 0x10
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.100022db
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.1000145d
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.1000145d
mov esi, dword [ebp - 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esi - 0xc]
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push str.hpr_ie
push dword [ebx]
call edi
mov eax, dword [esi - 0xc]
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push str.hpr_ff
push dword [ebx]
call edi
push ecx
push ecx
push str.cr_homepageurl
push dword [0x1001f14c]
mov edx, 0x80000001
lea ecx, [ebp - 0x1c]
call fcn.100020e4
add esp, 0x10
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.100022db
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.1000145d
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push str.hpr_cr
push dword [ebx]
call edi
push ecx
mov dword [ebp - 0x14], 1
push 4
mov ecx, dword [ebx]
lea eax, [ebp - 0x14]
pop edi
push edi
push eax
push edi
push str.hpr_ie_set
xor edx, edx
call fcn.1000227a
mov ecx, dword [ebx]
lea eax, [ebp - 0x14]
add esp, 0x10
xor edx, edx
push edi
push eax
push edi
push str.hpr_ff_set
call fcn.1000227a
mov ecx, dword [ebx]
lea eax, [ebp - 0x14]
add esp, 0x10
xor edx, edx
push edi
push eax
push edi
push str.hpr_cr_set
call fcn.1000227a
add esp, 0x14
lea ecx, [esi - 0x10]
call fcn.1000145d
xor eax, eax
call fcn.10013ac2
ret
Function at 0x10003fbe
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
mov esi, ecx
push 2
mov dword [ebp - 0x234], esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x10004053
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x1000404f
push dword [esi]
lea eax, [ebp - 0x20c]
push eax
call fcn.10004791
pop ecx
pop ecx
test eax, eax
jne 0x10004041
push dword [ebp - 0x228]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x10004006
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10004187
mov esp, ebp
pop ebp
ret