joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003a4f0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006a42d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x100ad040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, 0x1fffffff
mov edi, 1
bsr ecx, eax
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x1003a690
lea eax, [ecx - 1]
mov esi, dword [0x100aee24]
or eax, edi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
mov ecx, 0x100aee2c
lea eax, [edi + edi]
push eax
call fcn.1000df90
lea eax, [edi - 1]
mov dword [0x100aee3c], edi
mov dword [0x100aee38], eax
mov dword [ebp - 0x18], 0x100aee20
mov dword [ebp - 4], 0
mov ecx, dword [0x100aee24]
mov ecx, dword [ecx]
mov edx, ecx
cmp ecx, esi
je 0x1003a64c
movzx eax, byte [ecx + 8]
xor eax, 0x811c9dc5
mov edx, dword [edx]
imul edi, eax, 0x1000193
movzx eax, byte [ecx + 9]
xor edi, eax
movzx eax, byte [ecx + 0xa]
imul edi, edi, 0x1000193
xor edi, eax
movzx eax, byte [ecx + 0xb]
imul edi, edi, 0x1000193
xor edi, eax
mov eax, dword [0x100aee2c]
imul edi, edi, 0x1000193
and edi, dword [0x100aee38]
mov ebx, dword [eax + edi*8]
lea eax, [eax + edi*8]
mov dword [ebp - 0x10], eax
cmp ebx, esi
jne 0x1003a5d8
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x1003a642
mov eax, dword [eax + 4]
mov edi, dword [ecx + 8]
cmp edi, dword [eax + 8]
jne 0x1003a60f
mov eax, dword [eax]
cmp eax, ecx
je 0x1003a607
mov ebx, dword [ecx + 4]
mov dword [ebp - 0x14], ebx
mov dword [ebx], edx
mov ebx, dword [edx + 4]
mov dword [ebx], eax
mov edi, dword [eax + 4]
mov dword [edi], ecx
mov dword [eax + 4], ebx
mov eax, dword [ebp - 0x14]
mov dword [edx + 4], eax
mov dword [ecx + 4], edi
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], ecx
jmp 0x1003a642
cmp ebx, eax
je 0x1003a61f
mov eax, dword [eax + 4]
cmp edi, dword [eax + 8]
je 0x1003a66e
cmp ebx, eax
jne 0x1003a613
mov ebx, dword [ecx + 4]
mov dword [ebp - 0x14], ebx
mov dword [ebx], edx
mov ebx, dword [edx + 4]
mov dword [ebx], eax
mov edi, dword [eax + 4]
mov dword [edi], ecx
mov dword [eax + 4], ebx
mov eax, dword [ebp - 0x14]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [ecx + 4], edi
mov dword [eax], ecx
mov ecx, edx
cmp edx, esi
jne 0x1003a584
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ebp - 0x14], ebx
mov dword [ebx], edx
mov ebx, dword [edx + 4]
mov dword [ebx], eax
mov edi, dword [eax + 4]
mov dword [edi], ecx
mov dword [eax + 4], ebx
mov eax, dword [ebp - 0x14]
mov dword [edx + 4], eax
mov dword [ecx + 4], edi
jmp 0x1003a642
push str.invalid_hash_bucket_count
call fcn.1004cc5a
int3
Function at 0x1003b770
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xa2c
mov eax, dword [0x100ad040]
xor eax, esp
mov dword [esp + 0xa28], eax
push ebx
mov ebx, dword [esp + 0xa34]
lea eax, [esp + 0xc]
push esi
push edi
push eax
lea eax, [esp + 0x238]
mov dword [esp + 0x18], 0x208
push eax
push str.AI_OFFICE_REG
push ebx
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
lea eax, [esp + 0xc]
mov dword [esp + 0x10], 0x104
push eax
push 0x20019
xor edi, edi
lea eax, [esp + 0x23c]
push edi
push eax
xor esi, esi
push SysReAllocString
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003b875
push eax
push eax
push eax
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x40]
push eax
push edi
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1003b844
mov edx, str.OPEN
lea ecx, [esp + 0x2c]
call fcn.1002d280
push 0
push 0
push 0
test al, al
mov dword [esp + 0x1c], 0x104
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esi + 1]
cmove ecx, esi
lea eax, [esp + 0x40]
push eax
inc edi
mov esi, ecx
push edi
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x1003b802
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x1003b859
push 0x10093cf4
jmp 0x1003b869
lea edx, [esp + 0x18]
mov ecx, esi
call fcn.10028780
lea eax, [esp + 0x18]
push eax
push str.AI_ADDIN
push ebx
call dword [sym.imp.msi.dll_MsiSummaryInfoGetPropertyCount]
mov ecx, dword [esp + 0xa34]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1004d46a
add esp, 0xa2c
ret 4
Function at 0x10041340
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x61c]
sub esp, 0x61c
push 0xffffffffffffffff
push 0x1006b15d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x100ad040]
xor eax, ebp
mov dword [ebp + 0x618], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x624]
mov edi, 0x100adba8
mov eax, dword [edi]
mov esi, dword [edi + 4]
push 0
mov dword [ebp - 0x10], eax
lea eax, [ebp]
push 0x410
push eax
call fcn.1002d240
add esp, 0xc
lea edx, [ebp]
mov ecx, esi
call fcn.1002dd90
test al, al
je 0x100413c4
cmp word [ebp], 0
je 0x1004141b
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.msi.dll_MsiSummaryInfoGetPropertyCount]
jmp 0x1004141b
mov eax, dword [edi]
mov ecx, dword [edi + 8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x18]
call fcn.1002e000
mov esi, dword [ebp - 0x14]
test al, al
je 0x100413fb
push esi
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.msi.dll_MsiSummaryInfoGetPropertyCount]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x1004140d
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
add edi, 0xc
cmp edi, 0x100adbe4
jne 0x10041384
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftInetStp
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10041551
push eax
lea eax, [ebp + 0x208]
push 0x208
push eax
call fcn.1002d240
add esp, 0xc
mov dword [ebp - 0x1c], 0x104
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], 2
push eax
lea eax, [ebp + 0x208]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push str.PathWWWRoot
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x100414be
push str._SystemDrive_inetpubwwwroot
lea eax, [ebp + 0x208]
push 0x104
push eax
call fcn.10053fb0
add esp, 0xc
push 0
lea eax, [ebp + 0x410]
push 0x208
push eax
call fcn.1002d240
add esp, 0xc
lea eax, [ebp + 0x410]
push 0x104
push eax
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ecx, ecx
lea eax, [ebp + 0x410]
cmp word [ebp + 0x410], cx
je 0x1004153e
nop
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x10041500
test ecx, ecx
je 0x1004153e
cmp word [ebp + ecx*2 + 0x40e], 0x5c
je 0x1004153e
mov eax, 0x5c
mov word [ebp + ecx*2 + 0x410], ax
lea eax, [ecx*2 + 2]
cmp eax, 0x208
jae 0x10041578
xor ecx, ecx
mov word [ebp + eax + 0x410], cx
lea eax, [ebp + 0x410]
push eax
push str.IIsWWWRootFolder
push ebx
call dword [sym.imp.msi.dll_MsiSummaryInfoGetPropertyCount]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x618]
xor ecx, ebp
call fcn.1004d46a
lea esp, [ebp + 0x61c]
pop ebp
ret 4
call fcn.1004dcb1
int3
Function at 0x100471f0
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x438]
sub esp, 0x438
push 0xffffffffffffffff
push 0x1006c3c5
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100ad040]
xor eax, ebp
mov dword [ebp + 0x434], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x18], ebx
push 0
lea eax, [ebp + 0x22c]
push 0x208
push eax
call fcn.1002d240
add esp, 0xc
mov dword [ebp - 0x14], 0x104
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x22c]
push eax
push 0x1009666c
push edi
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
cmp ebx, 1
jne 0x1004727a
push str.Stopped
push str.AI_PROCESS_STATE
push edi
call dword [sym.imp.msi.dll_MsiSummaryInfoGetPropertyCount]
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
mov dword [ebp - 0x2c], 0x100940f8
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], 0
push 0x1009ce7c
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push 0
push 2
mov ecx, esi
call dword [0x1006e578]
call esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x24], 0x10094084
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 1
lea eax, [ebp]
push 0x22c
push 0
push eax
call fcn.1004f1c0
push 0
lea eax, [ebp]
push 0x22c
push eax
call fcn.1002d240
add esp, 0x18
mov dword [ebp], 0x22c
push 0x1009ce5c
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1009ce6c
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
mov ecx, esi
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
call dword [0x1006e578]
call esi
test eax, eax
je 0x10047384
mov esi, dword [ebp - 0x18]
lea eax, [ebp + 0x22c]
push eax
lea eax, [ebp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1004736f
mov eax, esi
sub eax, 1
je 0x1004735e
sub eax, 1
jne 0x1004736f
push dword [ebp + 8]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x1004736f
push str.Running
push str.AI_PROCESS_STATE
push edi
call dword [sym.imp.msi.dll_MsiSummaryInfoGetPropertyCount]
lea eax, [ebp]
mov ecx, ebx
push eax
push dword [ebp - 0x10]
call dword [0x1006e578]
call ebx
test eax, eax
jne 0x10047326
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], 0x10094084
test eax, eax
je 0x100473a4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], 0x100940f8
test eax, eax
je 0x100473c7
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x28], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x434]
xor ecx, ebp
call fcn.1004d46a
lea esp, [ebp + 0x438]
pop ebp
ret
Function at 0x100475e0
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006c455
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x100ad040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 4
push str.ServicesActive
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x10047770
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], 0
push eax
push 0
push 0
push 1
push 0x30
push esi
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
push dword [ebp - 0x14]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x14]
push eax
push 1
push 0x30
push esi
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 1
xor ecx, ecx
imul esi, dword [ebp - 0x10], 0x101
mov edx, 2
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
xor ebx, ebx
mov dword [ebp - 0x24], esi
mov edi, eax
mov dword [ebp - 0x20], edi
cmp dword [ebp - 0x10], ebx
jbe 0x10047721
mov esi, dword [ebp - 0x1c]
cmp word [edi], 0
mov ecx, edi
je 0x100476e9
nop dword [eax]
add ecx, 2
cmp word [ecx], 0
jne 0x100476e0
mov edx, dword [esi]
push 0xffffffffffffffff
call fcn.10013e10
add esp, 4
mov ecx, edi
cmp word [edi], 0
je 0x10047709
nop dword [eax]
add ecx, 2
cmp word [ecx], 0
jne 0x10047700
push 0xffffffffffffffff
mov edx, 0x100968fc
call fcn.10013e10
inc ebx
add esp, 4
add esi, 0x24
cmp ebx, dword [ebp - 0x10]
jb 0x100476d1
push edi
push str.AI_SERVICES_LIST
push dword [ebp + 8]
call dword [sym.imp.msi.dll_MsiSummaryInfoGetPropertyCount]
mov byte [ebp - 4], 0
test edi, edi
je 0x1004773f
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10047762
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10049e40
Capabilities:
Reference sql statements

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x1006cd2d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x100ad040]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edx + 4]
lea ecx, [ebp]
xor eax, eax
mov edx, str.SELECT__Cabinet__FROM__Media__WHERE__Media_._Cabinet_
push 0xffffffffffffffff
mov word [ebp], ax
call fcn.10013e10
add esp, 4
cmp word [eax], 0
je 0x10049ea9
nop dword [eax]
add eax, 2
cmp word [eax], 0
jne 0x10049ea0
push 0xffffffffffffffff
mov edx, esi
mov ecx, eax
call fcn.10013e10
add esp, 4
cmp word [eax], 0
je 0x10049ec9
nop dword [eax]
add eax, 2
cmp word [eax], 0
jne 0x10049ec0
push 0xffffffffffffffff
mov edx, str..cab
mov ecx, eax
call fcn.10013e10
add esp, 4
cmp word [eax], 0
je 0x10049ee9
add eax, 2
cmp word [eax], 0
jne 0x10049ee0
push 0xffffffffffffffff
mov edx, 0x1009d4ec
mov ecx, eax
call fcn.10013e10
add esp, 4
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10049f16
push eax
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
push edi
mov dword [ebp - 0x10], 0
call dword [sym.imp.msi.dll_MsiGetFeatureCostA]
mov esi, eax
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 1
cmp word [ebp], 0
je 0x10049f58
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
push esi
call dword [sym.imp.msi.dll_MsiEnumClientsA]
test eax, eax
jle 0x10049f51
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x10049fa3
call fcn.1002f140
mov byte [ebp - 4], 0
test esi, esi
je 0x10049f67
push esi
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x10049f7e
push ecx
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.1004d46a
lea esp, [ebp + 0x20c]
pop ebp
ret
push 0
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiViewModify]
mov edi, eax
test edi, edi
jle 0x10049fbf
movzx edi, di
or edi, 0x80070000
test edi, edi
jns 0x10049fc6
call fcn.1002f140
mov byte [ebp - 4], 0
test esi, esi
je 0x10049fd5
push esi
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
test edi, edi
js 0x10049f67
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10049ff2
push eax
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
test eax, eax
sete bl
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10049f69
push eax
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
jmp 0x10049f69
Function at 0x1004a030
Capabilities:
Reference sql statements

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x1006cd7d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x100ad040]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
xor eax, eax
lea ecx, [ebp]
push 0xffffffffffffffff
mov edx, str.SELECT__FROM__Condition__WHERE__Condition_._Feature__
mov word [ebp], ax
call fcn.10013e10
add esp, 4
cmp word [eax], 0
je 0x1004a099
nop dword [eax + eax]
add eax, 2
cmp word [eax], 0
jne 0x1004a090
push 0xffffffffffffffff
mov edx, ebx
mov ecx, eax
call fcn.10013e10
add esp, 4
cmp word [eax], 0
je 0x1004a0b9
nop dword [eax]
add eax, 2
cmp word [eax], 0
jne 0x1004a0b0
push 0xffffffffffffffff
mov edx, 0x1009d4ec
mov ecx, eax
call fcn.10013e10
add esp, 4
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
push esi
call dword [sym.imp.msi.dll_MsiGetFeatureCostA]
mov esi, eax
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x1004a0f6
push ecx
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp]
push eax
push esi
call dword [sym.imp.msi.dll_MsiEnumClientsA]
push 0
push dword [ebp - 0x14]
call dword [sym.imp.msi.dll_MsiViewModify]
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1004a130
push eax
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push dword [ebp - 0x14]
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
test eax, eax
jne 0x1004a158
push dword [ebp - 0x10]
push 6
push dword [ebp - 0x14]
call dword [sym.imp.msi.dll_MsiRecordClearData]
jmp 0x1004a122
push 3
call dword [sym.imp.msi.dll_MsiDatabaseExportA]
mov ecx, dword [ebp - 0x10]
mov edi, eax
test ecx, ecx
je 0x1004a170
push ecx
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
push ebx
push 1
push edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.msi.dll_MsiReinstallFeatureW]
push 0
push 2
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiRecordSetStringW]
push 0x10093d00
push 3
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiReinstallFeatureW]
push dword [ebp - 0x10]
push 7
push dword [ebp - 0x14]
call dword [sym.imp.msi.dll_MsiRecordClearData]
push esi
call dword [sym.imp.msi.dll_MsiDatabaseGenerateTransformW]
test eax, eax
sete bl
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1004a1c6
push eax
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov byte [ebp - 4], 0
test esi, esi
je 0x1004a1d5
push esi
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x1004a1ea
push ecx
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.1004d46a
lea esp, [ebp + 0x20c]
pop ebp
ret
Function at 0x1004ce9d
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x1004cec4
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x1004cec7
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.1004ce79
pop esi
leave
ret 8

Function at 0x1005878c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10090088
push 0x10090080
push str.FlsAlloc
push 0x1e
call fcn.100586aa
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100587c0
push dword [ebp + 8]
mov ecx, esi
call dword [0x1006e578]
call esi
jmp 0x100587c6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1005880a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10090098
push 0x10090090
push str.FlsGetValue
push 0x20
call fcn.100586aa
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10058841
push dword [ebp + 8]
mov ecx, esi
call dword [0x1006e578]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1005a8f0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1005a98d
push ebx
push esi
call fcn.1005a8b9
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10059835
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1005a93a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1005a98c
push edi
push eax
call fcn.10056ffd
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1005a95a
call fcn.10056f27
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1005a98b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10059835
add esp, 0x20
test eax, eax
jne 0x1005a979
push edi
call fcn.10056f27
jmp 0x1005a981
push ebx
call fcn.10056f27
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x10060890
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100608bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100608bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret