joyce8/EMBER2024-capa huggingface dataset:
Function at 0x463e90
Capabilities:
Check if file exists
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4faef6
mov eax, dword fs:[0]
push eax
mov eax, 0x1014
call fcn.004dae70
mov eax, dword [0x53f030]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ebx, [ecx + 0x1c]
push dword [ebx]
mov dword [ebp - 0x101c], eax
mov dword [ebp - 0x1020], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x464027
push 0x7fe
push eax
mov word [ebp - 0x1010], ax
lea eax, [ebp - 0x100e]
push eax
call fcn.004d9060
add esp, 0xc
lea eax, [ebp - 0x1010]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x464027
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x1014]
call fcn.0043a420
push 0x1d
push str.MozillaFirefoxprofiles.ini
lea ecx, [ebp - 0x1014]
mov dword [ebp - 4], 0
call fcn.00452320
push dword [ebp - 0x1014]
xor eax, eax
lea edi, [ebp - 0x810]
push 0x400
mov ecx, 0x200
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x810]
push eax
push 0x507ffc
push str.Path
push str.Profile0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, 0x400
or esi, 0xffffffff
sub ecx, eax
cmp ecx, 2
jle 0x464003
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x1018]
call fcn.0043a420
push 0x509c8c
push 0x50af18
lea ecx, [ebp - 0x1018]
mov byte [ebp - 4], 1
call fcn.0044b1f0
push dword [ebp - 0x1018]
lea ecx, [ebp - 0x1014]
push 0x50af1c
call fcn.0044b1f0
lea eax, [ebp - 0x1014]
mov ecx, ebx
push eax
call fcn.0043a620
mov edx, dword [ebp - 0x1018]
mov ecx, esi
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x464003
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1014]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x464027
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebx]
sub ecx, 0x10
push ecx
call fcn.0043a9d0
mov ecx, dword [ebp - 0x101c]
add esp, 4
add eax, 0x10
mov dword [ecx], eax
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d89fb
mov esp, ebp
pop ebp
ret 4
Function at 0x465fc0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb228
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x53f030]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.0043ae40
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x466004
push 0x80004005
call fcn.0043a9b0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push 0x50a780
push dword [0x53e87c]
push reloc.WS2_32.dll_accept
call fcn.004b9fe0
add esp, 0x10
or ebx, 0xffffffff
test eax, eax
je 0x466048
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
jge 0x466173
lea eax, [ebp - 0x10]
push eax
push 0x50a780
push dword [0x53e87c]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004b9fe0
mov esi, dword [ebp - 0x10]
add esp, 0x10
test eax, eax
je 0x466075
cmp dword [esi - 0xc], 0
jge 0x466173
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 1
push eax
push dword [0x53e888]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004cca00
add esp, 0xc
test eax, eax
je 0x466154
cmp dword [ebp - 0x20], 0
jle 0x466154
call fcn.0043ae40
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4660da
push 0x80004005
call fcn.0043a9b0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 2
lea ecx, [eax - 1]
cmp ecx, eax
jb 0x4660ff
push 0x80070057
call fcn.0043a9b0
mov eax, dword [ebp - 0x24]
push dword [eax + ecx*4]
lea eax, [ebp - 0x14]
push dword [0x53e888]
push str._s_sMain
push eax
call fcn.0043ad30
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push dword [0x53e88c]
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004b9fe0
add esi, 0xfffffff0
mov byte [ebp - 4], 1
add esp, 0x20
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x466151
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x46616f
push dword [ebp - 0x20]
push eax
call fcn.00490380
push dword [ebp - 0x24]
call fcn.004d92bb
add esp, 0xc
cmp dword [esi - 0xc], 0
jle 0x466187
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x466187
mov edi, 1
jmp 0x466189
xor edi, edi
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4661a7
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x466fd0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb3e8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x53f030]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.0044a370
call fcn.0043ae40
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x467020
push 0x80004005
call fcn.0043a9b0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
call fcn.0043ae40
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x46704e
push 0x80004005
call fcn.0043a9b0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
mov byte [ebp - 4], 1
jge 0x467084
push 0x104
lea ecx, [ebp + 8]
call fcn.0043b5a0
mov eax, dword [ebp + 8]
push 0
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ecx, dword [ebp + 8]
mov esi, eax
push dword [ecx - 8]
push ecx
call fcn.004d9e5f
mov edx, eax
add esp, 8
test edx, edx
js 0x46719d
mov ecx, dword [ebp + 8]
cmp edx, dword [ecx - 8]
jg 0x46719d
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp + 8]
mov word [eax + edx*2], cx
test esi, esi
je 0x4670e8
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push str._sMozilla_Firefox_browser_searchplugins
push eax
call fcn.0043ad30
add esp, 0xc
lea eax, [ebp - 0x10]
mov ecx, ebx
push edi
push eax
call fcn.004671b0
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.00463e90
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 2
cmp dword [esi - 0xc], 0
je 0x46711e
push esi
lea eax, [ebp - 0x10]
push str._s_searchplugins
push eax
call fcn.0043ad30
add esp, 0xc
lea eax, [ebp - 0x10]
mov ecx, ebx
push edi
push eax
call fcn.004671b0
xor ebx, ebx
mov byte [ebp - 4], 1
cmp dword [edi + 4], ebx
lea edx, [esi - 0x10]
lea ecx, [edx + 0xc]
setne bl
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x467146
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
mov ecx, esi
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x467166
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x10]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x467187
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.0043a9b0
int3
Function at 0x467640
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb4ac
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x53f030]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x98]
push eax
call fcn.00463e90
mov esi, dword [ebp - 0x98]
or edi, 0xffffffff
mov dword [ebp - 4], 0
cmp dword [esi - 0xc], 0
je 0x467769
push ecx
mov ecx, esp
mov dword [ebp - 0xa0], esp
push str.extensions.sqlite
call fcn.0043a420
push ecx
add esi, 0xfffffff0
mov byte [ebp - 4], 1
mov edi, esp
push esi
call fcn.0043a9d0
add eax, 0x10
add esp, 4
mov dword [edi], eax
lea eax, [ebp - 0x9c]
mov byte [ebp - 4], 0
push eax
call fcn.004c4580
add esp, 0xc
push eax
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 2
call fcn.0043a620
mov edx, dword [ebp - 0x9c]
or edi, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46770b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x98]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x467769
push 3
lea eax, [ebp - 0x90]
push esi
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x94], eax
call fcn.00465ce0
push dword [ebp - 0x94]
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.0045a670
xor ebx, ebx
lea ecx, [ebp - 0x90]
test eax, eax
mov eax, dword [ebp - 0x94]
sete bl
cmp eax, ecx
je 0x46776b
push eax
call fcn.004d92bb
add esp, 4
jmp 0x46776b
xor ebx, ebx
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x467789
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d89fb
mov esp, ebp
pop ebp
ret 4
Function at 0x468680
Capabilities:
Copy file
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb656
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x53f030]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x9c], edi
mov eax, dword [edi + 0xc]
cmp dword [eax - 0xc], 0
je 0x468865
mov eax, dword [edi + 0x14]
cmp dword [eax - 0xc], 0
je 0x468865
add eax, 0xfffffff0
push eax
call fcn.0043a9d0
add eax, 0x10
add esp, 4
mov dword [ebp - 0xa0], eax
push str.prefs.js.new
push str.prefs.js
lea ecx, [ebp - 0xa0]
mov dword [ebp - 4], 0
call fcn.0044b1f0
mov esi, dword [ebp - 0xa0]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0xa4], ebx
cmp ebx, 0xffffffff
je 0x46883e
push 0xfde9
push dword [edi + 0xc]
lea eax, [ebp - 0x90]
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x94], eax
call fcn.00465ce0
mov edx, dword [ebp - 0x94]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x98], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x468768
sub ecx, dword [ebp - 0x98]
lea eax, [ebp - 0xa8]
push 0
push eax
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0xa4]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x94]
lea ecx, [ebp - 0x90]
cmp eax, ecx
je 0x4687ae
push eax
call fcn.004d92bb
add esp, 4
test ebx, ebx
je 0x46883e
mov eax, dword [edi + 0x14]
sub eax, 0x10
push eax
call fcn.0043a9d0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x98], eax
push str.prefs.js.bak
push str.prefs.js
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 1
call fcn.0044b1f0
mov edi, dword [ebp - 0x98]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x9c]
push 0
push edi
push dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x46881e
mov eax, dword [ebp - 0x9c]
push 0
push dword [eax + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
add edi, 0xfffffff0
mov byte [ebp - 4], 0
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x468840
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x468840
xor ebx, ebx
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x468861
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
jmp 0x468867
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d89fb
mov esp, ebp
pop ebp
ret
Function at 0x468a80
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb6d6
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x53f030]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x120], ebx
mov eax, dword [ebx + 0xc]
lea ecx, [ebx + 0xc]
cmp dword [eax - 0xc], 0
je 0x468ad5
cmp dword [ebp + 8], 0
jne 0x468ad5
mov eax, 1
jmp 0x468c9c
mov dword [ebp - 0x128], 0
call fcn.0043ac50
mov eax, dword [ebx + 0x14]
cmp dword [eax - 0xc], 0
jne 0x468b51
lea eax, [ebp - 0x11c]
mov ecx, ebx
push eax
call fcn.00463e90
push eax
lea ecx, [ebx + 0x14]
mov dword [ebp - 4], 0
call fcn.0043a620
mov edx, dword [ebp - 0x11c]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x468b32
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx + 0x14]
cmp dword [eax - 0xc], 0
jne 0x468b42
xor eax, eax
jmp 0x468c9c
push 9
push 0x50ae10
lea ecx, [ebx + 0x14]
call fcn.00452320
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push dword [ebx + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x11c], ebx
cmp ebx, 0xffffffff
je 0x468c98
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x468c8d
cmp edi, 0x200000
jae 0x468c8d
lea eax, [edi + 1]
push eax
call fcn.004d7faf
mov esi, eax
add esp, 4
mov dword [ebp - 0x124], esi
test esi, esi
je 0x468c8d
push 0
lea eax, [ebp - 0x12c]
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x468c79
cmp dword [ebp - 0x12c], edi
jne 0x468c79
push 0xfde9
lea eax, [ebp - 0x114]
mov byte [esi + edi], 0
push esi
lea ecx, [ebp - 0x118]
mov dword [ebp - 4], 1
mov dword [ebp - 0x118], eax
call fcn.00445c90
mov ecx, dword [ebp - 0x120]
push dword [ebp - 0x118]
mov byte [ebp - 4], 2
lea ecx, [ecx + 0xc]
call fcn.0043a690
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x114]
mov edi, 1
cmp eax, ecx
je 0x468c7b
push eax
call fcn.004d92bb
add esp, 4
push esi
call fcn.004d89f6
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x468c9a
xor edi, edi
push esi
call fcn.004d89f6
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x468c9a
push ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x468c9a
xor edi, edi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d89fb
mov esp, ebp
pop ebp
ret 4
Function at 0x469dc0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fceb0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x53f030]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor bl, bl
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, eax
call fcn.0043ae40
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x469e0e
push 0x80004005
call fcn.0043a9b0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
inc esi
jns 0x469e38
push 0x80070057
call fcn.0043a9b0
mov eax, dword [ebp - 0x10]
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x469e58
push esi
lea ecx, [ebp - 0x10]
call fcn.0043b5a0
mov eax, dword [ebp - 0x10]
push esi
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [ebp - 0x10]
push dword [eax - 8]
push eax
call fcn.004d9e5f
mov edx, eax
add esp, 8
test edx, edx
js 0x469e2e
mov ecx, dword [ebp - 0x10]
cmp edx, dword [ecx - 8]
jg 0x469e2e
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x10]
push str.Options___Mozilla_Firefox
mov word [eax + edx*2], cx
lea ecx, [ebp - 0x14]
call fcn.0043a420
push 0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0045ebf0
mov esi, dword [ebp - 0x14]
or edi, 0xffffffff
add esi, 0xfffffff0
mov dword [ebp - 0x18], eax
add esp, 0xc
mov byte [ebp - 4], 0
mov ecx, edi
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x469ed6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
test eax, eax
mov eax, 1
movzx ebx, bl
cmovne ebx, eax
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x469f04
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46aeb0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fbad8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x53f030]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
push eax
call fcn.004be730
add esp, 4
test eax, eax
je 0x46b095
call fcn.0043ae40
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x46af25
push 0x80004005
call fcn.0043a9b0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
push edi
mov byte [ebp - 4], 1
call fcn.0045ada0
add esp, 8
test eax, eax
jne 0x46af53
push edi
lea ecx, [ebp - 0x10]
call fcn.0043a620
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.0049dee0
or esi, 0xffffffff
test eax, eax
jne 0x46b01b
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.0043a9d0
add eax, 0x10
add esp, 4
mov dword [ebp + 8], eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.0043bbc0
mov ecx, eax
call fcn.0043bb10
mov eax, dword [ebp + 8]
mov edx, str.about:home
cmp dword [eax - 0xc], 0
cmovne edx, eax
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46afa4
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp + 8]
call fcn.0043b750
mov eax, dword [ebp + 8]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x46affe
mov edx, eax
lea edi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x46afd0
sub edx, edi
sar edx, 1
lea ecx, [edx*2 + 2]
push ecx
push eax
push 1
push 0
push dword [0x53ec98]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp + 8]
lea edx, [eax - 0x10]
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46b01b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
xor eax, eax
test edx, edx
setne al
test eax, eax
je 0x46b05b
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46b030
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push dword [0x53ec9c]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x46b070
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x46b095
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x46b0a3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x46b0c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fbb18
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x53f030]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
push eax
call fcn.004be730
add esp, 4
test eax, eax
je 0x46b2b4
mov esi, dword [ebp + 8]
mov ecx, edi
push esi
call fcn.0049dfb0
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x46b1a7
mov edx, dword [esi]
xor eax, eax
test edx, edx
setne al
test eax, eax
je 0x46b167
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46b140
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push dword [0x53eca0]
push dword [ebp - 0x1c]
call edi
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
xor eax, eax
test edx, edx
setne al
test eax, eax
je 0x46b1a7
mov ecx, edx
lea esi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46b180
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push dword [0x53eca4]
push dword [ebp - 0x1c]
call edi
call fcn.0043ae40
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x46b1c3
push 0x80004005
call fcn.0043a9b0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
call fcn.0043ae40
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x46b1f0
push 0x80004005
call fcn.0043a9b0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp + 8]
mov ecx, 0x543c90
push eax
mov eax, dword [0x543c90]
call dword [eax + 0x20]
mov eax, dword [ebp + 8]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x46b257
mov edx, eax
lea esi, [edx + 2]
lea esp, [esp]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x46b230
sub edx, esi
sar edx, 1
lea ecx, [edx*2 + 2]
push ecx
push eax
push 1
push 0
push dword [0x53eca8]
push dword [ebp - 0x1c]
call edi
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x46b26c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x10]
or esi, 0xffffffff
add edx, 0xfffffff0
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 1
mov eax, esi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x46b296
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x46b2b4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x46b2c2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8