joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4051bd
Capabilities:
Reference sql statements

Disassembly:
push 0x18
mov eax, 0x439639
call fcn.00421760
xor edi, edi
lea ecx, [ebp - 0x18]
push str.SELECT_Value_FROM_Property_WHERE_Property.Property
mov dword [ebp - 0x24], edi
call fcn.0040194d
mov esi, 0x43de20
mov dword [ebp - 4], edi
push esi
lea ecx, [ebp - 0x18]
call fcn.00403dfa
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x18]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00403e23
push esi
lea ecx, [ebp - 0x18]
call fcn.00403dfa
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x14], edi
push dword [ebp + 0xc]
call sub.msi.dll_MsiEnumClientsA
test eax, eax
je 0x405260
call fcn.0040b92a
mov ecx, dword [ebp + 8]
push eax
call fcn.004012cf
cmp dword [ebp - 0x10], 0
je 0x40523f
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], 0
je 0x40524d
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401856
mov eax, dword [ebp + 8]
jmp 0x405330
push edi
push dword [ebp - 0x14]
call sub.msi.dll_MsiViewModify
test eax, eax
jne 0x405223
cmp dword [ebp - 0x10], eax
je 0x40527a
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edi
push eax
push dword [ebp - 0x14]
call sub.msi.dll_MsiDatabaseIsTablePersistentA
test eax, eax
jne 0x405223
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], edi
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], edi
push eax
push 1
push dword [ebp - 0x10]
call sub.msi.dll_MsiRecordSetStreamA
cmp dword [ebp - 0x1c], 0
je 0x405223
call fcn.0040b92a
push eax
lea ecx, [ebp + 0x10]
call fcn.004012cf
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp + 0x10]
inc eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x1c], eax
inc eax
push eax
call fcn.004017e6
lea ecx, [ebp - 0x1c]
push ecx
push eax
push 1
push dword [ebp - 0x10]
call sub.msi.dll_MsiRecordSetStreamA
push 0xffffffffffffffff
lea ecx, [ebp + 0x10]
call fcn.00401872
mov esi, dword [ebp + 0x10]
add esi, 0xfffffff0
push esi
call fcn.004013b4
mov edi, dword [ebp + 8]
add eax, 0x10
pop ecx
mov ecx, esi
mov dword [edi], eax
call fcn.00401856
cmp dword [ebp - 0x10], 0
je 0x405315
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], 0
je 0x405323
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401856
mov eax, edi
call fcn.0042172e
ret 0xc
Function at 0x405c3e
Capabilities:
Get common file path

Disassembly:
push 4
mov eax, 0x43a0d6
call fcn.00421760
mov esi, ecx
push 0
lea edi, [esi + 8]
push str.http:__
mov ecx, edi
call fcn.00404283
test eax, eax
je 0x405c77
push 0
push str.ftp:__
mov ecx, edi
call fcn.00404283
test eax, eax
jne 0x405d0a
push 0x2f
push dword [edi]
call fcn.0042204d
pop ecx
pop ecx
test eax, eax
jne 0x405c8b
or eax, 0xffffffff
jmp 0x405c8f
sub eax, dword [edi]
sar eax, 1
lea ebx, [eax + 1]
mov eax, dword [edi]
cmp ebx, dword [eax - 0xc]
jne 0x405ca2
mov ecx, edi
call fcn.00401451
jmp 0x405d0a
lea ecx, [esi + 0x10]
mov dword [esi + 0xc], 1
push edi
call fcn.0040132a
add esi, 0x14
push 0x104
mov ecx, esi
call fcn.004017e6
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00401872
push ebx
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.0040610a
mov eax, dword [eax]
mov ecx, esi
and dword [ebp - 4], 0
push dword [eax - 0xc]
push eax
call fcn.00403e23
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00401856
push esi
mov ecx, edi
call fcn.0040132a
call fcn.0042172e
ret
Function at 0x405d10
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x18
mov eax, 0x4396fd
call fcn.00421760
mov ebx, ecx
mov dword [ebp - 0x20], ebx
call fcn.0040b92a
push eax
lea ecx, [ebp - 0x10]
call fcn.004012cf
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push 0
push 0x25
mov edi, 0x104
push edi
call fcn.004017e6
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00401872
push 0x43e5ac
lea ecx, [ebp - 0x10]
call fcn.00403dfa
push edi
lea ecx, [ebx + 4]
call fcn.004017e6
mov edi, dword [ebp - 0x10]
lea ecx, [ebp - 0x24]
push 0
push 0
push ecx
push eax
push edi
call sub.msi.dll_MsiMessageBoxW
push 0xffffffffffffffff
lea ecx, [ebx + 4]
call fcn.00401872
push str.Path
lea ecx, [ebp - 0x18]
call fcn.0040194d
push str.MSI_Updater
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0040194d
push 0x453998
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x14]
mov ecx, 0x4538c8
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00408fe7
add ebx, 8
mov byte [ebp - 4], 3
push eax
mov ecx, ebx
call fcn.0040132a
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00401856
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00401856
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 0
lea ecx, [ecx - 0x10]
call fcn.00401856
mov esi, dword [ebp - 0x20]
mov ecx, esi
call fcn.00405c3e
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x405e63
cmp dword [esi + 0xc], 0
jne 0x405e2b
push ebx
mov ecx, 0x4538c8
call fcn.004087be
test eax, eax
jne 0x405e2b
mov ecx, ebx
call fcn.00401451
jmp 0x405e63
call fcn.0040b92a
push eax
lea ecx, [ebp - 0x18]
call fcn.004012cf
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 4
push str.__quiet__norestart__overwriteoem
push eax
call fcn.004014f0
mov esi, dword [ebp - 0x18]
pop ecx
pop ecx
mov ecx, ebx
push dword [esi - 0xc]
push esi
call fcn.00403e23
lea ecx, [esi - 0x10]
call fcn.00401856
lea ecx, [edi - 0x10]
call fcn.00401856
call fcn.0042172e
ret
Function at 0x405e71
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
push 0x44
pop edi
push edi
xor ebx, ebx
lea eax, [ebp - 0x58]
push ebx
push eax
mov esi, ecx
call fcn.00420ec0
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 0x58], edi
push ebx
push eax
call fcn.00420ec0
mov eax, dword [esi + 8]
lea ecx, [esi + 8]
add esp, 0x18
push dword [eax - 0xc]
call fcn.004017e6
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x58]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x405efb
cmp dword [0x4539a4], ebx
je 0x405eea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi + 8]
push str.InstallUpdate:_CreateProcess_failed__Cmdline_s_Error_d_._n
push 0x453994
call fcn.004014f0
add esp, 0x10
mov ecx, 0x4538c8
call fcn.0040a616
xor eax, eax
jmp 0x405f7c
mov esi, ebx
cmp dword [0x4539ac], ebx
jne 0x405f15
push ebx
push ebx
push ebx
push ebx
push 0x43d294
call fcn.00412b8a
mov esi, eax
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test esi, esi
je 0x405f40
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x405f2f
mov eax, ebx
jmp 0x405f32
mov eax, dword [eax + 0x20]
push ebx
push ebx
push 0x405
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
xor edi, edi
inc edi
test eax, eax
je 0x405f6a
mov ecx, dword [0x4539a8]
cmp dword [ebp - 4], 0xbc2
cmove ecx, edi
mov dword [0x4539a8], ecx
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405f83
Capabilities:
Identify system language via api

Disassembly:
push 0xa0
mov eax, 0x439723
call fcn.00421760
mov esi, ecx
mov eax, dword [esi + 8]
cmp dword [eax - 0xc], 0
jne 0x405fa1
xor eax, eax
jmp 0x40601a
cmp dword [esi + 0xc], 0
je 0x406017
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov ecx, 0x3ff
and ax, cx
movzx ecx, ax
xor eax, eax
inc eax
cmp cx, ax
je 0x405fc7
cmp ecx, 0xd
je 0x405fc7
xor eax, eax
push 0
push eax
lea ecx, [ebp - 0xac]
call fcn.00401991
and dword [ebp - 4], 0
lea eax, [esi + 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040132a
lea eax, [esi + 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040132a
lea ecx, [ebp - 0xac]
call fcn.0040c218
lea ecx, [ebp - 0xac]
lea esi, [eax - 1]
neg esi
sbb esi, esi
or dword [ebp - 4], 0xffffffff
call fcn.004019dc
lea eax, [esi + 1]
jmp 0x40601a
xor eax, eax
inc eax
call fcn.0042172e
ret
Function at 0x4066a0
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push 4
push ebx
push ebx
push 0x43cbc8
call fcn.00412b8a
mov dword [esi + 0x20], eax
mov dword [eax + 0x44], 0x3f1
mov eax, dword [esi + 0x20]
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, ebx
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4066da
cmp dword [eax + 0x20], ebx
jne 0x4066ea
cmp edi, 2
jge 0x4066ea
push 0x64
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4066ce
mov ecx, eax
pop edi
mov eax, dword [ecx + 0x20]
mov dword [esi + 0x24], eax
mov eax, dword [ecx + 0x2c]
mov dword [esi + 0x28], eax
pop esi
pop ebx
ret

Function at 0x4075b7
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov ecx, 0x3ff
and ax, cx
movzx eax, ax
cmp eax, 1
je 0x4075da
cmp eax, 0xd
je 0x4075da
mov eax, dword [ebp + 0xc]
jmp 0x4075e2
mov eax, dword [ebp + 0xc]
or eax, 0x100000
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
push 0x4538c8
call fcn.00417aee
add esp, 0x10
pop ebp
ret
Function at 0x407a9e
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x40
mov eax, 0x439bc3
call fcn.00421793
mov esi, ecx
mov dword [ebp - 0x4c], esi
and dword [ebp - 0x30], 0
lea edi, [ebp - 0x2c]
and dword [ebp - 0x20], 0
lea ecx, [ebp - 0x48]
xor eax, eax
mov dword [ebp - 0x38], 0x104
stosd dword es:[edi], eax
push str.RequireIE
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0040194d
xor edi, edi
lea ecx, [ebp - 0x44]
push str.Startup
mov dword [ebp - 4], edi
call fcn.0040194d
lea eax, [esi + 0xd0]
xor ebx, ebx
push eax
lea eax, [ebp - 0x48]
inc ebx
push eax
lea eax, [ebp - 0x44]
mov byte [ebp - 4], bl
push eax
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.00408fe7
mov ecx, dword [ebp - 0x44]
lea ecx, [ecx - 0x10]
call fcn.00401856
mov ecx, dword [ebp - 0x48]
mov byte [ebp - 4], 4
lea ecx, [ecx - 0x10]
call fcn.00401856
mov eax, dword [ebp - 0x40]
cmp dword [eax - 0xc], edi
je 0x407bbf
lea ecx, [ebp - 0x14]
mov esi, str._d._d._d._d
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x20]
push ecx
push esi
push eax
call fcn.0042276f
add esp, 0x18
call fcn.0040b92a
push eax
lea ecx, [ebp - 0x34]
call fcn.004012cf
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 5
push eax
push 0x20019
push edi
push str.SOFTWAREMicrosoftInternet_Explorer
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407baf
push dword [ebp - 0x38]
lea ecx, [ebp - 0x34]
call fcn.004017e6
lea ecx, [ebp - 0x38]
push ecx
push eax
push edi
push edi
push str.Version
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x3c]
test eax, eax
je 0x407bcf
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x34]
mov ebx, edi
lea ecx, [esi - 0x10]
call fcn.00401856
mov eax, dword [ebp - 0x40]
lea ecx, [eax - 0x10]
call fcn.00401856
mov eax, ebx
call fcn.00421742
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
lea ecx, [ebp - 0x34]
call fcn.00401872
cmp dword [ebp - 0x38], 0
jbe 0x407baf
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
push esi
mov esi, dword [ebp - 0x34]
push esi
call fcn.0042276f
add esp, 0x18
mov eax, edi
mov ecx, dword [ebp + eax - 0x30]
cmp dword [ebp + eax - 0x20], ecx
jb 0x407bb4
ja 0x407c1a
add eax, 4
cmp eax, 0x10
jl 0x407c04
jmp 0x407bb4
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x40]
push eax
call fcn.0040955f
jmp 0x407bb2
Function at 0x408682
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push 0x2c
mov eax, 0x439d3b
call fcn.00421760
lea esi, [ecx + 0x124]
mov edi, 0x104
push edi
mov ecx, esi
call fcn.004017e6
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4087a1
push 0xffffffffffffffff
mov ecx, esi
call fcn.00401872
mov eax, dword [esi]
sub eax, 0x10
push eax
call fcn.004013b4
add eax, 0x10
pop ecx
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov ecx, esi
push edi
mov dword [ebp - 4], ebx
call fcn.004017e6
push eax
push ebx
push 0x44009c
lea ecx, [ebp - 0x10]
call fcn.00408dfb
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00401856
push 0xffffffffffffffff
mov ecx, esi
call fcn.00401872
lea ecx, [ebp - 0x38]
call fcn.00414292
push ebx
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 1
call fcn.004072b0
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 2
push eax
push 0x1001
push dword [esi]
lea ecx, [ebp - 0x38]
call fcn.0041471a
test eax, eax
jne 0x408746
mov ecx, esi
call fcn.00401451
jmp 0x408783
push str.LOCALIZATION_INI
push 0x87
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [ebp - 0x38]
call fcn.00414a81
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x24], vtable.CFileException.0
lea ecx, [ecx - 0x10]
call fcn.00401856
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.004142b9
call fcn.0042172e
ret

Function at 0x4087be
Capabilities:
Query environment variable

Disassembly:
push 0x20
mov eax, 0x439d6e
call fcn.00421760
mov edi, dword [ebp + 8]
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.004013b4
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
and dword [ebp - 4], 0
mov ebx, 0x104
push ebx
mov ecx, edi
call fcn.004017e6
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00401856
push 0xffffffffffffffff
mov ecx, edi
call fcn.00401872
lea ecx, [ebp - 0x2c]
call fcn.00415495
mov eax, dword [edi]
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
cmp dword [eax - 0xc], 0
je 0x40886b
push 0
push eax
lea ecx, [ebp - 0x2c]
call fcn.00415732
test eax, eax
je 0x40886b
lea ecx, [ebp - 0x2c]
call fcn.004158da
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004159f3
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.0040132a
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], bl
lea ecx, [ecx - 0x10]
call fcn.00401856
lea ecx, [ebp - 0x2c]
call fcn.004156e6
jmp 0x40886d
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00415646
mov eax, ebx
call fcn.0042172e
ret 4
Function at 0x408e12
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439e1c
mov eax, dword fs:[0]
push eax
mov eax, 0x1040
call fcn.00422390
mov eax, dword [0x4515a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x10]
mov ecx, ebx
mov esi, dword [ebp + 8]
call fcn.00401451
xor ecx, ecx
lea eax, [ebp - 0x1044]
push eax
push ecx
push dword [esi]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1044], ecx
call sub.msi.dll_MsiOpenProductW
test eax, eax
jne 0x408fb7
push str.SELECT__Message__FROM__Error__WHERE_Error.Error
lea ecx, [ebp - 0x1048]
call fcn.0040194d
push 9
xor eax, eax
mov byte [ebp - 4], 1
pop ecx
mov word [ebp - 0x38], ax
lea edi, [ebp - 0x36]
rep stosd dword es:[edi], eax
push 0xa
push 0x14
stosw word es:[edi], ax
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 0xc]
call fcn.00422806
add esp, 0x10
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x1048]
push eax
call fcn.00403dfa
xor esi, esi
mov dword [ebp - 0x103c], esi
lea eax, [ebp - 0x1040]
mov byte [ebp - 4], 3
push eax
push dword [ebp - 0x1048]
mov dword [ebp - 0x1040], esi
push dword [ebp - 0x1044]
call sub.msi.dll_MsiEnumClientsA
test eax, eax
jne 0x408f81
push esi
push dword [ebp - 0x1040]
call sub.msi.dll_MsiViewModify
test eax, eax
jne 0x408f81
cmp dword [ebp - 0x103c], eax
je 0x408f12
push dword [ebp - 0x103c]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [ebp - 0x103c]
mov dword [ebp - 0x103c], esi
push eax
push dword [ebp - 0x1040]
call sub.msi.dll_MsiDatabaseIsTablePersistentA
test eax, eax
jne 0x408f81
push 0xffe
mov word [ebp - 0x1038], ax
lea eax, [ebp - 0x1036]
push esi
push eax
call fcn.00420ec0
add esp, 0xc
mov dword [ebp - 0x104c], 0x800
lea eax, [ebp - 0x104c]
push eax
lea eax, [ebp - 0x1038]
push eax
push 1
push dword [ebp - 0x103c]
call sub.msi.dll_MsiRecordSetStreamA
test eax, eax
jne 0x408f81
lea eax, [ebp - 0x1038]
mov ecx, ebx
push eax
call fcn.00401ec8
cmp dword [ebp - 0x103c], 0
je 0x408f95
push dword [ebp - 0x103c]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x1040], 0
je 0x408fa9
push dword [ebp - 0x1040]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x1048]
lea ecx, [ecx - 0x10]
call fcn.00401856
cmp dword [ebp - 0x1044], 0
je 0x408fcb
push dword [ebp - 0x1044]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00420eaf
mov esp, ebp
pop ebp
ret
Function at 0x408fe7
Capabilities:
Read .ini file

Disassembly:
push 4
mov eax, 0x439e5d
call fcn.00421760
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
call fcn.0040b92a
mov ecx, dword [ebp + 8]
push eax
call fcn.004012cf
push 0x7d
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], 1
pop ebx
mov eax, dword [ebp + 0x14]
add ebx, ebx
mov ecx, dword [ebp + 8]
push ebx
mov esi, dword [eax]
call fcn.004017e6
push esi
push ebx
push eax
mov eax, dword [ebp + 0x10]
push 0x43c650
push dword [eax]
mov eax, dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [ebp + 8]
mov esi, eax
push 0xffffffffffffffff
call fcn.00401872
lea ecx, [esi + 1]
cmp ebx, ecx
jbe 0x409016
mov eax, dword [ebp + 8]
call fcn.0042172e
ret 0x10
Function at 0x40a388
Capabilities:
Delete file
Shutdown system

Disassembly:
push 0x24
mov eax, 0x43a07e
call fcn.00421793
mov esi, ecx
xor eax, eax
mov ebx, eax
mov dword [ebp - 0x2c], ebx
cmp dword [esi + 0xec], eax
jne 0x40a4aa
cmp dword [esi + 0xe4], eax
jne 0x40a4aa
cmp dword [esi + 0x158], eax
jne 0x40a3f7
cmp dword [esi + 0x154], eax
je 0x40a3f2
push 0x90
lea eax, [ebp - 0x30]
push eax
call fcn.0040905c
and dword [ebp - 4], ebx
inc ebx
push 0
push 0x10024
push dword [eax]
mov dword [ebp - 0x2c], ebx
call fcn.004075b7
add esp, 0xc
cmp eax, 6
jne 0x40a3f7
xor eax, eax
mov byte [ebp - 0x21], al
jmp 0x40a3fb
mov byte [ebp - 0x21], 1
test bl, 1
je 0x40a40b
mov ecx, dword [ebp - 0x30]
lea ecx, [ecx - 0x10]
call fcn.00401856
cmp byte [ebp - 0x21], 0
jne 0x40a4aa
lea edi, [esi + 0x124]
xor ebx, ebx
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
je 0x40a432
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, edi
call fcn.00401451
lea eax, [ebp - 0x28]
mov dword [esi + 0xe0], ebx
push eax
push 0x28
mov esi, ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x40a48a
lea eax, [ebp - 0x1c]
push eax
push str.SeShutdownPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov esi, eax
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x14], 2
test esi, esi
je 0x40a48a
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [ebp - 0x28]
call edi
mov esi, eax
push 1
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownW]
test esi, esi
je 0x40a4aa
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], ebx
push eax
push ebx
push dword [ebp - 0x28]
call edi
call fcn.00421742
ret

Function at 0x40a5ae
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4515a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, 0x11c
lea eax, [ebp - 0x120]
push edi
xor esi, esi
push esi
push eax
call fcn.00420ec0
add esp, 0xc
mov dword [ebp - 0x120], edi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 5
jne 0x40a604
xor eax, eax
inc eax
cmp dword [ebp - 0x118], 2
cmove esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00420eaf
mov esp, ebp
pop ebp
ret
Function at 0x40aadf
Capabilities:
Set registry value

Disassembly:
push 0xc
mov eax, 0x43a12c
call fcn.00421760
push dword [ebp + 0x14]
lea ecx, [ebp - 0x14]
xor esi, esi
call fcn.0040194d
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], esi
mov ebx, dword [eax - 0xc]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40ab5b
mov ecx, dword [ebp + 0x18]
cmp ecx, 1
je 0x40ab32
cmp ecx, 2
je 0x40ab32
push ebx
jmp 0x40ab36
lea eax, [ebx + ebx]
push eax
push dword [ebp + 0x14]
push ecx
push esi
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40ab80
mov ebx, 0x453994
push 0x43ecfc
mov ecx, ebx
call fcn.00401ec8
push dword [ebp + 0x14]
mov ecx, ebx
call fcn.00403dfa
mov ecx, 0x4538c8
call fcn.0040a616
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401856
mov eax, esi
call fcn.0042172e
ret

Function at 0x40ab93
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0xf003f
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40abf5
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40abf5
inc edi
jmp 0x40ac1a
mov esi, 0x453994
push str.Failed_to_register_DWORD_value:
mov ecx, esi
call fcn.00401ec8
push dword [ebp + 0x10]
mov ecx, esi
call fcn.00403dfa
mov ecx, 0x4538c8
call fcn.0040a616
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40ebed
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x40ec32
call fcn.004186b8
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40ec32
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x40ec4e
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040aecd
mov ebx, eax
test edi, edi
je 0x40ec4c
test esi, esi
je 0x40ec4c
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4