joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402487
Capabilities:
Stop service

Disassembly:
sub esp, 0x20
mov eax, dword [0x421050]
xor eax, esp
mov dword [esp + 0x1c], 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 0x4024cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_open_service_manager.____d_
call fcn.0040101c
push eax
call fcn.00404bd5
add esp, 0xc
jmp 0x4025b9
push 0xf01ff
push str.MozillaMaintenance
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x402509
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_open_service.____d_
call fcn.0040101c
push eax
call fcn.00404bd5
add esp, 0xc
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4025b9
push str.Sending_stop_request...
call fcn.0040101c
push eax
call fcn.00404baa
pop ecx
pop ecx
push ebx
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 0x40255b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x40255b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_sending_stop_request.____d_
call fcn.0040101c
push eax
call fcn.00404bd5
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.0040101c
push eax
call fcn.00404baa
pop ecx
pop ecx
call fcn.00404819
mov esi, eax
call fcn.004049a7
cmp eax, 0x490
je 0x40259d
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0x1e
jb 0x402580
push esi
push str.Done_waiting_for_service_stop__last_service_state:__d
call fcn.0040101c
push eax
call fcn.00404baa
xor ebx, ebx
add esp, 0xc
cmp esi, 1
sete bl
mov ecx, dword [esp + 0x28]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00404d91
add esp, 0x20
ret
Function at 0x4025cd
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x421050]
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 0x402614
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_open_service_manager.____d_
call fcn.0040101c
push eax
call fcn.00404bd5
add esp, 0xc
jmp 0x4026b0
push 0xf01ff
push str.MozillaMaintenance
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x402647
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_open_service.____d_
call fcn.0040101c
push eax
call fcn.00404bd5
add esp, 0xc
jmp 0x4026a9
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
jmp 0x402680
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 0x402684
cmp ebx, 0xea60
ja 0x402684
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x402656
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov ebx, eax
test ebx, ebx
jne 0x4026a2
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.00404d91
mov esp, ebp
pop ebp
ret
Function at 0x4029ba
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x244
mov eax, dword [0x421050]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push ebp
push esi
push edi
xor eax, eax
mov ebp, edx
xor ebx, ebx
mov word [esp + 0x44], ax
push 0x208
lea eax, [esp + 0x4a]
mov esi, ecx
push ebx
push eax
mov dword [ebp], ebx
call fcn.0040bc00
push 0x104
lea eax, [esp + 0x54]
push esi
push eax
call fcn.00404da0
add esp, 0x18
lea ecx, [esp + 0x44]
mov edx, str.update.status
call fcn.00404696
test eax, eax
jne 0x402a30
push str.Could_not_append_path_for_update.status_file
call fcn.0040101c
push eax
call fcn.00404bd5
pop ecx
pop ecx
xor eax, eax
jmp 0x402aed
push ebx
push ebx
push 3
push ebx
push 7
push 0x80000000
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x10], esi
cmp esi, 0xffffffff
jne 0x402a59
push str.Could_not_open_update.status_file
jmp 0x402a88
push 7
pop ecx
xor eax, eax
mov byte [esp + 0x24], bl
lea edi, [esp + 0x25]
rep stosd dword es:[edi], eax
push ebx
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
push eax
push 0x20
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x402a97
push str.Could_not_read_from_update.status_file
call fcn.0040101c
push eax
call fcn.00404bd5
pop ecx
pop ecx
jmp 0x402adb
lea eax, [esp + 0x24]
push eax
push str.updater.exe_returned_status:__s
call fcn.0040101c
push eax
call fcn.00404baa
mov esi, str.applying
lea edi, [esp + 0x24]
push 8
lea eax, [esp + 0x28]
push eax
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x38]
push eax
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call fcn.00405960
mov esi, dword [esp + 0x28]
add esp, 0x18
neg eax
sbb eax, eax
xor ebx, ebx
inc eax
inc ebx
mov dword [ebp], eax
test esi, esi
je 0x402aeb
cmp esi, 0xffffffff
je 0x402aeb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [esp + 0x250]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00404d91
add esp, 0x244
ret
Function at 0x403389
Capabilities:
Create directory

Disassembly:
push esi
push 0x104
mov esi, ecx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x4033bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_obtain_module_filename_when_attempting_to_use_a_secure_updater_path.____d_
call fcn.0040101c
push eax
call fcn.00404bd5
add esp, 0xc
xor eax, eax
pop esi
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x4033d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Couldnt_remove_file_spec_when_attempting_to_use_a_secure_updater_path.____d_
jmp 0x4033aa
mov edx, str.update
mov ecx, esi
call fcn.00404696
test eax, eax
jne 0x4033f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Couldnt_append_file_spec_when_attempting_to_use_a_secure_updater_path.____d_
jmp 0x4033aa
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, str.updater.exe
mov ecx, esi
call fcn.00404696
test eax, eax
je 0x4033e5
xor eax, eax
inc eax
pop esi
ret

Function at 0x403411
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x421050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
xor eax, eax
push esi
mov esi, eax
cmp word [ebx], ax
je 0x4034db
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x40346b
call edi
cmp eax, 3
je 0x40346b
call edi
cmp eax, 2
je 0x40346b
push ebx
push str.Could_not_delete_service_updater_path:__ls.
call fcn.0040101c
push eax
call fcn.00404bd5
add esp, 0xc
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.0040bc00
push str.updater.ini
mov edx, ebx
lea ecx, [ebp - 0x210]
call fcn.004043e4
add esp, 0x10
test eax, eax
je 0x4034da
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
test esi, esi
jne 0x4034da
call edi
cmp eax, 3
je 0x4034da
call edi
cmp eax, 2
je 0x4034da
lea eax, [ebp - 0x210]
push eax
push str.Could_not_delete_service_updater_INI_path:__ls.
call fcn.0040101c
push eax
call fcn.00404bd5
add esp, 0xc
pop edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404d91
mov esp, ebp
pop ebp
ret
Function at 0x403b93
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
lea eax, [esp + 0x10]
push edi
push 0xf0000000
xor ebp, ebp
mov edi, edx
push 1
push ebp
push ebp
push eax
mov ebx, ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebp
call esi
test eax, eax
jne 0x403bea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
je 0x403bd6
xor eax, eax
jmp 0x403c8a
push 0xf0000008
push 1
push ebp
push ebp
lea eax, [esp + 0x24]
push eax
call esi
test eax, eax
je 0x403bcf
lea eax, [esp + 0x10]
push eax
push ebp
push ebp
push 0x8003
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x403bcf
push ebp
push edi
push ebx
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x403bcf
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 4
pop ecx
push ebp
push eax
push edi
push ecx
push dword [esp + 0x20]
mov dword [esp + 0x2c], ecx
call ebx
test eax, eax
je 0x403bcf
push dword [edi]
call fcn.00405529
push dword [edi]
mov esi, eax
mov eax, dword [esp + 0x28]
push ebp
push esi
mov dword [eax], esi
call fcn.0040bc00
add esp, 0x10
push ebp
push edi
push esi
push 2
push dword [esp + 0x20]
call ebx
test eax, eax
je 0x403bcf
cmp dword [esp + 0x10], ebp
je 0x403c76
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [esp + 0x14], ebp
je 0x403c87
push ebp
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x403e69
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push 0x41e804
push ecx
call fcn.00405ff5
mov esi, eax
mov dword [esp + 0x20], esi
pop ecx
pop ecx
test esi, esi
je 0x40400c
push 2
push 0
push esi
call fcn.004067d0
add esp, 0xc
test eax, eax
jne 0x40400c
push esi
call fcn.004066d5
mov ebx, eax
pop ecx
test ebx, ebx
jle 0x40400c
lea ecx, [ebx + 1]
push edi
push ecx
call fcn.00405529
mov edi, eax
pop ecx
test edi, edi
jne 0x403ec5
push 0xa
jmp 0x403ee9
push 0
push 0
push esi
call fcn.004067d0
add esp, 0xc
test eax, eax
jne 0x403ee7
push esi
push ebx
push 1
push edi
call fcn.00406299
add esp, 0x10
cmp eax, ebx
je 0x403eef
push 6
pop ebp
jmp 0x404002
lea edx, [esp + 0x18]
mov byte [edi + ebx], 0
mov ecx, 0x41e81c
mov dword [esp + 0x18], edi
mov byte [esp + 0x13], 0
xor ebp, ebp
call fcn.00403db5
test eax, eax
je 0x403ffa
mov esi, dword [esp + 0x28]
mov cl, byte [eax]
cmp cl, 0x23
je 0x403fe0
cmp cl, 0x3b
je 0x403fe0
mov edx, eax
mov ecx, 0x41e820
call fcn.00403d8d
mov ebx, eax
mov dword [esp + 0x14], ebx
mov al, byte [ebx]
test al, al
je 0x403fe0
cmp al, 0x5b
jne 0x403f95
inc ebx
lea edx, [esp + 0x14]
mov ecx, 0x41e818
mov dword [esp + 0x14], ebx
call fcn.00403db5
test eax, eax
je 0x403f8e
lea edx, [esp + 0x14]
mov ecx, 0x41e820
call fcn.00403db5
test eax, eax
jne 0x403f8e
push 8
push str.Strings
push ebx
call fcn.004100ee
add esp, 0xc
test eax, eax
sete byte [esp + 0x13]
jmp 0x403fe0
mov byte [esp + 0x13], 0
jmp 0x403fe0
cmp byte [esp + 0x13], 0
je 0x403fe0
lea edx, [esp + 0x14]
mov ecx, 0x41e814
call fcn.00403db5
test eax, eax
je 0x403fe0
mov edx, ebx
call fcn.00403e0f
test eax, eax
js 0x403fe0
cmp eax, 1
jae 0x403fe0
imul ebx, eax, 0x258
push 0x257
push dword [esp + 0x18]
add ebx, esi
push ebx
call fcn.004055a0
add esp, 0xc
mov byte [ebx + 0x257], 0
inc ebp
lea edx, [esp + 0x18]
mov ecx, 0x41e81c
call fcn.00403db5
test eax, eax
jne 0x403f18
mov esi, dword [esp + 0x1c]
dec ebp
neg ebp
sbb ebp, ebp
and ebp, 5
push edi
call fcn.004054fe
pop ecx
pop edi
jmp 0x40400f
push 6
pop ebp
test esi, esi
je 0x40401a
push esi
call fcn.004068bf
pop ecx
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x404466
Capabilities:
Copy file
Create process on windows

Disassembly:
sub esp, 0x514
mov eax, dword [0x421050]
xor eax, esp
mov dword [esp + 0x50c], eax
push ebx
push ebp
push esi
push edi
push 0xf003f
xor ebx, ebx
mov dword [esp + 0x20], ecx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x40449e
xor eax, eax
jmp 0x40467d
push 0xf01ff
push str.MozillaMaintenance
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
push edi
test esi, esi
jne 0x4044be
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x404497
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
lea eax, [esp + 0x14]
push eax
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x4044e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x4044e8
push esi
call edi
jmp 0x404497
mov eax, dword [esp + 0x14]
push eax
mov dword [esp + 0x1c], eax
call fcn.00405529
mov ebp, eax
pop ecx
test ebp, ebp
je 0x40450d
push dword [esp + 0x18]
push ebx
push ebp
call fcn.0040bc00
add esp, 0xc
jmp 0x40450f
mov ebp, ebx
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x18]
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
push esi
test eax, eax
jne 0x40452c
call edi
jmp 0x404670
call edi
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
xor eax, eax
mov esi, 0x208
push esi
mov word [esp + 0x30c], ax
lea eax, [esp + 0x30e]
push ebx
push eax
call fcn.0040bc00
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0x314]
push str.maintenanceservice_tmp.exe
call fcn.004043e4
add esp, 0x10
test eax, eax
je 0x404670
xor eax, eax
push esi
mov word [esp + 0xfc], ax
lea eax, [esp + 0xfe]
push ebx
push eax
call fcn.0040bc00
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x104]
push 0x104
push esi
push eax
call fcn.00404da0
add esp, 0x18
lea ecx, [esp + 0xf8]
mov edx, 0x41cf24
call fcn.00404696
push ebx
lea eax, [esp + 0x30c]
push eax
lea eax, [esp + 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x404670
push 0x40
lea eax, [esp + 0x38]
push ebx
push eax
call fcn.0040bc00
xor eax, eax
mov dword [esp + 0x2c], ebx
lea edi, [esp + 0x30]
mov dword [esp + 0x3c], 0x44
stosd dword es:[edi], eax
push 0x7e
push ebx
mov dword [esp + 0x4c], 0x41dad8
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov word [esp + 0x8c], ax
lea eax, [esp + 0x8e]
push eax
call fcn.0040bc00
push 0x3f
lea eax, [esp + 0x94]
push str.dummyparam.exe_upgrade
push eax
call fcn.00404da0
add esp, 0x24
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push esi
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0x32c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
test ebx, ebx
je 0x404670
push dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x24]
call esi
test ebp, ebp
je 0x40467b
push ebp
call fcn.004054fe
pop ecx
mov eax, ebx
mov ecx, dword [esp + 0x51c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00404d91
add esp, 0x514
ret
Function at 0x4046e1
Capabilities:
Get common file path
Move file
Write file on windows

Disassembly:
sub esp, 0x440
mov eax, dword [0x421050]
xor eax, esp
mov dword [esp + 0x43c], eax
push ebx
push ebp
push esi
xor eax, eax
xor ebx, ebx
push 0x208
mov word [esp + 0x240], ax
mov esi, edx
lea eax, [esp + 0x242]
mov ebp, ecx
push ebx
push eax
call fcn.0040bc00
add esp, 0xc
lea eax, [esp + 0x23c]
push eax
push ebx
push 0x41eec4
push ebp
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
lea eax, [esp + 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40475a
xor eax, eax
jmp 0x404801
push edi
push esi
lea eax, [esp + 0x18]
push str.failed:__d
push eax
call fcn.00406936
lea edi, [esp + 0x20]
add esp, 0xc
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x404775
push 0
lea eax, [esp + 0x14]
sub edi, ecx
push eax
push edi
lea eax, [esp + 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4047fe
cmp dword [esp + 0x10], edi
jne 0x4047fe
xor eax, eax
push 0x208
push eax
mov word [esp + 0x3c], ax
lea eax, [esp + 0x3e]
push eax
call fcn.0040bc00
push 0x104
lea eax, [esp + 0x44]
push ebp
push eax
call fcn.00404da0
add esp, 0x18
lea ecx, [esp + 0x34]
mov edx, str.update.status
call fcn.00404696
test eax, eax
je 0x4047fe
push 1
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
neg eax
sbb eax, eax
neg eax
jmp 0x404800
xor eax, eax
pop edi
mov ecx, dword [esp + 0x448]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00404d91
add esp, 0x440
ret
Function at 0x404819
Capabilities:
Query service status

Disassembly:
sub esp, 0x2c
mov eax, dword [0x421050]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push 5
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x404866
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
cmp ecx, 5
je 0x40485c
xor eax, eax
cmp ecx, 0x429
setne al
add eax, 0xfe
jmp 0x404955
mov eax, 0xfd
jmp 0x404955
push ebp
push esi
push 4
push str.MozillaMaintenance
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebp, eax
test ebp, ebp
jne 0x4048d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
sub esi, 5
je 0x4048c8
dec esi
je 0x4048be
sub esi, 0x75
je 0x4048b4
sub esi, 0x3a9
je 0x4048aa
mov eax, 0xef
jmp 0x404953
mov eax, 0xee
jmp 0x404953
mov eax, 0xed
jmp 0x404953
mov eax, 0xec
jmp 0x404953
mov eax, 0xeb
jmp 0x404953
xor esi, esi
mov dword [esp + 0x14], 0xcf
push edi
lea eax, [esp + 0x10]
push eax
push 0x24
lea eax, [esp + 0x1c]
push eax
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x404924
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7c
jbe 0x404965
cmp eax, 0x41c
je 0x40492d
cmp eax, 0x424
jbe 0x404979
cmp eax, 0x426
jbe 0x40492d
cmp eax, 0x45b
jne 0x404979
mov edi, 0xde
jmp 0x40497e
mov edi, dword [esp + 0x18]
cmp edi, 1
je 0x404944
push 0x32
add esi, 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 0x7530
jb 0x4048dd
mov edi, dword [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call esi
push ebx
call esi
mov eax, edi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x2c]
pop ebx
xor ecx, esp
call fcn.00404d91
add esp, 0x2c
ret
je 0x4049a0
sub eax, 5
je 0x404999
dec eax
je 0x404992
sub eax, 0x51
je 0x40498b
sub eax, 0x23
je 0x404984
mov edi, 0xdf
mov dword [esp + 0x18], edi
jmp 0x404944
mov edi, 0xdb
jmp 0x40497e
mov edi, 0xdc
jmp 0x40497e
mov edi, 0xd9
jmp 0x40497e
mov edi, 0xda
jmp 0x40497e
mov edi, 0xdd
jmp 0x40497e

Function at 0x4049a7
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x421050]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4049d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x404a33
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x4049fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x404a2a
lea eax, [ebp - 0x20c]
push eax
push 0x41cf24
call fcn.0041300f
pop ecx
pop ecx
test eax, eax
je 0x404a2a
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4049fc
mov edi, 0x490
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00404d91
mov esp, ebp
pop ebp
ret
Function at 0x404a43
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x421050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
push 0x208
mov word [ebp - 0x210], ax
mov edi, edx
lea eax, [ebp - 0x20e]
mov esi, ecx
push ebx
push eax
call fcn.0040bc00
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x404a82
sub ecx, edx
mov eax, 0x104
sar ecx, 1
cmp ecx, eax
jbe 0x404a9e
xor eax, eax
jmp 0x404ad6
push eax
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00404da0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
sub eax, 3
neg eax
sbb eax, eax
inc eax
mov dword [edi], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404d91
mov esp, ebp
pop ebp
ret

Function at 0x404b11
Capabilities:
Delete file
Get common file path

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx], 0
jne 0x404b67
push esi
push edi
lea edi, [ebx + 4]
push edi
push 0
push 0x41eed8
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push dword [esp + 0x14]
lea esi, [ebx + 0x20c]
push dword [esp + 0x14]
push str._s__s
push 0x104
push esi
call fcn.00404ae7
push 0x41eeec
push edi
call fcn.00405ff5
add esp, 0x1c
mov dword [ebx], eax
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
pop ebx
ret 0x10

Function at 0x404b6b
Capabilities:
Delete file
Move file

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x404ba8
push edi
push dword [esi]
call fcn.004068bf
and dword [esi], 0
lea edi, [esi + 0x20c]
push 0
push edi
call fcn.00406dac
add esp, 0xc
test eax, eax
lea eax, [esi + 4]
jne 0x404b9f
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x404ba7
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
pop edi
pop esi
ret