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

Disassembly:
push 0x42e09c
push 0
push str.Count
push str.Languages
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [esp + 4]
mov dword [ecx], eax
neg eax
sbb eax, eax
and eax, 6
add eax, 0xfffffffa
ret

Function at 0x4076f4
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
xor ebx, ebx
cmp dword [edi], esi
jbe 0x407774
push esi
push 0x4275e0
lea eax, [ebp - 0x94]
push str._s_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x14]
push 0x42e09c
push 0x13
push eax
lea eax, [ebp - 0x94]
push 0x42bab0
push eax
push str.Languages
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x407771
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push 0x42767c
push eax
call fcn.00418150
mov eax, dword [edi + 4]
mov ecx, dword [ebp + 8]
add esp, 0xc
mov dword [eax + esi*4], ecx
inc esi
cmp esi, dword [edi]
jb 0x40770b
jmp 0x407774
push 0xfffffffffffffffa
pop ebx
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret

Function at 0x4078e6
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
and byte [ebp - 0x104], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x42db88
lea eax, [ebp - 0x104]
push 0x104
push eax
push 0x42bab0
push dword [ebp + 0xc]
push dword [0x4235b8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x104]
push eax
call esi
test eax, eax
jle 0x4079bd
mov edi, dword [ebp + 8]
push edi
call esi
push dword [ebp + 0x10]
xor ecx, ecx
cmp byte [eax + edi - 1], 0x20
mov dword [ebp + 8], eax
setne cl
mov dword [ebp + 0xc], ecx
call esi
push dword [ebp + 0x18]
mov ebx, eax
call esi
push dword [ebp + 0x1c]
add ebx, eax
call esi
add eax, dword [ebp + 8]
mov edx, ebx
xor ebx, ebx
xor ecx, ecx
cmp dword [ebp + 0xc], ebx
setne cl
add eax, edx
lea eax, [ecx + eax + 1]
cmp dword [ebp + 0x14], eax
jl 0x4079bd
cmp dword [ebp + 0xc], ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x407997
push 0x4277dc
push edi
call esi
push dword [ebp + 0x10]
push edi
call esi
cmp dword [ebp + 0x1c], ebx
je 0x4079a8
push dword [ebp + 0x1c]
push edi
call esi
lea eax, [ebp - 0x104]
push eax
push edi
call esi
cmp dword [ebp + 0x18], ebx
je 0x4079bd
push dword [ebp + 0x18]
push edi
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407afd
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
and byte [ebp - 0x18], 0
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebx, 0x42db88
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
stosb byte es:[edi], al
push ebx
lea eax, [ebp - 0x18]
push 0x14
mov edi, 0x42bab0
and dword [ebp - 4], 0
push eax
push edi
push dword [ebp + 8]
push dword [0x4235b8]
call esi
cmp byte [ebp - 0x18], 0x79
je 0x407b49
cmp byte [ebp - 0x18], 0x59
jne 0x407b81
cmp dword [0x42ea60], 0
je 0x407b7a
push ebx
lea eax, [ebp - 0x2c]
push 0x14
push eax
push edi
push dword [ebp + 0xc]
push dword [0x4235b8]
call esi
cmp byte [ebp - 0x2c], 0x79
je 0x407b81
cmp byte [ebp - 0x2c], 0x59
je 0x407b81
mov dword [ebp - 4], 1
jmp 0x407b81
mov dword [ebp - 4], 2
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4080c5
Capabilities:
Query or enumerate registry value
Set current directory

Disassembly:
mov eax, 0x421a0c
call fcn.004175d4
sub esp, 0x108
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
pop esi
cmp ebx, 0x2000
mov dword [ebp - 0x10], ecx
mov dword [eax], esi
mov edi, 0xbc2
je 0x408137
cmp ebx, edi
je 0x408137
cmp ebx, 0x800704c7
jne 0x40810d
xor ebx, ebx
cmp dword [ebp + 0x18], ebx
je 0x408121
mov dword [eax], ebx
jmp 0x4081d9
test ebx, ebx
je 0x4081d9
cmp ebx, 0x1008
je 0x4081d9
mov dword [0x42ea5c], 0x66d
call fcn.00406465
xor eax, eax
jmp 0x4081db
call fcn.004124db
test eax, eax
jne 0x40814f
cmp ebx, edi
je 0x40814f
mov eax, dword [ebp + 0xc]
mov dword [eax], 2
jmp 0x408159
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
mov eax, dword [ebp - 0x10]
xor ebx, ebx
mov dword [ebp + 0x14], ebx
mov dword [eax + 0x38], esi
push 0x20019
push str.SoftwareMicrosoftWindowsCurrentVersionInstaller
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp + 0x14]
mov dword [ebp - 4], ebx
call fcn.0040637c
test eax, eax
jne 0x4081cb
push 0x40
lea edi, [ebp - 0x113]
pop ecx
mov byte [ebp - 0x114], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x104
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp + 8]
push eax
push ebx
push str.InstallerLocation
mov dword [ebp + 8], ebx
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp dword [ebp + 0x14], ebx
je 0x4081d9
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14
Function at 0x4081ec
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [ebp + 0x10]
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 4], ecx
mov dword [eax], ebx
call fcn.00401046
push 0x3f
mov esi, eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x117]
mov byte [ebp - 0x118], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], 0x409
stosb byte es:[edi], al
cmp byte [esi + 0x2e11], bl
jne 0x408258
push 0x42db88
lea eax, [ebp - 0x118]
push 0x100
push eax
push 0x42bab0
push str.DotNetLangPacks
push dword [0x4235b8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x118]
mov ecx, dword [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040b470
push 1
cmp eax, ebx
pop edi
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edi
je 0x40829a
push dword [0x423608]
mov ecx, dword [ebp - 4]
push dword [0x423604]
call fcn.00407afd
cmp eax, edi
mov dword [ebp - 0xc], eax
jne 0x40829a
mov dword [ebp - 8], ebx
xor edi, edi
cmp byte [esi + 0x2e11], bl
jne 0x4082fe
mov ecx, dword [ebp - 4]
call fcn.0040bd9b
mov edi, eax
cmp edi, ebx
je 0x4082fe
mov ecx, dword [ebp - 4]
push str.JInstallOptionIfSilent
push str.JOptional
call fcn.00407afd
cmp eax, 1
jne 0x4082cb
xor edi, edi
cmp edi, ebx
je 0x4082fe
cmp eax, 2
jne 0x4082fe
cmp dword [esi + 0x14b4], ebx
jne 0x4082fe
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
and eax, 0x673
dec eax
push eax
push 0x4279a0
push 0x671
call fcn.004079c2
mov edi, eax
cmp dword [ebp - 8], ebx
je 0x408340
cmp edi, ebx
jne 0x40833b
cmp dword [ebp - 0xc], 2
jne 0x40833b
cmp dword [esi + 0x14b4], ebx
jne 0x40833b
cmp byte [esi + 0x2e11], bl
push 0xffffffffffffffff
je 0x408326
push 0x42799c
jmp 0x40832b
push 0x4279a0
mov ecx, dword [ebp - 4]
push 0x66e
call fcn.004079c2
mov dword [ebp - 8], eax
cmp dword [ebp - 8], ebx
jne 0x408344
cmp edi, ebx
je 0x40839a
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 4]
push eax
push edi
push dword [ebp - 8]
lea eax, [ebp - 0x118]
mov dword [ebp - 0x14], ebx
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call fcn.00407d49
test eax, eax
jne 0x40836f
call fcn.00406465
jmp 0x408396
cmp dword [ebp - 0xc], ebx
je 0x40837a
cmp dword [ebp - 0xc], 2
jne 0x40837d
push 1
pop ebx
push ebx
mov ecx, dword [ebp - 4]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 0x14]
call fcn.004080c5
test eax, eax
jne 0x40839a
xor eax, eax
jmp 0x40839d
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x409f3b
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe20
and byte [ebp - 0x20], 0
push ebx
push esi
push edi
mov ebx, ecx
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1f]
and byte [ebp - 0x620], 0
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
push 0x7f
xor eax, eax
pop ecx
lea edi, [ebp - 0x61f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x20]
push eax
push str.Msi.DLL
call fcn.004119d9
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call fcn.00412282
add esp, 0x14
test eax, eax
jge 0x40a128
mov ecx, ebx
call fcn.00401046
mov edi, eax
mov ecx, edi
call fcn.0040f3a5
mov ecx, ebx
mov esi, eax
call fcn.00409d01
test eax, eax
je 0x40a05a
cmp dword [esi], 2
jne 0x40a053
call fcn.00412537
test eax, eax
jne 0x409fe6
mov eax, 0x4b2
push eax
mov dword [0x42ea5c], eax
call fcn.00411810
pop ecx
push 1
jmp 0x40a12a
and byte [ebp - 0x420], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x41f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x420]
mov esi, 0x400
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x40a028
lea eax, [ebp - 0x420]
mov ecx, ebx
push eax
call fcn.00409a0f
test eax, eax
je 0x40a04c
lea eax, [ebp - 0x420]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x40a053
lea eax, [ebp - 0x420]
mov ecx, ebx
push eax
call fcn.00409a0f
test eax, eax
jne 0x40a053
push 2
jmp 0x40a12a
xor eax, eax
jmp 0x40a12b
cmp dword [esi + 0x14], 2
jne 0x40a074
cmp dword [esi + 8], 4
jne 0x40a074
mov ecx, edi
call fcn.00410890
push 3
jmp 0x40a12a
mov esi, 0x400
push 0x42db88
lea eax, [ebp - 0xe20]
push esi
push eax
push 0x42bab0
push dword [0x4235c0]
push dword [0x4235b8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0xe20], 0x79
je 0x40a123
cmp byte [ebp - 0xe20], 0x59
je 0x40a123
and byte [ebp - 0x420], 0
mov ebx, 0xff
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x41f]
mov edx, 0x4b7
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x420]
push esi
push eax
push edx
mov dword [0x42ea5c], edx
call fcn.004118f0
and byte [ebp - 0xa20], 0
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0xa1f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 0xc
stosb byte es:[edi], al
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0xa20]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0xa20]
push eax
call fcn.004116b8
add esp, 0x10
or eax, 0xffffffff
jmp 0x40a12b
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40a132
Capabilities:
Query or enumerate registry value
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
push edi
mov edx, ecx
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
mov byte [ebp - 0x108], bl
mov esi, dword [ebp + 0xc]
mov byte [ebp + 0xf], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
mov dword [esi], ebx
stosb byte es:[edi], al
call fcn.00401046
add eax, 0xac
push eax
push str.2.0.2600.0
call fcn.00412282
pop ecx
test eax, eax
pop ecx
jge 0x40a187
push dword [ebp + 8]
push str.__s___q
jmp 0x40a193
push dword [ebp + 8]
mov byte [ebp + 0xf], 1
push str.__s___c:_msiinst__delayrebootq_
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x108]
push 1
push eax
call fcn.00412312
mov edi, eax
cmp edi, ebx
je 0x40a265
cmp edi, 0xbc2
je 0x40a1dd
push ebx
push edi
mov dword [0x42ea5c], 0x484
call fcn.0041172a
pop ecx
mov eax, edi
pop ecx
jmp 0x40a267
cmp byte [ebp + 0xf], bl
je 0x40a25f
push 0x20019
push str.SoftwareMicrosoftWindowsCurrentVersionInstaller
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp + 8]
mov dword [esi], 2
mov dword [ebp + 8], ebx
call fcn.0040637c
test eax, eax
jne 0x40a24f
push 0x40
lea edi, [ebp - 0x20b]
pop ecx
mov byte [ebp - 0x20c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push str.InstallerLocation
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp dword [ebp + 8], ebx
je 0x40a265
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40a265
mov dword [esi], 1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40a26e
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x421b60
call fcn.004175d4
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
call fcn.00401046
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, 0x42db88
xor ebx, ebx
push esi
push ebx
push str.ScriptDriven
push dword [0x4235b8]
call edi
sub eax, ebx
je 0x40a2ac
dec eax
je 0x40a2c2
dec eax
je 0x40a2cc
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x38]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x10], 1
cmp byte [ebp + 8], bl
je 0x40a2f2
push esi
push ebx
push dword [0x4235e8]
push dword [0x4235f8]
call edi
cmp eax, 2
je 0x40a2f7
mov ecx, dword [ebp - 0x18]
call fcn.0040b3ea
test al, al
je 0x40a2f7
push 1
pop eax
jmp 0x40a2ae
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 4], ebx
mov dword [ebp + 8], ebx
push ebx
push ebx
lea eax, [ebp + 8]
push ebx
push eax
push 0x427a18
push 0x423a58
call fcn.00404edd
test eax, eax
jge 0x40a336
mov eax, dword [ebp + 8]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x40a32e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 1
pop ebx
jmp 0x40a435
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x10]
push edx
push 0x427ca8
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 2
call dword [ecx]
cmp eax, ebx
jl 0x40a3f4
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
push edx
push eax
mov ecx, dword [eax]
mov byte [ebp - 4], 3
call dword [ecx + 0x1c]
test eax, eax
jge 0x40a373
push dword [ebp - 0x14]
jmp 0x40a3ee
xor eax, eax
lea edi, [ebp - 0x2b]
mov byte [ebp - 0x2c], bl
push esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x2c]
push 0x14
push eax
push 0x42bab0
push dword [0x4235e4]
push dword [0x4235b8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 0x14]
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x40a3ae
xor edi, edi
jmp 0x40a3da
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and al, 0xfc
call fcn.004176d0
mov edi, esp
push ebx
push ebx
push esi
push edi
push 0xffffffffffffffff
push dword [ebp - 0x18]
mov byte [edi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x2c]
push eax
push edi
call fcn.00412282
pop ecx
cmp eax, 1
pop ecx
push dword [ebp - 0x14]
jne 0x40a40e
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x40a31e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40a31e
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x40a425
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 8]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x40a435
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
jmp 0x40a2ae
Function at 0x40a517
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
call fcn.00401046
mov dword [ebp - 8], eax
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x407]
mov byte [ebp - 0x408], bl
rep stosd dword es:[edi], eax
mov esi, dword [ebp + 0x18]
cmp dword [ebp + 0x14], ebx
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [esi], 2
je 0x40a56a
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x408]
push edi
push eax
call fcn.00417050
pop ecx
pop ecx
jmp 0x40a5a4
mov edi, 0x42db88
push edi
push ebx
push dword [0x4235e8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [esi], eax
push edi
lea eax, [ebp - 0x408]
push 0x400
push eax
push dword [ebp + 8]
push dword [0x4235ec]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, dword [ebp + 0x10]
mov esi, dword [esi]
sub esi, ebx
je 0x40a67a
dec esi
je 0x40a661
dec esi
je 0x40a649
dec esi
je 0x40a5f1
dec esi
jne 0x40a62f
push dword [ebp + 8]
push 0x42bab4
push edi
call fcn.00412012
push edi
call fcn.00412174
test eax, eax
jne 0x40a62f
mov eax, 0x483
push edi
push eax
mov dword [0x42ea5c], eax
call fcn.00411810
pop ecx
pop ecx
xor eax, eax
jmp 0x40a632
mov esi, dword [ebp - 4]
push ebx
mov ecx, esi
call fcn.0040a26e
cmp dword [esi + 0x10], ebx
je 0x40a639
push 1
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x408]
mov ecx, esi
push eax
call fcn.0040a6e1
test eax, eax
je 0x40a5ed
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x408]
push 1
push eax
push str._URL
call fcn.004102a1
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x18
lea eax, [ebp - 0x408]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40a62f
push dword [ebp + 0x1c]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x408]
push edi
push dword [ebp + 8]
push eax
call fcn.0040a6e1
jmp 0x40a671
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x408]
push edi
push eax
call fcn.0040a68b
test eax, eax
jne 0x40a62f
jmp 0x40a5ed
lea eax, [ebp - 0x408]
push eax
push 0x42e65c
jmp 0x40a5ca
Function at 0x40b3ea
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
push ebx
push esi
push edi
push str.31EE4FE8_7F9C_11D5_ABB8_00B0D02332EB
lea eax, [ebp - 0x80c]
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_s
push eax
xor ebx, ebx
xor edi, edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 8]
mov esi, reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push 0xf003f
push ebx
push ebx
lea eax, [ebp - 0x80c]
push ebx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40b456
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 0x80c]
push eax
push esi
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 8], ebx
sete byte [ebp - 1]
cmp edi, ebx
je 0x40b468
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b76d
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x421c46
call fcn.004175d4
sub esp, 0x18c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x12]
mov ebx, 0x423650
mov esi, 0x423648
push edi
push eax
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], 1
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x4c], esi
call fcn.0040c3e9
push dword [ebp + 0xc]
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 2
push eax
call fcn.0040b974
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0040cb3b
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], edi
push ecx
push 0x20019
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x40b7f6
lea ecx, [ebp - 0x10]
call fcn.004052a8
mov ecx, dword [ebp + 0xc]
cmp eax, edi
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
sete byte [ebp + 0xf]
call fcn.00407ccf
cmp byte [ebp + 0xf], 0
je 0x40b92c
and byte [ebp - 0x198], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x197]
and dword [ebp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x104
push eax
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp + 0xc]
push eax
push 0
push str.Version
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40b876
mov edi, dword [ebp + 8]
lea eax, [ebp + 0xf]
push 0
push eax
mov ecx, edi
mov dword [edi], ebx
mov dword [edi + 0x20], esi
call fcn.0040c3e9
mov dword [ebp - 0x18], 1
jmp 0x40b948
lea eax, [ebp + 0xf]
push 1
push eax
lea eax, [ebp - 0x198]
push eax
lea ecx, [ebp - 0x44]
call fcn.0040c0e9
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x6c]
push eax
mov byte [ebp - 4], 4
call fcn.0040bbe0
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.00407ccf
mov eax, 0x427e54
mov dword [ebp - 0x44], ebx
mov ecx, eax
mov dword [ebp - 0x24], esi
test ecx, ecx
mov edi, 0x42e5c4
jne 0x40b8bf
mov eax, edi
lea ecx, [ebp + 0xf]
push 0
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.0040c4f1
mov eax, 0x427e50
mov byte [ebp - 4], 5
mov ecx, eax
mov dword [ebp - 0x94], ebx
test ecx, ecx
mov dword [ebp - 0x74], esi
jne 0x40b8e8
mov eax, edi
lea ecx, [ebp - 0x11]
push 0
push ecx
push eax
lea ecx, [ebp - 0x94]
call fcn.0040c4f1
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], 6
call fcn.0040c270
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 5
call fcn.00407ccf
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.00407ccf
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x6c]
push 0
push eax
mov ecx, edi
mov dword [edi], ebx
mov dword [edi + 0x20], esi
call fcn.0040c45e
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.00407ccf
cmp dword [ebp - 0x10], 0
je 0x40b963
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret