joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10015360
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x100ad040]
xor eax, esp
mov dword [esp + 0x198], eax
mov eax, dword [0x100aeddc]
push esi
mov esi, ecx
test eax, eax
jne 0x100153c4
push 0x190
push eax
lea eax, [esp + 0x10]
push eax
call fcn.1004f1c0
add esp, 0xc
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
inc dword [0x100aeddc]
mov eax, esi
pop esi
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.1004d46a
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x19c]
inc eax
mov dword [0x100aeddc], eax
mov eax, esi
pop esi
xor ecx, esp
call fcn.1004d46a
mov esp, ebp
pop ebp
ret
Function at 0x10015430
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x210]
sub esp, 0x210
push 0xffffffffffffffff
push 0x10063a75
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x100ad040]
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 ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebx], 0x100940f8
mov dword [ebx + 4], 0
mov dword [ebp - 4], 0
lea eax, [ebp]
push 0x105
push eax
mov dword [ebx + 8], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1001558d
cmp eax, 0x105
jae 0x1001558d
call fcn.1000a250
mov edi, eax
test edi, edi
je 0x100155e7
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x1006e578]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
lea eax, [ebp]
test eax, 0xffff0000
jne 0x100154fc
movzx esi, ax
mov ecx, esi
call fcn.10011600
test eax, eax
je 0x1001551e
push esi
push eax
lea ecx, [ebp - 0x10]
call fcn.10011760
jmp 0x1001551e
lea ecx, [ebp]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10015502
sub ecx, edx
lea eax, [ebp]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.10007dd0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
push 1
push 0x10094080
call fcn.10011800
push 9
push str.ntdll.dll
lea ecx, [ebp - 0x10]
call fcn.10011800
mov esi, dword [ebp - 0x10]
push 0x5c
push esi
call fcn.1004ec8c
add esp, 8
test eax, eax
je 0x1001555d
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0
lea ecx, [esi - 0x10]
or eax, 0xffffffff
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x10015588
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
mov ecx, edi
call esi
mov edi, dword [ebp - 0x14]
jmp 0x1001558f
xor edi, edi
mov eax, dword [ebx + 4]
cmp edi, eax
je 0x100155ac
mov eax, dword [ebx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
mov ecx, ebx
call esi
mov dword [ebx + 4], edi
mov eax, edi
test eax, eax
jne 0x100155b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 8], eax
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
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.1004d46a
lea esp, [ebp + 0x210]
pop ebp
ret 8
push 0x80004005
call fcn.10005390
int3
Function at 0x10017480
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 0x1006407d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
mov eax, dword [0x100ad040]
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.100176a0
mov edi, eax
mov dword [ebp - 0x3c], 0x10095d6c
mov dword [ebp - 0x38], edi
mov dword [ebp - 4], 0
test edi, edi
jne 0x100174f1
mov esi, dword [ebp - 0x34]
jmp 0x10017533
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 0x10017521
push 1
push edi
call fcn.10017760
mov esi, eax
jmp 0x10017533
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x426
jne 0x10017533
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x3c], 0x10095d6c
test edi, edi
je 0x10017553
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.1004d46a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x10017580
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 0x1006407d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
mov eax, dword [0x100ad040]
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.100173d0
test eax, eax
jne 0x100175f5
cmp dword [ebp - 0x2c], 4
jne 0x100175f5
mov ecx, esi
call fcn.10017480
test eax, eax
jne 0x1001767d
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
push 0x14
push SysReAllocString
mov ecx, esi
call fcn.100176a0
mov esi, eax
mov dword [ebp - 0x3c], 0x10095d6c
mov dword [ebp - 0x38], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x10017658
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x1001764e
push 4
push esi
call fcn.10017760
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x3c], 0x10095d6c
jmp 0x1001766d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1001765b
mov edi, dword [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x3c], 0x10095d6c
test esi, esi
je 0x1001767b
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.1004d46a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x10017760
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
sub esp, 0x2c
mov eax, dword [0x100ad040]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
mov ebx, dword [esp + 0x34]
lea eax, [esp + 4]
push eax
push 0x24
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0
push eax
xorps xmm0, xmm0
mov dword [esp + 0x34], 0
push 0
push ebx
movups xmmword [esp + 0x1c], xmm0
movups xmmword [esp + 0x2c], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x100177c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.1004d46a
add esp, 0x2c
ret 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [esp + 0x40]
mov edi, eax
cmp dword [esp + 0x14], esi
je 0x10017814
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0xc]
push eax
push 0x24
lea eax, [esp + 0x18]
push eax
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x10017843
cmp dword [esp + 0x14], esi
je 0x10017814
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x7530
ja 0x1001782a
cmp dword [esp + 0x14], esi
jne 0x100177d5
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.1004d46a
add esp, 0x2c
ret 8
pop edi
pop esi
mov eax, 0x102
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.1004d46a
add esp, 0x2c
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1004d46a
add esp, 0x2c
ret 8
Function at 0x10019e10
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10064535
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100ad040]
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 ebx, ecx
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
cmp esi, edi
je 0x10019e75
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.10018e60
mov dword [ebp - 4], 0
mov ecx, eax
call fcn.10019f40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10005610
add esi, 0x18
cmp esi, edi
jne 0x10019e46
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
cmp esi, edi
je 0x10019e9e
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.10005610
add esi, 0x18
mov dword [ebp - 0x2c], esi
cmp esi, edi
jne 0x10019e81
mov eax, dword [ebx]
mov dword [ebx + 4], eax
mov esi, dword [ebx + 0x10]
mov edi, dword [ebx + 0xc]
cmp esi, edi
je 0x10019edf
lea eax, [ebp - 0x28]
lea ecx, [esi - 0x18]
push eax
mov esi, ecx
call fcn.10018e60
mov dword [ebp - 4], 3
cmp dword [eax + 0x14], 7
jbe 0x10019ec5
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10005610
cmp esi, edi
jne 0x10019ea8
mov esi, dword [ebx + 0xc]
mov edi, dword [ebx + 0x10]
cmp esi, edi
je 0x10019f0e
mov dword [ebp - 0x2c], esi
nop dword [eax]
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.10005610
add esi, 0x18
mov dword [ebp - 0x2c], esi
cmp esi, edi
jne 0x10019ef0
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x10], eax
mov ecx, ebx
call fcn.1001a0e0
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.1004d46a
mov esp, ebp
pop ebp
ret
Function at 0x10019f40
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x268]
sub esp, 0x268
push 0xffffffffffffffff
push 0x1006457d
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x100ad040]
xor eax, ebp
mov dword [ebp + 0x264], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x14]
mov ebx, esi
mov ecx, dword [esi + 0x10]
cmp eax, 7
jbe 0x10019f8a
mov ebx, dword [esi]
test ecx, ecx
je 0x1001a0ae
xor edi, edi
mov edx, ebx
cmp word [ebx], 0x2a
je 0x10019faf
nop dword [eax]
cmp ecx, 1
je 0x10019fb1
add edx, 2
dec ecx
cmp word [edx], 0x2a
jne 0x10019fa0
mov edi, edx
test edi, edi
je 0x1001a0ae
sub edi, ebx
sar edi, 1
cmp edi, 0xffffffff
je 0x1001a0ae
lea ecx, [ebp]
call fcn.10012500
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 7
jbe 0x10019fdd
mov esi, dword [esi]
push esi
lea ecx, [ebp]
call fcn.10018110
test eax, eax
je 0x1001a09d
mov ecx, dword [ebp + 0x25c]
test ecx, ecx
mov edx, dword [ebp + 4]
je 0x1001a02d
mov eax, edx
shr eax, 4
test eax, 1
je 0x1001a024
cmp word [ebp + 0x30], 0x2e
jne 0x1001a024
mov ax, word [ebp + 0x32]
test ax, ax
je 0x1001a077
cmp ax, 0x2e
jne 0x1001a024
cmp word [ebp + 0x34], 0
je 0x1001a077
test ecx, ecx
je 0x1001a02d
test dl, 0x10
jne 0x1001a077
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp]
call fcn.10018680
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1001a071
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
mov ecx, edi
call esi
mov ecx, dword [ebp + 0x25c]
mov eax, dword [ebp]
test eax, eax
je 0x1001a09d
test ecx, ecx
je 0x1001a09d
lea ecx, [ebp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ecx, eax
mov dword [ebp + 0x25c], ecx
test ecx, ecx
jne 0x10019ff6
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.100125d0
jmp 0x1001a0bc
cmp eax, 7
jbe 0x1001a0b5
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x264]
xor ecx, ebp
call fcn.1004d46a
lea esp, [ebp + 0x268]
pop ebp
ret
Function at 0x1001c510
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100642cd
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100ad040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 5
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push str.CLOSE
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
call fcn.10002cb0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 7
push 0
push edx
lea ecx, [eax + eax]
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push ecx
push eax
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 7
jbe 0x1001c5cb
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov edx, ecx
cmp eax, 0x1000
jb 0x1001c5c0
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x1001c5f9
test ecx, ecx
je 0x1001c5cb
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004d46a
mov esp, ebp
pop ebp
ret
call fcn.10050fef
int3
Function at 0x10022a60
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10065d25
mov eax, dword fs:[0]
push eax
sub esp, 0x14
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 dword [ebp - 0x10], esp
mov esi, ecx
cmp byte [esi + 8], 0
jne 0x10022abd
mov dword [ebp - 4], 0
mov eax, dword [esi]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 4]
cmp dword [eax + 0x14], 7
jbe 0x10022aaf
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
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
Function at 0x10023360
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10065f8e
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x100ad040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x74], 0
call fcn.10013fa0
mov dword [ebp - 4], 1
xorps xmm0, xmm0
push 0xa
push str.viewer.exe
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0
call fcn.10002cb0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
mov ecx, esi
push eax
call fcn.100193f0
mov byte [ebp - 4], 2
mov dword [ebp - 0x74], 1
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
cmp eax, 7
jbe 0x10023431
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov edx, ecx
cmp eax, 0x1000
jb 0x10023426
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x1002352f
test ecx, ecx
je 0x10023431
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov dword [ebp - 0x18], 0
push edi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call dword [sym.imp.msi.dll_MsiGetFeatureCostA]
mov edi, eax
mov dword [ebp - 0x7c], edi
mov byte [ebp - 4], 4
lea eax, [ebp - 0x70]
push eax
mov ecx, esi
call fcn.10018e60
mov esi, eax
mov byte [ebp - 4], 5
xorps xmm0, xmm0
push 0x37
push str.SELECT__Data__FROM__Binary__WHERE__Name___viewer.exe
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0
call fcn.10002cb0
mov byte [ebp - 4], 6
lea edx, [ebp - 0x40]
push esi
mov ecx, edi
call fcn.1000c1d0
add esp, 4
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x2c]
cmp eax, 7
jbe 0x100234d3
mov ecx, dword [ebp - 0x40]
lea eax, [eax*2 + 2]
mov edx, ecx
cmp eax, 0x1000
jb 0x100234c8
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x10023534
test ecx, ecx
je 0x100234d3
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x70]
call fcn.10005610
mov byte [ebp - 4], 1
test edi, edi
je 0x10023502
push edi
call dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.10005610
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004d46a
mov esp, ebp
pop ebp
ret
call fcn.10050fef
call fcn.10050fef
int3
Function at 0x1002a780
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006708d
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x100ad040]
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 dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
mov ebx, dword [ebp + 8]
xor edi, edi
push eax
push 0x10093cf4
push 0x1009666c
mov dword [ebp - 0x2c], edi
push ebx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x28], edi
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
cmp eax, 0xea
jne 0x1002a825
mov esi, dword [ebp - 0x28]
xor ecx, ecx
inc esi
mov edx, 2
mov eax, esi
mov dword [ebp - 0x28], 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 - 0x28]
push eax
push edi
push 0x1009666c
mov dword [ebp - 0x2c], edi
push ebx
mov dword [ebp - 0x30], esi
call dword [sym.imp.msi.dll_MsiGetSummaryInformationW]
lea eax, [ebp - 0x38]
mov dword [ebp - 0x44], edi
push eax
lea eax, [ebp - 0x3c]
push eax
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x44]
call fcn.1002a660
add esp, 8
test al, al
je 0x1002a911
mov ebx, htonl
nop dword [eax + eax]
mov ecx, dword [ebp - 0x40]
test ecx, ecx
jne 0x1002a85e
mov eax, SysReAllocString
jmp 0x1002a88a
cmp ecx, 1
jne 0x1002a86a
mov eax, SysReAllocString
jmp 0x1002a88a
cmp ecx, 2
jne 0x1002a876
mov eax, reloc.OLEAUT32.dll_SysReAllocString
jmp 0x1002a88a
cmp ecx, 3
jne 0x1002a882
mov eax, SysStringLen
jmp 0x1002a88a
xor eax, eax
cmp ecx, 5
cmove eax, ebx
lea ecx, [ebp - 0x28]
push ecx
push 0x2001f
push 0
push dword [ebp - 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002a8f3
mov esi, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x34], 0x14
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push esi
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1002a8f3
cmp dword [ebp - 0x34], 8
jne 0x1002a8ea
push 8
lea eax, [ebp - 0x24]
mov dword [ebp - 0x48], 0xb
push eax
push 0xb
push 0
push esi
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x44]
call fcn.1002a660
add esp, 8
test al, al
jne 0x1002a850
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x1002a923
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x2c], 0
xor eax, eax
mov dword [ebp - 0x30], 0
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.1004d46a
mov esp, ebp
pop ebp
ret 4
Function at 0x1002e000
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 0x1002e139
lea eax, [esp + 0x10]
push eax
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jns 0x1002e0b1
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x1002e139
push str.SHGetSpecialFolderPathW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x1002e139
push 0x20a
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0
push edi
push eax
push 0
mov ecx, ebx
mov dword [esi + 4], eax
mov dword [esi], 0x105
call dword [0x1006e578]
call ebx
test eax, eax
je 0x1002e0a4
mov esi, dword [esi + 4]
xor edx, edx
mov ecx, esi
cmp word [esi], dx
je 0x1002e0a4
lea ecx, [ecx + 2]
inc edx
cmp word [ecx], 0
jne 0x1002e087
test edx, edx
je 0x1002e0a4
cmp word [esi + edx*2 - 2], 0x5c
je 0x1002e0a4
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 0x1002e101
mov esi, dword [esi + 4]
xor edx, edx
mov ecx, esi
cmp word [esi], dx
je 0x1002e101
lea ecx, [ecx + 2]
inc edx
cmp word [ecx], 0
jne 0x1002e0e4
test edx, edx
je 0x1002e101
cmp word [esi + edx*2 - 2], 0x5c
je 0x1002e101
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]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x1006e578]
call esi
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 0x1002e400
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10067ce5
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 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 0x1002e44b
xor esi, esi
jmp 0x1002e545
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 0x1002e452
xor edx, edx
mov eax, esi
cmp word [esi], dx
je 0x1002e46f
lea eax, [eax + 2]
inc edx
cmp word [eax], 0
jne 0x1002e465
mov edi, dword [ebp + 8]
xor esi, esi
mov eax, edi
cmp word [edi], si
je 0x1002e48a
nop dword [eax + eax]
lea eax, [eax + 2]
inc esi
cmp word [eax], 0
jne 0x1002e480
mov eax, dword [ebp + 0xc]
xor edi, edi
mov ebx, eax
cmp word [ebx], di
mov ebx, dword [ebp - 0x10]
je 0x1002e4aa
nop dword [eax]
lea eax, [eax + 2]
inc edi
cmp word [eax], 0
jne 0x1002e4a0
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 0x1002e526
push eax
push dword [esi]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
jne 0x1002e526
push dword [ebp + 0x10]
push dword [esi]
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
test eax, eax
jne 0x1002e526
lea esi, [eax + 1]
jmp 0x1002e528
xor esi, esi
mov byte [ebp - 4], 0
test edi, edi
je 0x1002e537
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 0x1002e557
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