joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003830
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x1003724e
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x10059024]
xor eax, ebp
mov dword [ebp + 0x208], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
push 0x208
lea eax, [ebp]
mov dword [ebp - 0x18], esi
push 0
push eax
mov dword [ebp - 0x10], 0
call fcn.10026360
add esp, 0xc
lea eax, [ebp]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor eax, eax
mov dword [esi + 0x10], 0
lea ecx, [ebp]
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100038b4
sub ecx, edx
lea eax, [ebp]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10002c30
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.10024a34
lea esp, [ebp + 0x20c]
pop ebp
ret
Function at 0x10003d50
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x23c]
sub esp, 0x23c
push 0xffffffffffffffff
push 0x10037396
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x10059024]
xor eax, ebp
mov dword [ebp + 0x238], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], 0
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1005a160]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1005a940]
cmp eax, dword [ecx + 4]
jle 0x10003e1f
push 0x1005a940
call fcn.10024b9b
add esp, 4
cmp dword [0x1005a940], 0xffffffff
jne 0x10003e1f
mov dword [ebp - 4], 1
xor eax, eax
mov dword [0x1005a954], 0
mov dword [0x1005a958], 0
mov dword [0x1005a954], 0
mov dword [0x1005a958], 7
mov word [0x1005a944], ax
mov byte [ebp - 4], 1
push 0x1003c810
call fcn.10024f76
mov byte [ebp - 4], 0
push 0x1005a940
call fcn.10024b51
add esp, 8
cmp dword [0x1005a954], 0
jne 0x10003f08
lea eax, [ebp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x10003f08
add eax, eax
cmp eax, 0x208
jae 0x10003f46
xor ecx, ecx
mov dword [ebp + 0x28], ecx
mov word [ebp + eax + 0x30], cx
xor eax, eax
mov dword [ebp + 0x2c], ecx
mov dword [ebp + 0x28], ecx
lea ecx, [ebp + 0x30]
mov dword [ebp + 0x2c], 7
lea edx, [ecx + 2]
mov word [ebp + 0x18], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003e73
sub ecx, edx
lea eax, [ebp + 0x30]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp + 0x18]
call fcn.10002c30
mov dword [ebp - 4], 4
lea eax, [ebp + 0x18]
push 1
sub esp, 0x18
mov dword [ebp - 0x14], esp
mov esi, esp
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.10001620
mov byte [ebp - 4], 5
mov byte [ebp - 4], 4
mov ecx, esi
call fcn.10007fb0
add esp, 0x18
mov byte [ebp - 4], 6
mov byte [ebp - 4], 4
lea ecx, [ebp]
call fcn.10008280
mov byte [ebp - 4], 8
lea eax, [ebp]
cmp dword [ebp + 0x14], 8
mov ecx, 0x1005a944
push dword [ebp + 0x10]
cmovae eax, dword [ebp]
push eax
call fcn.10002c30
mov byte [ebp - 4], 4
lea ecx, [ebp]
call fcn.10002db0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x18]
call fcn.10002db0
push 0x1005a944
mov ecx, edi
call fcn.10001620
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
mov ecx, dword [ebp + 0x238]
xor ecx, ebp
call fcn.10024a34
lea esp, [ebp + 0x23c]
pop ebp
ret
call fcn.100250b6
int3
Function at 0x10005240
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x10059024]
xor eax, esp
mov dword [esp + 0x198], eax
mov eax, dword [0x1005a928]
push esi
mov esi, ecx
test eax, eax
jne 0x100052a4
push 0x190
push eax
lea eax, [esp + 0x10]
push eax
call fcn.10026360
add esp, 0xc
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
inc dword [0x1005a928]
mov eax, esi
pop esi
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.10024a34
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x19c]
inc eax
mov dword [0x1005a928], eax
mov eax, esi
pop esi
xor ecx, esp
call fcn.10024a34
mov esp, ebp
pop ebp
ret

Function at 0x10005310
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x210]
sub esp, 0x210
push 0xffffffffffffffff
push 0x100376e5
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x10059024]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
mov dword [edi], 0x10046a18
mov dword [edi + 4], 0
mov dword [ebp - 4], 0
lea eax, [ebp]
push 0x105
push eax
mov dword [edi + 8], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10005441
cmp eax, 0x105
jae 0x10005441
call fcn.100050e0
mov ecx, eax
test ecx, ecx
je 0x10005491
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.10005cd0
test al, al
jne 0x100053de
lea ecx, [ebp]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100053c2
sub ecx, edx
lea eax, [ebp]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.10005e90
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
push 1
push 0x100469a4
call fcn.10005de0
push 9
push str.ntdll.dll
lea ecx, [ebp - 0x10]
call fcn.10005de0
mov esi, dword [ebp - 0x10]
push 0x5c
push esi
call fcn.10026080
add esp, 8
test eax, eax
jne 0x10005416
xor ebx, ebx
jmp 0x10005423
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10005443
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10005443
xor ebx, ebx
mov eax, dword [edi + 4]
cmp ebx, eax
je 0x10005456
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov dword [edi + 4], ebx
mov eax, ebx
test eax, eax
jne 0x10005463
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 8], eax
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.10024a34
lea esp, [ebp + 0x210]
pop ebp
ret 8
push 0x80004005
call fcn.10003760
int3
Function at 0x10006100
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10036e00
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x10059024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10006185
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10006185
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x10006167
cmp esi, edx
jae 0x10006185
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x10006155
cmp esi, edx
jae 0x10006185
cmp word [esi], 0
je 0x10006185
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
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
Function at 0x10006e50
Capabilities:
Stop service

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10037b7d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
mov eax, dword [0x10059024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
push 0x24
push 0xf003f
call fcn.10007070
mov edi, eax
mov dword [ebp - 0x3c], 0x10049038
mov dword [ebp - 0x38], edi
mov dword [ebp - 4], 0
test edi, edi
jne 0x10006ec1
mov esi, dword [ebp - 0x34]
jmp 0x10006f03
lea eax, [ebp - 0x30]
mov dword [ebp - 0x18], 0
push eax
xorps xmm0, xmm0
push 1
push edi
movups xmmword [ebp - 0x30], xmm0
movq qword [ebp - 0x20], xmm0
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x10006ef1
push 1
push edi
call fcn.10007130
mov esi, eax
jmp 0x10006f03
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x426
jne 0x10006f03
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x3c], 0x10049038
test edi, edi
je 0x10006f23
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x38], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10024a34
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x10006f50
Capabilities:
Start service

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10037b7d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
mov eax, dword [0x10059024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x30]
movq qword [ebp - 0x20], xmm0
push eax
movups xmmword [ebp - 0x30], xmm0
call fcn.10006da0
test eax, eax
jne 0x10006fc5
cmp dword [ebp - 0x2c], 4
jne 0x10006fc5
mov ecx, esi
call fcn.10006e50
test eax, eax
jne 0x1000704d
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
push 0x14
push SysReAllocString
mov ecx, esi
call fcn.10007070
mov esi, eax
mov dword [ebp - 0x3c], 0x10049038
mov dword [ebp - 0x38], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x10007028
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x1000701e
push 4
push esi
call fcn.10007130
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x3c], 0x10049038
jmp 0x1000703d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1000702b
mov edi, dword [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x3c], 0x10049038
test esi, esi
je 0x1000704b
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x38], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10024a34
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x10007130
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
sub esp, 0x30
mov eax, dword [0x10059024]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
lea eax, [esp + 4]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
xorps xmm0, xmm0
push eax
push 0x24
lea eax, [esp + 0x18]
mov dword [esp + 0x10], 0
push eax
push 0
push ebx
movups xmmword [esp + 0x24], xmm0
mov dword [esp + 0x44], 0
movups xmmword [esp + 0x34], xmm0
call ebp
test eax, eax
jne 0x10007195
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10024a34
add esp, 0x30
ret 8
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov esi, dword [esp + 0x48]
mov dword [esp + 0x14], eax
cmp dword [esp + 0x1c], esi
je 0x100071e9
nop dword [eax]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push 0x24
lea eax, [esp + 0x20]
push eax
push 0
push ebx
call ebp
test eax, eax
je 0x1000721a
cmp dword [esp + 0x1c], esi
je 0x100071e9
call edi
sub eax, dword [esp + 0x14]
cmp eax, 0x7530
ja 0x10007200
cmp dword [esp + 0x1c], esi
jne 0x100071b0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10024a34
add esp, 0x30
ret 8
pop edi
pop esi
pop ebp
mov eax, 0x102
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10024a34
add esp, 0x30
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10024a34
add esp, 0x30
ret 8
Function at 0x10010060
Capabilities:
Get common file path

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
test edi, edi
je 0x1001018b
lea eax, [esp + 0x10]
push eax
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jns 0x1001010a
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x1001018b
push str.SHGetSpecialFolderPathW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x1001018b
push 0x20a
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0
push edi
push eax
push 0
mov dword [esi + 4], eax
mov dword [esi], 0x105
call ebx
test eax, eax
je 0x100100fd
mov esi, dword [esi + 4]
xor edx, edx
mov ecx, esi
cmp word [esi], dx
je 0x100100fd
nop
lea ecx, [ecx + 2]
inc edx
cmp word [ecx], 0
jne 0x100100e0
test edx, edx
je 0x100100fd
cmp word [esi + edx*2 - 2], 0x5c
je 0x100100fd
mov dword [esi + edx*2], 0x5c
pop edi
cmp eax, 1
pop esi
sete al
pop ebx
add esp, 8
ret
push 0x20a
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push eax
push dword [esp + 0x14]
mov dword [esi + 4], eax
mov dword [esi], 0x105
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov edi, eax
test edi, edi
je 0x1001015d
mov esi, dword [esi + 4]
xor edx, edx
mov ecx, esi
cmp word [esi], dx
je 0x1001015d
nop dword [eax]
lea ecx, [ecx + 2]
inc edx
cmp word [ecx], 0
jne 0x10010140
test edx, edx
je 0x1001015d
cmp word [esi + edx*2 - 2], 0x5c
je 0x1001015d
mov dword [esi + edx*2], 0x5c
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [esp + 0xc]
push dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
cmp edi, 1
pop edi
pop esi
sete al
pop ebx
add esp, 8
ret
pop edi
pop esi
xor al, al
pop ebx
add esp, 8
ret
Function at 0x100103f0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100392d5
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x10059024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x14], esi
push ecx
call dword [sym.imp.msi.dll_MsiGetFeatureCostA]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
jne 0x1001043b
xor esi, esi
jmp 0x10010535
mov eax, str.SELECT__FROM___s__WHERE__Property__s_AND__Value__s
xor ecx, ecx
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x10010442
xor edx, edx
mov eax, esi
cmp word [esi], dx
je 0x1001045f
lea eax, [eax + 2]
inc edx
cmp word [eax], 0
jne 0x10010455
mov edi, dword [ebp + 8]
xor esi, esi
mov eax, edi
cmp word [edi], si
je 0x1001047a
nop dword [eax + eax]
lea eax, [eax + 2]
inc esi
cmp word [eax], 0
jne 0x10010470
mov eax, dword [ebp + 0xc]
xor edi, edi
mov ebx, eax
cmp word [ebx], di
mov ebx, dword [ebp - 0x10]
je 0x1001049a
nop dword [eax]
lea eax, [eax + 2]
inc edi
cmp word [eax], 0
jne 0x10010490
add ecx, 0xfffffffb
lea eax, [edi + esi]
add eax, edx
mov edx, 2
add eax, ecx
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 1
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 0x14]
push str.SELECT__FROM___s__WHERE__Property__s_AND__Value__s
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [ebp + 0x14]
add esp, 0x14
push esi
push edi
push ebx
call dword [sym.imp.msi.dll_MsiEnumClientsA]
test eax, eax
jne 0x10010516
push eax
push dword [esi]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
jne 0x10010516
push dword [ebp + 0x10]
push dword [esi]
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
test eax, eax
jne 0x10010516
lea esi, [eax + 1]
jmp 0x10010518
xor esi, esi
mov byte [ebp - 4], 0
test edi, edi
je 0x10010527
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x10010547
push ebx
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10010560
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003930d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x10059024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
mov eax, str.SELECT__FROM___s__WHERE__Property__s
xor esi, esi
lea eax, [eax + 2]
inc esi
cmp word [eax], 0
jne 0x10010595
xor ecx, ecx
mov eax, edx
cmp word [edx], cx
je 0x100105b2
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x100105a8
mov ebx, dword [ebp + 8]
xor edx, edx
mov eax, ebx
cmp word [ebx], dx
je 0x100105ca
nop
lea eax, [eax + 2]
inc edx
cmp word [eax], 0
jne 0x100105c0
lea eax, [edx + ecx]
add esi, 0xfffffffd
xor ecx, ecx
add eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0
push ebx
push dword [ebp - 0x10]
push str.SELECT__FROM___s__WHERE__Property__s
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [ebp + 0xc]
add esp, 0x10
push esi
push edi
push dword [ebp - 0x14]
call dword [sym.imp.msi.dll_MsiEnumClientsA]
test eax, eax
jne 0x10010635
push eax
push dword [esi]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
jne 0x10010635
lea esi, [eax + 1]
jmp 0x10010637
xor esi, esi
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x10010649
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x18], 0
mov eax, esi
mov dword [ebp - 0x1c], 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
Function at 0x100108a0
Capabilities:
Reference sql statements

Disassembly:
push ebp
lea ebp, [esp - 0x3ec]
sub esp, 0x3ec
push 0xffffffffffffffff
push 0x100393cd
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x10059024]
xor eax, ebp
mov dword [ebp + 0x3e8], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov eax, dword [ebp + 0x3f4]
push ecx
mov dword [ebp - 0x1c], eax
call dword [sym.imp.msi.dll_MsiGetFeatureCostA]
mov ebx, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0
mov esi, dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
test ebx, ebx
jne 0x10010908
xor edi, edi
jmp 0x100109ca
push dword [ebp - 0x1c]
lea eax, [ebp]
push edi
push str.SELECT__FROM___s__WHERE__Property__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10010933
push eax
call esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp]
push eax
push ebx
call dword [sym.imp.msi.dll_MsiEnumClientsA]
test eax, eax
jne 0x100109fd
push eax
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
jne 0x100109fd
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
mov edi, dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
mov ebx, dword [sym.imp.msi.dll_MsiRecordClearData]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10010980
push eax
call esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x100109a6
push dword [ebp - 0x14]
push 6
push dword [ebp - 0x10]
call ebx
test eax, eax
je 0x10010976
xor edi, edi
jmp 0x100109ab
mov edi, 1
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x100109b9
push eax
call esi
mov ebx, dword [ebp - 0x18]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x100109ca
push eax
call esi
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x100109d8
push ebx
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x3e8]
xor ecx, ebp
call fcn.10024a34
lea esp, [ebp + 0x3ec]
pop ebp
ret
xor edi, edi
jmp 0x100109bc
Function at 0x10012100
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003978d
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x10059024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov edx, str.MsiLogFileLocation
push eax
call fcn.10010bc0
mov esi, dword [ebp - 0x10]
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x10012169
push 5
push 0
push 0
push esi
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x1001217b
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x10], 0
xor eax, eax
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4