joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001416
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov ecx, dword [ebp + 0x10]
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call fcn.10002c82
mov edi, eax
lea esi, [ebp - 0x20]
call fcn.100021c4
push dword [ebp + 0x10]
mov eax, dword [ebp - 0x1c]
call fcn.10002c93
pop ecx
mov eax, esi
push eax
push 0x1000e708
push 0x1000e734
push dword [ebp + 0x10]
call fcn.10002ddd
lea eax, [ebp - 0x18]
push eax
movzx eax, word [0x1000e708]
push eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.10002259
mov ecx, dword [ebp + 0x14]
add esp, 0x18
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.10002c82
mov edi, eax
lea esi, [ebp - 0x10]
call fcn.100021c4
push dword [ebp + 0x14]
mov eax, dword [ebp - 0xc]
call fcn.10002c93
pop ecx
mov eax, esi
push eax
push 0x1000e708
push 0x1000e734
push dword [ebp + 0x14]
call fcn.10002ddd
lea eax, [ebp - 8]
push eax
movzx eax, word [0x1000e708]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.10002259
mov edi, dword [ebp - 0x14]
mov esi, dword [edi + 4]
add esp, 0x18
call fcn.10003001
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 4]
mov esi, dword [eax + 4]
call fcn.10003001
imul eax, eax, 0xea60
cmp dword [ebp - 0x18], 2
mov dword [ebp - 0x48], eax
jb 0x10001516
mov esi, dword [edi + 0xc]
call fcn.10003001
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0xc]
call fcn.10003001
imul eax, eax, 0xea60
mov dword [ebp - 0x40], eax
jmp 0x1000151c
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
cmp dword [ebp - 0x18], 3
jb 0x10001543
mov esi, dword [edi + 0x14]
call fcn.10003001
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x14]
call fcn.10003001
imul eax, eax, 0xea60
mov dword [ebp - 0x38], eax
jmp 0x10001549
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov esi, dword [ebp + 0xc]
call fcn.10003001
imul eax, eax, 0x15180
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x1c]
push 0xf003f
mov dword [ebp - 0x2c], eax
push ebx
lea eax, [ebp - 0x4c]
push ebx
mov dword [ebp - 0x28], 3
mov dword [ebp - 0x24], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, ebx
jne 0x100015ab
lea esi, [ebp - 8]
call fcn.100021e6
push dword [ebp - 0xc]
call fcn.10002adf
pop ecx
lea esi, [ebp - 0x18]
call fcn.100021e6
push dword [ebp - 0x1c]
call fcn.10002adf
pop ecx
push 5
pop eax
jmp 0x100015f6
push 0xf01ff
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp eax, ebx
je 0x10001584
lea ecx, [ebp - 0x34]
push ecx
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x100015d2
push 5
pop ebx
lea esi, [ebp - 8]
call fcn.100021e6
push dword [ebp - 0xc]
call fcn.10002adf
pop ecx
lea esi, [ebp - 0x18]
call fcn.100021e6
push dword [ebp - 0x1c]
call fcn.10002adf
pop ecx
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000340d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
mov esi, eax
cmp dword [ebp + 8], ebx
jne 0x10003425
xor al, al
jmp 0x100034ca
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jge 0x10003484
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
je 0x10003480
push str.SHGetSpecialFolderPathW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x10003480
mov edi, 0x105
call fcn.100021c4
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 8]
push eax
push ebx
call dword [ebp - 0xc]
mov edi, eax
cmp edi, ebx
je 0x100034c1
mov esi, dword [esi + 4]
call fcn.100034ce
jmp 0x100034c1
xor al, al
jmp 0x100034c9
mov edi, 0x105
call fcn.100021c4
push dword [esi + 4]
push dword [ebp - 8]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov edi, eax
cmp edi, ebx
je 0x100034a8
mov esi, dword [esi + 4]
call fcn.100034ce
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [ebp - 4]
push dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
xor eax, eax
cmp edi, 1
sete al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100036a5
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
call sub.msi.dll_MsiGetFeatureCostA
mov ebx, eax
test ebx, ebx
jne 0x100036c0
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
mov esi, str.SELECT__FROM___s__WHERE__Property__s_AND__Value__s
mov ecx, esi
call fcn.10002c82
mov ecx, dword [ebp + 0xc]
mov edx, eax
call fcn.10002c82
mov ecx, dword [ebp + 0x10]
lea edx, [edx + eax - 6]
call fcn.10002c82
mov ecx, dword [ebp + 0x14]
add edx, eax
call fcn.10002c82
add edx, eax
lea eax, [edx + 1]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10002ad2
push dword [ebp + 0x14]
mov edi, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [ebp + 0x1c]
add esp, 0x18
push esi
push edi
push ebx
call sub.msi.dll_MsiEnumClientsA
test eax, eax
je 0x10003739
push edi
call fcn.10002adf
pop ecx
push ebx
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
jmp 0x100036b9
push 0
push dword [esi]
call sub.msi.dll_MsiViewModify
test eax, eax
jne 0x1000372a
push dword [ebp + 0x18]
push dword [esi]
call sub.msi.dll_MsiDatabaseIsTablePersistentA
xor esi, esi
test eax, eax
je 0x1000376a
push edi
call fcn.10002adf
pop ecx
push ebx
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov eax, esi
jmp 0x100036bb
inc esi
jmp 0x10003756
Function at 0x1000376d
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, str.SELECT__FROM___s__WHERE__Property__s
push edi
mov ecx, esi
call fcn.10002c82
mov ecx, dword [ebp + 0xc]
mov edx, eax
call fcn.10002c82
mov ecx, dword [ebp + 0x10]
lea edx, [edx + eax - 4]
call fcn.10002c82
add edx, eax
lea eax, [edx + 1]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10002ad2
push dword [ebp + 0x10]
mov edi, eax
push dword [ebp + 0xc]
push esi
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push ebx
push edi
push dword [ebp + 8]
call sub.msi.dll_MsiEnumClientsA
test eax, eax
je 0x100037db
push edi
call fcn.10002adf
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
ret
xor esi, esi
push esi
push dword [ebx]
call sub.msi.dll_MsiViewModify
test eax, eax
je 0x100037f4
push edi
call fcn.10002adf
pop ecx
mov eax, esi
jmp 0x100037d7
xor esi, esi
inc esi
jmp 0x100037e9

Function at 0x10003c35
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
mov esi, eax
push dword [esi + 4]
call fcn.10002adf
xor ebx, ebx
pop ecx
mov dword [esi + 4], ebx
mov dword [esi], ebx
mov eax, str.SELECT__Message__FROM__Error__WHERE__Error____s
cmp byte [ebp + 0x10], bl
jne 0x10003c61
mov eax, str.SELECT__Text__FROM__UIText__WHERE__Key____s
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push dword [ebp + 8]
mov dword [ebp - 4], ebx
lea ebx, [ebp - 4]
lea eax, [ebp - 0x20c]
call fcn.10003d2e
add esp, 0x10
test eax, eax
jge 0x10003ca2
cmp dword [ebp - 4], 0
je 0x10003c9b
push dword [ebp - 4]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
xor al, al
jmp 0x10003d2a
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
xor ebx, ebx
mov dword [ebp - 8], ebx
call fcn.10003e6d
pop ecx
pop ecx
test eax, eax
jge 0x10003ccb
cmp dword [ebp - 8], ebx
je 0x10003cc6
push dword [ebp - 8]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 4], ebx
jmp 0x10003c91
lea eax, [ebp - 0xc]
push eax
push 0x1000e704
push 1
push dword [ebp - 8]
mov dword [ebp - 0xc], ebx
call sub.msi.dll_MsiRecordSetStreamA
cmp eax, 0xea
jne 0x10003d07
inc dword [ebp - 0xc]
push edi
mov edi, dword [ebp - 0xc]
call fcn.100021c4
mov esi, dword [esi + 4]
lea eax, [ebp - 0xc]
push eax
push esi
push 1
push dword [ebp - 8]
call sub.msi.dll_MsiRecordSetStreamA
pop edi
cmp eax, ebx
sete bl
cmp dword [ebp - 8], 0
je 0x10003d1a
push dword [ebp - 8]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 4], 0
je 0x10003d28
push dword [ebp - 4]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov al, bl
pop esi
pop ebx
leave
ret
Function at 0x10004291
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100042bd
xor al, al
jmp 0x10004326
push edi
push 0x19000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
and dword [ebp - 8], 0
mov edi, eax
lea eax, [ebp - 4]
push eax
push edi
push 1
push dword [ebp + 8]
mov dword [ebp - 4], 0x19000
call sub.msi.dll_MsiRecordSetStringA
test eax, eax
jne 0x10004305
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
test eax, eax
jne 0x100042d1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push dword [ebp + 8]
call sub.msi.dll_MsiRecordGetStringW
cmp eax, dword [ebp - 8]
push edi
sete bl
call fcn.10002adf
pop ecx
mov al, bl
pop edi
pop ebx
leave
ret
Function at 0x100044f6
Capabilities:
Create process on windows
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84c
cmp byte [ebp + 0xc], 0
push ebx
push esi
push edi
mov eax, str.AI_APP_FILE
jne 0x10004515
mov eax, str.AI_README_FILE
and dword [esp + 0xc], 0
and dword [esp + 0x10], 0
push eax
push dword [ebp + 8]
lea esi, [esp + 0x14]
call fcn.10003b0c
pop ecx
pop ecx
test al, al
jne 0x10004540
push dword [esp + 0x10]
call fcn.10002adf
jmp 0x100046ad
cmp dword [esp + 0xc], 3
mov edi, dword [esp + 0x10]
jbe 0x1000455d
cmp word [edi + 2], 0x3a
jne 0x1000455d
cmp word [edi + 4], 0x5c
jne 0x1000455d
mov bl, 1
jmp 0x1000455f
xor bl, bl
and dword [esp + 0x14], 0
and dword [esp + 0x18], 0
cmp byte [ebp + 0xc], 0
je 0x1000458a
push str.AI_APP_ARGS
push dword [ebp + 8]
lea esi, [esp + 0x1c]
call fcn.10003b0c
pop ecx
pop ecx
test al, al
je 0x1000469d
xor eax, eax
mov word [esp + 0x58], ax
test bl, bl
je 0x100045e9
mov eax, dword [esp + 0xc]
lea eax, [edi + eax*2]
jmp 0x100045a6
cmp word [eax], 0x5c
je 0x100045ac
dec eax
dec eax
cmp eax, edi
jae 0x1000459e
xor eax, eax
test eax, eax
je 0x100045ca
sub eax, edi
sar eax, 1
mov esi, eax
push esi
mov ecx, edi
lea eax, [esp + 0x5c]
call fcn.10002caa
xor eax, eax
pop ecx
mov word [esp + esi*2 + 0x58], ax
cmp word [esp + 0x5c], 0
jne 0x100045e9
cmp word [esp + 0x5a], 0x3a
jne 0x100045e9
push 0x5c
pop eax
mov word [esp + 0x5c], ax
xor eax, eax
mov word [esp + 0x5e], ax
push 0
push 0x3c
pop esi
lea eax, [esp + 0x20]
push esi
push eax
call fcn.10002af1
lea eax, [esp + 0x64]
mov dword [esp + 0x40], eax
add esp, 0xc
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x24], 0x40
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], esi
mov dword [esp + 0x3c], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push str.GetProcessId
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x1000464d
push esi
jmp 0x100046a1
push dword [esp + 0x54]
call eax
push dword [esp + 0x54]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
xor ebx, ebx
cmp ebx, 0x14
jge 0x10004692
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
and dword [esp + 0x10], 0
lea eax, [esp + 0xc]
push eax
push 0x100044a0
mov dword [esp + 0x14], esi
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0x10]
inc ebx
test eax, eax
je 0x10004663
test eax, eax
je 0x1000469d
push eax
call dword [sym.imp.USER32.dll_BringWindowToTop]
push dword [esp + 0x18]
call fcn.10002adf
push edi
call fcn.10002adf
pop ecx
pop ecx
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100046d7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push str.MsiLogFileLocation
push dword [ebp + 8]
xor esi, esi
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call fcn.10003a20
pop ecx
pop ecx
cmp dword [ebp - 8], esi
je 0x1000470b
push 5
push esi
push esi
push dword [ebp - 4]
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 4]
call fcn.10002adf
pop ecx
xor eax, eax
pop esi
leave
ret 4

Function at 0x1000471b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0
lea eax, [ebp - 0x3c]
push 0x3c
push eax
call fcn.10002af1
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x28], eax
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x500
mov dword [ebp - 0x30], str.runas
mov dword [ebp - 0x20], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
leave
ret

Function at 0x10004f59
Capabilities:
Get geographical location

Disassembly:
push ecx
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push esi
push 0
push 0
movzx edi, di
mov ebx, 0x1004
push ebx
push edi
call ebp
mov esi, eax
test esi, esi
jne 0x10004f82
xor al, al
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10002ad2
pop ecx
push esi
push eax
push ebx
push edi
mov dword [esp + 0x20], eax
call ebp
test eax, eax
jne 0x10004fb5
xor bl, bl
push dword [esp + 0x10]
call fcn.10002adf
pop ecx
mov al, bl
jmp 0x10004f7c
mov esi, dword [esp + 0x10]
call fcn.10003001
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov bl, 1
jmp 0x10004fa7
Function at 0x10005b00
Capabilities:
Create process on windows
Delete file
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x340
push ebx
push esi
push str.AI_DETECTVM_BINARY_ID
push dword [ebp + 8]
xor esi, esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call fcn.10003a20
xor eax, eax
mov word [ebp - 0x138], ax
push str.SELECT__Data__FROM__Binary__WHERE__Name_
lea eax, [ebp - 0x138]
call fcn.10002c93
push dword [ebp - 0xc]
call fcn.10002c93
push 0x1000edc4
call fcn.10002c93
push dword [ebp - 0xc]
call fcn.10002adf
push dword [ebp + 8]
lea ebx, [ebp - 4]
lea eax, [ebp - 0x138]
mov dword [ebp - 4], esi
call fcn.10003d2e
add esp, 0x1c
test eax, eax
jl 0x10005c50
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], esi
call sub.msi.dll_MsiDatabaseIsTablePersistentA
test eax, eax
jne 0x10005c43
lea eax, [ebp - 0x340]
push eax
call fcn.10005abf
pop ecx
test al, al
je 0x10005c43
lea eax, [ebp - 0x340]
push eax
push dword [ebp - 8]
call fcn.10004291
pop ecx
pop ecx
test al, al
je 0x10005c43
push edi
push esi
push 0x44
pop edi
lea eax, [ebp - 0x70]
push edi
push eax
call fcn.10002af1
push esi
lea eax, [ebp - 0x20]
push 0x10
push eax
mov dword [ebp - 0x70], edi
call fcn.10002af1
add esp, 0x18
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x340]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x10005c35
push 0xffffffffffffffff
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edi, dword [ebp - 0xc]
cmp edi, esi
je 0x10005c35
lea eax, [ebp - 0x2c]
push eax
call fcn.10002481
pop ecx
lea eax, [ebp - 0x2c]
push eax
push str.AI_INSIDEVM2
push dword [ebp + 8]
call sub.msi.dll_MsiSummaryInfoGetPropertyCount
lea eax, [ebp - 0x340]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
cmp dword [ebp - 8], esi
je 0x10005c50
push dword [ebp - 8]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 4], esi
je 0x10005c5d
push dword [ebp - 4]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
pop esi
xor eax, eax
pop ebx
leave
ret 4
Function at 0x10006335
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6f4
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call sub.msi.dll_MsiGetFeatureCostA
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1000635f
mov eax, 0x643
jmp 0x100064b9
mov edi, str.AI_SH_DIR
push edi
mov esi, str.ComboBox
push esi
push ebx
call fcn.100038ee
add esp, 0xc
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x2f4]
push eax
push str.ProgramMenuFolder
push ebx
mov dword [esp + 0x24], 0x104
call sub.msi.dll_MsiGetSummaryInformationW
test eax, eax
jne 0x100064ae
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x274]
push eax
push 0x10010168
push ebx
mov dword [esp + 0x24], 0x40
call sub.msi.dll_MsiGetSummaryInformationW
test eax, eax
jne 0x100064ae
push 0xffffffffffffffff
lea ecx, [esp + 0x2f4]
call fcn.10002c82
lea eax, [esp + eax*2 + 0x2f4]
mov ecx, 0x10010180
call fcn.10002caa
pop ecx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x2f4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x100064ae
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea ecx, [esp + 0x20]
push ecx
push eax
mov dword [esp + 0x20], 2
call ebx
test byte [esp + 0x20], 0x10
je 0x10006490
cmp word [esp + 0x4c], 0x2e
jne 0x10006441
cmp word [esp + 0x4e], 0
je 0x10006490
cmp word [esp + 0x4e], 0x2e
jne 0x10006441
cmp word [esp + 0x50], 0
je 0x10006490
push 0xffffffffffffffff
lea ecx, [esp + 0x50]
lea eax, [esp + 0x4fc]
call fcn.10002caa
pop ecx
lea eax, [esp + 0x270]
push eax
lea eax, [esp + 0x4fc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10006490
lea eax, [esp + 0x4f8]
push eax
push eax
push dword [esp + 0x20]
push edi
push dword [ebp + 8]
push esi
call fcn.100034f5
add esp, 0x18
test eax, eax
je 0x10006490
inc dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x20]
call ebx
cmp eax, 1
je 0x1000641a
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [esp + 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x100065a6
Capabilities:
Check internet connectivity via wininet

Disassembly:
push esi
xor esi, esi
push 0
push 1
push dword [esi + 0x1000e430]
call dword [sym.imp.WININET.dll_InternetCheckConnectionW]
test eax, eax
jne 0x100065de
add esi, 4
cmp esi, 0xc
jb 0x100065a9
push str.AI_INET_CON_FAILED
push str.AI_INTERNET_CONNECTION
push dword [esp + 0x10]
call sub.msi.dll_MsiSummaryInfoGetPropertyCount
xor eax, eax
pop esi
ret 4
push str.AI_INET_CON_SUCCESS
jmp 0x100065ca
Function at 0x10007208
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c4
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
push edi
lea esi, [esp + 0x24]
call fcn.10007067
push str.AI_BIND_TCP_HOST
push dword [ebp + 8]
lea eax, [esp + 0x18]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call fcn.10003a20
mov ebx, str.AI_SEARCH_TCP_PORT
push ebx
push dword [ebp + 8]
lea eax, [esp + 0x28]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call fcn.10003a20
mov esi, dword [esp + 0x2c]
or dword [esp + 0x1c], 0xffffffff
push 0xa
lea eax, [esp + 0x20]
call fcn.10003186
mov edx, eax
add esp, 0x14
lea eax, [esp + 0x18]
mov dword [esp + 0xc], edx
call fcn.100071e7
test al, al
je 0x10007349
dec edx
cmp edx, 0xfffd
ja 0x10007349
mov ecx, dword [esp + 0x14]
xor esi, esi
call fcn.10002c82
cmp eax, edi
jbe 0x100072b8
inc eax
push eax
call fcn.10002ad2
mov esi, eax
pop ecx
mov ecx, dword [esp + 0x14]
mov edx, esi
call fcn.10002b24
lea eax, [esp + 0x240]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x100072ea
push str.SockError
push str.AI_PORT_TEST_RES
push dword [ebp + 8]
call sub.msi.dll_MsiSummaryInfoGetPropertyCount
push esi
call fcn.10002adf
pop ecx
jmp 0x1000735b
movzx edi, word [esp + 0xc]
mov eax, 0xffff
cmp word [esp + 0xc], ax
jae 0x10007313
push edi
mov eax, esi
call fcn.10001013
pop ecx
test eax, eax
je 0x10007313
inc edi
mov eax, 0xffff
cmp di, ax
jb 0x100072fb
lea eax, [esp + 0x38]
movzx edi, di
push eax
call fcn.10002481
pop ecx
lea eax, [esp + 0x38]
push eax
push ebx
push dword [ebp + 8]
call sub.msi.dll_MsiSummaryInfoGetPropertyCount
push str.FreePort
push str.AI_PORT_TEST_RES
push dword [ebp + 8]
call sub.msi.dll_MsiSummaryInfoGetPropertyCount
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x100072e1
push str.SockError
push str.AI_PORT_TEST_RES
push dword [ebp + 8]
call sub.msi.dll_MsiSummaryInfoGetPropertyCount
push dword [esp + 0x1c]
call fcn.10002adf
pop ecx
push dword [esp + 0x14]
call fcn.10002adf
pop ecx
lea edi, [esp + 0x20]
call fcn.1000708a
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10007383
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c0
push esi
push edi
mov edi, dword [ebp + 8]
push 1
mov eax, edi
lea esi, [esp + 0x24]
call fcn.10007067
and dword [esp + 0xc], 0
and dword [esp + 0x10], 0
push str.AI_BIND_TCP_HOST
push edi
lea eax, [esp + 0x14]
call fcn.10003a20
and dword [esp + 0x1c], 0
and dword [esp + 0x20], 0
push str.AI_BIND_TCP_PORT
push edi
lea eax, [esp + 0x24]
call fcn.10003a20
mov esi, dword [esp + 0x28]
or dword [esp + 0x2c], 0xffffffff
push 0xa
lea eax, [esp + 0x30]
call fcn.10003186
mov esi, eax
add esp, 0x14
lea eax, [esp + 0x14]
call fcn.100071e7
test al, al
je 0x1000749d
lea eax, [esi - 1]
cmp eax, 0xfffd
ja 0x1000749d
mov ecx, dword [esp + 0x10]
xor edi, edi
call fcn.10002c82
test eax, eax
jbe 0x1000742f
inc eax
push eax
call fcn.10002ad2
mov edi, eax
pop ecx
mov ecx, dword [esp + 0x10]
mov edx, edi
call fcn.10002b24
lea eax, [esp + 0x38]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1000745e
push str.SockError
push str.AI_PORT_TEST_RES
push dword [ebp + 8]
call sub.msi.dll_MsiSummaryInfoGetPropertyCount
push edi
call fcn.10002adf
pop ecx
jmp 0x100074ad
push esi
mov eax, edi
call fcn.10001013
pop ecx
cmp eax, 1
jne 0x10007473
push str.UsedPort
jmp 0x10007488
test eax, eax
jne 0x1000747e
push str.FreePort
jmp 0x10007488
cmp eax, 2
jne 0x10007495
push str.SockError
push str.AI_PORT_TEST_RES
push dword [ebp + 8]
call sub.msi.dll_MsiSummaryInfoGetPropertyCount
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x10007455
push str.SockError
push str.AI_PORT_TEST_RES
push edi
call sub.msi.dll_MsiSummaryInfoGetPropertyCount
push dword [esp + 0x18]
call fcn.10002adf
pop ecx
push dword [esp + 0x10]
call fcn.10002adf
pop ecx
lea edi, [esp + 0x20]
call fcn.1000708a
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4