joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403f9d
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040556a
pop ecx
test eax, eax
je 0x403fd8
push 0x80
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x403fd8
push 0x186a0
push esi
push 2
call fcn.00403025
add esp, 0xc
pop esi
pop ebp
ret

Function at 0x404109
Capabilities:
Copy file
Create directory
Get common file path

Disassembly:
push 0x218
mov eax, 0x4386dd
call fcn.0041ea10
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x220]
mov edi, dword [ebp + 0xc]
push str.BackupArmExe...
call fcn.004020ed
xor esi, esi
lea eax, [ebp - 0x220]
push esi
push eax
push 2
mov dword [ebp - 4], esi
call fcn.00403025
mov ecx, dword [ebp - 0x220]
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00401a64
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push 0x2b
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x40418a
push eax
push str.Self_Update_Init_Error
push 0x43bfd8
push str.SHGetFolderPath_failed
call fcn.0040884e
add esp, 0x10
jmp 0x404243
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.004020ed
push str.AdobeARM1.0Backup
mov dword [ebp - 4], 1
call fcn.00423bce
pop ecx
push eax
push str.AdobeARM1.0Backup
lea ecx, [ebp - 0x21c]
call fcn.00402376
push esi
push dword [ebp - 0x21c]
push esi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
cmp eax, 0xa1
je 0x404218
cmp eax, 3
je 0x404218
push str.AdobeARM.exe
call fcn.00423bce
pop ecx
push eax
push str.AdobeARM.exe
lea ecx, [ebp - 0x21c]
call fcn.00402376
lea eax, [ebp - 0x21c]
mov ecx, edi
push eax
call fcn.00402209
push esi
push dword [edi]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x404249
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Self_Update_Init_Error
push dword [ebp - 0x21c]
push str.Failed_arm_backup_folder:
call fcn.0040884e
mov esi, eax
add esp, 0x10
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
call fcn.00401a64
mov eax, esi
call fcn.0041e9ba
ret
push str.success_backup
lea ecx, [ebp - 0x224]
call fcn.004020ed
push esi
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 2
push eax
push 2
call fcn.00403025
mov ecx, dword [ebp - 0x224]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.00401a64
jmp 0x404233
Function at 0x40476f
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor esi, esi
push esi
push 0x80
push 1
push esi
push dword [ebp + 0x10]
push 0x40000000
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404824
mov eax, 0x100000
mov dword [ebp - 8], esi
push eax
mov dword [ebp - 4], eax
mov edi, esi
call fcn.00426679
pop ecx
mov esi, eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404814
cmp dword [ebp - 8], 0
jbe 0x404814
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push 0
push eax
push dword [ebp - 8]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4047f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
and dword [ebp - 8], 0
mov eax, 0x100000
mov dword [ebp - 4], eax
test esi, esi
je 0x404810
push eax
push 0
push esi
call fcn.0041ff30
add esp, 0xc
test edi, edi
je 0x4047b6
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0042647d
pop ecx
jmp 0x40482c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404d3c
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404d67
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push ebx
push dword [ebp - 4]
xor ebx, ebx
test eax, eax
sete bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
leave
ret
Function at 0x405371
Capabilities:
Get common file path

Disassembly:
push 0x10
mov eax, 0x438a96
call fcn.0041e9dc
call fcn.0040fd19
push eax
lea ecx, [ebp - 0x10]
call fcn.00401330
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
mov esi, 0x104
push esi
call fcn.00403109
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.0040318b
mov esi, str.ArmUI.ini
push esi
call fcn.00423bce
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.00402376
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push dword [ebp + 0x10]
push eax
call fcn.00405cbb
add esp, 0x10
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 1
cmp dword [eax - 0xc], 0
jne 0x4053f3
push dword [ebp + 0x14]
lea ecx, [ebp - 0x14]
call fcn.00402209
mov eax, dword [0x451840]
lea ecx, [ebp - 0x14]
cmp dword [ebp + 0x18], 0
cmovne eax, dword [0x451844]
push eax
push str._SHORTPRODUCTNAME_
call fcn.004031b7
push str.IDS_BTN_OK
lea ecx, [ebp - 0x18]
call fcn.004020ed
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00405cbb
push dword [eax]
mov byte [ebp - 4], 3
push 2
call fcn.0040f034
mov ecx, dword [ebp - 0x1c]
add esp, 0x18
lea ecx, [ecx - 0x10]
call fcn.00401a64
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.00401a64
mov eax, dword [ebp + 0xc]
push 0
push dword [eax]
push dword [ebp - 0x14]
push 0
call fcn.0040efeb
mov ecx, dword [ebp - 0x14]
add esp, 0x10
lea ecx, [ecx - 0x10]
call fcn.00401a64
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00401a64
call fcn.0041e9a5
ret
Function at 0x405490
Capabilities:
Enumerate process modules

Disassembly:
push 0x1c
mov eax, 0x438ab9
call fcn.0041e9dc
xor ebx, ebx
push 8
pop esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], ebx
push eax
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x1c], ebx
call fcn.004037ba
mov edi, dword [ebp - 0x28]
push 0x20
mov dword [ebp - 0x14], ebx
inc ebx
pop ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0xd], bl
lea eax, [ebp - 0x14]
push eax
push ecx
push edi
call sub.PSAPI.DLL_EnumProcesses
mov ecx, dword [ebp - 0x18]
test eax, eax
je 0x405514
cmp dword [ebp - 0x14], ecx
jb 0x40550a
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
add esi, esi
lea ecx, [ebp - 0x28]
push esi
call fcn.004037ba
mov edi, dword [ebp - 0x28]
mov ecx, esi
mov al, byte [ebp - 0xd]
shl ecx, 2
mov dword [ebp - 0x18], ecx
jmp 0x40551d
mov esi, dword [ebp - 0x14]
shr esi, 2
xor al, al
jmp 0x40551a
xor al, al
xor esi, esi
xor ebx, ebx
mov byte [ebp - 0xd], al
test al, al
jne 0x4054d0
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x40554d
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
mov dword [ebx + 4], eax
test esi, esi
je 0x40554a
mov dword [ebp - 0x18], edi
push edi
mov ecx, ebx
call fcn.004039ca
add edi, 4
sub esi, 1
jne 0x405537
mov edi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x1c]
test edi, edi
je 0x405562
mov ecx, dword [ebp - 0x20]
sub ecx, edi
and ecx, 0xfffffffc
push ecx
push edi
call fcn.004036ee
pop ecx
pop ecx
mov eax, ebx
call fcn.0041e9a5
ret

Function at 0x40556a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret
Function at 0x405bd7
Capabilities:
Get common file path

Disassembly:
push 8
mov eax, 0x438bce
call fcn.0041e9dc
call fcn.0040fd19
push eax
lea ecx, [ebp - 0x10]
call fcn.00401330
xor esi, esi
lea ecx, [ebp - 0x10]
push 0x104
mov dword [ebp - 4], esi
call fcn.00403109
push eax
push esi
push esi
push 0x2b
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
mov edi, eax
call fcn.0040318b
test edi, edi
jne 0x405c46
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00402209
mov esi, str.AdobeARM1.0AdobeARM.exe
push esi
call fcn.00423bce
pop ecx
mov ecx, dword [ebp + 8]
push eax
push esi
call fcn.00402376
xor esi, esi
inc esi
jmp 0x405c71
push str.SHGetFolderPath_in_GetARMExePath_failed:
lea ecx, [ebp - 0x14]
call fcn.004020ed
push edi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
push 1
call fcn.00403025
mov ecx, dword [ebp - 0x14]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.00401a64
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401a64
mov eax, esi
call fcn.0041e9a5
ret

Function at 0x405cbb
Capabilities:
Read .ini file

Disassembly:
push 8
mov eax, 0x438c0a
call fcn.0041e9dc
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
call fcn.0040fd19
mov esi, dword [ebp + 8]
mov ecx, esi
push eax
call fcn.00401330
mov ecx, esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], 1
call fcn.004025b7
mov edi, dword [ebp + 0x14]
push edi
call fcn.0040556a
pop ecx
test eax, eax
jne 0x405d2d
push str.Localization_file_missing:
lea ecx, [ebp - 0x10]
call fcn.004020ed
push ebx
xor ecx, ecx
lea eax, [ebp - 0x10]
push edi
inc ecx
push eax
push ecx
mov dword [ebp - 4], ecx
call fcn.00402ada
mov ecx, dword [ebp - 0x10]
add esp, 0x10
lea ecx, [ecx - 0x10]
call fcn.00401a64
jmp 0x405d5c
mov ebx, 0xff
mov ecx, esi
push ebx
call fcn.00403109
push dword [edi]
mov ecx, dword [ebp + 0x10]
push ebx
push eax
push 0x43bfd8
push dword [ecx]
mov ecx, dword [ebp + 0xc]
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0040318b
mov eax, esi
call fcn.0041e9a5
ret
Function at 0x406158
Capabilities:
Get common file path

Disassembly:
push 0x218
mov eax, 0x438cee
call fcn.0041ea10
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x224]
push str.GetPrimaryTokenFromExplorer...
call fcn.004020ed
xor edi, edi
lea eax, [ebp - 0x224]
push edi
push eax
push 2
mov dword [ebp - 4], edi
call fcn.00403025
mov ecx, dword [ebp - 0x224]
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00401a64
call fcn.0040fd19
push eax
lea ecx, [ebp - 0x21c]
call fcn.00401330
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x218]
push edi
inc ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0041ff30
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x40623f
lea eax, [ebp - 0x218]
push eax
call fcn.00423bce
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.004033de
mov edi, str.explorer.exe
push edi
call fcn.00423bce
pop ecx
push eax
push edi
lea ecx, [ebp - 0x21c]
call fcn.00402376
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], ebx
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
call fcn.00406954
add esp, 0xc
mov esi, eax
jmp 0x40627a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.GetWindowsDirectory_failed:
lea ecx, [ebp - 0x220]
mov esi, eax
call fcn.004020ed
push esi
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 2
push eax
push ebx
call fcn.00403025
mov ecx, dword [ebp - 0x220]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.00401a64
mov ecx, dword [ebp - 0x21c]
lea ecx, [ecx - 0x10]
call fcn.00401a64
mov eax, esi
call fcn.0041e9ba
ret
Function at 0x406290
Capabilities:
Enumerate process modules

Disassembly:
push 0x2c
mov eax, 0x438d26
call fcn.0041e9dc
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x1c], 1
push edi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
mov dword [ebp - 0x2c], vtable.AutoHandle.0
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], edi
test ebx, ebx
je 0x4063b4
cmp ebx, 0xffffffff
je 0x4063b4
mov esi, edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], edi
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 1
push eax
push 4
lea eax, [ebp - 0x20]
push eax
push ebx
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x406376
cmp byte [ebp + 0x10], 0
lea ecx, [ebp - 0x38]
push 0x20
pop esi
mov eax, 0x104
cmovne esi, eax
xor eax, eax
mov word [ebp - 0xe], ax
lea eax, [ebp - 0xe]
push eax
push esi
mov dword [ebp - 0x14], esi
call fcn.0040380d
cmp byte [ebp + 0x10], 0
push esi
mov esi, dword [ebp - 0x38]
push esi
push dword [ebp - 0x20]
push ebx
je 0x406332
call sub.PSAPI.DLL_GetModuleFileNameExW
jmp 0x406337
call sub.PSAPI.DLL_GetModuleBaseNameW
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp - 0x14]
jb 0x406378
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x38]
xor eax, eax
add esi, esi
mov word [ebp - 0xe], ax
lea eax, [ebp - 0xe]
push eax
push esi
mov dword [ebp - 0x14], esi
call fcn.0040380d
xor eax, eax
cmp dword [ebp - 0x18], 0x104
cmovbe eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x40631c
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x18]
jmp 0x406378
mov eax, edi
xor ecx, ecx
cmp ecx, eax
sbb ebx, ebx
and ebx, dword [ebp - 0x1c]
cmp ebx, 1
jne 0x40639d
test esi, esi
je 0x406393
push esi
call fcn.00423bce
pop ecx
mov edi, eax
mov ecx, dword [ebp + 0xc]
push edi
push esi
call fcn.004033de
test esi, esi
je 0x4063b6
mov eax, dword [ebp - 0x30]
sub eax, esi
and eax, 0xfffffffe
push eax
push esi
call fcn.004036ee
pop ecx
pop ecx
jmp 0x4063b6
mov ebx, edi
test ebx, ebx
jne 0x4063c2
mov ecx, dword [ebp + 0xc]
call fcn.004025b7
lea ecx, [ebp - 0x2c]
call fcn.00403e07
mov eax, ebx
call fcn.0041e9a5
ret
Function at 0x4063d2
Capabilities:
Reference sql statements

Disassembly:
push 0x21c
mov eax, 0x438d6d
call fcn.0041ea10
mov edi, dword [ebp + 0x10]
mov ecx, edi
mov esi, dword [ebp + 0xc]
call fcn.004025b7
xor ebx, ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x220], ebx
push str.SELECT_Value_FROM_Property_WHERE_Property.Property
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 1
call fcn.004020ed
push 0x43cdfc
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 2
push esi
push eax
call fcn.004022ae
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 3
push dword [eax - 0xc]
push eax
call fcn.00402376
mov ecx, dword [ebp - 0x228]
mov byte [ebp - 4], 2
lea ecx, [ecx - 0x10]
call fcn.00401a64
cmp dword [ebp - 0x21c], ebx
je 0x406466
push dword [ebp - 0x21c]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], ebx
push eax
push dword [ebp - 0x224]
push dword [ebp + 8]
call sub.msi.dll_MsiEnumClientsA
mov esi, eax
test esi, esi
jne 0x40652b
push ebx
push dword [ebp - 0x21c]
call sub.msi.dll_MsiViewModify
mov esi, eax
test esi, esi
jne 0x40652b
cmp dword [ebp - 0x220], eax
je 0x4064b4
push dword [ebp - 0x220]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], ebx
push eax
push dword [ebp - 0x21c]
call sub.msi.dll_MsiDatabaseIsTablePersistentA
mov esi, eax
test esi, esi
jne 0x40652b
mov eax, 0x104
push eax
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.0041ff30
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x218]
push eax
push 1
push dword [ebp - 0x220]
call sub.msi.dll_MsiRecordSetStreamA
mov esi, eax
test esi, esi
jne 0x40652b
lea eax, [ebp - 0x218]
push eax
call fcn.00423bce
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, edi
push eax
call fcn.004033de
mov ecx, dword [ebp - 0x224]
lea ecx, [ecx - 0x10]
call fcn.00401a64
cmp dword [ebp - 0x220], 0
je 0x40654d
push dword [ebp - 0x220]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x21c], 0
je 0x406561
push dword [ebp - 0x21c]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov eax, esi
call fcn.0041e9ba
ret

Function at 0x406656
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push esi
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x4066a6
push 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x4066ab
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 1
push eax
push 0x20019
xor edi, edi
mov dword [ebp - 4], 0x104
push edi
push dword [ebp + 0xc]
mov esi, edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x406757
push 0x208
call fcn.00426679
pop ecx
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
cmp ebx, 0xea
jne 0x40673c
push esi
call fcn.0042647d
mov eax, dword [ebp - 4]
add eax, eax
push eax
call fcn.00426679
pop ecx
pop ecx
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test ebx, ebx
jne 0x406757
test esi, esi
je 0x40674d
push esi
call fcn.00423bce
pop ecx
mov edi, eax
mov ecx, dword [ebp + 0x14]
push edi
push esi
call fcn.004033de
push esi
call fcn.0042647d
pop ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x40676e
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x28
mov eax, 0x438df0
call fcn.0041e9dc
lea eax, [ebp - 0x24]
xor ebx, ebx
push eax
push 0x20019
push ebx
push str.SOFTWARERegisteredApplications
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
je 0x4067cd
push str.Unable_to_open_HKLMSOFTWARERegisteredApplications
lea ecx, [ebp - 0x20]
call fcn.004020ed
mov dword [ebp - 4], ebx
push ebx
lea eax, [ebp - 0x20]
push eax
push 1
call fcn.00403025
mov ecx, dword [ebp - 0x20]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.00401a64
mov eax, esi
jmp 0x40694e
push ebx
push ebx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov esi, eax
test esi, esi
je 0x406803
push str.Unable_to_query_HKLMSOFTWARERegisteredApplications
lea ecx, [ebp - 0x20]
call fcn.004020ed
mov dword [ebp - 4], 1
jmp 0x4067ac
call fcn.0040fd19
push eax
lea ecx, [ebp - 0x10]
call fcn.00401330
mov dword [ebp - 4], 2
call fcn.0040fd19
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401330
mov ecx, 0x104
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
push ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], ebx
call fcn.00403109
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.00403109
lea ecx, [ebp - 0x18]
push ecx
push esi
lea ecx, [ebp - 0x2c]
push ecx
push ebx
lea ecx, [ebp - 0x14]
push ecx
push eax
push ebx
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x406936
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x406936
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.0040318b
push 0xffffffffffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040318b
mov eax, 0x104
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x4068f6
push 0
push dword [ebx]
lea ecx, [ebp - 0x10]
call fcn.004025f8
cmp eax, 0xffffffff
je 0x4068f6
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.00402209
push str.Found_registered_application_name:
lea ecx, [ebp - 0x28]
call fcn.004020ed
push 0
push edi
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 4
push eax
push 1
call fcn.00402ada
mov ecx, dword [ebp - 0x28]
add esp, 0x10
mov byte [ebp - 4], 3
lea ecx, [ecx - 0x10]
call fcn.00401a64
push dword [ebp - 0x18]
inc dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
call fcn.00403109
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.00403109
lea ecx, [ebp - 0x18]
push ecx
push esi
lea ecx, [ebp - 0x2c]
push ecx
push 0
lea ecx, [ebp - 0x14]
push ecx
push eax
mov eax, dword [ebp - 0x20]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x406875
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00401a64
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00401a64
xor eax, eax
call fcn.0041e9a5
ret
Function at 0x4083ac
Capabilities:
Delete directory
Set file attributes

Disassembly:
push 0x28
mov eax, 0x4392a3
call fcn.0041e9dc
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
cmp dword [eax - 0xc], 0
je 0x408529
cmp dword [eax - 0xc], 4
jb 0x408529
add eax, 0xfffffff0
push eax
call fcn.00402458
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
push 0x5c
push esi
mov byte [ebp - 4], 1
call fcn.00421374
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x408431
sub ecx, esi
sar ecx, 1
cmp ecx, 0xffffffff
je 0x408431
mov eax, dword [esi - 0xc]
dec eax
cmp ecx, eax
jne 0x408431
push ecx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.00402a29
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00402209
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.00401a64
mov esi, str..
push esi
call fcn.00423bce
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.00402376
lea ecx, [ebp - 0x34]
call fcn.004118fa
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0x34]
push 0
push esi
mov byte [ebp - 4], 3
call fcn.00411b80
test eax, eax
je 0x4084e0
lea ecx, [ebp - 0x34]
call fcn.00411d30
lea ecx, [ebp - 0x34]
mov ebx, eax
call fcn.00412130
test eax, eax
jne 0x4084dc
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x34]
call fcn.00411e40
mov eax, dword [ebp - 0x34]
push 0x10
mov byte [ebp - 4], 4
mov edi, dword [eax + 0x38]
mov ecx, edi
call dword [0x43b5a4]
lea ecx, [ebp - 0x34]
call edi
test eax, eax
je 0x4084c3
mov eax, dword [ebp - 0x14]
push ecx
add eax, 0xfffffff0
mov edi, esp
push eax
mov dword [ebp - 0x18], edi
call fcn.00402458
add eax, 0x10
pop ecx
mov dword [edi], eax
call fcn.004083ac
jmp 0x4084cc
lea eax, [ebp - 0x14]
push eax
call fcn.00403f9d
pop ecx
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 3
lea ecx, [ecx - 0x10]
call fcn.00401a64
test ebx, ebx
jne 0x408465
lea ecx, [ebp - 0x34]
call fcn.00411b20
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x408516
push 0x186a0
lea eax, [ebp + 8]
push eax
push 2
call fcn.00403025
add esp, 0xc
lea ecx, [ebp - 0x34]
call fcn.00411aa6
lea ecx, [esi - 0x10]
call fcn.00401a64
mov eax, dword [ebp + 8]
lea ecx, [eax - 0x10]
call fcn.00401a64
call fcn.0041e9a5
ret