joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406e40
Capabilities:
Set registry value

Disassembly:
sub esp, 0x454
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x19c]
rep stosd dword es:[edi], eax
lea ebx, [esi + 0x110]
push str.ExeInUninstall
mov ecx, ebx
mov dword [esp + 0x14], esi
call fcn.00403120
test eax, eax
mov dword [esp + 0x14], eax
jle 0x40700b
mov ecx, dword [esi + 0x8b60]
test ecx, ecx
je 0x40700b
xor ebp, ebp
test eax, eax
jle 0x40700b
lea eax, [esp + 0x58]
push 0x40
push eax
push 0
push ebp
push str.ExeInUninstall
mov ecx, ebx
call fcn.00403190
lea ecx, [esp + 0x360]
push 0x104
push ecx
push 1
push ebp
push str.ExeInUninstall
mov ecx, ebx
call fcn.00403190
lea edx, [esp + 0x98]
push 0x104
lea eax, [esp + 0x364]
push edx
push eax
mov ecx, ebx
call fcn.00403140
lea ecx, [esp + 0x19c]
push ecx
push str.ExeInUninstall
push ebp
mov ecx, esi
call fcn.0040a5e0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x19c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x98]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x97], 0x5c
je 0x406f6b
mov edi, 0x41449c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x98]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x877c]
test eax, eax
je 0x406f8f
lea eax, [esi + 0x8567]
lea ecx, [esp + 0x98]
push eax
push ecx
mov ecx, ebx
call fcn.00403c60
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x19c]
lea eax, [esp + 0x58]
push edx
lea ecx, [esp + 0x9c]
push eax
push ecx
lea edx, [esp + 0x2ac]
push 0x415674
push edx
call edi
add esp, 0x14
lea eax, [esp + 0x18]
push ebp
push str.EIU__d
push eax
call edi
lea edi, [esp + 0x2ac]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x2a4]
push ecx
push 1
push eax
mov eax, dword [esi + 0x8b60]
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
inc ebp
cmp ebp, eax
jl 0x406e96
mov ecx, esi
call fcn.00407020
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x454
ret

Function at 0x407020
Capabilities:
Set registry value

Disassembly:
sub esp, 0x248
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x8b60]
pushal
mov eax, dword [eax]
invalid

Function at 0x407100
Capabilities:
Set registry value

Disassembly:
sub esp, 0x568
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x10
Function at 0x407dd0
Capabilities:
Set registry value

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
or ecx, 0xffffffff
lea edx, [esi + 0x8734]
xor eax, eax
mov edi, edx
mov ebx, dword [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ecx
push edx
push 1
push eax
mov eax, dword [ebx]
push str.Type
push eax
call ebp
lea edx, [esi + 0x86f4]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [ebx]
push edx
push 1
push eax
push str.OEMID
push ecx
call ebp
mov al, byte [esi + 0x8567]
lea edx, [esi + 0x8567]
test al, al
je 0x407e4a
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [ebx]
push 1
push eax
push str.Target_Directory
push edx
call ebp
mov al, byte [esi + 0x866b]
add esi, 0x866b
test al, al
je 0x407e74
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push esi
push 1
push eax
mov eax, dword [ebx]
push str.Uninstaller_Name
push eax
call ebp
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x407e80
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10c
push ebx
push ebp
mov ebx, ecx
push esi
lea eax, [esp + 0x10]
push edi
mov edx, dword [ebx + 0x8b60]
lea ecx, [esp + 0x10]
xor esi, esi
push eax
push ecx
push esi
push esi
push str.NormalFileCnt
push edx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x407ec0
mov dword [esp + 0x10], esi
mov al, byte [ebx + 0x260]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea esi, [ebx + 0x260]
test al, al
je 0x407f25
mov ecx, dword [esp + 0x10]
mov eax, ecx
inc ecx
push eax
lea eax, [esp + 0x1c]
push str.File__d
push eax
mov dword [esp + 0x1c], ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x18]
mov edi, ecx
lea ecx, [edi + 1]
push ecx
push esi
push 1
push eax
mov eax, dword [ebx + 0x8b60]
push edx
push eax
call ebp
mov al, byte [esi + edi + 1]
lea esi, [esi + edi + 1]
test al, al
jne 0x407ed6
mov edx, dword [ebx + 0x8b60]
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push 0
push str.NormalFileCnt
push edx
call ebp
mov edx, dword [ebx + 0x8b64]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 0
push str.ConditionFileCnt
push edx
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x407f72
mov dword [esp + 0x10], 0
mov al, byte [ebx + 0x4360]
lea esi, [ebx + 0x4360]
test al, al
je 0x407fd1
mov ecx, dword [esp + 0x10]
mov eax, ecx
inc ecx
push eax
lea eax, [esp + 0x1c]
push str.C_File__d
push eax
mov dword [esp + 0x1c], ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x18]
mov edi, ecx
lea ecx, [edi + 1]
push ecx
push esi
push 1
push eax
mov eax, dword [ebx + 0x8b64]
push edx
push eax
call ebp
mov al, byte [esi + edi + 1]
lea esi, [esi + edi + 1]
test al, al
jne 0x407f82
mov edx, dword [ebx + 0x8b64]
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push 0
push str.ConditionFileCnt
push edx
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x408000
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411eb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x12c]
mov dword [ebp - 0x10], esp
rep stosd dword es:[edi], eax
push str.SoftwareSSPrint_
lea ecx, [ebp - 0x12c]
xor ebx, ebx
mov dword [ebp - 0x18], eax
push 0x4158e8
push ecx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], ebx
mov byte [ebp - 0x14], al
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
add esi, 0x86f4
lea edx, [ebp - 0x12c]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp + 8]
mov esi, str.SmCntCode
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4080ae
test cl, cl
je 0x4080aa
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4080ae
add eax, 2
add esi, 2
test cl, cl
jne 0x40808a
xor eax, eax
jmp 0x4080b3
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x408100
lea eax, [ebp - 0x1c]
push ebx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
mov ebx, dword [ebp + 0x10]
lea ecx, [ebp - 0x12c]
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x24], eax
mov edi, str.HKLM
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x18]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x408103
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov esi, str.RcpCntCode
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40812f
test cl, cl
je 0x40812b
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40812f
add eax, 2
add esi, 2
test cl, cl
jne 0x40810b
xor eax, eax
jmp 0x408134
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4081ad
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0xf003f
push 0
push 0
lea ecx, [ebp - 0x12c]
push 0
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp ebx, 0x80000001
mov edx, eax
lea ebx, [ebp - 0x18]
jne 0x408189
mov edi, str.HKCU
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4081b0
mov edi, str.HKLM
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4081b0
mov edx, dword [ebp - 0x24]
test edx, edx
jne 0x40820a
Function at 0x4086e0
Capabilities:
Check if file exists

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
push edi
call fcn.0040a950
add esp, 4
test eax, eax
je 0x4086ff
pop edi
mov eax, 1
pop esi
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x408749
cmp eax, 3
je 0x408749
cmp eax, 5
je 0x408731
cmp eax, 0x20
je 0x408731
push edi
push str.Cannot_delete_file__s:
push 1
push esi
call fcn.00404400
add esp, 0x10
xor eax, eax
pop edi
pop esi
ret 8
push edi
push str.Access_or_sharing_violation_to__s
push 0
push esi
call fcn.00404400
add esp, 0x10
xor eax, eax
pop edi
pop esi
ret 8
mov eax, dword [esp + 0x10]
test eax, eax
je 0x408762
push edi
push str.File__s_not_found
push 0
push esi
call fcn.00404400
add esp, 0x10
pop edi
xor eax, eax
pop esi
ret 8
Function at 0x408ce0
Capabilities:
Delete directory
Delete registry key

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push str._BBOO__DeleteShortcut__CheckCondition___start____
push 0
push ebx
call fcn.00404400
add esp, 0xc
mov ecx, ebx
call fcn.004065b0
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x408d6d
mov eax, dword [ebx + 0x8b64]
test eax, eax
je 0x408d2a
push eax
call ebp
mov dword [ebx + 0x8b64], 0
lea esi, [ebx + 0x8c6c]
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
push esi
je 0x408d45
push str.Cannot_delete__s_key:
push eax
jmp 0x408d64
call fcn.004030c0
add esp, 4
mov ecx, ebx
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00408290
push esi
push str._BBOO__Delete_reg_key_:___s_
push 0
push ebx
call fcn.00404400
add esp, 0x10
mov eax, dword [ebx + 0x8b60]
test eax, eax
je 0x408d84
push eax
call ebp
mov dword [ebx + 0x8b60], 0
lea esi, [ebx + 0x8b68]
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
push esi
je 0x408da8
push str.Cannot_delete__s_key:
push eax
push ebx
call fcn.00404400
add esp, 0x10
jmp 0x408dbf
call fcn.004030c0
add esp, 4
mov ecx, ebx
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00408290
lea eax, [esp + 0x10]
push eax
call fcn.004061b0
add esp, 4
test eax, eax
jl 0x408eca
lea eax, [ebx + 0x220]
lea edi, [esp + 0x10]
push eax
or ecx, 0xffffffff
xor eax, eax
push 0x41555c
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ecx, [esp + ecx + 0x18]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [ebx + 0x86f0]
add esp, 0xc
xor ebp, ebp
test eax, eax
jle 0x408e74
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x114]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x114]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x86ec]
mov edx, dword [ecx + ebp*4]
lea ecx, [esp + 0x114]
push edx
push eax
push str._s_s.lnk
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [esp + 0x114]
mov ecx, ebx
push 1
push edx
call fcn.004086e0
mov eax, dword [ebx + 0x86f0]
inc ebp
cmp ebp, eax
jl 0x408e08
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
lea eax, [ebx + 0x220]
push eax
je 0x408eaa
push str.Program_group__s_has_been_removed
push 0
push ebx
call fcn.00404400
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
push str.Cannot_remove__s_program_group:
push 1
push ebx
call fcn.00404400
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
push str.Cannot_get_base_program_folder_to_delete_shortcut_
push 0
push ebx
call fcn.00404400
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x409520
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x190
xor eax, eax
push ebp
mov ebp, ecx
push edi
mov ecx, 0x10
lea edi, [esp + 0x14]
lea edx, [ebp + 0x8780]
rep stosd dword es:[edi], eax
mov ecx, 0x10
lea edi, [esp + 0x54]
rep stosd dword es:[edi], eax
lea eax, [ebp + 0x8734]
lea ecx, [ebp + 0x220]
push eax
push ecx
push edx
lea eax, [esp + 0xa0]
push str.SOFTWARE_s_s_sNon_Device_INF_Installer
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea ecx, [esp + 0xc]
lea edx, [esp + 0x94]
push ecx
push 0x20019
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409692
push ebx
lea eax, [esp + 0xc]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
mov edi, 0x3f
push str.RefClass
push eax
mov dword [esp + 0x28], edi
call esi
lea ecx, [esp + 0x10]
lea edx, [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push str.RefName
push ecx
mov dword [esp + 0x28], edi
call esi
mov esi, 0x418ea8
lea eax, [esp + 0x1c]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x409614
test cl, cl
je 0x409610
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x409614
add eax, 2
add esi, 2
test cl, cl
jne 0x4095ec
xor eax, eax
jmp 0x409619
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x409624
push str.Get_Class_Name_from_Registry
jmp 0x409629
push str.Fail_to_get_Class_Name_of_a_program_from_Registry
push 0
push ebp
call fcn.00404400
add esp, 0xc
mov esi, 0x418ea8
lea eax, [esp + 0x5c]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x409665
test cl, cl
je 0x409661
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x409665
add eax, 2
add esi, 2
test cl, cl
jne 0x40963d
xor eax, eax
jmp 0x40966a
sbb eax, eax
sbb eax, 0xffffffff
pop esi
pop ebx
test eax, eax
je 0x409677
push str.Get_Window_Name_from_Registry
jmp 0x40967c
push str.Fail_to_get_Window_Name_of_a_program_from_Registry
push 0
push ebp
call fcn.00404400
mov eax, dword [esp + 0x18]
add esp, 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4096bc
lea edi, [esp + 0x54]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4096bc
lea ecx, [esp + 0x54]
lea edx, [esp + 0x14]
push ecx
push edx
jmp 0x4096eb
lea edi, [esp + 0x54]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4096d5
lea eax, [esp + 0x54]
push eax
push 0
jmp 0x4096eb
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4096fe
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_FindWindowA]
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop ebp
add esp, 0x190
ret
Function at 0x409a90
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x318
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
xor ebp, ebp
push 0x104
push eax
push ebp
push ebp
push str.ConditionalExeFile
lea ecx, [ebx + 0x110]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call fcn.00403190
test eax, eax
jne 0x409afb
mov edi, str.SSMMgr.exe
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
push str.CPrinterInfo::GetConditionalExeFile___Conditional_Exe_File_:___s_
push ebp
push ebx
call fcn.00404400
add esp, 0x10
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [ebx + 0x8b64]
push eax
push ecx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push str.ConditionFileCnt
push edx
mov dword [esp + 0x28], 4
call ebp
test eax, eax
je 0x409b5e
push str.CPrinterInfo::GetConditionalExeFile___RegQueryValueEx_Conditional_file_Count_Fail___
push 0
push ebx
call fcn.00404400
add esp, 0xc
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x318
ret 4
mov eax, dword [esp + 0x14]
xor esi, esi
test eax, eax
jle 0x409b4f
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x224]
push esi
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x124]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x228]
push str.C_File__d
push eax
mov dword [esp + 0x1c], 0x104
call fcn.0040badf
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x120]
lea eax, [esp + 0x18]
push ecx
push edx
mov edx, dword [ebx + 0x8b64]
push eax
lea ecx, [esp + 0x230]
push 0
push ecx
push edx
call ebp
test eax, eax
jne 0x409bf6
lea eax, [esp + 0x120]
push 0x5c
push eax
call fcn.0040c93c
add esp, 8
test eax, eax
je 0x409bf6
lea ecx, [esp + 0x1c]
inc eax
push ecx
push eax
call fcn.0040c7ce
add esp, 8
test eax, eax
je 0x409c12
mov eax, dword [esp + 0x14]
inc esi
cmp esi, eax
jl 0x409b68
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x318
ret 4
lea edi, [esp + 0x120]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov al, 1
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x32c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x318
ret 4
Function at 0x40a780
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push esi
mov esi, dword [esp + 0x9c]
test esi, esi
je 0x40a795
mov byte [esi], 0
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
pop edi
je 0x40a7f9
cmp dword [esp + 0x14], 2
jne 0x40a7f9
mov eax, dword [esp + 8]
cmp eax, 4
jbe 0x40a7ec
test esi, esi
je 0x40a7df
cmp eax, 5
ja 0x40a7dc
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40a7df
mov byte [esi], 1
mov eax, 3
pop esi
add esp, 0x94
ret
mov eax, 2
pop esi
add esp, 0x94
ret
xor eax, eax
pop esi
add esp, 0x94
ret

Function at 0x40a810
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0xc]
push esi
cmp eax, 0x4026
push edi
jg 0x40a8ad
cmp eax, 0x4026
je 0x40a883
sub eax, 0xa
je 0x40a93a
dec eax
je 0x40a8c6
sub eax, 6
jne 0x40a8c0
push ebx
push 0x8000
call fcn.0040a810
mov edi, str.inf
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
ret
mov edi, str.C:Program_Files_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
ret
sub eax, 0x8000
je 0x40a902
sub eax, 0x81d0
je 0x40a8df
sub eax, 2
je 0x40a8c6
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov ecx, dword [esp + 0x14]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
pop edi
pop esi
mov eax, 1
pop ebx
ret
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x14]
push edx
push 0x104
push eax
push 1
push 0
push 0
call sub.WINSPOOL.DRV_GetPrinterDriverDirectoryA
pop edi
pop esi
mov eax, 1
pop ebx
ret
push str.kernel32.dll
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40a93a
push str.GetSystemWindowsDirectoryA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40a92f
push 0x104
push ebx
call eax
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
jne 0x40a946
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x40a950
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40a978
test al, 1
je 0x40a96f
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x40a980
Capabilities:
Get file version info

Disassembly:
sub esp, 0x510
lea eax, [esp + 0x10]
push ebx
push ebp
push esi
mov ebp, ecx
push edi
push 0x100
mov ecx, dword [ebp + 0x8774]
push eax
push 5
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
lea edx, [esp + 0x120]
push 0x400
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40aa6a
lea eax, [esp + 0x10]
lea ecx, [esp + 0x120]
push eax
push ecx
mov dword [esp + 0x18], 0
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x40aa6a
push edi
call fcn.0040bfc5
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x18], esi
je 0x40aa6a
mov edx, dword [esp + 0x10]
push esi
push edi
lea eax, [esp + 0x128]
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40aa61
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x14]
push ecx
push edx
push str.StringFileInfo040904b0ProductVersion
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40aa61
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
mov esi, dword [esp + 0x14]
dec ecx
mov eax, ecx
mov ecx, edx
mov ebx, ecx
lea edi, [esp + eax + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
add eax, edx
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x18]
mov byte [esp + eax + 0x20], 0
push esi
call fcn.0040ba96
add esp, 4
mov ecx, dword [ebp + 0x8774]
lea eax, [esp + 0x120]
push 0x400
push eax
push 1
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
lea edi, [ebp + 9]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x120]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x24]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x128]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x510
ret