joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40348f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov byte [ebp - 0x38], 0x56
mov byte [ebp - 0x37], 0x69
mov byte [ebp - 0x36], 0x72
mov byte [ebp - 0x35], 0x74
mov byte [ebp - 0x34], 0x75
mov byte [ebp - 0x33], 0x61
mov byte [ebp - 0x32], 0x6c
mov byte [ebp - 0x31], 0x50
mov byte [ebp - 0x30], 0x72
mov byte [ebp - 0x2f], 0x6f
mov byte [ebp - 0x2e], 0x74
mov byte [ebp - 0x2d], 0x65
mov byte [ebp - 0x2c], 0x63
mov byte [ebp - 0x2b], 0x74
mov byte [ebp - 0x2a], 0
lea eax, [ebp - 0x38]
push eax
call fcn.004035f1
push eax
call fcn.00403623
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x1c], 0x47
mov byte [ebp - 0x1b], 0x65
mov byte [ebp - 0x1a], 0x74
mov byte [ebp - 0x19], 0x4d
mov byte [ebp - 0x18], 0x6f
mov byte [ebp - 0x17], 0x64
mov byte [ebp - 0x16], 0x75
mov byte [ebp - 0x15], 0x6c
mov byte [ebp - 0x14], 0x65
mov byte [ebp - 0x13], 0x48
mov byte [ebp - 0x12], 0x61
mov byte [ebp - 0x11], 0x6e
mov byte [ebp - 0x10], 0x64
mov byte [ebp - 0xf], 0x6c
mov byte [ebp - 0xe], 0x65
mov byte [ebp - 0xd], 0x41
mov byte [ebp - 0xc], 0
lea ecx, [ebp - 0x1c]
push ecx
call fcn.004035f1
push eax
call fcn.00403623
mov dword [ebp - 4], eax
push 0
call dword [ebp - 4]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x3c]
add ecx, dword [ebp - 0x20]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
add edx, 4
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x3c]
add eax, 0xf8
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x40]
push ecx
push 0x40
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
add edx, dword [ecx + 0xc]
push edx
call dword [ebp - 0x24]
call fcn.00403708
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4035f1
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403623
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x3c]
add edx, dword [ebp + 8]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x78]
push edx
call fcn.00403618
add esp, 8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x20]
push edx
call fcn.00403618
add esp, 8
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x24]
push edx
call fcn.00403618
add esp, 8
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x1c]
push edx
call fcn.00403618
add esp, 8
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
jmp 0x4036a5
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
cmp edx, dword [ecx + 0x18]
jae 0x403700
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx*4]
push eax
call fcn.00403618
add esp, 8
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.0040358c
add esp, 8
test eax, eax
jne 0x4036fe
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
xor eax, eax
mov ax, word [edx + ecx*2]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + eax*4]
push edx
call fcn.00403618
add esp, 8
jmp 0x403702
jmp 0x40369c
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x405912
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083f8
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x4083e8
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405963
xor eax, eax
jmp 0x40598a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x40598a
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x40595f
call esi
pop esi
leave
ret 4

Function at 0x4059c4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x426710], 0x44
push eax
xor eax, eax
push 0x426710
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405a03
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x405a07
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x405aa5
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405eac
mov edi, eax
cmp edi, 0xffffffff
je 0x405ae6
test byte [esp + 0x10], 1
push esi
je 0x405ac8
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405ace
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405ad7
xor eax, eax
inc eax
jmp 0x405ae8
test byte [esp + 0x10], 4
jne 0x405ae6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x1001b611
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x1001b620
pop dword [ebp - 0x3c]
mov eax, 0x1001b620
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x4055a
push 0
mov eax, 0xe57c6955
sub eax, 0xd5790879
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0x6bb784c2
add ecx, 0x9448c2d7
mov ebx, eax
mov esi, 0x1003be00
add esi, dword [ebp - 0x3c]
mov edi, 0x2888527c
add edi, 0x8c8bbb9b
xor dword [ebp - 0x1c], edi
mov edx, dword [esi]
mov dword [ebp - 0x34], 0x69366fdb
xor edx, edi
sub dword [ebp - 0x38], edi
mov dword [ebx], edx
add ebx, 0x9835b47
sub ebx, 0x9835b43
add esi, 0x189aa9e9
add esi, 0xe765561b
loop 0x1001b674
add eax, 0xd1d4cc22
sub eax, 0xd1d3baeb
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x8f3236e3
add ecx, 0x80cdc91d
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x100289d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x100330b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10035b0c]
test dword [ebp + 8], eax
je 0x10028a7a
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push eax
call fcn.1001b611
xor eax, eax
add esp, 0xc
mov word [ebp - 8], ax
mov eax, dword [0x10035b08]
test eax, eax
je 0x10028a6d
lea ecx, [ebp - 0x808]
push ecx
push eax
call fcn.1001b611
mov eax, dword [0x100330ac]
pop ecx
pop ecx
test eax, eax
jle 0x10028a7a
push esi
mov esi, dword [0x10035b10]
push edi
mov edi, dword [0x10035b14]
cdq
push edx
push eax
push edi
push esi
call fcn.10029420
add esi, 1
mov dword [0x10035b10], esi
adc edi, 0
or eax, edx
mov dword [0x10035b14], edi
pop edi
pop esi
jne 0x10028a7a
push dword [0x10035b08]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
pop ecx
jmp 0x10028a7a
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10028d50
leave
ret
Function at 0x401220
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push esi
push edi
push str.GlobalAccess_MACMSharedMemory
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
or ebx, 0xffffffff
test edi, edi
je 0x401245
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x194]
test eax, eax
je 0x40125a
cmp dword [eax], 0x4d41434d
jne 0x40125a
mov ebx, dword [eax + 0x20]
test edi, edi
je 0x40126c
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x4012f2
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
call fcn.004011fd
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov esi, eax
add esi, 0x1388
mov ecx, ebx
call fcn.00401220
test eax, eax
je 0x4012aa
cmp eax, 0xffffffff
je 0x4012aa
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
cmp eax, esi
jb 0x40128c
pop edi
pop esi
pop ebx
ret
push ebx
push edi
push str.GlobalAccess_MACMSharedMemory
push 0
push 0
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebx, eax
test ebx, ebx
je 0x401314
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
mov esi, dword [edi + 0x194]
test esi, esi
je 0x40135b
mov ecx, dword [edi + 0x198]
test ecx, ecx
je 0x40135b
cmp dword [esi], 0x4d41434d
jne 0x40135b
mov eax, dword [esi + 0x10]
mov edx, dword [ecx + 0x10]
imul eax, dword [esi + 0xc]
imul edx, dword [ecx + 0xc]
add eax, dword [esi + 8]
add edx, dword [ecx + 8]
cmp eax, edx
jne 0x40135b
push eax
push ecx
push esi
call sub.MSVCR90.dll_memcpy
add esp, 0xc
mov dword [esi + 0x20], 0xab0001
pop esi
test ebx, ebx
je 0x40136e
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
pop edi
pop ebx
jmp 0x401272

Function at 0x401d3a
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push edi
mov edi, ecx
call fcn.004012d9
push str.GlobalAccess_MACMSharedMemory
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebx, eax
test ebx, ebx
je 0x401d61
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [edi + 0x194]
test eax, eax
je 0x401d9d
cmp dword [eax], 0x4d41434d
jne 0x401d9d
push esi
mov esi, dword [eax + 0x10]
imul esi, dword [eax + 0xc]
add esi, dword [eax + 8]
je 0x401d9c
push esi
call sub.mfc90.dll_Ordinal_265
push esi
push dword [edi + 0x194]
mov dword [edi + 0x198], eax
push eax
call sub.MSVCR90.dll_memcpy
add esp, 0x10
pop esi
test ebx, ebx
je 0x401daf
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
ret
Function at 0x4014ce
Capabilities:
Create thread

Disassembly:
push esi
xor esi, esi
push esi
push esi
push esi
push 0x4014bb
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
pop esi
je 0x4014ed
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret

Function at 0x401737
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push 0
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
push esi
call fcn.004057d2
pop ecx
mov edi, eax
push edi
push esi
push 0
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x40178c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_obtain_file_info_of_old_service.____d_
call fcn.0040101c
mov esi, eax
call fcn.004040f1
push edi
call fcn.0040573a
add esp, 0xc
xor eax, eax
pop edi
pop esi
leave
ret
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x415678
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x4017ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_query_file_version_info_of_old_service.____d_
call fcn.0040101c
mov esi, eax
call fcn.004040f1
pop ecx
pop ecx
xor esi, esi
push edi
call fcn.0040573a
pop ecx
mov eax, esi
jmp 0x401788
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0xa]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
movzx ecx, word [eax + 8]
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
movzx ecx, word [eax + 0xe]
mov edx, dword [ebp + 0x14]
movzx eax, word [eax + 0xc]
mov dword [edx], ecx
mov ecx, dword [ebp + 0x18]
xor esi, esi
mov dword [ecx], eax
inc esi
jmp 0x4017c3
Function at 0x401bd7
Capabilities:
Modify service

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x41a0a0]
xor eax, ebp
mov dword [ebp + 0x190], eax
mov eax, dword [ebp + 0x19c]
push esi
push edi
mov dword [ebp - 0x80], eax
call fcn.0040550b
mov esi, eax
pop ecx
cmp esi, 2
jbe 0x401c42
push str.maintenanceservice_tmp.exe
push edi
call fcn.00405654
pop ecx
pop ecx
test eax, eax
jne 0x401c42
cmp word [edi], 0x22
jne 0x401c42
cmp word [edi + esi*2 - 2], 0x22
jne 0x401c42
push str.The_MozillaMaintenance_service_path_is_correct.
call fcn.0040101c
mov esi, eax
call fcn.004040cc
and dword [ebx], 0
jmp 0x401d25
push edi
push str.The_MozillaMaintenance_path_is_NOT_correct._It_was:__ls
call fcn.0040101c
mov esi, eax
call fcn.004040cc
xor eax, eax
push 0x208
mov word [ebp - 0x7c], ax
xor esi, esi
lea eax, [ebp - 0x7a]
push esi
push eax
mov dword [ebx], 1
call fcn.004056c0
push 0x104
lea eax, [ebp - 0x7c]
push edi
push eax
call fcn.00404ee0
add esp, 0x20
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x401cb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Couldnt_remove_file_spec.____d_
call fcn.0040101c
mov esi, eax
call fcn.004040f1
pop ecx
xor eax, eax
jmp 0x401d28
lea eax, [ebp - 0x7c]
push 0x4159cc
push eax
call fcn.0040463e
pop ecx
pop ecx
test eax, eax
jne 0x401cda
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Couldnt_append_file_spec.____d_
jmp 0x401ca7
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x7c]
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x401d0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_fix_service_path.____d_
jmp 0x401ca7
lea eax, [ebp - 0x7c]
push eax
push str.Fixed_service_path_to:__ls.
call fcn.0040101c
mov esi, eax
call fcn.004040cc
pop ecx
xor eax, eax
inc eax
pop ecx
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
pop esi
call fcn.00404ed1
add ebp, 0x194
leave
ret
Function at 0x4022e9
Capabilities:
Stop service

Disassembly:
sub esp, 0x20
mov eax, dword [0x41a0a0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x40232f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_open_service_manager.____d_
call fcn.0040101c
mov esi, eax
call fcn.004040f1
pop ecx
pop ecx
xor eax, eax
jmp 0x402407
push edi
push 0xf01ff
push str.MozillaMaintenance
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x40236f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_open_service.____d_
call fcn.0040101c
mov esi, eax
call fcn.004040f1
pop ecx
pop ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x402406
push str.Sending_stop_request...
call fcn.0040101c
mov esi, eax
call fcn.004040cc
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [esp + 0xc]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x4023c0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x426
je 0x4023c0
call esi
push eax
push str.Error_sending_stop_request.____d_
call fcn.0040101c
mov esi, eax
call fcn.004040f1
pop ecx
pop ecx
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
push edi
call esi
push str.Waiting_for_service_stop...
call fcn.0040101c
mov esi, eax
call fcn.004040cc
pop ecx
call fcn.0040475a
mov edi, eax
call fcn.004048ee
push edi
push str.Done_waiting_for_service_stop__last_service_state:__d
call fcn.0040101c
mov esi, eax
call fcn.004040cc
xor eax, eax
pop ecx
cmp edi, 1
pop ecx
sete al
pop edi
mov ecx, dword [esp + 0x24]
pop esi
pop ebx
xor ecx, esp
call fcn.00404ed1
add esp, 0x20
ret
Function at 0x40276b
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1c8]
sub esp, 0x248
mov eax, dword [0x41a0a0]
xor eax, ebp
mov dword [ebp + 0x1c4], eax
mov eax, dword [ebp + 0x1d0]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x7c], eax
mov dword [eax], ebx
xor eax, eax
push 0x208
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push ebx
push eax
mov esi, ecx
call fcn.004056c0
push 0x104
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00404ee0
lea eax, [ebp - 0x74]
push str.update.status
push eax
call fcn.0040463e
add esp, 0x20
test eax, eax
jne 0x4027e9
push str.Could_not_append_path_for_update.status_file
call fcn.0040101c
mov esi, eax
call fcn.004040f1
pop ecx
xor eax, eax
jmp 0x4028be
push ebx
push ebx
push 3
push ebx
push 7
push 0x80000000
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x78], eax
cmp eax, 0xffffffff
jne 0x40280e
push str.Could_not_open_update.status_file
jmp 0x4027d5
push edi
push 7
pop ecx
xor eax, eax
mov byte [ebp + 0x198], bl
lea edi, [ebp + 0x199]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
stosb byte es:[edi], al
lea eax, [ebp - 0x80]
push eax
push 0x20
lea eax, [ebp + 0x198]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x402864
push str.Could_not_read_from_update.status_file
call fcn.0040101c
mov esi, eax
call fcn.004040f1
pop ecx
cmp dword [ebp - 0x78], ebx
je 0x402860
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4028bd
lea eax, [ebp + 0x198]
push eax
push str.updater.exe_returned_status:__s
call fcn.0040101c
mov esi, eax
call fcn.004040cc
mov esi, str.applying
lea edi, [ebp + 0x1b8]
movsd dword es:[edi], dword [esi]
push 8
lea eax, [ebp + 0x1b8]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp + 0x198]
push eax
movsb byte es:[edi], byte [esi]
call fcn.00405852
mov ecx, dword [ebp - 0x7c]
add esp, 0x14
neg eax
sbb eax, eax
inc eax
mov dword [ecx], eax
cmp dword [ebp - 0x78], ebx
je 0x4028ba
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop edi
mov ecx, dword [ebp + 0x1c4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00404ed1
add ebp, 0x1c8
leave
ret
Function at 0x40323e
Capabilities:
Check if file exists
Delete file

Disassembly:
sub esp, 0x210
mov eax, dword [0x41a0a0]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp word [edi], bx
je 0x4032fe
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push edi
call ebp
mov ebx, eax
test ebx, ebx
jne 0x40329a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 3
je 0x40329a
call esi
cmp eax, 2
je 0x40329a
push edi
push str.Could_not_delete_service_updater_path:__ls.
call fcn.0040101c
mov esi, eax
call fcn.004040f1
pop ecx
pop ecx
xor eax, eax
push 0x208
push eax
mov word [esp + 0x18], ax
lea eax, [esp + 0x1a]
push eax
call fcn.004056c0
push str.updater.ini
push edi
lea edi, [esp + 0x24]
call fcn.00404198
add esp, 0x14
test eax, eax
je 0x4032fc
mov eax, edi
push eax
call ebp
mov ebx, eax
test ebx, ebx
jne 0x4032fc
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 3
je 0x4032fc
call esi
cmp eax, 2
je 0x4032fc
mov eax, edi
push eax
push str.Could_not_delete_service_updater_INI_path:__ls.
call fcn.0040101c
mov esi, eax
call fcn.004040f1
pop ecx
pop ecx
pop esi
pop ebp
mov ecx, dword [esp + 0x214]
pop edi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00404ed1
add esp, 0x210
ret
Function at 0x4044da
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x300
mov eax, dword [0x41a0a0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0xf003f
xor esi, esi
push esi
push esi
mov dword [ebp - 0x2a0], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
cmp ebx, esi
jne 0x404515
xor eax, eax
jmp 0x40462f
push 0xf01ff
push str.MozillaMaintenance
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp eax, esi
jne 0x404533
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40450e
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call edi
push ebx
call edi
push 0x40
lea eax, [ebp - 0x2f8]
push esi
push eax
call fcn.004056c0
xor eax, eax
mov dword [ebp - 0x2b0], esi
lea edi, [ebp - 0x2ac]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
push 0x208
mov word [ebp - 0x29c], ax
lea eax, [ebp - 0x29a]
push esi
push eax
mov dword [ebp - 0x2fc], 0x44
mov dword [ebp - 0x2f4], 0x416550
call fcn.004056c0
push 0x104
push dword [ebp - 0x2a0]
lea eax, [ebp - 0x29c]
push eax
call fcn.00404ee0
lea eax, [ebp - 0x29c]
push str.maintenanceservice_installer.exe
push eax
call fcn.0040463e
xor eax, eax
push 0x7e
mov word [ebp - 0x8c], ax
lea eax, [ebp - 0x8a]
push esi
push eax
call fcn.004056c0
push 0x3f
lea eax, [ebp - 0x8c]
push str.dummyparam.exe__Upgrade
push eax
call fcn.00404ee0
add esp, 0x44
lea eax, [ebp - 0x2b0]
push eax
lea eax, [ebp - 0x2fc]
push eax
push dword [ebp - 0x2a0]
lea eax, [ebp - 0x8c]
push esi
push esi
push esi
push esi
push esi
push eax
lea eax, [ebp - 0x29c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
cmp edi, esi
je 0x40462d
push dword [ebp - 0x2b0]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x2ac]
call esi
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404ed1
leave
ret
Function at 0x404672
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x41a0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x208
mov word [ebp - 0x230], ax
xor esi, esi
lea eax, [ebp - 0x22e]
push esi
push eax
mov edi, ecx
call fcn.004056c0
push 0x104
lea eax, [ebp - 0x230]
push edi
push eax
call fcn.00404ee0
lea eax, [ebp - 0x230]
push str.update.status
push eax
call fcn.0040463e
add esp, 0x20
test eax, eax
jne 0x4046d4
xor eax, eax
jmp 0x40474c
push esi
push esi
push 2
push esi
push esi
push 0x40000000
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4046d0
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push str.failed:__d
push eax
call fcn.00407f15
lea eax, [ebp - 0x24]
push eax
call fcn.00405480
add esp, 0x10
mov ebx, eax
push esi
lea eax, [ebp - 0x234]
push eax
push ebx
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov dword [ebp - 0x238], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x238], esi
je 0x404749
cmp dword [ebp - 0x234], ebx
jne 0x404749
xor eax, eax
inc eax
jmp 0x40474b
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00404ed1
leave
ret