joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c5bc
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push 0x44
mov eax, 0x4a05d9
call fcn.00486aca
xor ebx, ebx
push str.CUnInstallerHelper::HandleUninstallRegistry
lea esi, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.00404db2
mov byte [ebp - 4], 1
call fcn.00404e64
push ebx
push 1
call fcn.00404f5a
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
mov edi, 0x2001f
push reloc.OLEAUT32.dll_SysReAllocString
mov eax, edi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.00405261
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push str.vProt
push dword [ebp - 0x34]
call esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x2c]
push str.Software_
push eax
call fcn.00408524
mov eax, dword [ebp - 0x28]
add esp, 0xc
cmp dword [ebp - 0x14], 8
jae 0x40c63f
lea eax, [ebp - 0x28]
push eax
push SysReAllocString
mov eax, edi
lea ecx, [ebp - 0x34]
call fcn.00405261
mov edi, dword [ebp - 0x34]
push str.DSPGuardMaxNum
push edi
call esi
push str.DSPGuardMaxPopupNum
push edi
call esi
push str.HPGuardMaxNum
push edi
call esi
push str.HPGuardMaxPopupNum
push edi
call esi
push str.HPGuardWhiteList
push edi
call esi
push ebx
push 1
lea esi, [ebp - 0x2c]
call fcn.00404f5a
lea esi, [ebp - 0x34]
call fcn.00405203
push ebx
push 1
lea esi, [ebp + 8]
call fcn.00404f5a
call fcn.00486b4d
ret
Function at 0x40cc8f
Capabilities:
Enumerate gui resources

Disassembly:
push 0x48
mov eax, 0x4a450a
call fcn.00486a61
push str.CUnInstallerHelper::ResetSAPs_strat
lea esi, [ebp - 0x38]
call fcn.00404db2
and dword [ebp - 4], 0
call fcn.00404e64
or dword [ebp - 4], 0xffffffff
xor edi, edi
push 0
inc edi
push edi
call fcn.00404f5a
push 0
push 0x40cd99
call dword [sym.imp.USER32.dll_EnumWindows]
push 4
call fcn.00481de6
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edi
test eax, eax
je 0x40cce7
push eax
call fcn.00421292
jmp 0x40cce9
xor eax, eax
or dword [ebp - 4], 0xffffffff
push 0x94
mov dword [ebp - 0x1c], eax
call fcn.00481de6
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 2
test ecx, ecx
je 0x40cd12
call fcn.0040dc23
jmp 0x40cd14
xor eax, eax
or dword [ebp - 4], 0xffffffff
push 0x5c
mov dword [ebp - 0x18], eax
call fcn.00481de6
pop ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 3
test eax, eax
je 0x40cd39
push eax
call fcn.00415fa3
jmp 0x40cd3b
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], eax
xor edi, edi
mov esi, dword [ebp + edi*4 - 0x1c]
test esi, esi
je 0x40cd69
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x5c]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x64]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
inc edi
cmp edi, 3
jl 0x40cd44
push str.CUnInstallerHelper:_ResetSAPs_end
lea esi, [ebp - 0x54]
call fcn.00404db2
mov dword [ebp - 4], 4
call fcn.00404e64
push 0
push 1
call fcn.00404f5a
mov al, 1
call fcn.00486b39
ret
Function at 0x40e78c
Capabilities:
Copy file

Disassembly:
push 0x58
mov eax, 0x4a1aa8
call fcn.00486aca
mov eax, dword [ebp + 8]
push eax
lea esi, [ebp - 0x48]
call fcn.004047eb
and dword [ebp - 4], 0
mov edi, str.avg_secure_search.xml
push edi
mov eax, esi
push eax
call fcn.004048a5
push str.CFirefoxBrowser::CopyXmlToProgramFiles___Copy_from
lea esi, [ebp - 0x64]
call fcn.00404db2
mov eax, esi
push eax
lea ebx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.00404975
pop ecx
xor ebx, ebx
push ebx
push 1
call fcn.00404f5a
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 2
call fcn.00410100
pop ecx
test al, al
jne 0x40e841
push str.CFirefoxBrowser::CopyXmlToProgramFiles___GetCurrentFirefoxInstallationPath_failed
lea esi, [ebp - 0x64]
call fcn.00404db2
mov byte [ebp - 4], 3
call fcn.00404e64
push ebx
push 1
call fcn.00404f5a
xor bl, bl
push 0
push 1
lea esi, [ebp - 0x2c]
call fcn.00404f5a
push 0
push 1
lea esi, [ebp - 0x48]
call fcn.00404f5a
mov al, bl
call fcn.00486b4d
ret 4
push str._searchplugins_
lea eax, [ebp - 0x2c]
push eax
call fcn.004048a5
push edi
lea eax, [ebp - 0x2c]
push eax
call fcn.004048a5
push str.CFirefoxBrowser::CopyXmlToProgramFiles___Copy_to
lea esi, [ebp - 0x64]
call fcn.00404db2
mov eax, esi
push eax
lea ebx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.00404975
pop ecx
push 0
push 1
call fcn.00404f5a
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
jae 0x40e88b
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x40e897
lea eax, [ebp - 0x44]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
jmp 0x40e81f
Function at 0x40e98e
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x2804]
mov eax, 0x2804
call fcn.00494e40
push 0xffffffffffffffff
push 0x49f427
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4de270]
xor eax, ebp
mov dword [ebp + 0x2800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x280c]
mov esi, ecx
push str.avg_secure_search.tmp
push esi
mov dword [ebp - 0x10], eax
call fcn.004048a5
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
push ebx
call edi
cmp dword [esi + 0x18], 8
jb 0x40e9f7
mov esi, dword [esi + 4]
jmp 0x40e9fa
add esi, 4
push ebx
push 0x80
push 4
push ebx
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, 0xffffffff
jne 0x40ea4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.CFirefoxBrowser::ReplaceCommonValues_____CreateFile_failed._GetLastError
lea esi, [ebp - 0x34]
mov edi, eax
call fcn.00404db2
push edi
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00408b56
pop ecx
push ebx
push 1
call fcn.00404f5a
xor al, al
jmp 0x40eae9
push ebx
mov byte [ebp], bl
call edi
push ebx
lea eax, [ebp - 0x14]
push eax
push 0x2800
lea eax, [ebp]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40eaa4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.CFirefoxBrowser::ReplaceCommonValues_____ReadFile_failed._GetLastError
lea esi, [ebp - 0x50]
mov edi, eax
call fcn.00404db2
xor esi, esi
inc esi
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], esi
call fcn.00408b56
pop ecx
push ebx
push esi
lea esi, [ebp - 0x50]
call fcn.00404f5a
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40ea44
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x40eac4
xor ecx, ecx
jmp 0x40eadc
lea eax, [edi + edi]
call fcn.00486560
mov esi, esp
push 3
push edi
lea eax, [ebp]
push eax
call fcn.00406b96
mov ecx, eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
call fcn.00404d24
mov al, 1
lea esp, [ebp - 0x60]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2800]
xor ecx, ebp
call fcn.004812cc
add ebp, 0x2804
leave
ret 4
Function at 0x40ecc5
Capabilities:
Write file on windows

Disassembly:
push 0x40
mov eax, 0x49f3cb
call fcn.00486a61
mov edi, ecx
mov esi, edx
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [edi + 0x18], 8
jb 0x40ece9
mov eax, dword [edi + 4]
jmp 0x40ecec
lea eax, [edi + 4]
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x14], edi
cmp edi, 0xffffffff
jne 0x40ed39
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.CFirefoxBrowser::WriteFile___CreateFile_failed._GetLastError
lea esi, [ebp - 0x30]
mov edi, eax
call fcn.00404db2
push edi
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00408b56
pop ecx
push ebx
push 1
call fcn.00404f5a
xor al, al
call fcn.00486b39
ret
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [esi + 0x18], 0x10
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x10], ebx
jb 0x40ed51
mov eax, dword [esi + 4]
jmp 0x40ed54
lea eax, [esi + 4]
push ebx
lea edx, [ebp - 0x10]
push edx
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40eda0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.CFirefoxBrowser::WriteFile___WriteFile_failed._GetLastError
lea esi, [ebp - 0x30]
mov edi, eax
call fcn.00404db2
xor esi, esi
inc esi
push edi
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], esi
call fcn.00408b56
pop ecx
push ebx
push esi
lea esi, [ebp - 0x30]
call fcn.00404f5a
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40ed31
mov esi, dword [esi + 0x14]
cmp dword [ebp - 0x10], esi
jae 0x40eddd
push str.CFirefoxBrowser::WriteFile_____WriteFile_failed._size_written_too_small
lea esi, [ebp - 0x4c]
call fcn.00404db2
mov dword [ebp - 4], 2
push dword [ebp - 0x10]
mov ecx, esi
call fcn.00408b56
pop ecx
push ebx
push 1
call fcn.00404f5a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
jmp 0x40ed33
mov bl, 1
jmp 0x40edcf
Function at 0x40fd50
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a1a52
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x4de270]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [0x4de270]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x28]
push eax
call fcn.0041ef75
lea eax, [esp + 0x28]
xor ebx, ebx
push eax
mov dword [esp + 0x94], ebx
call fcn.0040ff2b
mov esi, dword [esp + 0x34]
cmp esi, dword [esp + 0x38]
jbe 0x40fdd2
call fcn.00482522
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x38]
cmp dword [esp + 0x34], esi
jbe 0x40fded
call fcn.00482522
mov eax, dword [esp + 0x28]
mov dword [esp + 0x44], esi
lea edi, [esp + 0x40]
lea esi, [esp + 0x10]
mov dword [esp + 0x40], eax
call fcn.00406591
test al, al
je 0x40fef5
call fcn.0042d85c
push eax
lea esi, [esp + 0x4c]
call fcn.004047eb
push str._searchplugins_
mov eax, esi
push eax
mov byte [esp + 0x98], 1
call fcn.004048a5
mov eax, dword [esp + 0x18]
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.004048ce
cmp dword [esp + 0x60], 8
mov eax, dword [esp + 0x4c]
jae 0x40fe4f
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x40fed4
cmp byte [ebp + 0x18], bl
je 0x40fe78
cmp dword [esp + 0x60], 8
mov eax, dword [esp + 0x4c]
jae 0x40fe6f
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40fed4
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov byte [eax], 1
cmp dword [esi + 0x14], ebx
je 0x40fed4
cmp dword [esp + 0x60], 8
mov eax, dword [esp + 0x4c]
jae 0x40fe97
lea eax, [esp + 0x4c]
push str.SearchPlugin_ShortName
push eax
lea eax, [esp + 0x6c]
push eax
call fcn.00409aaa
add esp, 0xc
lea ecx, [esp + 0x64]
mov eax, esi
mov byte [esp + 0x90], 2
call fcn.00406464
test eax, eax
jne 0x40fec8
mov eax, dword [esp + 0x1c]
mov byte [eax], 1
push ebx
push 1
lea esi, [esp + 0x6c]
call fcn.00404f5a
push ebx
push 1
lea esi, [esp + 0x50]
mov byte [esp + 0x98], bl
call fcn.00404f5a
lea esi, [esp + 0x10]
call fcn.00406566
jmp 0x40fdde
lea esi, [esp + 0x28]
call fcn.00406678
push dword [esp + 0x28]
call fcn.004812c1
pop ecx
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004812cc
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4103ac
Capabilities:
Check if file exists
Delete file
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a3456
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x4de270]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push esi
push edi
mov eax, dword [0x4de270]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x94]
push eax
call fcn.0042997f
pop ecx
xor ebx, ebx
mov dword [esp + 0xc0], ebx
xor eax, eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], ax
mov byte [esp + 0xc0], 1
jmp 0x41057b
lea eax, [esp + 0x94]
push eax
lea esi, [esp + 0x28]
call fcn.004047eb
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x48]
mov ecx, esi
mov byte [esp + 0xc8], 2
call fcn.004048ce
mov eax, esi
push eax
lea esi, [esp + 0x60]
call fcn.004047eb
push str._search.json
mov eax, esi
push eax
mov byte [esp + 0xc8], 3
call fcn.004048a5
push str._searchplugins_
lea eax, [esp + 0x28]
push eax
call fcn.004048a5
mov eax, dword [esp + 0x20]
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x2c]
call fcn.004048ce
mov eax, dword [esp + 0x28]
push 8
pop edi
cmp dword [esp + 0x3c], edi
jae 0x4104bb
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x41055b
cmp byte [ebp + 0x18], bl
je 0x4104fa
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x3c], edi
jae 0x4104de
lea eax, [esp + 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call esi
mov eax, dword [esp + 0x60]
cmp dword [esp + 0x74], edi
jae 0x4104f5
lea eax, [esp + 0x60]
push eax
call esi
jmp 0x41055b
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov byte [eax], 1
cmp dword [esi + 0x14], ebx
je 0x41055b
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x3c], edi
jae 0x410518
lea eax, [esp + 0x28]
push str.SearchPlugin_ShortName
push eax
lea eax, [esp + 0x80]
push eax
call fcn.00409aaa
add esp, 0xc
lea ecx, [esp + 0x78]
mov eax, esi
mov byte [esp + 0xc0], 4
call fcn.00406464
test eax, eax
jne 0x41054c
mov eax, dword [esp + 0x14]
mov byte [eax], 1
push ebx
push 1
lea esi, [esp + 0x80]
call fcn.00404f5a
push ebx
push 1
lea esi, [esp + 0x64]
call fcn.00404f5a
push ebx
push 1
lea esi, [esp + 0x2c]
mov byte [esp + 0xc8], 1
call fcn.00404f5a
lea eax, [esp + 0x40]
push eax
lea edi, [esp + 0x14]
call fcn.00429a5f
pop ecx
test al, al
jne 0x410443
push ebx
push 1
lea esi, [esp + 0x48]
call fcn.00404f5a
push ebx
push 1
lea esi, [esp + 0x9c]
call fcn.00404f5a
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.004812cc
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4105d3
Capabilities:
Check if file exists
Delete file
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a33fa
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x4de270]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov eax, dword [0x4de270]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
lea eax, [esp + 0x6c]
push eax
call fcn.0042997f
xor ebx, ebx
mov dword [esp + 0x9c], ebx
xor eax, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], ax
lea eax, [esp + 0x38]
push eax
lea edi, [esp + 0x1c]
mov byte [esp + 0xa0], 1
call fcn.00429a5f
pop ecx
jmp 0x4106fa
lea eax, [esp + 0x6c]
push eax
lea esi, [esp + 0x54]
call fcn.004047eb
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x3c]
mov ecx, esi
mov byte [esp + 0xa0], 2
call fcn.004048ce
mov eax, esi
push eax
lea esi, [esp + 0x1c]
call fcn.004047eb
push str._search.json
mov eax, esi
push eax
mov byte [esp + 0xa0], 3
call fcn.004048a5
cmp dword [esp + 0x30], 8
mov eax, dword [esp + 0x1c]
jae 0x4106aa
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x4106cc
cmp dword [esp + 0x30], 8
mov eax, dword [esp + 0x1c]
jae 0x4106c5
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push 1
lea esi, [esp + 0x20]
call fcn.00404f5a
push ebx
push 1
lea esi, [esp + 0x58]
mov byte [esp + 0xa0], 1
call fcn.00404f5a
lea eax, [esp + 0x34]
push eax
lea edi, [esp + 0x18]
call fcn.00429a5f
pop ecx
test al, al
jne 0x410656
push ebx
push 1
lea esi, [esp + 0x3c]
call fcn.00404f5a
push ebx
push 1
lea esi, [esp + 0x74]
call fcn.00404f5a
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.004812cc
mov esp, ebp
pop ebp
ret
Function at 0x415208
Capabilities:
Query environment variable

Disassembly:
push 0x3c
mov eax, 0x49f398
call fcn.00486a61
push 0x104
push dword [ebp + 8]
push 0x4b8ed0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x10], eax
test eax, eax
ja 0x415233
push 0xffffffffffffffec
pop eax
jmp 0x4152a0
mov ecx, str.MozillaFirefoxProfiles_
mov eax, ecx
lea edx, [eax + 2]
mov si, word [eax]
inc eax
inc eax
test si, si
jne 0x41523d
sub eax, edx
sar eax, 1
mov edi, eax
push edi
push ecx
push dword [ebp + 8]
call fcn.004840da
add esp, 0xc
push str.XpiUnInstaller.cpp:_DetermineFFProfilesDir
lea esi, [ebp - 0x2c]
call fcn.00404db2
push dword [ebp + 8]
and dword [ebp - 4], 0
lea esi, [ebp - 0x48]
call fcn.00404db2
lea ecx, [ebp - 0x2c]
push ecx
mov ebx, eax
mov byte [ebp - 4], 1
call fcn.00404975
pop ecx
push 0
push 1
call fcn.00404f5a
push 0
push 1
lea esi, [ebp - 0x2c]
call fcn.00404f5a
mov eax, dword [ebp - 0x10]
add eax, edi
call fcn.00486b39
ret

Function at 0x4152a6
Capabilities:
Get common file path

Disassembly:
push 0x38
mov eax, 0x49f36d
call fcn.00486a61
mov ebx, dword [ebp + 0xc]
push ebx
xor esi, esi
push esi
push esi
push 0x23
xor eax, eax
push esi
mov word [ebx], ax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, esi
je 0x4152d4
push 0xffffffffffffffec
pop eax
jmp 0x415395
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x4152d9
sub eax, edx
sar eax, 1
cmp word [ebx + eax*2 - 2], 0x5c
je 0x415304
mov edi, ebx
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
cmp ax, si
jne 0x4152f3
mov esi, 0x4ad4a0
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x415312
mov eax, dword [eax + 4]
jmp 0x415315
add eax, 4
mov edx, eax
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x415317
sub eax, edx
mov edi, ebx
dec edi
dec edi
mov cx, word [edi + 2]
inc edi
inc edi
test cx, cx
jne 0x415327
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push str.XpiUnInstaller.cpp:_DetermineFFDir
lea esi, [ebp - 0x28]
call fcn.00404db2
and dword [ebp - 4], 0
push ebx
lea esi, [ebp - 0x44]
call fcn.00404db2
lea ecx, [ebp - 0x28]
push ecx
mov ebx, eax
mov byte [ebp - 4], 1
call fcn.00404975
pop ecx
push 0
push 1
call fcn.00404f5a
push 0
push 1
lea esi, [ebp - 0x28]
call fcn.00404f5a
mov eax, dword [ebp + 0xc]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x415387
sub eax, ecx
sar eax, 1
call fcn.00486b39
ret
Function at 0x421076
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [0x4e1ca0]
lea eax, [esi + 8]
push eax
push 0
push esi
push 0x421045
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
test eax, eax
mov dword [esi + 4], eax
setne cl
mov al, cl
pop esi
ret

Function at 0x4210a1
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push 0x64
mov eax, 0x49ef8d
call fcn.00486aca
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x68], ebx
mov dword [ebp - 4], ebx
push 8
pop ecx
mov esi, 0x4c003c
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
movsw word es:[edi], word [esi]
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], ebx
mov word [ebp - 0x5c], ax
push 0xf0000000
xor edi, edi
inc edi
push edi
push ebx
push ebx
lea eax, [ebp - 0x70]
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x421118
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x64]
push 0x4aec58
call fcn.00404db2
jmp 0x4211e8
lea eax, [ebp - 0x6c]
push eax
push ebx
push ebx
push 0x8003
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x421142
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x421106
cmp dword [ebp + 0x24], 8
mov eax, dword [ebp + 0x10]
jae 0x42114e
lea eax, [ebp + 0x10]
mov ecx, dword [ebp + 0x20]
push ebx
add ecx, ecx
push ecx
push eax
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push ebx
test eax, eax
jne 0x421178
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x421106
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x20]
push eax
push 2
push dword [ebp - 0x6c]
mov dword [ebp - 0x68], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x4211bb
xor esi, esi
cmp dword [ebp - 0x68], ebx
jbe 0x4211c9
movzx eax, byte [ebp + esi - 0x20]
and eax, 0xf
movzx eax, word [ebp + eax*2 - 0x44]
push eax
lea eax, [ebp - 0x60]
call fcn.004083f2
inc esi
cmp esi, dword [ebp - 0x68]
jb 0x42119d
jmp 0x4211c9
push 0x4aec58
lea eax, [ebp - 0x60]
push eax
call fcn.00404d8d
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebx
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov esi, dword [ebp - 0x64]
lea eax, [ebp - 0x60]
push eax
call fcn.004047eb
push ebx
push edi
lea esi, [ebp - 0x60]
call fcn.00404f5a
push ebx
push edi
lea esi, [ebp + 0xc]
call fcn.00404f5a
mov eax, dword [ebp - 0x64]
call fcn.00486b4d
ret
Function at 0x4241e0
Capabilities:
Encrypt data using dpapi

Disassembly:
push 0x48
mov eax, 0x49ed8f
call fcn.00486a61
mov ebx, ecx
push str.CInternetExplorer::CryptGUID
lea esi, [ebp - 0x38]
call fcn.00404db2
xor edi, edi
mov dword [ebp - 4], edi
call fcn.00404e64
or dword [ebp - 4], 0xffffffff
push edi
push 1
call fcn.00404f5a
mov eax, ebx
push 2
mov dword [ebp - 0x18], ebx
lea ecx, [eax + 2]
pop ebx
mov dx, word [eax]
add eax, ebx
cmp dx, di
jne 0x42421c
sub eax, ecx
sar eax, 1
lea eax, [eax + eax + 2]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
push eax
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
jne 0x424269
push str.CInternetExplorer::CryptGUID:_FAIL
lea esi, [ebp - 0x38]
call fcn.00404db2
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
call fcn.00404e64
push edi
push ebx
call fcn.00404f5a
jmp 0x4242b5
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp + 0xc]
push eax
mov dword [esi], eax
call fcn.00480474
pop ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
cmp eax, edi
je 0x4242ac
push dword [esi]
push dword [ebp - 0x10]
push eax
call fcn.00485d70
add esp, 0xc
push str.CInternetExplorer::CryptGUID:_copy_guid
lea esi, [ebp - 0x54]
call fcn.00404db2
mov dword [ebp - 4], ebx
call fcn.00404e64
push edi
push 1
call fcn.00404f5a
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
call fcn.00486b39
ret 8