joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4052e8
Capabilities:
Delete file
Get common file path
Read .ini file

Disassembly:
mov eax, 0x41b283
call fcn.00411bc4
sub esp, 0x730
push esi
lea eax, [ebp - 0x33c]
push edi
mov esi, 0x104
push eax
mov edi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x110]
push eax
push 0
lea eax, [ebp - 0x33c]
push 0x4203bc
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x73c]
push 0x400
push eax
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x73c]
lea ecx, [ebp - 0x238]
push eax
call fcn.0040b86c
and dword [ebp - 4], 0
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x238]
push dword [0x420a08]
call fcn.0040bae3
lea eax, [ebp - 0x110]
add edi, 4
push eax
push esi
push edi
push 0x424180
push str.PASSWORD
push 0x4203ac
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.0040b9aa
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x4053b8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SoftwareInstallShieldISWI7.0SetupExeLog
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40540f
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push 0x424e2c
push 0
push 0
push str.SetupLogFileName
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405406
mov byte [0x424f30], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x4054f6
Capabilities:
Hide graphical window

Disassembly:
push dword [0x424f4c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x405522
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [0x424f4c]
call esi
push 0
push dword [0x424f40]
call esi
pop esi
ret
Function at 0x405523
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x2c]
push edi
push eax
push dword [0x424f4c]
call esi
lea eax, [ebp - 0x6c]
xor ebx, ebx
push eax
push ebx
call esi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
call edi
push eax
push ebx
call edi
push eax
push ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
sub eax, dword [ebp - 0x2c]
mov dword [ebp - 4], 0x1e
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
call fcn.0040a26d
cmp dword [eax], 1
je 0x40558d
cmp dword [eax + 4], ebx
je 0x4055e2
push ebx
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4055e2
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 0x46
push eax
push edi
call esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
lea esi, [ebp - 0x1c]
lea edi, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x1c]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_SubtractRect]
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x18]
sub esi, ebx
mov ecx, dword [ebp - 0x14]
mov eax, esi
mov edi, dword [ebp - 0x1c]
cdq
idiv dword [ebp - 4]
sub ecx, edi
push 5
push 0
push 0
sub ebx, eax
mov eax, ecx
cdq
idiv dword [ebp - 4]
sub ebx, dword [ebp - 8]
add ebx, esi
push ebx
sub edi, eax
sub edi, dword [ebp - 0xc]
add edi, ecx
push edi
push 0
push dword [0x424f4c]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405bb0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.004065fc
test eax, eax
pop ecx
jne 0x405d0d
mov esi, 0x425580
push esi
call fcn.00406693
test eax, eax
pop ecx
jne 0x405d0d
mov eax, dword [ebp + 0x20]
mov ecx, dword [0x425580]
push 0x425574
mov dword [eax], ecx
call fcn.0040664c
test eax, eax
pop ecx
jne 0x405d0d
mov ebx, dword [ebp + 0x1c]
mov eax, dword [0x425574]
mov dword [ebx], eax
cmp dword [0x425580], 1
jne 0x405c13
xor eax, eax
jmp 0x405d0d
lea eax, [ebp + 8]
push eax
push 0x425578
call fcn.00405b9c
test eax, eax
jne 0x405d0d
mov eax, dword [0x425580]
shl eax, 2
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [0x425584], eax
jne 0x405c52
push 0xfffffffffffffffc
pop eax
jmp 0x405d0d
push esi
call fcn.004066bb
mov edi, eax
pop ecx
test edi, edi
je 0x405c88
push dword [0x425584]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [0x425584]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x405d0b
movzx eax, word [ebp + 0x18]
push eax
mov dword [0x425570], ebx
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_LoadIconA]
push 0
mov dword [0x425364], eax
movzx eax, word [ebp + 0x14]
push 0x405ead
push dword [ebp + 0xc]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov edi, eax
mov eax, dword [0x425364]
test eax, eax
je 0x405ccb
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
cmp edi, 1
jne 0x405cd4
xor edi, edi
jmp 0x405cdc
cmp edi, 2
jne 0x405cdc
or edi, 0xffffffff
mov eax, dword [0x425584]
test eax, eax
je 0x405d04
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [0x425584]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebx]
mov dword [0x425574], eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x406162
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3ee
push dword [ebp + 8]
call edi
mov esi, eax
test esi, esi
mov dword [ebp - 8], esi
je 0x4062e9
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextLengthA]
push esi
call ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 0xd0]
push 0x7f
push eax
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowTextA]
call esi
push 0x3ef
push dword [ebp + 8]
call edi
mov edi, eax
test edi, edi
mov dword [ebp - 0x10], edi
je 0x4062e9
push edi
call ebx
cmp dword [ebp - 4], eax
jge 0x4061d4
lea eax, [ebp - 0xd0]
push 0x7f
push eax
push edi
call esi
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
test esi, esi
je 0x4062e9
lea eax, [ebp - 0xd0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0xd0]
push eax
push esi
call fcn.004067ff
push 1
push 0x420430
push esi
mov edi, eax
call fcn.004067ff
push esi
push dword [ebp - 8]
movzx ebx, ax
call dword [sym.imp.USER32.dll_ReleaseDC]
and dword [ebp + 8], 0
movzx esi, di
add esi, ebx
shr edi, 0x10
test esi, esi
mov dword [ebp - 0x14], edi
je 0x4062e9
test edi, edi
je 0x4062e9
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
sub eax, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x20]
cmp eax, esi
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
jge 0x406273
mov edi, esi
push 1
sub edi, eax
add edi, ebx
add esi, ebx
pop ebx
mov dword [ebp - 4], esi
mov dword [ebp + 8], ebx
jmp 0x406279
mov edi, dword [ebp + 8]
push 1
pop ebx
mov eax, dword [ebp - 0x14]
cmp ecx, eax
jge 0x406289
add eax, 4
mov dword [ebp + 8], ebx
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
je 0x4062e9
mov esi, dword [sym.imp.USER32.dll_GetWindowPlacement]
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x50], 0x2c
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp - 0x34]
push ebx
push dword [ebp - 0xc]
mov ebx, dword [sym.imp.USER32.dll_MoveWindow]
sub eax, edi
push dword [ebp - 4]
push dword [ebp - 0x30]
push eax
push dword [ebp - 0x10]
call ebx
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0x2c
push eax
push dword [ebp - 8]
call esi
mov ecx, dword [ebp - 0x34]
push 1
push dword [ebp - 0xc]
lea eax, [edi + edi]
sub ecx, eax
push dword [ebp - 4]
push dword [ebp - 0x30]
push ecx
push dword [ebp - 8]
call ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40664c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x42546c
lea eax, [ebp - 0x14]
push 0x13
push eax
push 0x424180
push str.Default
push str.Languages
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x40667b
push 0xfffffffffffffffa
pop eax
leave
ret
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push 0x420448
push eax
call fcn.00412730
add esp, 0xc
xor eax, eax
leave
ret
Function at 0x406693
Capabilities:
Read .ini file

Disassembly:
push 0x42546c
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 0x4066bb
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 0x40673b
push esi
push 0x420388
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 0x42546c
push 0x13
push eax
lea eax, [ebp - 0x94]
push 0x424180
push eax
push str.Languages
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x406738
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push 0x420448
push eax
call fcn.00412730
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 0x4066d2
jmp 0x40673b
push 0xfffffffffffffffa
pop ebx
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x407c81
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.0040c460
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call fcn.0040cc2f
add esp, 0x14
test eax, eax
jge 0x407e79
mov ecx, ebx
call fcn.00401046
mov ecx, eax
call fcn.0040a26d
mov ecx, ebx
mov esi, eax
call fcn.00407a49
test eax, eax
je 0x407d9e
cmp dword [esi], 2
jne 0x407d97
call fcn.0040ceb6
test eax, eax
jne 0x407d2a
mov eax, 0x4b2
push eax
mov dword [0x425e20], eax
call fcn.0040c311
pop ecx
push 1
jmp 0x407e7b
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 0x407d6c
lea eax, [ebp - 0x420]
mov ecx, ebx
push eax
call fcn.00407744
test eax, eax
je 0x407d90
lea eax, [ebp - 0x420]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x407d97
lea eax, [ebp - 0x420]
mov ecx, ebx
push eax
call fcn.00407744
test eax, eax
jne 0x407d97
push 2
jmp 0x407e7b
xor eax, eax
jmp 0x407e7c
cmp dword [esi + 0x14], 2
jne 0x407dc5
cmp dword [esi + 8], 4
jne 0x407dc5
mov eax, 0x47e
push 0
push eax
mov dword [0x425e20], eax
call fcn.0040c311
pop ecx
pop ecx
push 3
jmp 0x407e7b
mov esi, 0x400
push 0x424f58
lea eax, [ebp - 0xe20]
push esi
push eax
push 0x424180
push dword [0x41c554]
push dword [0x41c54c]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0xe20], 0x79
je 0x407e74
cmp byte [ebp - 0xe20], 0x59
je 0x407e74
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 [0x425e20], edx
call fcn.0040c385
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.0040c1b9
add esp, 0x10
or eax, 0xffffffff
jmp 0x407e7c
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x407e83
Capabilities:
Query or enumerate registry value
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x127]
mov byte [ebp - 0x128], bl
push 7
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x23]
mov byte [ebp - 0x24], bl
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
push 0x7f
xor eax, eax
pop ecx
lea edi, [ebp - 0x42b]
mov byte [ebp - 0x42c], bl
mov esi, dword [ebp + 0xc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x42c]
mov dword [esi], ebx
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp + 0xf], bl
push dword [ebp + 8]
call fcn.0040c460
lea eax, [ebp - 0x24]
push eax
push str.11.50.0.0
call fcn.0040cc2f
add esp, 0x14
test eax, eax
jge 0x407f05
push dword [ebp + 8]
push str.__s___q
jmp 0x407f11
push dword [ebp + 8]
mov byte [ebp + 0xf], 1
push str.__s___c:_msiinst__delayrebootq_
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x128]
push 1
push eax
call fcn.0040ccbf
mov edi, eax
cmp edi, ebx
je 0x407fe3
cmp edi, 0xbc2
je 0x407f5b
push ebx
push edi
mov dword [0x425e20], 0x484
call fcn.0040c22b
pop ecx
mov eax, edi
pop ecx
jmp 0x407fe5
cmp byte [ebp + 0xf], bl
je 0x407fdd
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.00406de3
test eax, eax
jne 0x407fcd
push 0x40
lea edi, [ebp - 0x22b]
pop ecx
mov byte [ebp - 0x22c], 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 - 0x22c]
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 - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp dword [ebp + 8], ebx
je 0x407fe3
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x407fe3
mov dword [esi], 1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x407fec
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x41b32c
call fcn.00411bc4
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, 0x424f58
xor ebx, ebx
push esi
push ebx
push str.ScriptDriven
push dword [0x41c54c]
call edi
sub eax, ebx
je 0x40802a
dec eax
je 0x408040
dec eax
je 0x40804a
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 0x408070
push esi
push ebx
push dword [0x41c57c]
push dword [0x41c58c]
call edi
cmp eax, 2
je 0x408075
mov ecx, dword [ebp - 0x18]
call fcn.00408db8
test al, al
je 0x408075
push 1
pop eax
jmp 0x40802c
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 4], ebx
mov dword [ebp + 8], ebx
lea eax, [ebp + 8]
push eax
push 0x4205f8
push 4
push ebx
push 0x41c9d0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x4080b5
mov eax, dword [ebp + 8]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x4080ad
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 1
pop ebx
jmp 0x4081b4
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x10]
push edx
push 0x420880
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 2
call dword [ecx]
cmp eax, ebx
jl 0x408173
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 0x4080f2
push dword [ebp - 0x14]
jmp 0x40816d
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 0x424180
push dword [0x41c578]
push dword [0x41c54c]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 0x14]
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x40812d
xor edi, edi
jmp 0x408159
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.00411da0
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.0040cc2f
pop ecx
cmp eax, 1
pop ecx
push dword [ebp - 0x14]
jne 0x40818d
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x40809d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40809d
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x4081a4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 8]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x4081b4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
jmp 0x40802c
Function at 0x40829a
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
call fcn.00401046
mov dword [ebp - 4], 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 + 0x14]
cmp dword [ebp + 0x10], ebx
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [esi], 2
je 0x4082ed
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x408]
push edi
push eax
call fcn.00411630
pop ecx
pop ecx
jmp 0x408327
mov edi, 0x424f58
push edi
push ebx
push dword [0x41c57c]
push dword [ebp + 8]
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 [0x41c580]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, dword [ebp + 0xc]
mov esi, dword [esi]
sub esi, ebx
je 0x408409
dec esi
je 0x4083e3
dec esi
je 0x4083ca
dec esi
je 0x408374
dec esi
jne 0x4083b0
push dword [ebp + 8]
push 0x424184
push edi
call fcn.0040c9f5
push edi
call fcn.0040cb2d
test eax, eax
jne 0x4083b0
mov eax, 0x483
push edi
push eax
mov dword [0x425e20], eax
call fcn.0040c311
pop ecx
pop ecx
xor eax, eax
jmp 0x4083b3
mov esi, dword [ebp - 8]
push ebx
mov ecx, esi
call fcn.00407fec
cmp dword [esi + 0x10], ebx
je 0x4083ba
push edi
lea eax, [ebp - 0x408]
push dword [ebp + 8]
mov ecx, esi
push eax
call fcn.0040841a
test eax, eax
je 0x408370
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x408]
push 1
push eax
push str._URL
call fcn.0040acfd
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
lea eax, [ebp - 0x408]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x4083b0
mov ecx, dword [ebp - 8]
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x408]
push eax
call fcn.0040841a
test eax, eax
jne 0x4083b0
jmp 0x408370
mov ecx, dword [ebp - 4]
push ebx
lea eax, [ebp - 0x408]
push 1
push eax
call fcn.0040ab1e
test eax, eax
je 0x408370
lea eax, [ebp - 0x408]
push eax
jmp 0x408348
lea eax, [ebp - 0x408]
push eax
push 0x425a1c
jmp 0x40834d
Function at 0x408db8
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 0x408e24
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 0x408e36
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408e3e
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x41b37c
call fcn.00411bc4
sub esp, 0x848
and byte [ebp - 0x854], 0
push ebx
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x853]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x424f58
lea eax, [ebp - 0x854]
push 0x400
mov ebx, 0x424180
push eax
push ebx
push str.DotNetVersion
push dword [0x41c54c]
call esi
cmp byte [ebp - 0x854], 0
jne 0x408ea4
xor eax, eax
jmp 0x409018
cmp dword [0x425e24], 0
jne 0x408ef5
and byte [ebp - 0x150], 0
push 0x1f
pop ecx
xor eax, eax
lea edi, [ebp - 0x14f]
push 0x424f58
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x150]
push 0x80
push eax
push ebx
push str.UseDotNetUI
push dword [0x41c54c]
call esi
cmp byte [ebp - 0x150], 0x59
je 0x408f00
cmp byte [ebp - 0x150], 0x79
je 0x408f00
mov eax, dword [ebp + 8]
mov dword [eax], 1
jmp 0x408f06
mov eax, dword [ebp + 8]
and dword [eax], 0
and byte [ebp - 0xd0], 0
push 0x1f
pop ecx
xor eax, eax
lea edi, [ebp - 0xcf]
push 0x424f58
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xd0]
push 0x80
push eax
push ebx
push str.DotNetGuid
push dword [0x41c54c]
call esi
cmp byte [ebp - 0xd0], 0
je 0x408fab
and byte [ebp - 0x254], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x253]
push str.msi.dll
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
mov dword [ebp + 8], esi
and dword [ebp - 4], 0
push str.MsiLocateComponentA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x408fa0
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x254]
push ecx
lea ecx, [ebp - 0xd0]
push ecx
call eax
cmp eax, 3
je 0x408fb0
test esi, esi
je 0x408fab
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 1
pop eax
jmp 0x409018
and byte [ebp - 0x50], 0
push 0xf
pop ecx
xor eax, eax
lea edi, [ebp - 0x4f]
and byte [ebp - 0x454], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x7f
xor eax, eax
pop ecx
lea edi, [ebp - 0x453]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.0040c460
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x854]
push eax
call fcn.0040cc2f
add esp, 0x14
xor ecx, ecx
test eax, eax
setl cl
test esi, esi
mov edi, ecx
je 0x409016
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4