joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40544d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
push 0x44
xor esi, esi
lea eax, [ebp - 0x58]
push esi
push eax
mov edi, ecx
call fcn.00419d30
push 0x10
lea eax, [ebp - 0x14]
push esi
push eax
mov dword [ebp - 0x58], 0x44
call fcn.00419d30
add edi, 8
mov eax, dword [edi]
add esp, 0x18
push dword [eax - 0xc]
mov ecx, edi
call fcn.00401349
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x58]
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4054d5
cmp dword [0x44240c], esi
je 0x4054c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [edi]
push str.InstallUpdate:_CreateProcess_failed__Cmdline_s_Error_d_._n
push 0x4423fc
call fcn.00401485
add esp, 0x10
mov ecx, 0x442358
call fcn.00406721
xor eax, eax
jmp 0x40554f
xor edi, edi
cmp dword [0x442414], esi
jne 0x4054ef
push esi
push esi
push esi
push esi
push 0x433020
call fcn.004102c8
mov edi, eax
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp edi, esi
je 0x40551a
mov eax, dword [edi + 0x20]
cmp eax, esi
jne 0x405509
xor eax, eax
jmp 0x40550c
mov eax, dword [eax + 0x20]
push esi
push esi
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 0x40553d
cmp dword [ebp - 4], 0xbc2
jne 0x40553d
mov dword [0x442410], edi
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
leave
ret

Function at 0x405576
Capabilities:
Identify system language via api

Disassembly:
push 0x7c
mov eax, 0x42fd1c
call fcn.004199aa
mov esi, ecx
mov eax, dword [esi + 8]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x40560c
cmp dword [esi + 0xc], 0
je 0x405609
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov ecx, 0x3ff
and ax, cx
xor edi, edi
movzx eax, ax
inc edi
cmp ax, di
je 0x4055b7
cmp ax, 0xd
je 0x4055b7
xor eax, eax
jmp 0x4055b9
mov eax, edi
push 0
push eax
lea ecx, [ebp - 0x88]
call fcn.004017e6
and dword [ebp - 4], 0
lea eax, [esi + 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.00401435
add esi, 0x14
push esi
lea ecx, [ebp - 0x10]
call fcn.00401435
lea ecx, [ebp - 0x88]
call fcn.00409809
cmp eax, edi
jne 0x405605
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.0040185b
mov eax, edi
jmp 0x40560c
xor edi, edi
jmp 0x4055f2
xor eax, eax
inc eax
call fcn.00419a82
ret
Function at 0x405612
Capabilities:
Get common file path

Disassembly:
push 4
mov eax, 0x4307e8
call fcn.004199aa
mov esi, ecx
push 0
lea ebx, [esi + 8]
push str.http:__
mov ecx, ebx
call fcn.0040360e
test eax, eax
je 0x405647
push 0
push str.ftp:__
mov ecx, ebx
call fcn.0040360e
test eax, eax
jne 0x4056c6
push 0x2f
mov ecx, ebx
call fcn.004035b5
mov ecx, dword [ebx]
inc eax
mov dword [ebp - 0x10], eax
cmp eax, dword [ecx - 0xc]
jne 0x405664
mov ecx, ebx
call fcn.00401249
jmp 0x4056c6
push ebx
lea ecx, [esi + 0x10]
mov dword [esi + 0xc], 1
call fcn.00401499
lea edi, [esi + 0x14]
mov esi, 0x104
push esi
mov ecx, edi
call fcn.00401349
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
mov ecx, edi
call fcn.004011ea
push dword [ebp - 0x10]
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.00405553
and dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.004040ac
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.0040103e
push edi
mov ecx, ebx
call fcn.00401499
call fcn.00419a82
ret

Function at 0x4056cc
Capabilities:
Get common file path

Disassembly:
push 0x14
mov eax, 0x42fd62
call fcn.004199aa
mov esi, ecx
call fcn.004089b3
push eax
lea ecx, [ebp - 0x10]
call fcn.00401217
xor ebx, ebx
push ebx
push 0x25
mov edi, 0x104
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.00401349
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.004011ea
push str.Msi.dll
lea ecx, [ebp - 0x10]
call fcn.00403eb3
lea ecx, [esi + 4]
push edi
call fcn.00401349
push ebx
push ebx
lea ecx, [ebp - 0x20]
push ecx
push eax
push dword [ebp - 0x10]
call sub.msi.dll_MsiMessageBoxW
push 0xffffffffffffffff
lea ecx, [esi + 4]
call fcn.004011ea
push str.Path
lea ecx, [ebp - 0x18]
call fcn.00401ab9
push str.MSI_Updater
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00401ab9
push 0x442400
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0x442358
mov byte [ebp - 4], 2
call fcn.00405d05
lea edi, [esi + 8]
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.00401499
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0040103e
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040103e
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.0040103e
mov ecx, esi
call fcn.00405612
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
je 0x405812
cmp dword [esi + 0xc], ebx
jne 0x4057da
push edi
mov ecx, 0x442358
call fcn.00405f4d
test eax, eax
jne 0x4057da
mov ecx, edi
call fcn.00401249
jmp 0x405812
call fcn.004089b3
push eax
lea ecx, [ebp - 0x18]
call fcn.00401217
lea eax, [ebp - 0x18]
push str.__quiet__norestart__overwriteoem
push eax
mov byte [ebp - 4], 4
call fcn.00401485
mov esi, dword [ebp - 0x18]
pop ecx
pop ecx
push dword [esi - 0xc]
mov ecx, edi
push esi
call fcn.00403b28
lea ecx, [esi - 0x10]
call fcn.0040103e
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040103e
call fcn.00419a82
ret
Function at 0x405976
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 ax, 1
je 0x405996
cmp ax, 0xd
jne 0x40599d
or dword [ebp + 0xc], 0x100000
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x442358
call fcn.004118ee
add esp, 0x10
pop ebp
ret

Function at 0x405a58
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x440fd0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x11c
xor edi, edi
lea eax, [ebp - 0x120]
push edi
push eax
call fcn.00419d30
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 5
jne 0x405aad
cmp dword [ebp - 0x118], 2
jne 0x405aad
inc edi
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0041999b
leave
ret

Function at 0x405d05
Capabilities:
Read .ini file

Disassembly:
push 4
mov eax, 0x42fea0
call fcn.004199aa
and dword [ebp - 0x10], 0
mov ebx, dword [ebp + 8]
mov ecx, ebx
call fcn.00401335
and dword [ebp - 4], 0
push 0x7d
mov dword [ebp - 0x10], 1
pop esi
mov eax, dword [ebp + 0x14]
mov edi, dword [eax]
add esi, esi
push esi
mov ecx, ebx
call fcn.00401349
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
push edi
push esi
push eax
push 0x4327f8
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
mov ecx, ebx
mov edi, eax
call fcn.004011ea
inc edi
cmp esi, edi
jbe 0x405d2d
mov eax, ebx
call fcn.00419a82
ret 0x10

Function at 0x405f4d
Capabilities:
Query environment variable

Disassembly:
push 0x1c
mov eax, 0x42fef6
call fcn.004199aa
mov edi, dword [ebp + 8]
push edi
lea ecx, [ebp + 8]
call fcn.004017c5
and dword [ebp - 4], 0
mov esi, 0x104
push esi
mov ecx, edi
call fcn.00401349
push esi
mov esi, dword [ebp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.0040103e
push 0xffffffffffffffff
mov ecx, edi
call fcn.004011ea
lea ecx, [ebp - 0x28]
call fcn.00412d6b
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
mov dword [ebp - 4], 1
je 0x406005
push 0
push eax
lea ecx, [ebp - 0x28]
call fcn.00412e03
test eax, eax
je 0x406005
lea ecx, [ebp - 0x28]
call fcn.00412a6b
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x28]
call fcn.00413074
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00401499
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.0040103e
lea ecx, [ebp - 0x28]
call fcn.00412985
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00412d94
xor eax, eax
inc eax
jmp 0x406013
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00412d94
xor eax, eax
call fcn.00419a82
ret 4
Function at 0x40650a
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ff63
mov eax, dword fs:[0]
push eax
mov eax, 0x1044
call fcn.00419fb0
mov eax, dword [0x440fd0]
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 ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1050], ecx
call fcn.00401249
xor ebx, ebx
mov dword [ebp - 0x103c], ebx
mov esi, dword [esi]
lea ecx, [ebp - 0x103c]
mov dword [ebp - 4], ebx
call fcn.0040233d
push eax
push ebx
push esi
call sub.msi.dll_MsiOpenProductW
test eax, eax
jne 0x4066a9
push str.SELECT__Message__FROM__Error__WHERE_Error.Error
lea ecx, [ebp - 0x1048]
call fcn.00401ab9
push 9
xor eax, eax
pop ecx
mov word [ebp - 0x38], ax
lea edi, [ebp - 0x36]
rep stosd dword es:[edi], eax
push 0xa
stosw word es:[edi], ax
push 0x14
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0041a2cd
add esp, 0x10
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x1048]
call fcn.00403eb3
mov dword [ebp - 0x1040], ebx
mov dword [ebp - 0x1044], ebx
mov esi, dword [ebp - 0x1048]
mov edi, dword [ebp - 0x103c]
lea ecx, [ebp - 0x1040]
mov byte [ebp - 4], 3
call fcn.0040233d
push eax
push esi
push edi
call sub.msi.dll_MsiEnumClientsA
test eax, eax
jne 0x406675
push ebx
push dword [ebp - 0x1040]
call sub.msi.dll_MsiViewModify
test eax, eax
jne 0x406675
mov esi, dword [ebp - 0x1040]
lea ecx, [ebp - 0x1044]
call fcn.0040233d
push eax
push esi
call sub.msi.dll_MsiDatabaseIsTablePersistentA
test eax, eax
jne 0x406675
push 0xffe
mov word [ebp - 0x1038], ax
lea eax, [ebp - 0x1036]
push ebx
push eax
call fcn.00419d30
add esp, 0xc
lea eax, [ebp - 0x104c]
push eax
lea eax, [ebp - 0x1038]
push eax
push 1
push dword [ebp - 0x1044]
mov dword [ebp - 0x104c], 0x800
call sub.msi.dll_MsiRecordSetStreamA
test eax, eax
jne 0x406675
mov ecx, dword [ebp - 0x1050]
lea eax, [ebp - 0x1038]
push eax
call fcn.00401a1b
cmp dword [ebp - 0x1044], ebx
je 0x406688
push dword [ebp - 0x1044]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x1040], ebx
je 0x40669b
push dword [ebp - 0x1040]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x1048]
add ecx, 0xfffffff0
call fcn.0040103e
cmp dword [ebp - 0x103c], ebx
je 0x4066bc
push dword [ebp - 0x103c]
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.0041999b
leave
ret
Function at 0x406721
Capabilities:
Get common file path

Disassembly:
push 0x18
mov eax, 0x42ff9b
call fcn.004199aa
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0xb4], ebx
je 0x40681e
mov eax, dword [esi + 0xf0]
cmp eax, dword [0x436d80]
jne 0x4067f5
call fcn.004089b3
push eax
lea ecx, [ebp - 0x10]
call fcn.00401217
mov edi, 0x104
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.00401349
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x40678a
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040103e
jmp 0x40681e
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.004011ea
push str.BootStrap.log
lea ecx, [ebp - 0x10]
call fcn.00403eb3
push ebx
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x24]
call fcn.004064c0
mov edi, dword [ebp - 0x10]
lea edx, [ebp - 0x24]
push edx
lea ecx, [esi + 0xec]
mov eax, dword [ecx]
push 0x1021
push edi
mov byte [ebp - 4], 1
call dword [eax + 0x20]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov dword [ebp - 0x24], vtable.CFileException.0
test eax, eax
jne 0x4067e4
call fcn.0040103e
lea ecx, [edi - 0x10]
jmp 0x406780
call fcn.0040103e
or dword [ebp - 4], 0xffffffff
lea ecx, [edi - 0x10]
call fcn.0040103e
lea edi, [esi + 0xa4]
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
je 0x40681e
add esi, 0xec
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x54]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x48]
mov ecx, edi
call fcn.00401249
call fcn.00419a82
ret
Function at 0x406824
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push 0x28
mov eax, 0x42ffce
call fcn.004199aa
lea esi, [ecx + 0xe8]
mov edi, 0x104
push edi
mov ecx, esi
call fcn.00401349
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40693f
push 0xffffffffffffffff
mov ecx, esi
call fcn.004011ea
push esi
lea ecx, [ebp - 0x10]
call fcn.004017c5
xor ebx, ebx
push edi
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00401349
push eax
push ebx
push 0x43469c
lea ecx, [ebp - 0x10]
call fcn.00405ae8
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ecx, dword [ebp - 0x10]
or edi, 0xffffffff
add ecx, 0xfffffff0
mov dword [ebp - 4], edi
call fcn.0040103e
push edi
mov ecx, esi
call fcn.004011ea
lea ecx, [ebp - 0x20]
call fcn.004134c8
push ebx
push edi
push ebx
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 1
call fcn.004064c0
mov eax, dword [esi]
lea ecx, [ebp - 0x34]
push ecx
push 0x1001
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.004138af
test eax, eax
jne 0x4068e0
mov ecx, esi
call fcn.00401249
jmp 0x406922
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 dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
lea ecx, [ebp - 0x20]
call fcn.004131fe
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov dword [ebp - 0x34], vtable.CFileException.0
call fcn.0040103e
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], edi
call fcn.004135a3
call fcn.00419a82
ret

Function at 0x4069f0
Capabilities:
Set registry value

Disassembly:
push 0xc
mov eax, 0x430024
call fcn.004199aa
push dword [ebp + 0x14]
lea ecx, [ebp - 0x14]
xor ebx, ebx
xor esi, esi
call fcn.00401ab9
mov eax, dword [ebp - 0x14]
mov edi, dword [eax - 0xc]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x406a6e
mov eax, dword [ebp + 0x18]
cmp eax, 1
je 0x406a45
cmp eax, 2
je 0x406a45
push edi
jmp 0x406a49
lea ecx, [edi + edi]
push ecx
push dword [ebp + 0x14]
push eax
push ebx
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]
cmp esi, ebx
jne 0x406a93
mov edi, 0x4423fc
push str.Failed_to_register_value:
mov ecx, edi
call fcn.00401a1b
push dword [ebp + 0x14]
mov ecx, edi
call fcn.00403eb3
mov ecx, 0x442358
call fcn.00406721
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040103e
mov eax, esi
call fcn.00419a82
ret
Function at 0x406aa6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
xor ebx, ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
lea eax, [ebp - 4]
push eax
push 0xf003f
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406b08
push edi
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov edi, eax
call esi
cmp edi, ebx
pop edi
jne 0x406b08
inc ebx
jmp 0x406b2d
mov esi, 0x4423fc
push str.Failed_to_register_DWORD_value:
mov ecx, esi
call fcn.00401a1b
push dword [ebp + 0x10]
mov ecx, esi
call fcn.00403eb3
mov ecx, 0x442358
call fcn.00406721
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x406c28
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push edi
push 4
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
cmp edi, ebx
jne 0x406c62
push str.OpenSCManager_failed
mov ecx, 0x4423fc
call fcn.00401a1b
mov ecx, 0x442358
call fcn.00406721
xor eax, eax
jmp 0x406ce4
push esi
push 4
push str.MSIServer
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, ebx
jne 0x406c9b
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push str.OpenService_failed
mov ecx, 0x4423fc
call fcn.00401a1b
mov ecx, 0x442358
call fcn.00406721
xor eax, eax
jmp 0x406ce3
lea eax, [ebp - 4]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x406ccc
push str.QueryServiceStatusEx_failed
mov ecx, 0x4423fc
call fcn.00401a1b
mov ecx, 0x442358
call fcn.00406721
jmp 0x406cd5
cmp dword [ebp - 0x20], 4
jne 0x406cd5
xor ebx, ebx
inc ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov eax, ebx
pop esi
pop edi
pop ebx
leave
ret
Function at 0x4072f7
Capabilities:
Delete file
Shutdown system

Disassembly:
push 0x20
mov eax, 0x4300f8
call fcn.004199aa
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
cmp dword [esi + 0xc4], ebx
jne 0x40740a
cmp dword [esi + 0x118], ebx
jne 0x407359
cmp dword [esi + 0x114], ebx
je 0x407354
push 0x90
lea eax, [ebp - 0x1c]
push eax
call fcn.00406d93
mov eax, dword [eax]
push ebx
push 0x10024
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], 1
call fcn.00405976
add esp, 0xc
cmp eax, 6
jne 0x407359
mov byte [ebp - 0xd], bl
jmp 0x40735d
mov byte [ebp - 0xd], 1
test byte [ebp - 0x14], 1
je 0x40736e
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0040103e
cmp byte [ebp - 0xd], bl
jne 0x40740a
lea edi, [esi + 0xe8]
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
je 0x407392
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, edi
call fcn.00401249
lea eax, [ebp - 0x18]
push eax
mov dword [esi + 0xb8], ebx
push 0x28
xor esi, esi
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 0x4073ea
lea eax, [ebp - 0x28]
push eax
push str.SeShutdownPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov esi, eax
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x20], 2
cmp esi, ebx
je 0x4073ea
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push dword [ebp - 0x18]
call edi
mov esi, eax
push 1
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownW]
cmp esi, ebx
je 0x40740a
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 0x20], ebx
call edi
call fcn.00419a82
ret
Function at 0x407dfa
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x38
mov eax, 0x4302dc
call fcn.004199aa
mov esi, ecx
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x44], ebx
lea edi, [ebp - 0x40]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x34], ebx
xor eax, eax
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push str.RequireIE
lea ecx, [ebp - 0x24]
stosd dword es:[edi], eax
mov dword [ebp - 0x18], 0x104
call fcn.00401ab9
push 0x4346ac
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
call fcn.00401ab9
lea eax, [esi + 0xa8]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00405d05
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.0040103e
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov byte [ebp - 4], 4
call fcn.0040103e
mov eax, dword [ebp - 0x1c]
cmp dword [eax - 0xc], ebx
jne 0x407e9a
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0040103e
mov eax, ebx
call fcn.00419a82
ret
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x34]
push ecx
mov edi, str._d._d._d._d
push edi
push eax
call fcn.0041a369
add esp, 0x18
call fcn.004089b3
push eax
lea ecx, [ebp - 0x10]
call fcn.00401217
lea eax, [ebp - 0x14]
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftInternet_Explorer
push 0x80000002
mov byte [ebp - 4], 5
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x407ef6
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040103e
jmp 0x407e87
push dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
call fcn.00401349
lea ecx, [ebp - 0x18]
push ecx
push eax
push ebx
push ebx
push str.Version
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x14]
test eax, eax
je 0x407f25
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x407ee9
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.004011ea
cmp dword [ebp - 0x18], ebx
jbe 0x407ee9
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x44]
push eax
push edi
mov edi, dword [ebp - 0x10]
push edi
call fcn.0041a369
add esp, 0x18
xor eax, eax
mov ecx, dword [ebp + eax - 0x34]
mov edx, dword [ebp + eax - 0x44]
cmp ecx, edx
jb 0x407f6f
ja 0x407f7c
add eax, 4
cmp eax, 0x10
jl 0x407f59
lea ecx, [edi - 0x10]
call fcn.0040103e
jmp 0x407e84
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.004076d6
lea ecx, [edi - 0x10]
jmp 0x407eef
Function at 0x409a41
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x409a65
cmp dword [edi + 0x54], 0
jne 0x409a65
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004147a4
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00409a02
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x40f0a5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40f0ec
call fcn.004147a4
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40f0ec
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40f108
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040ec1d
mov esi, eax
test edi, edi
je 0x40f106
test ebx, ebx
je 0x40f106
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41999b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x440fd0]
jne 0x4199a5
repz ret
jmp fcn.0042367c