joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10030990
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10060f15
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x10088020]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
mov ebx, dword [ebp + 8]
xor edi, edi
push eax
push 0x100707ac
mov dword [ebp - 0x28], edi
xor esi, esi
push 0x10072e94
mov dword [ebp - 0x2c], esi
push ebx
mov dword [ebp - 0x10], esi
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
cmp eax, 0xea
jne 0x10030a34
mov esi, dword [ebp - 0x10]
xor ecx, ecx
inc esi
mov edx, 2
mov eax, esi
mov dword [ebp - 0x10], esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
lea eax, [ebp - 0x10]
push eax
push edi
push 0x10072e94
mov dword [ebp - 0x28], edi
push ebx
mov dword [ebp - 0x2c], esi
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
test esi, esi
je 0x10030aff
cmp esi, 2
jne 0x10030a4c
mov eax, 0x3a
mov word [edi + 2], ax
jmp 0x10030a51
cmp esi, 3
jne 0x10030a5a
mov eax, 0x5c
mov word [edi + 4], ax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x1c], 0
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], 0
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x10030aff
mov esi, dword [ebp - 0x18]
imul esi, dword [ebp - 0x1c]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
shr esi, 0xa
imul esi, dword [ebp - 0x20]
shr esi, 0xa
mov byte [ebp - 4], 1
push 0x16
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
mov dword [ebp - 0x14], 0xb
mov edx, ebx
mov dword [ebp - 0x10], ebx
mov ecx, esi
call fcn.10021e10
push ebx
push str.AI_FREE_DISK_SPACE
push dword [ebp + 8]
call dword [sym.imp.msi.dll_MsiSummaryInfoGetPropertyCount]
mov byte [ebp - 4], 0
test ebx, ebx
je 0x10030af1
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x10030b11
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x2c], 0
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 0x10030dd0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10061184
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x10088020]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], edx
mov edi, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], 0
mov ebx, dword [ebp + 8]
mov eax, ebx
shr eax, 8
movzx esi, al
movzx eax, bl
xor eax, 0x811c9dc5
mov dword [ebp + 8], ebx
imul eax, eax, 0x1000193
xor esi, eax
mov eax, ebx
shr eax, 0x10
movzx eax, al
imul ecx, esi, 0x1000193
xor ecx, eax
mov eax, ebx
imul ecx, ecx, 0x1000193
shr eax, 0x18
xor ecx, eax
imul eax, ecx, 0x1000193
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.10033570
mov eax, dword [eax + 4]
test eax, eax
je 0x10030ee1
cmp eax, dword [0x10089d94]
je 0x10030ee1
push dword [eax + 0x10]
mov edx, dword [ebp - 0x14]
lea ecx, [ebp + 8]
push dword [eax + 0x14]
call fcn.10030be0
add esp, 8
mov dword [ebp - 4], 1
lea esi, [edi + 4]
mov dword [ebp - 0x14], esi
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.10009ac0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 3
mov dword [edi + 8], ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], 1
mov dword [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10030f1e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea esi, [edi + 4]
mov dword [edi], 0
mov dword [ebp + 8], esi
call fcn.10009f40
mov ecx, eax
test ecx, ecx
je 0x10030f32
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 6
mov dword [edi + 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10005390
int3
Function at 0x10032e20
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006172d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x10088020]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor ecx, eax
movzx eax, byte [edi + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edi + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
lea eax, [ebp - 0x1c]
imul ebx, ecx, 0x1000193
push ebx
push edi
push eax
call fcn.10033570
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x10032eac
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [0x10089d98], 0xaaaaaaa
je 0x1003301a
mov dword [ebp - 0x14], 0x10089d94
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
push 0x18
push 0x40
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [edi]
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [esi + 8], ecx
mov eax, dword [edi + 4]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 8]
mov dword [esi + 0x10], eax
mov dword [ebp - 4], 1
mov eax, dword [edi + 0xc]
mov dword [esi + 0x14], eax
mov ecx, dword [0x10089d98]
mov edi, dword [0x10089dac]
lea eax, [ecx + 1]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10079aa0]
mov eax, edi
shr eax, 0x1f
cvtpd2ps xmm3, xmm0
movd xmm0, edi
cvtdq2pd xmm0, xmm0
movaps xmm2, xmm3
addsd xmm0, qword [eax*8 + 0x10079aa0]
cvtpd2ps xmm1, xmm0
movss xmm0, dword [0x10089d90]
divss xmm2, xmm1
comiss xmm2, xmm0
jbe 0x10032fa8
divss xmm3, xmm0
movaps xmm0, xmm3
call fcn.1000fab0
call fcn.10059100
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
cmp edi, ecx
jae 0x10032f8a
cmp edi, 0x200
jae 0x10032f88
shl edi, 3
cmp edi, ecx
jae 0x10032f8a
mov edi, ecx
push edi
call fcn.10033110
push ebx
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.10033570
mov ecx, dword [0x10089d98]
mov edx, dword [eax]
jmp 0x10032fab
mov edx, dword [ebp - 0x1c]
mov edi, dword [edx + 4]
inc ecx
mov dword [0x10089d98], ecx
mov dword [esi], edx
mov dword [esi + 4], edi
mov dword [edi], esi
mov dword [edx + 4], esi
mov eax, dword [0x10089da8]
mov ecx, dword [0x10089d9c]
and eax, ebx
mov dword [ebp - 0x10], 0
mov ebx, dword [ecx + eax*8]
cmp ebx, dword [0x10089d94]
jne 0x10032fe3
mov dword [ecx + eax*8], esi
jmp 0x10032ff2
cmp ebx, edx
jne 0x10032fec
mov dword [ecx + eax*8], esi
jmp 0x10032ff6
cmp dword [ecx + eax*8 + 4], edi
jne 0x10032ff6
mov dword [ecx + eax*8 + 4], esi
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 1
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 8
push str.unordered_map_set_too_long
call fcn.100442a0
int3
Function at 0x10033110
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006175d
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10088020]
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 0x100332b0
lea eax, [ecx - 1]
mov esi, dword [0x10089d94]
or eax, edi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
mov ecx, 0x10089d9c
lea eax, [edi + edi]
push eax
call fcn.1000d440
lea eax, [edi - 1]
mov dword [0x10089dac], edi
mov dword [0x10089da8], eax
mov dword [ebp - 0x14], 0x10089d90
mov dword [ebp - 4], 0
mov ecx, dword [0x10089d94]
mov ecx, dword [ecx]
mov edx, ecx
cmp ecx, esi
je 0x1003326c
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 [0x10089d9c]
imul edi, edi, 0x1000193
and edi, dword [0x10089da8]
mov ebx, dword [eax + edi*8]
lea eax, [eax + edi*8]
mov dword [ebp + 8], eax
cmp ebx, esi
jne 0x100331f8
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x10033262
mov eax, dword [eax + 4]
mov edi, dword [ecx + 8]
cmp edi, dword [eax + 8]
jne 0x1003322f
mov eax, dword [eax]
cmp eax, ecx
je 0x10033227
mov ebx, dword [ecx + 4]
mov dword [ebp - 0x10], 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 - 0x10]
mov dword [edx + 4], eax
mov dword [ecx + 4], edi
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
jmp 0x10033262
cmp ebx, eax
je 0x1003323f
mov eax, dword [eax + 4]
cmp edi, dword [eax + 8]
je 0x1003328e
cmp ebx, eax
jne 0x10033233
mov ebx, dword [ecx + 4]
mov dword [ebp - 0x10], 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 - 0x10]
mov dword [edx + 4], eax
mov eax, dword [ebp + 8]
mov dword [ecx + 4], edi
mov dword [eax], ecx
mov ecx, edx
cmp edx, esi
jne 0x100331a4
mov dword [ebp - 0x14], 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 + 8], 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 + 8]
mov dword [edx + 4], eax
mov dword [ecx + 4], edi
jmp 0x10033262
push str.invalid_hash_bucket_count
call fcn.100442a0
int3
Function at 0x10034350
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xa2c
mov eax, dword [0x10088020]
xor eax, esp
mov dword [esp + 0xa28], eax
push ebp
mov ebp, 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 ebp
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 0x1003445b
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push eax
push eax
push eax
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x44]
push eax
push edi
push dword [esp + 0x2c]
call ebx
test eax, eax
jne 0x10034429
nop word [eax + eax]
mov edx, str.OPEN
lea ecx, [esp + 0x30]
call fcn.10026320
test al, al
je 0x10034403
inc esi
push 0
push 0
push 0
push 0
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x104
push eax
lea eax, [esp + 0x44]
inc edi
push eax
push edi
push dword [esp + 0x2c]
call ebx
test eax, eax
je 0x100343f0
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
test esi, esi
jne 0x1003443f
push 0x100707ac
jmp 0x1003444f
lea edx, [esp + 0x18]
mov ecx, esi
call fcn.10021e10
lea eax, [esp + 0x18]
push eax
push str.AI_ADDIN
push ebp
call dword [sym.imp.msi.dll_MsiSummaryInfoGetPropertyCount]
mov ecx, dword [esp + 0xa34]
xor eax, eax
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.10044a98
add esp, 0xa2c
ret 4
Function at 0x10039cf0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x61c]
sub esp, 0x61c
push 0xffffffffffffffff
push 0x100623bd
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x10088020]
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, 0x10088b0c
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.100262e0
add esp, 0xc
lea edx, [ebp]
mov ecx, esi
call fcn.10026e50
test al, al
je 0x10039d74
cmp word [ebp], 0
je 0x10039dcb
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.msi.dll_MsiSummaryInfoGetPropertyCount]
jmp 0x10039dcb
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.100270a0
mov esi, dword [ebp - 0x14]
test al, al
je 0x10039dab
push esi
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.msi.dll_MsiSummaryInfoGetPropertyCount]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x10039dbd
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
add edi, 0xc
cmp edi, 0x10088b48
jne 0x10039d34
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 0x10039f01
push eax
lea eax, [ebp + 0x208]
push 0x208
push eax
call fcn.100262e0
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 0x10039e6e
push str._SystemDrive_inetpubwwwroot
lea eax, [ebp + 0x208]
push 0x104
push eax
call fcn.1004b6f0
add esp, 0xc
push 0
lea eax, [ebp + 0x410]
push 0x208
push eax
call fcn.100262e0
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 0x10039eee
nop
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x10039eb0
test ecx, ecx
je 0x10039eee
cmp word [ebp + ecx*2 + 0x40e], 0x5c
je 0x10039eee
mov eax, 0x5c
mov word [ebp + ecx*2 + 0x410], ax
lea eax, [ecx*2 + 2]
cmp eax, 0x208
jae 0x10039f28
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.10044a98
lea esp, [ebp + 0x61c]
pop ebp
ret 4
call fcn.1004522c
int3
Function at 0x1003f220
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x438]
sub esp, 0x438
push 0xffffffffffffffff
push 0x10063655
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10088020]
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 ebx, edx
mov esi, ecx
mov dword [ebp - 0x1c], esi
push 0
lea eax, [ebp + 0x22c]
push 0x208
push eax
call fcn.100262e0
add esp, 0xc
mov dword [ebp - 0x14], 0x104
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x22c]
push eax
push 0x10072e94
push ebx
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
cmp esi, 1
jne 0x1003f2aa
push str.Stopped
push str.AI_PROCESS_STATE
push ebx
call dword [sym.imp.msi.dll_MsiSummaryInfoGetPropertyCount]
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 0x30], 0x10070b24
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100790bc
push esi
call edi
push 0
push 2
call eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x10070ab0
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 1
lea eax, [ebp]
push 0x22c
push 0
push eax
call fcn.10046750
push 0
lea eax, [ebp]
push 0x22c
push eax
call fcn.100262e0
add esp, 0x18
mov dword [ebp], 0x22c
push 0x1007909c
push esi
call edi
push 0x100790ac
push dword [ebp - 0x10]
mov esi, eax
call edi
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
lea eax, [ebp]
push eax
push edi
call esi
test eax, eax
je 0x1003f397
mov esi, dword [sym.imp.msi.dll_MsiSummaryInfoGetPropertyCount]
lea eax, [ebp + 0x22c]
push eax
lea eax, [ebp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1003f38b
mov eax, dword [ebp - 0x1c]
sub eax, 1
je 0x1003f37e
sub eax, 1
jne 0x1003f38b
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 0x1003f38b
push str.Running
push str.AI_PROCESS_STATE
push ebx
call esi
lea eax, [ebp]
push eax
push edi
call dword [ebp - 0x20]
test eax, eax
jne 0x1003f345
mov byte [ebp - 4], 0
mov dword [ebp - 0x28], 0x10070ab0
test edi, edi
je 0x1003f3b4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x30], 0x10070b24
test eax, eax
je 0x1003f3d7
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
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 ecx, dword [ebp + 0x434]
xor ecx, ebp
call fcn.10044a98
lea esp, [ebp + 0x438]
pop ebp
ret
Function at 0x1003f5f0
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100636e5
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x10088020]
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 ebx, eax
test ebx, ebx
je 0x1003f77e
mov esi, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0
push 1
push 0x30
push ebx
mov dword [ebp - 0x18], 0
call esi
push dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x40
call edi
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 ebx
call esi
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 edi
xor ebx, ebx
mov dword [ebp - 0x24], esi
mov edi, eax
mov dword [ebp - 0x20], edi
cmp dword [ebp - 0x10], ebx
jbe 0x1003f731
mov esi, dword [ebp - 0x1c]
nop dword [eax]
cmp word [edi], 0
mov ecx, edi
je 0x1003f6f9
nop dword [eax + eax]
add ecx, 2
cmp word [ecx], 0
jne 0x1003f6f0
mov edx, dword [esi]
push 0xffffffffffffffff
call fcn.10013290
add esp, 4
mov ecx, edi
cmp word [edi], 0
je 0x1003f719
nop dword [eax]
add ecx, 2
cmp word [ecx], 0
jne 0x1003f710
push 0xffffffffffffffff
mov edx, 0x1007335c
call fcn.10013290
inc ebx
add esp, 4
add esi, 0x24
cmp ebx, dword [ebp - 0x10]
jb 0x1003f6e0
push edi
push str.AI_SERVICES_LIST
push dword [ebp + 8]
call dword [sym.imp.msi.dll_MsiSummaryInfoGetPropertyCount]
mov byte [ebp - 4], 0
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x1003f751
push edi
call esi
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1003f770
push eax
call esi
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 0x10041660
Capabilities:
Reference sql statements

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x10063eed
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x10088020]
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, 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.10013290
add esp, 4
cmp word [eax], 0
je 0x100416c9
nop dword [eax]
add eax, 2
cmp word [eax], 0
jne 0x100416c0
push 0xffffffffffffffff
mov edx, esi
mov ecx, eax
call fcn.10013290
add esp, 4
cmp word [eax], 0
je 0x100416e9
nop dword [eax]
add eax, 2
cmp word [eax], 0
jne 0x100416e0
push 0xffffffffffffffff
mov edx, str..cab
mov ecx, eax
call fcn.10013290
add esp, 4
cmp word [eax], 0
je 0x10041709
add eax, 2
cmp word [eax], 0
jne 0x10041700
push 0xffffffffffffffff
mov edx, 0x1007971c
mov ecx, eax
call fcn.10013290
add esp, 4
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov edi, dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
test eax, eax
je 0x10041738
push eax
call edi
push ebx
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 0x1004177a
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
push esi
call dword [sym.imp.msi.dll_MsiEnumClientsA]
test eax, eax
jle 0x10041773
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x100417bd
call fcn.100281a0
mov byte [ebp - 4], 0
test esi, esi
je 0x10041785
push esi
call edi
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x10041798
push ecx
call edi
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.10044a98
lea esp, [ebp + 0x20c]
pop ebp
ret
push 0
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiViewModify]
mov ebx, eax
test ebx, ebx
jle 0x100417d9
movzx ebx, bx
or ebx, 0x80070000
test ebx, ebx
jns 0x100417e0
call fcn.100281a0
mov byte [ebp - 4], 0
test esi, esi
je 0x100417eb
push esi
call edi
test ebx, ebx
js 0x10041785
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10041804
push eax
call edi
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 0x10041787
push eax
call edi
jmp 0x10041787