joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..pdata
nop
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
mov ebx, 0x408f6c
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x758646c2
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
loop 0x430060
nop
nop
nop
nop
mov eax, section..pdata_1
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x739b5f04
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x4177e4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4213ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00410d17
and dword [ebp - 0x14], 0
cmp dword [0x81edf0], 0
mov dword [ebp - 0x18], eax
jne 0x417897
push 0x403f30
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41793f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403f24
push ebx
call edi
test eax, eax
je 0x41793f
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403f14
push ebx
mov dword [0x81edf0], eax
call edi
push eax
call esi
push 0x403f00
push ebx
mov dword [0x81edf4], eax
call edi
push eax
call esi
push 0x403ee4
push ebx
mov dword [0x81edf8], eax
call edi
push eax
call esi
mov dword [0x81ee00], eax
test eax, eax
je 0x417897
push 0x403ecc
push ebx
call edi
push eax
call esi
mov dword [0x81edfc], eax
mov eax, dword [0x81edfc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4178f0
cmp dword [0x81ee00], ecx
je 0x4178f0
push eax
call esi
push dword [0x81ee00]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4178f0
test ebx, ebx
je 0x4178f0
call edi
test eax, eax
je 0x4178e7
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4178e7
test byte [ebp - 8], 1
jne 0x4178f0
or dword [ebp + 0x10], 0x200000
jmp 0x417923
mov eax, dword [0x81edf4]
cmp eax, dword [ebp - 0x18]
je 0x417923
push eax
call esi
test eax, eax
je 0x417923
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x417923
mov eax, dword [0x81edf8]
cmp eax, dword [ebp - 0x18]
je 0x417923
push eax
call esi
test eax, eax
je 0x417923
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x81edf0]
call esi
test eax, eax
je 0x41793f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x417941
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b26b
leave
ret
Function at 0x419200
Capabilities:
Get common file path
Manipulate console buffer

Disassembly:
mov eax, 0x1388
call fcn.004180a0
cmp dword [0xcc9244], 0x37
push esi
jne 0x419306
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualUnlock]
push 0
lea ecx, [esp + 0xb8c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
mov esi, dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea edx, [esp + 0xc]
push edx
push 0
push 0
push 0
call esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
mov eax, dword [esp + 0xc]
push 0
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
push 0
lea ecx, [esp + 0x38c]
push ecx
push 0x404024
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea edx, [esp + 0x78c]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x168]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0
call esi
push 0x40403c
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
lea edx, [esp + 0x14]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProfileSectionW]
push 0x30
lea ecx, [esp + 0x24]
push 0
push ecx
mov dword [esp + 0x28], 0
call fcn.0040a590
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CommConfigDialogW]
mov eax, dword [0xccb9a8]
mov dword [esp + 8], eax
mov eax, 0x5d1
add dword [esp + 8], eax
mov ecx, dword [esp + 8]
mov dl, byte [ecx + edi]
mov eax, dword [0xcc7a3c]
mov byte [eax + edi], dl
pop esi
add esp, 0x1388
ret
Function at 0x430002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x6565712e
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x515f1b0c
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x40144e
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x40143b
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x40146b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret
Function at 0x401898
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10018
call fcn.0041a650
mov eax, dword [0x427014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor ebx, ebx
push edi
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push ecx
mov dword [ebp - 0x10010], edx
mov dword [ebp - 0x10018], eax
mov dword [eax], ebx
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x401aaa
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push dword [ebp - 0x10010]
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x401a8f
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
call ebx
push 0
push esi
mov dword [ebp - 0x1000c], eax
call ebx
mov ecx, eax
xor ebx, ebx
mov eax, dword [ebp - 0x1000c]
cmp eax, 0xffffffff
je 0x401a8f
cmp ecx, 0xffffffff
je 0x401a8f
cmp eax, ecx
jne 0x401a7f
mov ecx, eax
mov dword [ebp - 0x10010], ebx
shr ecx, 0xf
and eax, 0x7fff
mov dword [ebp - 0x10014], ecx
mov dword [ebp - 0x1000c], eax
test ecx, ecx
je 0x401a0c
push ebx
lea eax, [ebp - 0x10008]
push eax
push 0x8000
lea eax, [ebp - 0x8004]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401a8f
mov ecx, 0x8000
cmp dword [ebp - 0x10008], ecx
jne 0x401a8f
push ebx
lea eax, [ebp - 0x10008]
push eax
push ecx
lea eax, [ebp - 0x10004]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401a8f
cmp dword [ebp - 0x10008], 0x8000
jne 0x401a8f
lea edx, [ebp - 0x8004]
mov ecx, ebx
mov eax, dword [edx + ecx*4]
lea edx, [ebp - 0x10004]
cmp eax, dword [edx + ecx*4]
lea edx, [ebp - 0x8004]
jne 0x401a7d
inc ecx
cmp ecx, 0x2000
jne 0x4019cc
mov eax, dword [ebp - 0x10010]
inc eax
mov dword [ebp - 0x10010], eax
cmp eax, dword [ebp - 0x10014]
jb 0x401961
mov eax, dword [ebp - 0x1000c]
test eax, eax
je 0x401a82
push ebx
lea ecx, [ebp - 0x10008]
push ecx
push eax
lea eax, [ebp - 0x8004]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401a8f
mov eax, dword [ebp - 0x1000c]
cmp dword [ebp - 0x10008], eax
jne 0x401a8f
push ebx
lea ecx, [ebp - 0x10008]
push ecx
push eax
lea eax, [ebp - 0x10004]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401a8f
mov eax, dword [ebp - 0x1000c]
cmp dword [ebp - 0x10008], eax
jne 0x401a8f
push eax
lea eax, [ebp - 0x10004]
push eax
lea eax, [ebp - 0x8004]
push eax
call fcn.0041af4b
add esp, 0xc
test eax, eax
je 0x401a82
xor ebx, ebx
inc ebx
jmp 0x401a8f
mov eax, dword [ebp - 0x10018]
xor ecx, ecx
inc ecx
mov ebx, ecx
mov dword [eax], ecx
test esi, esi
je 0x401a9f
cmp esi, 0xffffffff
je 0x401a9f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x401aaa
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004053c9
mov esp, ebp
pop ebp
ret
Function at 0x401abd
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push 0x20206
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallMozillaMaintenanceService
push 0x80000002
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x401ae9
xor eax, eax
jmp 0x401b29
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x401aee
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push edi
push str.DisplayVersion
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401b2f
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 8], edx
push 0
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
push edi
call fcn.00405861
pop ecx
mov esi, eax
push esi
push edi
xor edi, edi
push edi
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x401b6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_obtain_file_info_of_old_service.____d_
jmp 0x401b96
lea eax, [ebp - 0xc]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 4]
push eax
push 0x422d64
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x401ba6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_query_file_version_info_of_old_service.____d_
call fcn.00401034
push eax
call fcn.004049ba
add esp, 0xc
jmp 0x401bd0
mov edx, dword [ebp - 4]
xor edi, edi
mov ecx, dword [ebp - 8]
inc edi
movzx eax, word [edx + 0xa]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
movzx ecx, word [edx + 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0xc]
movzx ecx, word [edx + 0xe]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
movzx ecx, word [edx + 0xc]
mov dword [eax], ecx
test esi, esi
je 0x401bdb
push esi
call fcn.00405894
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401be4
Capabilities:
Check if file exists
Get file attributes
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb80
mov eax, dword [0x427014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x105
lea eax, [ebp - 0x218]
mov edi, ecx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x401c32
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_obtain_module_filename_when_attempting_to_modify_service_description.____d_
call fcn.00401034
push eax
call fcn.004049ba
add esp, 0xc
jmp 0x401d8c
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x401c51
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_remove_file_spec_when_attempting_to_modify_service_description.____d_
jmp 0x401c1f
mov edx, str.updater.ini
lea ecx, [ebp - 0x218]
call fcn.00404dd1
test eax, eax
jne 0x401c73
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_append_updater.ini_filename_when_attempting_to_modify_service_description.____d_
jmp 0x401c1f
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x401c93
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.updater.ini_file_does_not_exist__will_not_modify_service_description.____d_
jmp 0x401c1f
push ecx
lea eax, [ebp - 0x470]
push eax
push ecx
lea ecx, [ebp - 0x218]
call fcn.0040434c
movzx ecx, byte [ebp - 0x470]
mov esi, eax
xor eax, eax
test esi, esi
push 0x257
cmovne ecx, eax
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0xb78]
mov byte [ebp - 0x470], cl
push eax
call fcn.0040a010
add esp, 0x18
mov byte [ebp - 0x921], 0
test esi, esi
jne 0x401d7a
lea ecx, [ebp - 0xb78]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401cf0
sub ecx, edx
je 0x401d7a
push 0x258
lea eax, [ebp - 0x920]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xb78]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x401d32
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_convert_description_to_wide_string_format.____d_
jmp 0x401c1f
lea eax, [ebp - 0x920]
mov dword [ebp - 0xb7c], eax
lea eax, [ebp - 0xb7c]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x401d63
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_change_service_config.____d_
jmp 0x401c1f
push str.The_service_description_was_updated_successfully.
call fcn.00401034
push eax
call fcn.00404982
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x401d8e
push str.updater.ini_file_does_not_contain_a_maintenance_service_description.
call fcn.00401034
push eax
call fcn.004049ba
pop ecx
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004053c9
mov esp, ebp
pop ebp
ret
Function at 0x401d9e
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x427014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
mov dword [ebp - 0x214], ecx
mov esi, edi
xor ecx, ecx
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, cx
jne 0x401dc6
sub esi, edx
sar esi, 1
cmp esi, 2
jbe 0x401e17
push str.maintenanceservice_tmp.exe
push edi
call fcn.0040609a
pop ecx
pop ecx
test eax, eax
jne 0x401e17
push 0x22
pop eax
cmp word [edi], ax
jne 0x401e17
cmp word [edi + esi*2 - 2], ax
jne 0x401e17
push str.The_MozillaMaintenance_service_path_is_correct.
call fcn.00401034
push eax
call fcn.00404982
and dword [ebx], 0
xor eax, eax
pop ecx
pop ecx
inc eax
jmp 0x401f0e
push edi
push str.The_MozillaMaintenance_path_is_NOT_correct._It_was:__ls
call fcn.00401034
push eax
call fcn.00404982
xor esi, esi
lea eax, [ebp - 0x210]
inc esi
mov dword [ebx], esi
xor ebx, ebx
push 0x20a
push ebx
push eax
call fcn.00406850
push 0x104
lea eax, [ebp - 0x210]
push edi
push eax
call fcn.00407187
add esp, 0x24
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x401e92
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Couldnt_remove_file_spec.____d_
call fcn.00401034
push eax
call fcn.004049ba
add esp, 0xc
xor eax, eax
jmp 0x401f0e
mov edx, 0x4230b4
lea ecx, [ebp - 0x210]
call fcn.00404dd1
test eax, eax
jne 0x401eb4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Couldnt_append_file_spec.____d_
jmp 0x401e80
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x210]
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x401ef2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_fix_service_path.____d_
jmp 0x401e80
lea ecx, [ebp - 0x210]
push ecx
push str.Fixed_service_path_to:__ls.
call fcn.00401034
push eax
call fcn.00404982
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004053c9
mov esp, ebp
pop ebp
ret
Function at 0x402517
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x427014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x40255e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_open_service_manager.____d_
call fcn.00401034
push eax
call fcn.004049ba
add esp, 0xc
jmp 0x40264a
push 0xf01ff
push str.MozillaMaintenance
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x40259b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_open_service.____d_
call fcn.00401034
push eax
call fcn.004049ba
add esp, 0xc
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40264a
push str.Sending_stop_request...
call fcn.00401034
push eax
call fcn.00404982
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x20]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x4025ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x4025ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_sending_stop_request.____d_
call fcn.00401034
push eax
call fcn.004049ba
add esp, 0xc
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
push str.Waiting_for_service_stop...
call fcn.00401034
push eax
call fcn.00404982
pop ecx
pop ecx
call fcn.00404f58
mov esi, eax
call fcn.004050f6
cmp eax, 0x490
je 0x40262e
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0x1e
jb 0x402611
push esi
push str.Done_waiting_for_service_stop__last_service_state:__d
call fcn.00401034
push eax
call fcn.00404982
xor ebx, ebx
add esp, 0xc
cmp esi, 1
sete bl
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004053c9
mov esp, ebp
pop ebp
ret
Function at 0x40265d
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x427014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x4026a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_open_service_manager.____d_
call fcn.00401034
push eax
call fcn.004049ba
add esp, 0xc
jmp 0x402740
push 0xf01ff
push str.MozillaMaintenance
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x4026d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_open_service.____d_
call fcn.00401034
push eax
call fcn.004049ba
add esp, 0xc
jmp 0x402739
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
jmp 0x402710
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 8]
add eax, 0xa
add ebx, eax
cmp dword [ebp - 0x1c], 1
je 0x402714
cmp ebx, 0xea60
ja 0x402714
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4026e6
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov ebx, eax
test ebx, ebx
jne 0x402732
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ebx, [eax - 0x430]
neg ebx
sbb ebx, ebx
inc ebx
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004053c9
mov esp, ebp
pop ebp
ret
Function at 0x402acc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x427014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, edx
xor ebx, ebx
push edi
push 0x20a
mov dword [ebp - 0x240], eax
mov esi, ecx
mov dword [eax], ebx
lea eax, [ebp - 0x23c]
push ebx
push eax
call fcn.00406850
push 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call fcn.00407187
add esp, 0x18
lea ecx, [ebp - 0x23c]
mov edx, str.update.status
call fcn.00404dd1
test eax, eax
jne 0x402b44
push str.Could_not_append_path_for_update.status_file
call fcn.00401034
push eax
call fcn.004049ba
pop ecx
pop ecx
xor eax, eax
jmp 0x402bf3
push ebx
push ebx
push 3
push ebx
push 7
push 0x80000000
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x244], esi
cmp esi, 0xffffffff
jne 0x402b71
push str.Could_not_open_update.status_file
jmp 0x402b9f
push 7
pop ecx
xor eax, eax
mov byte [ebp - 0x30], bl
lea edi, [ebp - 0x2f]
rep stosd dword es:[edi], eax
push ebx
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x248]
push eax
push 0x20
lea eax, [ebp - 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x402bae
push str.Could_not_read_from_update.status_file
call fcn.00401034
push eax
call fcn.004049ba
pop ecx
pop ecx
jmp 0x402be1
mov esi, str.applying
lea edi, [ebp - 0x10]
push 8
lea eax, [ebp - 0x10]
push eax
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x30]
push eax
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call fcn.0040a430
mov ecx, dword [ebp - 0x240]
add esp, 0xc
mov esi, dword [ebp - 0x244]
neg eax
sbb eax, eax
xor ebx, ebx
inc eax
inc ebx
mov dword [ecx], eax
test esi, esi
je 0x402bf1
cmp esi, 0xffffffff
je 0x402bf1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004053c9
mov esp, ebp
pop ebp
ret