joyce8/EMBER2024-capa huggingface dataset:
Function at 0x471bb0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5045e0
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x569078]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov edx, 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
jge 0x471c0c
push 0x104
lea ecx, [ebp + 8]
call fcn.004067ae
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov eax, dword [ebp + 8]
push dword [eax - 8]
push eax
call fcn.004d1382
mov edx, eax
add esp, 8
test edx, edx
js 0x471cc0
mov ecx, dword [ebp + 8]
cmp edx, dword [ecx - 8]
jg 0x471cc0
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp + 8]
push 0x4013
push 0x2b4
mov word [eax + edx*2], cx
lea eax, [ebp - 0x2c4]
push eax
push 0x10
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov edi, dword [ebp - 0x2c0]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x471ca1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov esi, dword [eax + 4]
cmp eax, 0x5209f4
jne 0x471c9f
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x471ca1
call esi
mov eax, edi
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.004cb6da
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00406c36
int3

Function at 0x472bb0
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x472bdf
cmp dword [edi + 0x20], 8
lea ecx, [edi + 0xc]
jb 0x472bc5
mov ecx, dword [ecx]
mov eax, dword [edi + 0x40]
sub esp, 8
or eax, 0xf003f
push eax
sub esp, 8
push ecx
push dword [edi + 0x3c]
mov ecx, edi
call fcn.00455845
mov esi, dword [esp + 0x14]
cmp dword [esi + 0x14], 8
jb 0x472beb
mov esi, dword [esi]
mov ebx, dword [esp + 0x10]
cmp dword [ebx + 0x14], 8
jb 0x472bf7
mov ebx, dword [ebx]
test esi, esi
jne 0x472c0b
mov eax, 0xd
pop edi
test eax, eax
pop esi
sete al
pop ebx
ret 0xc
push esi
call fcn.004d163d
add esp, 4
lea eax, [eax*2 + 2]
push eax
push esi
push 2
push 0
push ebx
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
test eax, eax
pop esi
sete al
pop ebx
ret 0xc
Function at 0x472fc0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x472fed
cmp dword [esi + 0x20], 8
lea ecx, [esi + 0xc]
jb 0x472fd3
mov ecx, dword [ecx]
mov eax, dword [esi + 0x40]
sub esp, 8
or eax, 0xf003f
push eax
sub esp, 8
push ecx
push dword [esi + 0x3c]
mov ecx, esi
call fcn.00455845
mov ecx, dword [esp + 8]
cmp dword [ecx + 0x14], 8
jb 0x472ff9
mov ecx, dword [ecx]
mov eax, dword [esp + 0xc]
push 4
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 4
push 0
push ecx
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
pop esi
sbb eax, eax
inc eax
ret 8

Function at 0x473290
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x504939
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x569078]
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
lea eax, [ebp]
mov dword [ebp - 0x18], esi
push eax
push 0x104
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x47334b
call fcn.00406ab4
mov ecx, eax
test ecx, ecx
jne 0x4732fe
push 0x80004005
call fcn.00406c36
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x5209f4
jne 0x473313
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x473315
call edx
lea ecx, [eax + 0x10]
mov dword [esi], ecx
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.004cb6da
lea esp, [ebp + 0x20c]
pop ebp
ret
cmp word [ebp + eax*2 - 2], 0x5c
je 0x47335e
mov ecx, 0x5c
mov word [ebp + eax*2], cx
inc eax
add eax, eax
cmp eax, 0x208
jae 0x4733da
xor ecx, ecx
mov word [ebp + eax], cx
call fcn.00406ab4
mov ecx, eax
test ecx, ecx
jne 0x473383
push 0x80004005
call fcn.00406c36
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x5209f4
jne 0x473398
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x47339a
call edx
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 2
lea eax, [ebp]
test eax, 0xffff0000
jne 0x4733c0
movzx eax, ax
mov ecx, esi
push eax
call fcn.004098ad
jmp 0x47331a
push eax
call fcn.004d163d
add esp, 4
mov ecx, esi
push eax
lea eax, [ebp]
push eax
call fcn.004099a1
jmp 0x47331a
call fcn.004cbef6
int3
Function at 0x4735b0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xffffffffffffffff
push 0x5049f1
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x569078]
xor eax, ebp
mov dword [ebp + 0x410], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea eax, [ebp]
mov dword [ebp - 0x18], esi
push eax
push 0x104
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x47363f
call fcn.00406ab4
mov ecx, eax
test ecx, ecx
jne 0x47361e
push 0x80004005
call fcn.00406c36
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x5209f4
jne 0x473633
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x473635
call edx
lea ecx, [eax + 0x10]
mov dword [esi], ecx
jmp 0x473705
lea eax, [ebp + 0x208]
push eax
push 0
push 0x52dc1c
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x47368e
call fcn.00406ab4
mov ecx, eax
test ecx, ecx
jne 0x473670
push 0x80004005
call fcn.00406c36
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x5209f4
jne 0x473685
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x473687
call edx
add eax, 0x10
mov dword [esi], eax
jmp 0x473705
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00406ab4
mov ecx, eax
test ecx, ecx
jne 0x4736b0
push 0x80004005
call fcn.00406c36
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x5209f4
jne 0x4736c5
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4736c7
call edx
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 3
lea eax, [ebp + 0x208]
test eax, 0xffff0000
jne 0x4736ed
movzx eax, ax
mov ecx, esi
push eax
call fcn.004098ad
jmp 0x473705
push eax
call fcn.004d163d
add esp, 4
mov ecx, esi
push eax
lea eax, [ebp + 0x208]
push eax
call fcn.004099a1
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 + 0x410]
xor ecx, ebp
call fcn.004cb6da
lea esp, [ebp + 0x414]
pop ebp
ret
Function at 0x473ed0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x504b28
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x569078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
cmp dword [eax - 0xc], 0x104
jl 0x473fe0
call fcn.00474b40
test al, al
jne 0x473fe0
call fcn.00406ab4
mov ecx, eax
test ecx, ecx
jne 0x473f28
push 0x80004005
call fcn.00406c36
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x5209f4
jne 0x473f3d
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x473f3f
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov eax, 0x5211d8
test eax, 0xffff0000
jne 0x473f66
movzx eax, ax
lea ecx, [ebp - 0x10]
push eax
call fcn.004098ad
jmp 0x473f81
push 0x5211d8
call fcn.004d163d
add esp, 4
lea ecx, [ebp - 0x10]
push eax
push 0x5211d8
call fcn.004099a1
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
mov eax, dword [esi]
push dword [eax - 0xc]
push eax
call fcn.00407092
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
sete bl
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x473fee
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x5209f4
jne 0x473fdc
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x473fee
call edx
jmp 0x473fee
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
sete bl
test bl, bl
jne 0x473ff8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x474010
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x504b28
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x569078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
cmp dword [eax - 0xc], 0x104
jl 0x474120
call fcn.00474b40
test al, al
jne 0x474120
call fcn.00406ab4
mov ecx, eax
test ecx, ecx
jne 0x474068
push 0x80004005
call fcn.00406c36
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x5209f4
jne 0x47407d
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x47407f
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov eax, 0x5211d8
test eax, 0xffff0000
jne 0x4740a6
movzx eax, ax
lea ecx, [ebp - 0x10]
push eax
call fcn.004098ad
jmp 0x4740c1
push 0x5211d8
call fcn.004d163d
add esp, 4
lea ecx, [ebp - 0x10]
push eax
push 0x5211d8
call fcn.004099a1
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
mov eax, dword [esi]
push dword [eax - 0xc]
push eax
call fcn.00407092
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
sete bl
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x47412e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x5209f4
jne 0x47411c
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x47412e
call edx
jmp 0x47412e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
sete bl
test bl, bl
jne 0x474138
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x474150
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x504b68
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x569078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
call fcn.00406ab4
mov ecx, eax
test ecx, ecx
jne 0x474191
push 0x80004005
call fcn.00406c36
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x5209f4
jne 0x4741a6
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4741a8
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
lea edx, [ebp - 0x10]
mov ecx, esi
call fcn.004742b0
mov esi, dword [ebp - 0x10]
or ecx, 0xffffffff
test al, al
jne 0x4741cd
xor bl, bl
jmp 0x474249
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [ebx]
lea ecx, [esi - 0x10]
sub edi, 0x10
cmp ecx, edi
je 0x474244
cmp dword [edi + 0xc], 0
jl 0x474239
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x474239
call fcn.00407122
mov dword [ebp - 0x14], eax
lea edx, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47422f
mov edx, dword [edi]
push edi
mov ecx, dword [edx]
mov eax, dword [ecx + 4]
cmp ecx, 0x5209f4
jne 0x47422b
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [ebx], eax
jmp 0x474244
mov ecx, edx
call eax
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [ebx], eax
jmp 0x474244
push dword [esi - 0xc]
mov ecx, ebx
push esi
call fcn.004099a1
mov bl, 1
or ecx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x474290
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x5209f4
jne 0x47428e
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call edx
mov al, bl
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 0x4742b0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x414
mov eax, dword [0x569078]
xor eax, esp
mov dword [esp + 0x410], eax
push esi
push edi
lea eax, [esp + 0x210]
mov edi, edx
push eax
push 0x104
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4742fa
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.004cb6da
add esp, 0x414
ret
lea eax, [esp + 8]
push eax
push 0
push dword [esi]
lea eax, [esp + 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4742e1
lea eax, [esp + 8]
push eax
call fcn.004d163d
add esp, 4
mov ecx, edi
push eax
lea eax, [esp + 0xc]
push eax
call fcn.004099a1
mov ecx, dword [esp + 0x418]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.004cb6da
add esp, 0x414
ret
Function at 0x4754f0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x504dd8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x569078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
cmp esi, 0xffffffff
je 0x475560
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x475560
mov dword [edi], eax
mov bl, 1
jmp 0x475562
xor bl, bl
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x47557b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0
mov al, bl
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 0x475590
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x504ca0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x569078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
lea ecx, [ebp - 0x10]
call fcn.00475640
mov dword [ebp - 4], 0
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete bl
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x475623
mov edx, dword [esi]
push esi
mov ecx, dword [edx]
mov eax, dword [ecx + 4]
cmp ecx, 0x5209f4
jne 0x47561f
mov ecx, dword [edx + 4]
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edx
call eax
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x475c10
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push 0
push 0
push ebp
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
xor ebx, ebx
test edi, edi
jne 0x475cc2
mov eax, dword [esi]
lea ecx, [eax - 0x10]
mov edi, dword [ecx]
cmp dword [ecx + 4], ebx
je 0x475d1c
cmp dword [ecx + 0xc], ebx
lea edx, [ecx + 0xc]
jge 0x475c65
cmp dword [eax - 8], ebx
jl 0x475d25
mov dword [eax - 0xc], ebx
xor ecx, ecx
mov eax, dword [esi]
pop edi
pop esi
pop ebp
mov word [eax], cx
mov eax, ebx
pop ebx
ret 4
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x475c92
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebp, dword [eax + 4]
cmp eax, 0x5209f4
jne 0x475d2f
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [edi]
cmp eax, 0x5209f4
jne 0x475d38
lock inc dword [edi + 0x14]
lea eax, [edi + 8]
add eax, 0x10
pop edi
mov dword [esi], eax
mov eax, ebx
pop esi
pop ebp
pop ebx
ret 4
add eax, 0x10
pop edi
mov dword [esi], eax
mov eax, ebx
pop esi
pop ebp
pop ebx
ret 4
js 0x475d42
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or ecx, eax
jge 0x475cdf
push edi
mov ecx, esi
call fcn.004067ae
push edi
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [esi]
test eax, eax
jne 0x475cf3
xor ecx, ecx
jmp 0x475d05
push dword [eax - 8]
push eax
call fcn.004d1382
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x475d25
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x475d25
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov ebx, 1
mov word [eax + ecx*2], dx
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 4
push 0x80070057
call fcn.00406c36
mov ecx, edx
call ebp
jmp 0x475c92
mov ecx, edi
call dword [eax + 0xc]
jmp 0x475cb4
push 0x80070057
call fcn.00406c36
int3
Function at 0x47f8f7
Capabilities:
Print debug messages

Disassembly:
push 8
mov eax, 0x50609a
call fcn.004cc273
mov bl, dl
mov esi, ecx
cmp byte [0x56f62c], 0
je 0x47f944
lea ecx, [ebp - 0x10]
call fcn.00406bcb
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push dword [esi]
call fcn.0048ada7
push eax
mov ecx, 0x56f5fc
call fcn.0049190a
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 1
call fcn.004068bc
or dword [ebp - 4], 0xffffffff
cmp byte [0x5699cc], 0
push dword [esi]
je 0x47f9a5
lea ecx, [ebp - 0x10]
call fcn.00409a3c
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 2
call fcn.00406bcb
push 0x10
pop edx
test bl, bl
mov byte [ebp - 4], 3
mov ecx, 0x40010
cmove ecx, edx
push ecx
push eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
lea edx, [ebp - 0x10]
mov ecx, eax
call fcn.0046f770
pop ecx
pop ecx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004068bc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004068bc
jmp 0x47f9ab
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.004cc23c
ret
Function at 0x480d60
Capabilities:
Copy file

Disassembly:
push 0x18
mov eax, 0x5064b2
call fcn.004cc273
mov edi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x24], ebx
call fcn.00406bcb
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 1
call fcn.00406bcb
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00406bcb
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
mov ecx, dword [edi + 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00487c07
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00446083
push ebx
push str.__
lea ecx, [ebp - 0x10]
call fcn.0042e110
test eax, eax
jne 0x480de5
mov esi, dword [ebp - 0x10]
add esi, 8
jne 0x480dd4
mov eax, ebx
jmp 0x480ddb
push esi
call fcn.004d163d
pop ecx
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.004099a1
push dword [ebp + 0xc]
lea edx, [ebp - 0x1c]
lea ecx, [ebp + 0xc]
call fcn.00469df0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
mov edx, eax
mov dword [esp], 0x52686c
call fcn.004522e9
pop ecx
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 6
call fcn.004068bc
push ebx
mov dl, 1
lea ecx, [ebp - 0x14]
call fcn.00475160
lea edx, [ebp - 0x14]
mov dword [esp], str.instname_target.msi
lea ecx, [ebp + 0xc]
call fcn.004522e9
pop ecx
lea esi, [edi + 0x24]
mov byte [ebp - 4], 7
push eax
mov ecx, esi
call fcn.00446083
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 6
call fcn.004068bc
push str.instname_custom.mst
lea edx, [ebp - 0x14]
lea ecx, [ebp + 0xc]
call fcn.004522e9
pop ecx
lea ecx, [edi + 0x28]
mov byte [ebp - 4], 8
push eax
mov dword [ebp - 0x20], ecx
call fcn.00446083
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 6
call fcn.004068bc
push ebx
push dword [esi]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x480ec6
mov ecx, dword [ebp + 8]
call fcn.00406bcb
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x24], 1
mov byte [ebp - 4], 3
call fcn.004068bc
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.004068bc
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004068bc
mov byte [ebp - 4], bl
jmp 0x480f49
push 0x524fcc
lea ecx, [ebp + 0xc]
call fcn.00409a3c
lea eax, [edi + 0x1c]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp + 0xc]
push eax
push esi
call fcn.00481371
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 6
mov bl, al
call fcn.004068bc
mov edi, dword [ebp - 0x20]
test bl, bl
je 0x480f11
push edi
push esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.004811e6
lea ecx, [ebp + 0xc]
call fcn.004068bc
mov ecx, dword [ebp + 8]
push edi
call fcn.00407175
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x24], 1
mov byte [ebp - 4], 3
call fcn.004068bc
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.004068bc
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004068bc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004068bc
mov eax, dword [ebp + 8]
call fcn.004cc23c
ret 8
Function at 0x481371
Capabilities:
Reference sql statements

Disassembly:
push 0x10
mov eax, 0x5065d7
call fcn.004cc273
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
mov esi, dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
cmp dword [ebp - 0x18], ebx
je 0x481395
push dword [ebp - 0x18]
call esi
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push ecx
push 1
mov dword [ebp - 0x18], ebx
push dword [eax]
call dword [sym.imp.msi.dll_MsiOpenProductW]
test eax, eax
jne 0x48150d
lea ecx, [ebp - 0x1c]
call fcn.00406bcb
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
push dword [ebx]
push str.SELECT__Value__FROM__Property__WHERE_Property_s
push eax
call fcn.00407a35
and dword [ebp - 0x10], 0
add esp, 0xc
mov byte [ebp - 4], 2
cmp dword [ebp - 0x10], 0
je 0x4813e6
push dword [ebp - 0x10]
call esi
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
mov edi, dword [sym.imp.msi.dll_MsiEnumClientsA]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
call edi
test eax, eax
jne 0x4814f0
push eax
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
jne 0x4814f0
and dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x14], eax
je 0x481427
push dword [ebp - 0x14]
call esi
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
cmp eax, 0x103
setne byte [ebp + 0xb]
cmp dword [ebp - 0x10], 0
je 0x48144c
push dword [ebp - 0x10]
call esi
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
cmp byte [ebp + 0xb], 0
mov ecx, str.INSERT_INTO__Property____Property____Value___VALUES_______
push eax
mov eax, str.UPDATE__Property__SET__Property_._Value___WHERE_Property_
cmove eax, ecx
push eax
push dword [ebp - 0x18]
call edi
test eax, eax
jne 0x4814dd
push 2
call dword [sym.imp.msi.dll_MsiDatabaseExportA]
cmp dword [ebp - 0x14], 0
mov edi, eax
je 0x481484
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], edi
test edi, edi
je 0x4814dd
cmp byte [ebp + 0xb], 0
mov eax, ebx
mov ebx, dword [ebp + 0x10]
cmovne eax, ebx
push dword [eax]
push 1
push edi
mov edi, dword [sym.imp.msi.dll_MsiReinstallFeatureW]
call edi
test eax, eax
jne 0x4814dd
cmp byte [ebp + 0xb], al
cmovne ebx, dword [ebp + 0xc]
push dword [ebx]
push 2
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x4814dd
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
jne 0x4814dd
push dword [ebp - 0x18]
call dword [sym.imp.msi.dll_MsiDatabaseGenerateTransformW]
test eax, eax
jne 0x4814dd
mov bl, 1
jmp 0x4814df
xor bl, bl
mov byte [ebp - 4], 2
cmp dword [ebp - 0x14], 0
je 0x4814f2
push dword [ebp - 0x14]
call esi
jmp 0x4814f2
xor bl, bl
mov byte [ebp - 4], 1
cmp dword [ebp - 0x10], 0
je 0x481501
push dword [ebp - 0x10]
call esi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.004068bc
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0
je 0x48151c
push dword [ebp - 0x18]
call esi
mov al, bl
call fcn.004cc23c
ret 0xc