joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402c60
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x9c
push eax
call esi
mov edi, eax
test edi, edi
jne 0x402cac
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call esi
test eax, eax
jne 0x402cac
pop edi
pop esi
add esp, 0x9c
ret
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0xa8]
sub eax, 0
je 0x402e03
dec eax
je 0x402d72
dec eax
jne 0x402e10
mov edx, dword [esp + 0xc]
lea eax, [edx - 3]
cmp eax, 3
ja case.default.0x402cde
jmp dword [eax*4 + 0x402e40]
mov dword [esi], 0xb
mov dword [esi + 4], 0xf
jmp 0x402e10
mov dword [esi], 0xc
mov dword [esi + 4], 0xf
jmp 0x402e10
mov eax, dword [esp + 0x10]
mov dword [esi + 4], 0x11
sub eax, 0
je 0x402d35
dec eax
je 0x402d1f
dec eax
je 0x402d2a
mov dword [esi], 0xe
jmp 0x402e10
mov dword [esi], 0x10
jmp 0x402e10
mov dword [esi], 0xd
jmp 0x402e10
mov dl, byte [esp + 0xa2]
xor eax, eax
cmp dl, 1
mov dword [esi + 4], 0x11
setne al
add eax, 0x12
mov dword [esi], eax
jmp 0x402e10
mov dword [esi], 0xd
mov dword [esi + 4], 0x11
jmp 0x402e10
mov eax, dword [esp + 0x10]
test eax, eax
je 0x402db9
cmp eax, 0xa
je 0x402d95
xor ecx, ecx
cmp eax, 0x5a
setne cl
add ecx, 9
mov dword [esi + 4], 0xa
mov dword [esi], ecx
jmp 0x402e10
lea edx, [esp + 0x1c]
push 0x4144f8
push edx
call fcn.0040ff20
add esp, 8
mov dword [esi + 4], 0xa
neg eax
sbb eax, eax
add eax, 7
mov dword [esi], eax
jmp 0x402e10
lea eax, [esp + 0x1c]
push 0x4144f4
push eax
call fcn.0040ff20
add esp, 8
test eax, eax
je 0x402df4
lea ecx, [esp + 0x1c]
push str.Bca_
push ecx
call fcn.0040ff20
add esp, 8
test eax, eax
je 0x402df4
mov dword [esi], 3
mov dword [esi + 4], 0xa
jmp 0x402e10
mov dword [esi], 4
mov dword [esi + 4], 0xa
jmp 0x402e10
mov dword [esi], 2
mov dword [esi + 4], 2
call fcn.0040b4f0
test al, al
je 0x402e32
cmp dword [esi], 0x10
jne 0x402e32
test edi, edi
je 0x402e32
cmp byte [esp + 0xa2], 1
jne 0x402e32
mov dword [esi], 0xe
pop edi
mov eax, 1
pop esi
add esp, 0x9c
ret

Function at 0x403ba0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403c01
mov edx, dword [esp + 0x14]
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
push esi
push str.ProgramFilesDir
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403bf6
mov esi, 1
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0xc
ret 4
Function at 0x404370
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 4]
push ebp
cmp eax, 0xffffffff
mov ebp, ecx
jne 0x4043e4
push ebx
push esi
lea ebx, [ebp + 9]
push edi
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, str.NonDeviceInfInstaller.log
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
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]
push 0x80
mov ecx, edx
push 2
push eax
and ecx, 3
push 1
push 0x40000000
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
pop edi
pop esi
mov dword [ebp], eax
mov dword [ebp + 4], 1
mov byte [ebp + 8], 1
pop ebx
pop ebp
ret 4
mov dword [ebp], eax
mov dword [ebp + 4], 1
pop ebp
ret 4
Function at 0x404400
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x814
push ebx
mov ebx, dword [esp + 0x81c]
cmp dword [ebx], 0xffffffff
je 0x40456d
mov eax, dword [ebx + 4]
test eax, eax
je 0x40456d
push ebp
push esi
lea eax, [esp + 0x10]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov cl, byte [0x418ea8]
xor eax, eax
mov byte [esp + 0x24], cl
mov ecx, 0x1ff
lea edi, [esp + 0x25]
lea edx, [esp + 0x24]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x800
push edx
lea eax, [esp + 0x1c]
push 0
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
mov edi, 0x414698
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x834]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x834]
lea edi, [esp + 0x28]
push ecx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + ecx + 0x2c]
push edx
call dword [sym.imp.USER32.dll_wvsprintfA]
mov esi, dword [esp + 0x82c]
test esi, esi
je 0x404519
cmp esi, 1
jne 0x4044d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push str._d__
lea eax, [esp + ecx + 0x2c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea edi, [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, 0x800
sub edx, ecx
lea eax, [esp + ecx + 0x24]
push edx
push eax
push esi
mov ecx, ebx
call fcn.00404580
mov edi, 0x41468c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebx]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x814
ret
Function at 0x4054b0
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0xc]
mov esi, 0x32
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], 0x9c
call edi
test eax, eax
jne 0x405503
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x94
push ecx
call edi
test eax, eax
jne 0x405503
pop edi
pop esi
pop ebx
add esp, 0xa0
ret
call fcn.0040b4f0
test al, al
mov eax, dword [esp + 0x10]
je 0x405575
cmp eax, 5
jne 0x40555a
mov edx, dword [esp + 0xa6]
and edx, 0xff
push edx
push str.OS_version___64_Bit__d
push 0
push ebx
call fcn.00404400
mov eax, dword [esp + 0x24]
add esp, 0x10
dec eax
je 0x40553d
dec eax
je 0x405544
mov esi, 0x33
jmp 0x4055b2
mov dl, byte [esp + 0xa6]
xor eax, eax
cmp dl, 1
setne al
add eax, 0x33
mov esi, eax
jmp 0x4055b2
cmp eax, 6
jne 0x4055b2
mov dl, byte [esp + 0xa6]
xor ecx, ecx
cmp dl, 1
setne cl
add ecx, 0x3c
mov esi, ecx
jmp 0x4055b2
cmp eax, 5
jne 0x405592
mov eax, dword [esp + 0x14]
dec eax
je 0x40553d
dec eax
je 0x40558b
mov esi, 0x32
jmp 0x4055b2
mov esi, 0x34
jmp 0x4055b2
cmp eax, 6
jne 0x4055ad
mov cl, byte [esp + 0xa6]
xor edx, edx
cmp cl, 1
setne dl
add edx, 0x3c
mov esi, edx
jmp 0x4055b2
mov esi, 0x28
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push esi
push eax
push ecx
push str.OS_version:__d._d____d
push 0
push ebx
call fcn.00404400
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0xa0
ret
Function at 0x4059e0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x100c
call fcn.0040bab0
mov eax, dword [esp + 0x1014]
push esi
cmp eax, 2
push edi
mov esi, ecx
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
jne 0x405aa9
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
mov eax, dword [esi + 0x8b64]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push str.CDirCnt
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 8]
lea edx, [esp + 0x14]
push ecx
push str.CDir__d
push edx
call fcn.0040badf
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1024]
add esp, 0xc
inc ecx
mov dword [esp + 8], ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ecx
mov ecx, dword [esi + 0x8b64]
push edx
push 1
push eax
lea eax, [esp + 0x24]
push eax
push ecx
call edi
mov eax, dword [esi + 0x8b64]
lea edx, [esp + 8]
push 4
push edx
push 4
push 0
push str.CDirCnt
push eax
call edi
pop edi
pop esi
add esp, 0x100c
ret 8
lea ecx, [esp + 0xc]
lea edx, [esp + 8]
push ecx
mov ecx, dword [esi + 0x8b60]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push str.DirCnt
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 8]
lea eax, [esp + 0x14]
push edx
push str.Dir__d
push eax
call fcn.0040badf
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1024]
add esp, 0xc
inc ecx
mov dword [esp + 8], ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
dec ecx
push ecx
push edx
mov edx, dword [esi + 0x8b60]
push 1
lea ecx, [esp + 0x20]
push eax
push ecx
push edx
call edi
mov ecx, dword [esi + 0x8b60]
lea eax, [esp + 8]
push 4
push eax
push 4
push 0
push str.DirCnt
push ecx
call edi
pop edi
pop esi
add esp, 0x100c
ret 8
Function at 0x405b40
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x314
push esi
mov dword [esp + 4], ecx
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x218]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x114]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x320]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x5c
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 + 0x14]
push ecx
call fcn.0040c0e0
add esp, 8
test eax, eax
je 0x405bba
lea edx, [esp + 0x12]
cmp eax, edx
jbe 0x405bba
mov byte [eax + 1], 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x405cc3
push ebx
or ecx, eax
push ebp
lea edi, [esp + 0x18]
xor eax, eax
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x11c]
mov eax, ecx
mov esi, edi
mov edi, edx
mov ebx, 1
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 + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x11c]
sub ebx, ecx
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x220]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
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 + 0x120]
push ecx
call fcn.0040c660
add eax, ebx
or ecx, 0xffffffff
add ebp, eax
add esp, 8
lea edi, [esp + eax + 0x11c]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x11c]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov byte [esp + ebp + 0x224], 0
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x224]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x405cb7
mov edx, dword [esp + 0x32c]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x220]
push edx
push eax
call fcn.004059e0
cmp ebp, dword [esp + 0x14]
jl 0x405c19
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x314
ret 8

Function at 0x4061b0
Capabilities:
Get common file path

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x406219
lea ecx, [esp]
push esi
push ecx
push 0
call fcn.0040a780
add esp, 4
neg eax
sbb eax, eax
and eax, 0x15
add eax, 2
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov esi, eax
test esi, esi
jl 0x40620c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 4]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov edx, dword [esp + 4]
mov esi, eax
mov eax, dword [esp + 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, esi
pop esi
add esp, 8
ret
Function at 0x406220
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x120
push ebp
mov ebp, ecx
mov cl, byte [ebp + 0x8780]
push esi
lea eax, [ebp + 0x8780]
xor esi, esi
test cl, cl
jne 0x406241
mov eax, str.Samsung
lea ecx, [ebp + 0x8734]
lea edx, [ebp + 0x220]
push ecx
push edx
push eax
lea eax, [esp + 0x30]
push str.SOFTWARE_s_s_sNon_Device_INF_Installer
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea ecx, [esp + 8]
lea edx, [esp + 0x24]
push ecx
push 0x20019
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406368
lea eax, [esp + 8]
push ebx
push eax
mov ecx, ebp
call fcn.00406390
mov ecx, dword [ebp + 0x86f0]
push 0x40
push ecx
call fcn.0040c358
mov dword [ebp + 0x86ec], eax
mov eax, dword [ebp + 0x86f0]
add esp, 8
xor ebx, ebx
test eax, eax
jle 0x40634e
push edi
mov edi, str.ShortcutIcons
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x40
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0040c358
mov ecx, dword [ebp + 0x86ec]
add esp, 8
lea edx, [esp + 0x18]
mov dword [ecx + ebx*4], eax
push ebx
push edx
lea eax, [esp + 0x20]
push str._s__d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [ebp + 0x86ec]
add esp, 0x10
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0x3f
mov eax, dword [edx + ebx*4]
push ecx
lea ecx, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp + 0x86f0]
inc ebx
cmp ebx, eax
jl 0x4062bc
pop edi
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop esi
mov eax, 1
pop ebp
add esp, 0x120
ret
lea edx, [esp + 0x24]
push edx
push str.Cannot_open__s_key:
push eax
push ebp
call fcn.00404400
add esp, 0x10
mov eax, esi
pop esi
pop ebp
add esp, 0x120
ret
Function at 0x406390
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 8]
push edi
mov edi, dword [esp + 0x14]
lea ecx, [esi + 0x866b]
push eax
lea edx, [esp + 0x18]
mov eax, dword [edi]
push ecx
push edx
push 0
push str.Uninstaller_Name
push eax
mov dword [esp + 0x24], 0x3f
call ebx
lea ecx, [esp + 0xc]
lea edx, [esi + 0x8567]
push ecx
mov ecx, dword [edi]
lea eax, [esp + 0x18]
push edx
push eax
push 0
push str.Target_Directory
push ecx
mov dword [esp + 0x24], 0x103
call ebx
lea edx, [esp + 0xc]
lea eax, [esi + 0x86f0]
push edx
mov edx, dword [edi]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push str.Icon_number
push edx
call ebx
lea eax, [esp + 0xc]
lea ecx, [esi + 0x86f4]
push eax
mov eax, dword [edi]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push str.OEMID
push eax
mov dword [esp + 0x24], 0x3f
call ebx
mov eax, dword [edi]
lea ecx, [esp + 0xc]
add esi, 0x8734
push ecx
lea edx, [esp + 0x18]
push esi
push edx
push 0
push str.Type
push eax
mov dword [esp + 0x24], 0x3f
call ebx
pop edi
pop esi
pop ebx
pop ecx
ret 4

Function at 0x406460
Capabilities:
Delete file
Query or enumerate registry value

Disassembly:
sub esp, 0x39c
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push edi
xor edi, edi
push edi
lea eax, [esp + 0x24]
mov ebp, ecx
push str.ShortcutIcons__d
push eax
mov dword [esp + 0x28], ebp
call esi
add esp, 0xc
lea ecx, [ebp + 0x8734]
lea ebx, [ebp + 0x220]
add ebp, 0x8780
push ecx
push ebx
push ebp
lea edx, [esp + 0xac]
push str.SOFTWARE_s_s_sNon_Device_INF_Installer
push edx
call esi
add esp, 0x14
lea eax, [esp + 0x10]
lea ecx, [esp + 0xa0]
push eax
push 0x20019
push edi
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406596
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x14]
lea eax, [esp + 0x60]
push edx
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x2c]
push edi
push edx
push eax
mov dword [esp + 0x2c], 0x3f
call ebp
test eax, eax
jne 0x40657b
lea ecx, [esp + 0x1a4]
push ecx
call fcn.004061b0
add esp, 4
lea edx, [esp + 0x60]
lea eax, [esp + 0x1a4]
lea ecx, [esp + 0x2a8]
push edx
push ebx
push eax
push str._s_s_s.lnk
push ecx
call esi
add esp, 0x14
lea edx, [esp + 0x2a8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc edi
lea eax, [esp + 0x20]
push edi
push str.ShortcutIcons__d
push eax
call esi
add esp, 0xc
lea ecx, [esp + 0x14]
lea edx, [esp + 0x60]
lea eax, [esp + 0x18]
push ecx
push edx
mov edx, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
push 0
push ecx
push edx
mov dword [esp + 0x2c], 0x3f
call ebp
test eax, eax
je 0x406503
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
push 0
push str.ExeInUninstall
call fcn.0040a740
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x39c
ret
Function at 0x4065b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411e90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x324
mov eax, dword [ecx + 0x8b60]
push ebx
push esi
xor ebx, ebx
push edi
cmp eax, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
jne 0x4065fd
lea eax, [ebp - 0x24]
push 0x412c58
push eax
mov dword [ebp - 0x24], ebx
call fcn.0040c613
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x128]
push ecx
lea ecx, [ebp - 0x14]
push edx
push ecx
push ebx
push str.ConditionalDel
push eax
mov dword [ebp - 0x1c], 0x103
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x406642
lea edx, [ebp - 0x20]
push 0x412c58
push edx
mov dword [ebp - 0x20], ebx
call fcn.0040c613
mov dword [ebp - 0x14], 0
mov eax, 0x406729
ret
lea edi, [ebp - 0x128]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x22c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x2c
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, [ebp - 0x22c]
push ecx
call fcn.0040c660
mov edx, eax
mov edi, 0x418ea8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x2c
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, [ebp - 0x128]
push ecx
call fcn.0040c660
mov edi, eax
add esp, 0x10
inc edi
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x330]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x330]
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, [ebp - 0x18]
push ecx
push 0x20019
push ebx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40670c
mov ebx, 1
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406c70
Capabilities:
Get installed programs
Set registry value

Disassembly:
sub esp, 0x20c
lea eax, [esp + 0x108]
push ebx
push ebp
push esi
push edi
push 0x104
push eax
mov ebp, ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x14]
push ecx
push 0xa
call fcn.0040a810
lea edx, [esp + 0x120]
push edx
call fcn.00409470
add esp, 0xc
lea edi, [esp + 0x14]
or ecx, 0xffffffff
push eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0x41555c
lea eax, [esp + ecx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x14]
lea edx, [esp + 0x118]
push 0
push ecx
push edx
mov ecx, ebp
call fcn.004091d0
mov al, byte [ebp + 0x866b]
lea ebx, [ebp + 0x866b]
test al, al
je 0x406e2f
lea edi, [ebp + 0x220]
mov eax, ebx
mov esi, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x406d27
test cl, cl
je 0x406d23
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x406d27
add eax, 2
add esi, 2
test cl, cl
jne 0x406d03
xor eax, eax
jmp 0x406d2c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x406e2f
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp + 0x8734]
push eax
lea ecx, [ebp + 0x8780]
push edi
lea edx, [esp + 0x1c]
push ecx
push edx
lea eax, [esp + 0x24]
push str._s__u__m__s___p__s___t__s_
push eax
call esi
add esp, 0x18
lea ecx, [esp + 0x118]
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push 0x41421c
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0x10]
lea eax, [esp + 0x118]
push 0
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x406e17
lea edi, [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
not ecx
push ecx
lea ecx, [esp + 0x18]
push ecx
push 1
push eax
push str.UninstallString
push edx
call esi
test eax, eax
jne 0x406df1
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
push ebx
push 1
push eax
mov eax, dword [esp + 0x20]
push str.DisplayName
push eax
call esi
test eax, eax
jne 0x406df1
push ebx
push str.Uninstaller_for__s_model_has_been_registered
push eax
jmp 0x406df8
push ebx
push str.Cannot_register_uninstaller_for__s_model:
push eax
push ebp
call fcn.00404400
mov ecx, dword [esp + 0x20]
add esp, 0x10
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
lea edx, [esp + 0x118]
push edi
push edx
push str.Cannot_create__s_key_to_register_uninstaller_for__s_model:
push eax
push ebp
call fcn.00404400
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret