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

Disassembly:
mov eax, 0x41ed80
call fcn.00414b54
sub esp, 0x5a4
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [eax], ebx
push edi
cmp byte [edi], 0x30
jne 0x4055f9
mov esi, dword [sym.imp.USER32.dll_CharNextA]
call esi
mov cl, byte [eax]
cmp cl, 0x78
je 0x405638
cmp cl, 0x58
je 0x405638
push edi
call fcn.00414770
pop ecx
mov dword [ebp + 8], eax
push dword [ebp + 0x10]
lea ecx, [ebp - 0x18]
push 0x452
call fcn.00401754
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.00401797
test eax, eax
je 0x405701
mov ecx, dword [ebp + 0x10]
call fcn.0040d944
test eax, eax
je 0x405643
push 0x428774
jmp 0x40564c
push eax
call esi
push eax
call fcn.0040557e
jmp 0x4055fe
mov ecx, dword [ebp + 0x10]
call fcn.0040d041
push eax
lea eax, [ebp - 0x1b0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
and byte [ebp - 0x5b0], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x5af]
rep stosd dword es:[edi], eax
push dword [0x424f48]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1b0]
push eax
lea eax, [ebp - 0x5b0]
push eax
call fcn.0040f821
lea eax, [ebp - 0x5b0]
mov esi, str.Languages
push eax
push ebx
push str.Count
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ebx, eax
xor edi, edi
test ebx, ebx
jbe 0x405701
push edi
push 0x4244f0
lea eax, [ebp - 0xac]
push str._s_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x5b0]
push eax
lea eax, [ebp - 0x2c]
push 0x13
push eax
lea eax, [ebp - 0xac]
push 0x428770
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x405701
lea eax, [ebp - 0x2c]
push eax
call fcn.0040557e
pop ecx
mov ecx, dword [ebp + 8]
cmp ecx, eax
je 0x405720
inc edi
cmp edi, ebx
jb 0x4056ac
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040178c
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
mov eax, dword [ebp + 0xc]
push 1
pop esi
mov dword [eax], ecx
jmp 0x405703
Function at 0x405a81
Capabilities:
Delete file
Get common file path
Read .ini file

Disassembly:
mov eax, 0x41edb3
call fcn.00414b54
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 0x424538
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.0040e61f
and dword [ebp - 4], 0
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x238]
push dword [0x424f48]
call fcn.0040e87a
test eax, eax
je 0x405b38
lea eax, [ebp - 0x110]
add edi, 4
push eax
push esi
push edi
push 0x428770
push str.PASSWORD
push 0x424528
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.0040e75d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x405b55
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 0x405bac
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push 0x42941c
push 0
push 0
push str.SetupLogFileName
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405ba3
mov byte [0x42a41c], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x405cd1
Capabilities:
Hide graphical window

Disassembly:
push dword [0x42a438]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x405cfd
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [0x42a438]
call esi
push 0
push dword [0x42a42c]
call esi
pop esi
ret
Function at 0x405cfe
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 [0x42a438]
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.0040cff0
cmp dword [eax], 1
je 0x405d68
cmp dword [eax + 4], ebx
je 0x405dbd
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 0x405dbd
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 [0x42a438]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4063b4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.00406e05
test eax, eax
pop ecx
jne 0x406511
mov esi, 0x42aa70
push esi
call fcn.00406e9c
test eax, eax
pop ecx
jne 0x406511
mov eax, dword [ebp + 0x20]
mov ecx, dword [0x42aa70]
push 0x42aa64
mov dword [eax], ecx
call fcn.00406e55
test eax, eax
pop ecx
jne 0x406511
mov ebx, dword [ebp + 0x1c]
mov eax, dword [0x42aa64]
mov dword [ebx], eax
cmp dword [0x42aa70], 1
jne 0x406417
xor eax, eax
jmp 0x406511
lea eax, [ebp + 8]
push eax
push 0x42aa68
call fcn.004063a0
test eax, eax
jne 0x406511
mov eax, dword [0x42aa70]
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 [0x42aa74], eax
jne 0x406456
push 0xfffffffffffffffc
pop eax
jmp 0x406511
push esi
call fcn.00406ec4
mov edi, eax
pop ecx
test edi, edi
je 0x40648c
push dword [0x42aa74]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [0x42aa74]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x40650f
movzx eax, word [ebp + 0x18]
push eax
mov dword [0x42aa60], ebx
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_LoadIconA]
push 0
mov dword [0x42a854], eax
movzx eax, word [ebp + 0x14]
push 0x4066b1
push dword [ebp + 0xc]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov edi, eax
mov eax, dword [0x42a854]
test eax, eax
je 0x4064cf
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
cmp edi, 1
jne 0x4064d8
xor edi, edi
jmp 0x4064e0
cmp edi, 2
jne 0x4064e0
or edi, 0xffffffff
mov eax, dword [0x42aa74]
test eax, eax
je 0x406508
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [0x42aa74]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebx]
mov dword [0x42aa64], eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x406966
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 0x406aed
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 0x406aed
push edi
call ebx
cmp dword [ebp - 4], eax
jge 0x4069d8
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 0x406aed
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.00407008
push 1
push 0x4245ac
push esi
mov edi, eax
call fcn.00407008
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 0x406aed
test edi, edi
je 0x406aed
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 0x406a77
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 0x406a7d
mov edi, dword [ebp + 8]
push 1
pop ebx
mov eax, dword [ebp - 0x14]
cmp ecx, eax
jge 0x406a8d
add eax, 4
mov dword [ebp + 8], ebx
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
je 0x406aed
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 0x406e55
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x42a95c
lea eax, [ebp - 0x14]
push 0x13
push eax
push 0x428770
push str.Default
push str.Languages
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x406e84
push 0xfffffffffffffffa
pop eax
leave
ret
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push 0x4245c4
push eax
call fcn.004156c0
add esp, 0xc
xor eax, eax
leave
ret
Function at 0x406e9c
Capabilities:
Read .ini file

Disassembly:
push 0x42a95c
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 0x406ec4
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 0x406f44
push esi
push 0x4244f0
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 0x42a95c
push 0x13
push eax
lea eax, [ebp - 0x94]
push 0x428770
push eax
push str.Languages
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x406f41
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push 0x4245c4
push eax
call fcn.004156c0
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 0x406edb
jmp 0x406f44
push 0xfffffffffffffffa
pop ebx
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x40941c
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.0040f27a
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call fcn.0040fa67
add esp, 0x14
test eax, eax
jge 0x409609
mov ecx, ebx
call fcn.00401046
mov edi, eax
mov ecx, edi
call fcn.0040cff0
mov ecx, ebx
mov esi, eax
call fcn.004091e4
test eax, eax
je 0x40953b
cmp dword [esi], 2
jne 0x409534
call fcn.0040fd1c
test eax, eax
jne 0x4094c7
mov eax, 0x4b2
push eax
mov dword [0x42b314], eax
call fcn.0040f0b1
pop ecx
push 1
jmp 0x40960b
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 0x409509
lea eax, [ebp - 0x420]
mov ecx, ebx
push eax
call fcn.00408edf
test eax, eax
je 0x40952d
lea eax, [ebp - 0x420]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x409534
lea eax, [ebp - 0x420]
mov ecx, ebx
push eax
call fcn.00408edf
test eax, eax
jne 0x409534
push 2
jmp 0x40960b
xor eax, eax
jmp 0x40960c
cmp dword [esi + 0x14], 2
jne 0x409555
cmp dword [esi + 8], 4
jne 0x409555
mov ecx, edi
call fcn.0040e34e
push 3
jmp 0x40960b
mov esi, 0x400
push 0x42a448
lea eax, [ebp - 0xe20]
push esi
push eax
push 0x428770
push dword [0x42057c]
push dword [0x420574]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0xe20], 0x79
je 0x409604
cmp byte [ebp - 0xe20], 0x59
je 0x409604
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 [0x42b314], edx
call fcn.0040f191
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.0040ef59
add esp, 0x10
or eax, 0xffffffff
jmp 0x40960c
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x409613
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, 0x78
push eax
push str.2.0.2600.0
call fcn.0040fa67
pop ecx
test eax, eax
pop ecx
jge 0x409666
push dword [ebp + 8]
push str.__s___q
jmp 0x409672
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.0040faf7
mov edi, eax
cmp edi, ebx
je 0x409744
cmp edi, 0xbc2
je 0x4096bc
push ebx
push edi
mov dword [0x42b314], 0x484
call fcn.0040efcb
pop ecx
mov eax, edi
pop ecx
jmp 0x409746
cmp byte [ebp + 0xf], bl
je 0x40973e
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.00405bae
test eax, eax
jne 0x40972e
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 0x409744
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x409744
mov dword [esi], 1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40974d
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x41efbc
call fcn.00414b54
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, 0x42a448
xor ebx, ebx
push esi
push ebx
push str.ScriptDriven
push dword [0x420574]
call edi
sub eax, ebx
je 0x40978b
dec eax
je 0x4097a1
dec eax
je 0x4097ab
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 0x4097d1
push esi
push ebx
push dword [0x4205a4]
push dword [0x4205b4]
call edi
cmp eax, 2
je 0x4097d6
mov ecx, dword [ebp - 0x18]
call fcn.0040a83b
test al, al
je 0x4097d6
push 1
pop eax
jmp 0x40978d
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 4], ebx
mov dword [ebp + 8], ebx
push ebx
lea eax, [ebp + 8]
push ebx
push eax
push 0x424ac0
push 0x420a08
call fcn.004046e6
test eax, eax
jge 0x409814
mov eax, dword [ebp + 8]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x40980c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 1
pop ebx
jmp 0x409913
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x10]
push edx
push 0x424d50
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 2
call dword [ecx]
cmp eax, ebx
jl 0x4098d2
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 0x409851
push dword [ebp - 0x14]
jmp 0x4098cc
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 0x428770
push dword [0x4205a0]
push dword [0x420574]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 0x14]
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x40988c
xor edi, edi
jmp 0x4098b8
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.00414d30
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.0040fa67
pop ecx
cmp eax, 1
pop ecx
push dword [ebp - 0x14]
jne 0x4098ec
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x4097fc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4097fc
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x409903
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 8]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x409913
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
jmp 0x40978d
Function at 0x4099f5
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 + 0x14]
cmp dword [ebp + 0x10], ebx
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [esi], 2
je 0x409a48
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x408]
push edi
push eax
call fcn.004145c0
pop ecx
pop ecx
jmp 0x409a82
mov edi, 0x42a448
push edi
push ebx
push dword [0x4205a4]
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 [0x4205a8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, dword [ebp + 0xc]
mov esi, dword [esi]
sub esi, ebx
je 0x409b58
dec esi
je 0x409b3f
dec esi
je 0x409b27
dec esi
je 0x409acf
dec esi
jne 0x409b0d
push dword [ebp + 8]
push 0x428774
push edi
call fcn.0040f821
push edi
call fcn.0040f959
test eax, eax
jne 0x409b0d
mov eax, 0x483
push edi
push eax
mov dword [0x42b314], eax
call fcn.0040f0b1
pop ecx
pop ecx
xor eax, eax
jmp 0x409b10
mov esi, dword [ebp - 4]
push ebx
mov ecx, esi
call fcn.0040974d
cmp dword [esi + 0x10], ebx
je 0x409b17
push 1
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x408]
mov ecx, esi
push eax
call fcn.00409bbf
test eax, eax
je 0x409acb
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x408]
push 1
push eax
push str._URL
call fcn.0040dd5f
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x14
lea eax, [ebp - 0x408]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x409b0d
push dword [ebp + 0x18]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x408]
push edi
push dword [ebp + 8]
push eax
call fcn.00409bbf
jmp 0x409b4f
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x408]
push edi
push eax
call fcn.00409b69
test eax, eax
jne 0x409b0d
jmp 0x409acb
lea eax, [ebp - 0x408]
push eax
push 0x42af14
jmp 0x409aa8
Function at 0x40a83b
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 0x40a8a7
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 0x40a8b9
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret