joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405590
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 0x4055e3
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x94
push ecx
call edi
test eax, eax
jne 0x4055e3
pop edi
pop esi
pop ebx
add esp, 0xa0
ret
call fcn.0040b7a0
test al, al
mov eax, dword [esp + 0x10]
je 0x405655
cmp eax, 5
jne 0x40563a
mov edx, dword [esp + 0xa6]
and edx, 0xff
push edx
push str.OS_version___64_Bit__d
push 0
push ebx
call fcn.004044c0
mov eax, dword [esp + 0x24]
add esp, 0x10
dec eax
je 0x40561d
dec eax
je 0x405624
mov esi, 0x33
jmp 0x405692
mov dl, byte [esp + 0xa6]
xor eax, eax
cmp dl, 1
setne al
add eax, 0x33
mov esi, eax
jmp 0x405692
cmp eax, 6
jne 0x405692
mov dl, byte [esp + 0xa6]
xor ecx, ecx
cmp dl, 1
setne cl
add ecx, 0x3c
mov esi, ecx
jmp 0x405692
cmp eax, 5
jne 0x405672
mov eax, dword [esp + 0x14]
dec eax
je 0x40561d
dec eax
je 0x40566b
mov esi, 0x32
jmp 0x405692
mov esi, 0x34
jmp 0x405692
cmp eax, 6
jne 0x40568d
mov cl, byte [esp + 0xa6]
xor edx, edx
cmp cl, 1
setne dl
add edx, 0x3c
mov esi, edx
jmp 0x405692
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.004044c0
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0xa0
ret
Function at 0x405af0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x100c
call fcn.0040bd60
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 0x405bb9
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.0040bd8f
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.0040bd8f
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 0x405c50
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.0040c390
add esp, 8
test eax, eax
je 0x405cca
lea edx, [esp + 0x12]
cmp eax, edx
jbe 0x405cca
mov byte [eax + 1], 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x405dd3
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.0040c910
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 0x405dc7
mov edx, dword [esp + 0x32c]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x220]
push edx
push eax
call fcn.00405af0
cmp ebp, dword [esp + 0x14]
jl 0x405d29
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x314
ret 8

Function at 0x4062c0
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 0x406329
lea ecx, [esp]
push esi
push ecx
push 0
call fcn.0040aaf0
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 0x40631c
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 0x406330
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 0x406351
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 0x406478
lea eax, [esp + 8]
push ebx
push eax
mov ecx, ebp
call fcn.004064a0
mov ecx, dword [ebp + 0x86f0]
push 0x40
push ecx
call fcn.0040c608
mov dword [ebp + 0x86ec], eax
mov eax, dword [ebp + 0x86f0]
add esp, 8
xor ebx, ebx
test eax, eax
jle 0x40645e
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.0040c608
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 0x4063cc
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.004044c0
add esp, 0x10
mov eax, esi
pop esi
pop ebp
add esp, 0x120
ret
Function at 0x4064a0
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 0x406570
Capabilities:
Delete file
Query or enumerate registry value

Disassembly:
sub esp, 0x398
lea eax, [esp + 0xc]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push edi
xor edi, edi
push edi
push str.ShortcutIcons__d
mov ebp, ecx
push eax
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 + 0xa8]
push str.SOFTWARE_s_s_sNon_Device_INF_Installer
push edx
call esi
add esp, 0x14
lea eax, [esp + 0x10]
lea ecx, [esp + 0x9c]
push eax
push 0x20019
push edi
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406692
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x14]
lea eax, [esp + 0x5c]
push edx
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x28]
push edi
push edx
push eax
mov dword [esp + 0x2c], 0x3f
call ebp
test eax, eax
jne 0x406687
lea ecx, [esp + 0x1a0]
push ecx
call fcn.004062c0
add esp, 4
lea edx, [esp + 0x5c]
lea eax, [esp + 0x1a0]
lea ecx, [esp + 0x2a4]
push edx
push ebx
push eax
push str._s_s_s.lnk
push ecx
call esi
add esp, 0x14
lea edx, [esp + 0x2a4]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc edi
lea eax, [esp + 0x1c]
push edi
push str.ShortcutIcons__d
push eax
call esi
add esp, 0xc
lea ecx, [esp + 0x14]
lea edx, [esp + 0x5c]
lea eax, [esp + 0x18]
push ecx
push edx
mov edx, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
push 0
push ecx
push edx
mov dword [esp + 0x2c], 0x3f
call ebp
test eax, eax
je 0x40660f
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x398
ret
Function at 0x4066a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412140
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 0x4066ed
lea eax, [ebp - 0x24]
push 0x413c58
push eax
mov dword [ebp - 0x24], ebx
call fcn.0040c8c3
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 0x406732
lea edx, [ebp - 0x20]
push 0x413c58
push edx
mov dword [ebp - 0x20], ebx
call fcn.0040c8c3
mov dword [ebp - 0x14], 0
mov eax, 0x406819
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.0040c910
mov edx, eax
mov edi, 0x419f28
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.0040c910
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 0x4067fc
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 0x407160
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.0040ab80
lea edx, [esp + 0x120]
push edx
call fcn.004097e0
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 0x4165e8
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.00409540
mov al, byte [ebp + 0x866b]
lea ebx, [ebp + 0x866b]
test al, al
je 0x40731f
lea edi, [ebp + 0x220]
mov eax, ebx
mov esi, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x407217
test cl, cl
je 0x407213
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x407217
add eax, 2
add esi, 2
test cl, cl
jne 0x4071f3
xor eax, eax
jmp 0x40721c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40731f
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 0x41521c
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 0x407307
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 0x4072e1
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 0x4072e1
push ebx
push str.Uninstaller_for__s_model_has_been_registered
push eax
jmp 0x4072e8
push ebx
push str.Cannot_register_uninstaller_for__s_model:
push eax
push ebp
call fcn.004044c0
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.004044c0
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
Function at 0x407330
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.004031e0
test eax, eax
mov dword [esp + 0x14], eax
jle 0x4074fb
mov ecx, dword [esi + 0x8b60]
test ecx, ecx
je 0x4074fb
xor ebp, ebp
test eax, eax
jle 0x4074fb
lea eax, [esp + 0x58]
push 0x40
push eax
push 0
push ebp
push str.ExeInUninstall
mov ecx, ebx
call fcn.00403250
lea ecx, [esp + 0x360]
push 0x104
push ecx
push 1
push ebp
push str.ExeInUninstall
mov ecx, ebx
call fcn.00403250
lea edx, [esp + 0x98]
push 0x104
lea eax, [esp + 0x364]
push edx
push eax
mov ecx, ebx
call fcn.00403200
lea ecx, [esp + 0x19c]
push ecx
push str.ExeInUninstall
push ebp
mov ecx, esi
call fcn.0040a950
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 0x40745b
mov edi, 0x41549c
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 0x40747f
lea eax, [esi + 0x8567]
lea ecx, [esp + 0x98]
push eax
push ecx
mov ecx, ebx
call fcn.00403d20
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 0x41675c
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 0x407386
mov ecx, esi
call fcn.00407510
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x454
ret
Function at 0x407510
Capabilities:
Set registry value

Disassembly:
sub esp, 0x248
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x8b60]
test eax, eax
je 0x4075de
lea eax, [esp + 8]
push 0x40
push eax
lea edi, [esi + 0x110]
push 1
push 0
push str.ConditionalDel
mov ecx, edi
call fcn.00403250
test eax, eax
je 0x4075de
lea ecx, [esp + 0x14c]
push 0x104
push ecx
push 2
push 0
push str.ConditionalDel
mov ecx, edi
call fcn.00403250
lea edx, [esp + 0x14c]
lea eax, [esp + 8]
push edx
push eax
lea ecx, [esp + 0x50]
push str._s__s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edi, [esp + 0x58]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
lea edx, [esp + 0x48]
push ecx
push edx
push 1
push eax
mov eax, dword [esi + 0x8b60]
push str.ConditionalDel
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4075ce
push str.Condition_for_Conditional_Delete_has_been_set
push eax
push esi
call fcn.004044c0
add esp, 0xc
pop edi
pop esi
add esp, 0x248
ret
push str.Fail_to_set_condition_for_Conditional_Delete
push 0
push esi
call fcn.004044c0
add esp, 0xc
pop edi
pop esi
add esp, 0x248
ret
Function at 0x4082f0
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 0x40836a
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 0x408394
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 0x4083a0
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 0x4083e0
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 0x408445
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 0x4083f6
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 0x408492
mov dword [esp + 0x10], 0
mov al, byte [ebx + 0x4360]
lea esi, [ebx + 0x4360]
test al, al
je 0x4084f1
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 0x4084a2
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