joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fc9e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab476
mov eax, dword fs:[0]
push eax
mov eax, 0x10058
call fcn.0056e430
mov eax, dword [0x608554]
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 - 0x10064], ecx
mov edi, dword [ebp + 8]
push ecx
push str.CBaseInfoResBasicIni::Read_AddedDriverList
lea ecx, [ebp - 0x10060]
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4fca73
test byte [ecx + 0x1c], 1
je 0x4fca73
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5db828
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x5a
call fcn.00401840
add esp, 0xc
push 0xfffe
lea eax, [ebp - 0x10010]
push 0
push eax
call fcn.00571c00
add esp, 0xc
mov dword [ebp - 0x10018], 0
xor eax, eax
mov dword [ebp - 0x10014], 7
lea ecx, [ebp - 0x10028]
mov word [ebp - 0x10028], ax
push eax
push 0x5c6930
call fcn.004035d0
mov byte [ebp - 4], 1
mov ebx, dword [edi + 4]
mov esi, dword [edi]
cmp esi, ebx
je 0x4fcad4
mov ecx, esi
call fcn.00403570
add esi, 0x18
cmp esi, ebx
jne 0x4fcac4
mov esi, dword [edi]
mov eax, dword [ebp - 0x10064]
add eax, 4
mov dword [edi + 4], esi
cmp dword [eax + 0x14], 8
jb 0x4fcae8
mov eax, dword [eax]
push eax
push 0x7fff
lea eax, [ebp - 0x10010]
push eax
push str.AddedDriverList
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
cmp word [ebp - 0x10010], 0
lea esi, [ebp - 0x10010]
je 0x4fcb6f
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4fcb20
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x10028]
call fcn.004035d0
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x10028]
push ecx
cmp dword [edi + 8], eax
je 0x4fcb58
mov ecx, eax
call fcn.00402f40
add dword [edi + 4], 0x18
jmp 0x4fcb60
push eax
mov ecx, edi
call fcn.00478930
push esi
call ebx
lea esi, [esi + eax*2]
add esi, 2
cmp word [esi], 0
jne 0x4fcb16
mov byte [ebp - 0x1005c], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4fcbb8
test byte [ecx + 0x1c], 1
je 0x4fcbb8
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 0
cmovae eax, dword [0x608f54]
mov edx, 0x5db828
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x5b
call fcn.004018a0
add esp, 0x10
mov edx, dword [ebp - 0x10014]
cmp edx, 8
jb 0x4fcbf4
mov ecx, dword [ebp - 0x10028]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4fcbea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4fcc1f
push edx
push ecx
call fcn.0056deb6
add esp, 8
lea ecx, [ebp - 0x10060]
call fcn.0040a570
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 - 0x10]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 4
call fcn.00574908
int3
Function at 0x4fcc30
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
push ecx
push str.CBaseInfoResBasicIni::Read_AddedDriverData
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x40], eax
call fcn.0040a480
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x4fcca2
test byte [ecx + 0x1c], 1
je 0x4fcca2
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5db828
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x5c
call fcn.00401840
mov ecx, dword [0x608f30]
add esp, 0xc
xor esi, esi
test edi, edi
je 0x4fcccf
cmp dword [ebx + 0x18], 8
lea eax, [ebx + 4]
jb 0x4fccb3
mov eax, dword [eax]
push eax
push 0
push edi
push str.AddedDriverList
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0x40]
mov dword [ecx], eax
mov ecx, dword [0x608f30]
jmp 0x4fccde
mov esi, 0x80010001
mov dword [0x6183ec], 1
mov byte [ebp - 0x38], 1
cmp ecx, 0x608f30
je 0x4fcd1d
test byte [ecx + 0x1c], 1
je 0x4fcd1d
cmp dword [0x608f68], 8
mov eax, 0x608f54
push esi
cmovae eax, dword [0x608f54]
mov edx, 0x5db828
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x5d
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0x3c]
call fcn.0040a570
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056d977
mov esp, ebp
pop ebp
ret 8
Function at 0x500dc0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab736
mov eax, dword fs:[0]
push eax
mov eax, 0x1814
call fcn.0056e430
mov eax, dword [0x608554]
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
xor edi, edi
cmp byte [ebx + 8], 0
jne 0x500e10
mov dword [0x6183ec], 4
mov eax, 0x80010004
jmp 0x500fd3
push 0x800
lea eax, [ebp - 0x1010]
push 0
push eax
call fcn.00571c00
add esp, 0xc
lea ecx, [ebp - 0x1814]
call fcn.0046a2f0
push 0x800
lea eax, [ebp - 0x1810]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00571c00
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.00571c00
mov ecx, dword [0x6184f0]
lea eax, [ebp - 0x810]
add esp, 0x18
mov ecx, dword [ecx + 0x1c]
push eax
push str.TEMPPATH
call fcn.004f65f0
push str.PMON
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x5c692c
mov esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x5c692c
add esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add esi, eax
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, esi
cmp eax, 0x400
jae 0x500f2c
mov esi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x810]
push eax
call esi
push str.PMON
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x810]
push eax
call esi
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x400
jae 0x500f2c
push 0x400
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x1810]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
test eax, eax
je 0x500f2c
push 0x400
lea eax, [ebp - 0x1010]
mov ecx, ebx
push eax
push 0
call fcn.005027c0
test eax, eax
jne 0x500f3b
mov dword [0x6183ec], 0xc
mov edi, 0x8001000c
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x500f5e
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x1814]
call fcn.0046fb70
test edi, edi
jne 0x500fc6
mov dword [ebp - 0x1820], edi
mov dword [ebp - 0x181c], edi
mov dword [ebp - 0x1818], edi
lea eax, [ebp - 0x1820]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebx + 0xc]
call fcn.00500300
test eax, eax
je 0x500fac
push edi
lea eax, [ebp - 0x1820]
mov ecx, ebx
push eax
lea eax, [ebp - 0x1810]
push eax
lea eax, [ebp - 0x1010]
push eax
call fcn.00502930
mov edi, eax
jmp 0x500fbb
mov edi, 0x80010002
mov dword [0x6183ec], 2
lea ecx, [ebp - 0x1820]
call fcn.00409b00
lea ecx, [ebp - 0x1814]
call fcn.0046a3c0
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 - 0x10]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret
Function at 0x5019c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x120c
call fcn.0056e430
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00571c00
push 0x800
lea eax, [ebp - 0x120c]
push 0
push eax
call fcn.00571c00
push 0x800
lea eax, [ebp - 0xa0c]
push 0
push eax
call fcn.00571c00
mov ecx, dword [0x6184f0]
lea eax, [ebp - 0xa0c]
add esp, 0x24
mov ecx, dword [ecx + 0x1c]
push eax
push str.UNINSTALLDEFAULTPATH
call fcn.004f65f0
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push str.PMON
call edi
push 0x5c692c
mov esi, eax
call edi
push 0x5c692c
add esi, eax
call edi
add esi, eax
lea eax, [ebp - 0xa0c]
push eax
call edi
add eax, esi
cmp eax, 0x400
jae 0x501b02
mov esi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0xa0c]
push eax
call esi
push str.PMON
lea eax, [ebp - 0xa0c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0xa0c]
push eax
call esi
lea eax, [ebp - 0xa0c]
push eax
call edi
cmp eax, 0x400
jae 0x501b02
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 0xa0c]
push 0x400
push eax
lea eax, [ebp - 0x120c]
push eax
call esi
test eax, eax
je 0x501b02
push 0x104
lea eax, [ebp - 0x120c]
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
push str.MFNP_ALRDY_INST.ini
call edi
mov esi, eax
lea eax, [ebp - 0x20c]
push eax
call edi
add esi, eax
cmp esi, 0x104
jae 0x501b02
push str.MFNP_ALRDY_INST.ini
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 4]
test eax, eax
pop edi
setne al
xor ecx, ebp
pop esi
call fcn.0056d977
mov esp, ebp
pop ebp
ret
Function at 0x502930
Capabilities:
Check if file exists
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab89b
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x608554]
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 esi, dword [ebp + 8]
xor edi, edi
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x428], ecx
test esi, esi
je 0x502ae6
test ecx, ecx
je 0x502ae6
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx]
cmp eax, dword [ebx + 4]
je 0x502ae6
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x502ae6
lea ecx, [ebp - 0x424]
call fcn.0046a2f0
cmp byte [ebp + 0x14], 0
mov dword [ebp - 4], edi
je 0x5029ca
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x5029ca
push esi
lea ecx, [ebp - 0x424]
call fcn.0046fb70
mov esi, dword [ebx]
cmp esi, dword [ebx + 4]
je 0x502ad7
nop word [eax + eax]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00571c00
add esp, 0x18
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x502a13
mov eax, dword [esi]
push eax
push dword [ebp - 0x428]
lea eax, [ebp - 0x218]
push 0x5c70f4
push 0xffffffffffffffff
push 0x104
push eax
call fcn.00437f50
add esp, 0x18
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x502a3f
mov eax, dword [esi]
push eax
push dword [ebp - 0x42c]
lea eax, [ebp - 0x420]
push 0x5c70f4
push 0xffffffffffffffff
push 0x104
push eax
call fcn.00437f50
add esp, 0x18
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x502abc
push 1
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x424]
call fcn.0046c620
test eax, eax
jle 0x502acb
push 0
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x502abc
push 0x20
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x502acb
mov dword [0x6183ec], 0xc
mov edi, 0x8001000c
add esi, 0x18
cmp esi, dword [ebx + 4]
jne 0x5029e0
lea ecx, [ebp - 0x424]
call fcn.0046a3c0
mov eax, edi
jmp 0x502af5
mov dword [0x6183ec], 1
mov eax, 0x80010001
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.0056d977
mov esp, ebp
pop ebp
ret 0x10
Function at 0x50a520
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a09bb
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x608554]
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 - 0x45c], ecx
mov ebx, dword [ebp + 8]
push ecx
push str.CBaseOSSpec::GetSpoolerFileName
lea ecx, [ebp - 0x458]
call fcn.0040a480
mov dword [ebp - 4], 0
mov esi, dword [0x608f30]
cmp esi, 0x608f30
je 0x50a5f8
test byte [esi + 0x1c], 1
je 0x50a5b5
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5dd2b8
mov ecx, 0x98
cmovae eax, dword [0x608f54]
push eax
push dword [esi + 0x14]
push dword [esi + 0x10]
call fcn.00401840
mov esi, dword [0x608f30]
add esp, 0xc
cmp esi, 0x608f30
je 0x50a5f8
test byte [esi + 0x1c], 1
je 0x50a5f8
cmp dword [0x608f68], 8
mov eax, 0x608f54
push dword [ebp + 0xc]
cmovae eax, dword [0x608f54]
mov edx, 0x5dd2b8
push eax
push dword [esi + 0x14]
mov ecx, 0x99
push dword [esi + 0x10]
call fcn.004018a0
mov esi, dword [0x608f30]
add esp, 0x10
push 0x208
lea eax, [ebp - 0x420]
mov edi, 1
push 0
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00571c00
mov eax, dword [ebp - 0x45c]
add esp, 0x18
cmp dword [eax + 8], 0
je 0x50a6c2
test ebx, ebx
jne 0x50a641
xor edi, edi
jmp 0x50a6c2
mov esi, dword [ebp + 0xc]
lea eax, [esi + esi]
push eax
push 0
push ebx
call fcn.00571c00
mov eax, dword [ebp - 0x45c]
lea edx, [ebp - 0x420]
add esp, 0xc
mov ecx, dword [eax + 8]
push 0x104
push edx
mov eax, dword [ecx]
call dword [eax + 0x90]
mov edi, eax
test edi, edi
je 0x50a6bc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x50a6ba
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
push 0x5c70f4
push 0xffffffffffffffff
push esi
push ebx
call fcn.00437f50
add esp, 0x18
jmp 0x50a6bc
xor edi, edi
mov esi, dword [0x608f30]
mov byte [ebp - 0x454], 1
cmp esi, 0x608f30
je 0x50a705
test byte [esi + 0x1c], 1
je 0x50a705
cmp dword [0x608f68], 8
mov eax, 0x608f54
push edi
cmovae eax, dword [0x608f54]
mov edx, 0x5dd2b8
push ebx
push eax
push dword [esi + 0x14]
mov ecx, 0x9a
push dword [esi + 0x10]
call fcn.004300c0
add esp, 0x14
lea ecx, [ebp - 0x458]
call fcn.0040a570
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 - 0x10]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 8
Function at 0x5100c0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x608554]
xor eax, esp
mov dword [esp + 0x38], eax
push esi
mov esi, dword [ebp + 0xc]
push ecx
push str.CBaseOSSpecTypeWin2K::DeleteOldUnInstall
lea ecx, [esp + 0xc]
call fcn.0040a480
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x510171
test byte [ecx + 0x1c], 1
je 0x51012d
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5dd3a8
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0xa8
call fcn.00401840
mov ecx, dword [0x608f30]
add esp, 0xc
cmp ecx, 0x608f30
je 0x510171
test byte [ecx + 0x1c], 1
je 0x510171
cmp dword [0x608f68], 8
mov eax, 0x608f54
push esi
push dword [ebp + 8]
cmovae eax, dword [0x608f54]
mov edx, 0x5dd3a8
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0xa9
call fcn.0040c2f0
mov ecx, dword [0x608f30]
add esp, 0x14
cmp dword [ebp + 8], 0
je 0x5101bf
mov byte [esp + 8], 1
cmp ecx, 0x608f30
je 0x5101b8
test byte [ecx + 0x1c], 1
je 0x5101b8
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 0x17
cmovae eax, dword [0x608f54]
mov edx, 0x5dd3a8
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0xaa
call fcn.004018a0
add esp, 0x10
mov esi, 0x17
jmp 0x510227
push str.UNINSTAL.tmp
push esi
push 0x5c6c90
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 8], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x510222
test byte [ecx + 0x1c], 1
je 0x510222
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 1
cmovae eax, dword [0x608f54]
mov edx, 0x5dd3a8
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0xab
call fcn.004018a0
add esp, 0x10
mov esi, 1
lea ecx, [esp + 4]
call fcn.0040a570
mov ecx, dword [esp + 0x3c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 8
Function at 0x5121b0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d8fb
mov eax, dword fs:[0]
push eax
sub esp, 0x83c
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
push str.CBaseOSSpecTypeWin2K::CleanUpIniFileReboot
lea ecx, [ebp - 0x848]
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x512234
test byte [ecx + 0x1c], 1
je 0x512234
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5dd3a8
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0xde
call fcn.00401840
add esp, 0xc
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.00571c00
mov ecx, dword [0x6184f0]
lea eax, [ebp - 0x810]
add esp, 0xc
mov esi, 1
mov ecx, dword [ecx + 0x1c]
push eax
push str.TEMPPATH
call fcn.004f65f0
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 - 0x812], 0x5c
je 0x512293
push 0x5c692c
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.InsDrv.ini
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x5122ec
test byte [ecx + 0x1c], 4
je 0x5122ec
cmp dword [0x608f68], 8
lea edx, [ebp - 0x810]
push edx
mov eax, 0x608f54
mov edx, 0x5dd3a8
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0xdf
call fcn.00405920
add esp, 0x10
push 4
push 0
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x51235c
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x512358
test byte [ecx + 0x1c], 2
je 0x512358
cmp dword [0x608f68], 8
lea ecx, [ebp - 0x848]
mov esi, 0x608f54
cmovae esi, dword [0x608f54]
call fcn.0040a830
push eax
mov eax, dword [0x608f30]
mov edx, 0x5dd3a8
push esi
mov ecx, 0xe0
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00405920
mov ecx, dword [0x608f30]
add esp, 0x10
xor esi, esi
jmp 0x512362
mov ecx, dword [0x608f30]
mov byte [ebp - 0x844], 1
cmp ecx, 0x608f30
je 0x5123a4
test byte [ecx + 0x1c], 1
je 0x5123a4
cmp dword [0x608f68], 8
mov eax, 0x608f54
push esi
cmovae eax, dword [0x608f54]
mov edx, 0x5dd3a8
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0xe1
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0x848]
call fcn.0040a570
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret
Function at 0x51bff0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5acd6b
mov eax, dword fs:[0]
push eax
mov eax, 0x107c
call fcn.0056e430
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
push str.CBaseSeqFinish::SetUninstallerLocaleID
lea ecx, [ebp - 0x1088]
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x51c077
test byte [ecx + 0x1c], 1
je 0x51c077
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5de540
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x26
call fcn.00401840
add esp, 0xc
push 0x800
lea eax, [ebp - 0x1050]
push 0
push eax
call fcn.00571c00
push 0x800
lea eax, [ebp - 0x850]
push 0
push eax
call fcn.00571c00
push 0x40
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.00571c00
mov ecx, dword [0x6184f0]
lea eax, [ebp - 0x1050]
add esp, 0x24
mov ecx, dword [ecx + 0x1c]
push eax
push str.UNINSTALLDEFAULTPATH
call fcn.004f65f0
lea eax, [ebp - 0x1050]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push str.UninstLocale.ini
lea eax, [ebp - 0x1050]
push eax
lea eax, [ebp - 0x850]
push 0x5c70f4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x850]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x51c114
lea eax, [ebp - 0x850]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [0x6184f0]
mov eax, dword [eax + 0x38]
mov eax, dword [eax + 4]
test eax, eax
je 0x51c1a7
cmp dword [0x618528], 0
jne 0x51c15e
push eax
lea eax, [ebp - 0x50]
push 0x5c8cf0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x850]
push eax
lea eax, [ebp - 0x50]
push eax
push str.CurrentLocaleID
push str.Locale
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov byte [ebp - 0x1084], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x51c1a7
test byte [ecx + 0x1c], 1
je 0x51c1a7
cmp dword [0x608f68], 8
mov eax, 0x608f54
push 0
cmovae eax, dword [0x608f54]
mov edx, 0x5de540
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x27
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0x1088]
call fcn.0040a570
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret
Function at 0x523cc0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a2446
mov eax, dword fs:[0]
push eax
sub esp, 0x66c
mov eax, dword [0x608554]
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 esi, dword [ebp + 8]
push ecx
push str.CBaseSeqPrinterDriver::bWriteRegistryInitSet
lea ecx, [ebp - 0x660]
call fcn.0040a480
mov dword [ebp - 4], 0
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x523d49
test byte [ecx + 0x1c], 1
je 0x523d49
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5df0b4
cmovae eax, dword [0x608f54]
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x23
call fcn.00401840
add esp, 0xc
push 0x618
lea eax, [ebp - 0x628]
mov ebx, 1
push 0
push eax
call fcn.00571c00
add esp, 0xc
mov dword [ebp - 0x668], 0
lea ecx, [ebp - 0x66c]
mov dword [ebp - 0x664], 0
push esi
call fcn.00403320
push 0x2c
push 0x5c
lea ecx, [ebp - 0x66c]
mov byte [ebp - 4], bl
call fcn.0043e030
push dword [ebp - 0x66c]
lea eax, [ebp - 0x628]
push str._sPrinterDriverData
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [0x6184f0]
lea ecx, [ebp - 0x678]
add esp, 0xc
push dword [eax + 0x44]
call fcn.00523f20
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x668]
push eax
push 0x20006
push 0
push str.SystemCurrentControlSetControlPrintPrinters
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x523e7b
lea eax, [ebp - 0x664]
push eax
push 0x20006
push 0
lea eax, [ebp - 0x628]
push eax
push dword [ebp - 0x668]
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x523e6f
mov esi, dword [ebp - 0x678]
cmp esi, dword [ebp - 0x674]
je 0x523e5d
mov edi, dword [esi + 4]
mov ebx, dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push edi
push 1
push 0
push ebx
push dword [ebp - 0x664]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add esi, 8
cmp esi, dword [ebp - 0x674]
jne 0x523e21
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, 1
push dword [ebp - 0x664]
call edi
push dword [ebp - 0x668]
call edi
jmp 0x523e7d
push dword [ebp - 0x668]
xor ebx, ebx
call edi
jmp 0x523e7d
xor ebx, ebx
mov byte [ebp - 0x65c], 1
mov ecx, dword [0x608f30]
cmp ecx, 0x608f30
je 0x523ec5
test byte [ecx + 0x1c], 1
je 0x523ec5
cmp dword [0x608f68], 8
mov eax, 0x608f54
push ebx
cmovae eax, dword [0x608f54]
mov edx, 0x5df0b4
push eax
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x24
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0x678]
call fcn.00409fd0
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov esi, dword [ebp - 0x66c]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x523ef2
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x660]
call fcn.0040a570
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 - 0x10]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 4