joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40340c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x403418
mov eax, 0x42b480
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40342c
test al, 0x10
jne 0x40342c
push 1
pop eax
ret
xor eax, eax
ret

Function at 0x403ad0
Capabilities:
Get file size

Disassembly:
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x403adc
mov eax, 0x42b480
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
ja 0x403b15
cmp esi, 0xffffffff
je 0x403b11
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x403b29
mov ecx, dword [esp + 8]
cmp esi, 0xffffffff
mov dword [ecx], eax
je 0x403b27
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
ret 4

Function at 0x404ae3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
cmp byte [0x43528c], 0
push ebx
push esi
push edi
mov edi, ecx
jne 0x404c73
call fcn.00401046
mov esi, eax
mov ecx, esi
call fcn.00414579
push 1
mov ecx, esi
mov ebx, eax
call fcn.0041455e
mov ecx, esi
call fcn.00414557
push eax
mov ecx, esi
call fcn.00414430
mov ecx, ebx
call fcn.00416cbe
push eax
mov ecx, esi
call fcn.00414519
lea eax, [ebp - 0x800]
push 0x400
push eax
mov ecx, edi
call fcn.00404c7b
test eax, eax
jne 0x404b6f
mov edi, 0x47f
mov ecx, esi
mov dword [0x437e3c], edi
call fcn.00414526
shr eax, 0xa
push eax
push edi
call fcn.0041751b
pop ecx
pop ecx
jmp 0x404c68
lea eax, [ebp - 0x400]
xor ebx, ebx
push eax
push ebx
lea eax, [ebp - 0x800]
push 0x4301e4
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x400]
push eax
call fcn.00418075
lea eax, [ebp - 0x400]
push 0x2e
push eax
call fcn.0041ec50
and byte [eax], bl
pop ecx
pop ecx
lea eax, [ebp - 0x400]
push eax
call fcn.0041801e
test eax, eax
jne 0x404bc5
lea eax, [ebp - 0x400]
push eax
call fcn.00417f74
lea eax, [ebp - 0x400]
push eax
push str.C:_temp_is1B
call fcn.0041dbb0
pop ecx
pop ecx
push dword [0x4313c8]
mov ecx, edi
call fcn.00401046
mov ecx, eax
call fcn.0041510f
test eax, eax
jne 0x404bfb
push 2
mov ecx, esi
call fcn.0041455e
jmp 0x404c06
mov ecx, esi
call fcn.00415123
test eax, eax
je 0x404c68
push dword [0x4313dc]
mov ecx, edi
call fcn.00401046
mov ecx, eax
call fcn.0041510f
test eax, eax
je 0x404c38
push 1
push ebx
push ebx
push 1
push dword [0x4313dc]
mov ecx, edi
call fcn.00401046
mov ecx, eax
call fcn.00415434
mov ecx, edi
call fcn.00404d3c
test eax, eax
jne 0x404c54
mov eax, 0x481
push ebx
mov dword [0x437e3c], eax
push eax
jmp 0x404b63
cmp dword [esi + 0x14bc], 5
jne 0x404c6c
mov ecx, esi
call fcn.0041538e
test eax, eax
jne 0x404c6c
xor eax, eax
jmp 0x404c76
mov byte [0x43528c], 1
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404c7b
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
call fcn.00401046
mov ecx, eax
call fcn.00414526
mov edi, dword [esp + 0x10]
mov esi, eax
push edi
push dword [esp + 0x18]
shr esi, 0xa
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x404cbc
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push edi
mov ecx, ebx
call fcn.00404d11
test eax, eax
jne 0x404d08
push dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jle 0x404cd8
push esi
push edi
mov ecx, ebx
call fcn.00404d11
test eax, eax
jne 0x404d08
push 0x434e70
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push esi
push 3
call fcn.00417bb1
add esp, 0xc
test eax, eax
jge 0x404d08
push edi
push esi
push 4
call fcn.00417bb1
add esp, 0xc
test eax, eax
jge 0x404d08
xor eax, eax
jmp 0x404d0b
push 1
pop eax
pop edi
pop esi
pop ebx
ret 8
Function at 0x409e18
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 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409e6f
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push 0x435b38
push 0
push 0
push str.SetupLogFileName
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409e66
mov byte [0x436b38], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x409f9d
Capabilities:
Hide graphical window

Disassembly:
push dword [0x436b54]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x409fc9
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [0x436b54]
call esi
push 0
push dword [0x436b48]
call esi
pop esi
ret

Function at 0x409fca
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 [0x436b54]
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.0041437c
cmp dword [eax], 1
je 0x40a034
cmp dword [eax + 4], ebx
je 0x40a089
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 0x40a089
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 [0x436b54]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a70f
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.0040b1b4
test eax, eax
pop ecx
jne 0x40a86c
mov esi, 0x437590
push esi
call fcn.0040b299
test eax, eax
pop ecx
jne 0x40a86c
mov eax, dword [ebp + 0x20]
mov ecx, dword [0x437590]
push 0x437584
mov dword [eax], ecx
call fcn.0040b204
test eax, eax
pop ecx
jne 0x40a86c
mov ebx, dword [ebp + 0x1c]
mov eax, dword [0x437584]
mov dword [ebx], eax
cmp dword [0x437590], 1
jne 0x40a772
xor eax, eax
jmp 0x40a86c
lea eax, [ebp + 8]
push eax
push 0x437588
call fcn.0040a6fb
test eax, eax
jne 0x40a86c
mov eax, dword [0x437590]
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 [0x437594], eax
jne 0x40a7b1
push 0xfffffffffffffffc
pop eax
jmp 0x40a86c
push esi
call fcn.0040b322
mov edi, eax
pop ecx
test edi, edi
je 0x40a7e7
push dword [0x437594]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [0x437594]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x40a86a
movzx eax, word [ebp + 0x18]
push eax
mov dword [0x437580], ebx
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_LoadIconA]
push 0
mov dword [0x437374], eax
movzx eax, word [ebp + 0x14]
push 0x40aa9b
push dword [ebp + 0xc]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov edi, eax
mov eax, dword [0x437374]
test eax, eax
je 0x40a82a
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
cmp edi, 1
jne 0x40a833
xor edi, edi
jmp 0x40a83b
cmp edi, 2
jne 0x40a83b
or edi, 0xffffffff
mov eax, dword [0x437594]
test eax, eax
je 0x40a863
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [0x437594]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebx]
mov dword [0x437584], eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40c107
Capabilities:
Query or enumerate registry value
Set current directory

Disassembly:
mov eax, 0x4296d8
call fcn.0041e1f0
sub esp, 0x118
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 8]
push 1
pop esi
cmp ecx, 0x2000
mov dword [eax], esi
je 0x40c182
cmp ecx, 0xbc2
je 0x40c182
xor ebx, ebx
cmp ecx, 0x800704c7
je 0x40c149
cmp ecx, 0x642
jne 0x40c155
cmp dword [ebp + 0x18], ebx
je 0x40c155
mov dword [eax], ebx
jmp 0x40c27c
cmp ecx, ebx
je 0x40c27c
cmp ecx, 0x1008
je 0x40c27c
mov ecx, dword [ebp - 0x10]
mov dword [0x437e3c], 0x66d
call fcn.004108bf
xor eax, eax
jmp 0x40c27e
push edi
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0x1f]
mov byte [ebp - 0x20], bl
mov ecx, dword [ebp - 0x10]
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 - 0x20]
push 0x10
push eax
push 0x430a64
push str.DotNetDelayReboot
push dword [0x42b5dc]
call fcn.00401046
mov ecx, eax
add ecx, 0x4428
call fcn.00401d30
cmp byte [ebp - 0x20], 0x59
mov byte [ebp + 0x17], bl
je 0x40c1cd
cmp byte [ebp - 0x20], 0x79
jne 0x40c1d1
mov byte [ebp + 0x17], 1
call fcn.004183e2
test eax, eax
jne 0x40c1f3
cmp dword [ebp + 8], 0xbc2
jne 0x40c1e8
cmp byte [ebp + 0x17], bl
je 0x40c1f3
mov eax, dword [ebp + 0xc]
mov dword [eax], 2
jmp 0x40c1fd
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0x18], ebx
mov dword [eax + 0x38], esi
push 0x20019
push str.SoftwareMicrosoftWindowsCurrentVersionInstaller
push 0x80000002
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], ebx
call fcn.00409e71
test eax, eax
jne 0x40c26d
push 0x40
lea edi, [ebp - 0x123]
pop ecx
mov byte [ebp - 0x124], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x104
push eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp + 0xc]
push eax
push ebx
push str.InstallerLocation
mov dword [ebp + 0xc], ebx
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp dword [ebp + 0x18], ebx
pop edi
je 0x40c27c
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14
Function at 0x40cc58
Capabilities:
Delete file
Enumerate files on windows
Get common file path

Disassembly:
mov eax, 0x42973f
call fcn.0041e1f0
sub esp, 0x5c0
and byte [ebp - 0x5cc], 0
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x5cb]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x5cc]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0xf]
push 1
push eax
lea eax, [ebp - 0x5cc]
push eax
lea ecx, [ebp - 0x64]
call fcn.00410a13
and dword [ebp - 4], 0
mov eax, 0x430b10
mov ecx, eax
mov dword [ebp - 0x3c], 0x42b630
test ecx, ecx
mov dword [ebp - 0x1c], 0x42b628
jne 0x40cccc
mov eax, 0x4379a4
lea ecx, [ebp - 0xd]
push 0
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.00410ebb
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x64]
push eax
mov byte [ebp - 4], 1
call fcn.00410ac9
and byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.0040ba41
or edi, 0xffffffff
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x1cc]
lea ecx, [ebp - 0x64]
push eax
mov byte [ebp - 4], 2
call fcn.0041167c
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, edi
je 0x40cdc3
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x1c0]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jg 0x40cda6
lea eax, [ebp - 0xd]
push 1
push eax
lea eax, [ebp - 0x5cc]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00410a13
lea eax, [ebp - 0xe]
push 1
push eax
lea eax, [ebp - 0x1a0]
push eax
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 3
call fcn.00410a13
lea eax, [ebp - 0x8c]
lea ecx, [ebp - 0x3c]
push eax
mov byte [ebp - 4], 4
call fcn.00410ac9
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 3
call fcn.0040ba41
lea ecx, [ebp - 0x3c]
call fcn.0041167c
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.0040ba41
lea eax, [ebp - 0x1cc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40cd24
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], edi
call fcn.0040ba41
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40e2b4
Capabilities:
Get common file path

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.00417829
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call fcn.0041810f
add esp, 0x14
test eax, eax
jge 0x40e4d5
mov ecx, ebx
call fcn.00401046
mov edi, eax
mov ecx, edi
call fcn.0041437c
mov ecx, edi
mov esi, eax
call fcn.00415cf4
test eax, eax
je 0x40e338
mov eax, str.SupportOSMsi30
jmp 0x40e34d
mov ecx, edi
call fcn.00415cd7
test eax, eax
mov eax, str.SupportOSMsi12
jne 0x40e34d
mov eax, str.SupportOS
push edi
push eax
call fcn.00418d54
pop ecx
test eax, eax
pop ecx
je 0x40e3fc
cmp dword [esi], 2
jne 0x40e3f5
call fcn.0041843e
test eax, eax
jne 0x40e388
mov eax, 0x4b2
push eax
mov dword [0x437e3c], eax
call fcn.0041760f
pop ecx
push 1
jmp 0x40e4d7
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 0x40e3ca
lea eax, [ebp - 0x420]
mov ecx, ebx
push eax
call fcn.0040dfc2
test eax, eax
je 0x40e3ee
lea eax, [ebp - 0x420]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x40e3f5
lea eax, [ebp - 0x420]
mov ecx, ebx
push eax
call fcn.0040dfc2
test eax, eax
jne 0x40e3f5
push 2
jmp 0x40e4d7
xor eax, eax
jmp 0x40e4d8
cmp dword [esi + 0x14], 2
jne 0x40e408
cmp dword [esi + 8], 4
je 0x40e413
mov ecx, edi
call fcn.00415cf4
test eax, eax
je 0x40e421
mov ecx, edi
call fcn.00415c9e
push 3
jmp 0x40e4d7
mov esi, 0x400
lea eax, [ebp - 0xe20]
push esi
push eax
push 0x434e70
lea ecx, [edi + 0x4428]
push dword [0x42b5e4]
push dword [0x42b5dc]
call fcn.00401d30
cmp byte [ebp - 0xe20], 0x79
je 0x40e4d0
cmp byte [ebp - 0xe20], 0x59
je 0x40e4d0
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 [0x437e3c], edx
call fcn.004176ef
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.004174b7
add esp, 0x10
or eax, 0xffffffff
jmp 0x40e4d8
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40e4df
Capabilities:
Query or enumerate registry value
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
and byte [ebp - 0x108], 0
push ebx
push esi
push edi
mov esi, ecx
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
mov ebx, dword [ebp + 0xc]
rep stosd dword es:[edi], eax
and dword [ebx], 0
and byte [ebp + 0xf], 0
stosw word es:[edi], ax
mov ecx, esi
stosb byte es:[edi], al
call fcn.00401046
add eax, 0xac
push eax
push str.2.0.2600.0
call fcn.0041810f
pop ecx
test eax, eax
pop ecx
jge 0x40e535
push dword [ebp + 8]
push str.__s___q
jmp 0x40e55a
mov ecx, esi
mov byte [ebp + 0xf], 1
call fcn.00401046
mov ecx, eax
call fcn.00415cf4
push dword [ebp + 8]
test eax, eax
je 0x40e555
push str.__s___quiet__norestart
jmp 0x40e55a
push str.__s___c:_msiinst__delayrebootq_
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov ecx, esi
call fcn.00401046
mov ecx, eax
call fcn.00415cf4
test eax, eax
je 0x40e594
mov ecx, esi
call fcn.00401046
push eax
lea eax, [ebp - 0x108]
push 1
push eax
call fcn.00418922
jmp 0x40e5a2
lea eax, [ebp - 0x108]
push 1
push eax
call fcn.00418219
mov edi, eax
xor esi, esi
cmp edi, esi
je 0x40e659
cmp edi, 0xbc2
je 0x40e5d0
push esi
push edi
mov dword [0x437e3c], 0x484
call fcn.00417529
pop ecx
mov eax, edi
pop ecx
jmp 0x40e65b
cmp byte [ebp + 0xf], 0
je 0x40e653
push 0x20019
push str.SoftwareMicrosoftWindowsCurrentVersionInstaller
push 0x80000002
lea ecx, [ebp + 8]
mov dword [ebx], 2
mov dword [ebp + 8], esi
call fcn.00409e71
test eax, eax
jne 0x40e643
and byte [ebp - 0x20c], al
push 0x40
pop ecx
lea edi, [ebp - 0x20b]
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 esi
push str.InstallerLocation
mov dword [ebp - 4], esi
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], esi
je 0x40e659
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40e659
mov dword [ebx], 1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40f94a
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, 0x80000002
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 0x40f9b6
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 0x40f9c8
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40fd25
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x429986
call fcn.0041e1f0
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, 0x42b630
mov esi, 0x42b628
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.00410db3
push dword [ebp + 0xc]
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 2
push eax
call fcn.0040ff2c
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0041167c
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], edi
push ecx
push 0x20019
push edi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x40fdae
lea ecx, [ebp - 0x10]
call fcn.00408daa
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.0040ba41
cmp byte [ebp + 0xf], 0
je 0x40fee4
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 0x40fe2e
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.00410db3
mov dword [ebp - 0x18], 1
jmp 0x40ff00
lea eax, [ebp + 0xf]
push 1
push eax
lea eax, [ebp - 0x198]
push eax
lea ecx, [ebp - 0x44]
call fcn.00410a13
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x6c]
push eax
mov byte [ebp - 4], 4
call fcn.00410198
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.0040ba41
mov eax, 0x431014
mov dword [ebp - 0x44], ebx
mov ecx, eax
mov dword [ebp - 0x24], esi
test ecx, ecx
mov edi, 0x4379a4
jne 0x40fe77
mov eax, edi
lea ecx, [ebp + 0xf]
push 0
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.00410ebb
mov eax, 0x431010
mov byte [ebp - 4], 5
mov ecx, eax
mov dword [ebp - 0x94], ebx
test ecx, ecx
mov dword [ebp - 0x74], esi
jne 0x40fea0
mov eax, edi
lea ecx, [ebp - 0x11]
push 0
push ecx
push eax
lea ecx, [ebp - 0x94]
call fcn.00410ebb
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], 6
call fcn.00410c1f
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 5
call fcn.0040ba41
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.0040ba41
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.00410e28
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.0040ba41
cmp dword [ebp - 0x10], 0
je 0x40ff1b
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
Function at 0x4155a9
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41565f
lea eax, [ebp - 0x118]
push 0xff
push eax
push dword [ebp + 0xc]
call fcn.004176ef
add esp, 0xc
cmp dword [ebp + 0xc], 0x452
jne 0x41564f
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x41560b
lea eax, [ebp - 0x118]
push 0x43025c
push eax
call fcn.0041f290
pop ecx
test eax, eax
pop ecx
jne 0x415627
mov eax, 0x486
push eax
mov dword [0x437e3c], eax
call fcn.0041760f
pop ecx
push dword [0x437e3c]
call fcn.0041f194
lea eax, [ebp - 0x18]
push eax
push 0
call fcn.004188bf
pop ecx
lea eax, [ebp - 0x18]
pop ecx
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
leave
ret 8