joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406ec6
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x432008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x406f0e
lea ecx, [ebp - 0x258]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406f3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
pop edi
cmp eax, edi
je 0x406f0a
call fcn.00414c68
mov dword [eax], edi
xor eax, eax
jmp 0x406f68
lea eax, [ebp - 0x258]
push eax
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x406f3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.00414c68
push 2
pop edi
cmp esi, edi
je 0x406f08
push 9
pop edi
jmp 0x406f08
push 0x208
push 0
mov esi, 0x433b38
push esi
call fcn.0040d680
push 0x104
lea ecx, [ebp - 0x22c]
push ecx
push esi
call fcn.0041073f
add esp, 0x18
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040b844
mov esp, ebp
pop ebp
ret

Function at 0x40706d
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
xor ebx, ebx
push 0xf0000000
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
mov esi, ecx
push ebx
push esi
call edi
test eax, eax
jne 0x4070c9
push 0xf0000008
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
push ebx
push esi
call edi
test eax, eax
jne 0x4070c9
push 0xf0000000
push 0x18
push ebx
push ebx
push esi
call edi
test eax, eax
jne 0x4070c9
push 0xf0000008
push 0x18
push ebx
push ebx
push esi
call edi
test eax, eax
jne 0x4070c9
mov dword [esi], ebx
or eax, 0xffffffff
jmp 0x4070cb
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x4070f6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, edx
mov dword [ebp - 8], eax
push ebx
push esi
test ecx, ecx
je 0x4071a3
test eax, eax
je 0x4071a3
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4071a3
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x4071a3
cmp dword [ebp + 0x14], 0
je 0x4071a3
push ecx
push 1
push dword [ebp + 8]
push eax
call fcn.0040fcf5
add esp, 0x10
cmp eax, 1
je 0x407159
push dword [ebp + 0x14]
push str.ERROR:_Could_not_read__s_n
push 2
call fcn.00410d6d
pop ecx
push eax
call fcn.004020fa
add esp, 0xc
jmp 0x4071b8
and dword [ebp - 4], 0
test ebx, ebx
je 0x407181
push dword [ebp + 8]
mov edx, dword [ebp - 8]
mov ecx, esi
call fcn.004070cf
pop ecx
test eax, eax
jne 0x407185
mov eax, dword [ebp - 4]
add esi, 4
inc eax
mov dword [ebp - 4], eax
cmp eax, ebx
jb 0x407161
xor eax, eax
jmp 0x4071bb
push dword [ebp + 0x14]
push str.ERROR:_Could_not_update_verify_context_for__s_n
push 2
call fcn.00410d6d
pop ecx
push eax
call fcn.004020fa
add esp, 0xc
push 0xfffffffffffffffe
pop eax
jmp 0x4071bb
push str.ERROR:_Invalid_parameter_specified._n
push 2
call fcn.00410d6d
pop ecx
push eax
call fcn.004020fa
pop ecx
pop ecx
or eax, 0xffffffff
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40799b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 0x14]
push ebx
push edi
mov ebx, ecx
xor edi, edi
inc edi
push dword [ebx]
push edi
push 4
push eax
call fcn.0040fcf5
add esp, 0x10
cmp eax, edi
je 0x4079c5
or eax, 0xffffffff
jmp 0x407a8e
lea eax, [ebp - 0x14]
cmp dword [eax], 0x3152414d
jne 0x4079bd
push dword [ebx]
lea eax, [ebp - 0xc]
push edi
push 4
push eax
call fcn.0040fcf5
add esp, 0x10
cmp eax, edi
jne 0x4079bd
push esi
push dword [ebp - 0xc]
mov esi, dword [sym.imp.WSOCK32.dll_ntohl]
call esi
push 0
push eax
push dword [ebx]
mov dword [ebp - 0xc], eax
call fcn.00414a78
add esp, 0xc
test eax, eax
jne 0x407a2f
push dword [ebx]
lea eax, [ebp - 4]
push edi
push 4
push eax
call fcn.0040fcf5
add esp, 0x10
cmp eax, edi
jne 0x407a2f
push dword [ebp - 4]
call esi
push eax
mov dword [ebp - 4], eax
call fcn.0040fb11
mov edi, eax
pop ecx
test edi, edi
jne 0x407a34
or eax, 0xffffffff
jmp 0x407a8d
push dword [ebx]
push 1
push dword [ebp - 4]
push edi
call fcn.0040fcf5
add esp, 0x10
cmp eax, 1
je 0x407a54
push edi
call fcn.0040faba
or eax, 0xffffffff
jmp 0x407a8c
mov eax, dword [ebp - 4]
mov esi, edi
add eax, edi
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], eax
cmp esi, eax
jae 0x407a7d
push eax
lea edx, [ebp - 8]
mov ecx, ebx
call fcn.0040790c
mov esi, dword [ebp - 8]
pop ecx
test eax, eax
jne 0x407a7d
mov eax, dword [ebp - 0x10]
jmp 0x407a61
push edi
call fcn.0040faba
xor eax, eax
cmp esi, dword [ebp - 0x10]
sete al
dec eax
pop ecx
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407b77
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
test edi, edi
jne 0x407b90
or eax, 0xffffffff
jmp 0x407d0c
push 0
push 4
push esi
call fcn.00414a78
add esp, 0xc
test eax, eax
jne 0x407b88
push esi
push 1
lea eax, [ebp - 0xc]
push 4
push eax
call fcn.0040fcf5
add esp, 0x10
cmp eax, 1
jne 0x407b88
push ebx
push dword [ebp - 0xc]
mov ebx, dword [sym.imp.WSOCK32.dll_ntohl]
call ebx
push 0
push eax
push esi
mov dword [ebp - 0xc], eax
call fcn.00414a78
add esp, 0xc
test eax, eax
jne 0x407cdc
push 1
push 4
push esi
call fcn.00414a78
add esp, 0xc
test eax, eax
jne 0x407cdc
push esi
push 1
lea eax, [ebp - 8]
push 4
push eax
call fcn.0040fcf5
add esp, 0x10
cmp eax, 1
jne 0x407cdc
push dword [ebp - 8]
call ebx
push 0
push 0
push 0x10
push esi
mov dword [ebp - 8], eax
call fcn.00414a5d
add esp, 0x10
test eax, eax
jne 0x407cdc
push esi
push 1
lea eax, [ebp - 4]
push 4
push eax
call fcn.0040fcf5
add esp, 0x10
cmp eax, 1
jne 0x407cdc
push dword [ebp - 4]
call ebx
mov dword [ebp - 4], eax
cmp eax, 8
ja 0x407cdc
and dword [ebp - 0x14], 0
test eax, eax
je 0x407ca6
push 1
push 4
push esi
call fcn.00414a78
add esp, 0xc
test eax, eax
jne 0x407cdc
push esi
push 1
lea eax, [ebp - 0x10]
push 4
push eax
call fcn.0040fcf5
add esp, 0x10
cmp eax, 1
jne 0x407cdc
push dword [ebp - 0x10]
call ebx
push 1
push eax
push esi
mov dword [ebp - 0x10], eax
call fcn.00414a78
add esp, 0xc
test eax, eax
jne 0x407cdc
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 4]
jb 0x407c5b
push esi
call fcn.004158b6
cdq
pop ecx
cmp eax, dword [ebp - 8]
jne 0x407cbb
test edx, edx
jne 0x407cbb
and dword [edi], edx
jmp 0x407d09
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x407cf6
mov eax, dword [ebp + 0xc]
xor ecx, ecx
inc ecx
push esi
push ecx
push 4
push edi
mov dword [eax], ecx
call fcn.0040fcf5
add esp, 0x10
cmp eax, 1
je 0x407ce1
or eax, 0xffffffff
jmp 0x407d0b
push dword [edi]
call ebx
mov dword [edi], eax
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x407d09
push esi
call fcn.004158b6
jmp 0x407d06
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x407d09
push esi
call fcn.004158b6
add eax, 4
mov dword [edi], eax
pop ecx
xor eax, eax
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407d12
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x432008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x61
lea eax, [ebp - 0x68]
mov esi, edx
push 0
push eax
mov ebx, ecx
call fcn.0040d680
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
push ecx
mov ecx, dword [ebx]
call fcn.00407b77
add esp, 0x10
test eax, eax
je 0x407d58
or eax, 0xffffffff
jmp 0x407dcb
push edi
xor edi, edi
cmp dword [ebp - 0x74], edi
jbe 0x407dc7
push dword [ebx]
lea eax, [ebp - 0x6c]
push 1
push 4
push eax
call fcn.0040fcf5
add esp, 0x10
cmp eax, 1
jne 0x407dc7
push dword [ebp - 0x6c]
call dword [sym.imp.WSOCK32.dll_ntohl]
push dword [ebx]
sub eax, 8
push 1
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x70]
push 4
push eax
call fcn.0040fcf5
add esp, 0x10
cmp eax, 1
jne 0x407dc7
push dword [ebp - 0x70]
call dword [sym.imp.WSOCK32.dll_ntohl]
mov dword [ebp - 0x70], eax
cmp eax, 1
je 0x407ddb
push 1
push dword [ebp - 0x6c]
push dword [ebx]
call fcn.00414a78
add esp, 0xc
test eax, eax
jne 0x407dc7
inc edi
cmp edi, dword [ebp - 0x74]
jb 0x407d60
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b844
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x6c], 0x60
ja 0x407dc7
push dword [ebx]
lea eax, [ebp - 0x68]
push 1
push dword [ebp - 0x6c]
push eax
call fcn.0040fcf5
add esp, 0x10
cmp eax, 1
jne 0x407dc7
lea ecx, [ebp - 0x68]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407dff
sub ecx, edx
lea eax, [ebp - 0x68]
lea edx, [ebp - 0x67]
mov dword [esi], eax
add edx, ecx
cmp ecx, 0x40
jl 0x407e1c
and dword [esi], 0
jmp 0x407dc7
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407e21
sub ecx, edi
mov dword [esi + 4], edx
cmp ecx, 0x20
jl 0x407e3b
and dword [esi], 0
and dword [esi + 4], 0
jmp 0x407dc7
lea eax, [ebp - 0x68]
push eax
call fcn.00417f19
push dword [esi + 4]
mov dword [esi], eax
call fcn.00417f19
pop ecx
mov dword [esi + 4], eax
xor eax, eax
pop ecx
jmp 0x407dca

Function at 0x407ebb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [edx + 8]
mov ebx, ecx
cmp dword [ebp + 8], esi
jne 0x407ece
xor eax, eax
jmp 0x407f06
jle 0x407ed5
or eax, 0xffffffff
jmp 0x407f06
sub esi, dword [ebp + 8]
cmp esi, dword [ebp + 0x10]
mov eax, dword [edx + 4]
cmovg esi, dword [ebp + 0x10]
add eax, dword [ebp + 8]
push 0
push eax
push dword [ebx]
call fcn.00414a78
add esp, 0xc
test eax, eax
jne 0x407ed0
push dword [ebx]
push esi
push 1
push dword [ebp + 0xc]
call fcn.0040fcf5
add esp, 0x10
pop esi
pop ebx
pop ebp
ret
Function at 0x40830d
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
xor eax, eax
push edi
push 0xf0000000
push 1
push eax
push eax
mov dword [ebp - 8], eax
mov edi, edx
mov dword [ebp - 4], eax
mov ebx, ecx
lea eax, [ebp - 8]
push eax
call esi
test eax, eax
jne 0x408364
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
je 0x40834f
xor eax, eax
jmp 0x4083fe
push 0xf0000008
push 1
push 0
push 0
lea eax, [ebp - 8]
push eax
call esi
test eax, eax
je 0x408348
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push esi
push 0x8003
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x408348
push esi
push edi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x408348
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 4
pop ecx
push esi
push eax
push edi
push ecx
push dword [ebp - 4]
mov dword [ebp - 0xc], ecx
call ebx
test eax, eax
je 0x408348
push dword [edi]
call fcn.0040bcb6
push dword [edi]
mov esi, eax
mov eax, dword [ebp + 8]
push 0
push esi
mov dword [eax], esi
call fcn.0040d680
add esp, 0x10
push 0
push edi
push esi
push 2
push dword [ebp - 4]
call ebx
test eax, eax
je 0x408348
cmp dword [ebp - 4], 0
je 0x4083ea
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 8], 0
je 0x4083fb
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4085e7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
push 0x42d584
push ecx
mov dword [ebp - 0x10], edx
call fcn.0040fa5c
mov esi, eax
mov dword [ebp - 0x14], esi
pop ecx
pop ecx
test esi, esi
je 0x4087be
push 2
push 0
push esi
call fcn.00414a78
add esp, 0xc
test eax, eax
jne 0x4087be
push esi
call fcn.004158b6
mov edi, eax
pop ecx
test edi, edi
jle 0x4087be
lea ecx, [edi + 1]
push ebx
push ecx
call fcn.0040bcb6
push 0
mov ebx, eax
push 0
push esi
mov dword [ebp - 0x18], ebx
call fcn.00414a78
add esp, 0x10
test eax, eax
jne 0x4087b1
push esi
push edi
push 1
push ebx
call fcn.0040fcf5
add esp, 0x10
cmp eax, edi
jne 0x4087b1
and dword [ebp - 8], 0
lea edx, [ebp - 0xc]
mov byte [ebx + edi], 0
mov ecx, 0x42f268
mov dword [ebp - 0xc], ebx
xor bl, bl
call fcn.00408521
test eax, eax
je 0x40879e
mov esi, dword [ebp + 8]
mov cl, byte [eax]
cmp cl, 0x23
je 0x408786
cmp cl, 0x3b
je 0x408786
mov edx, eax
mov ecx, 0x42f264
call fcn.004084fc
mov edi, eax
mov dword [ebp - 4], edi
mov al, byte [edi]
test al, al
je 0x408786
cmp al, 0x5b
jne 0x40873b
inc edi
lea edx, [ebp - 4]
mov ecx, 0x42f260
mov dword [ebp - 4], edi
call fcn.00408521
test eax, eax
je 0x408737
lea edx, [ebp - 4]
mov ecx, 0x42f264
call fcn.00408521
test eax, eax
jne 0x408737
cmp dword [ebp + 0x10], eax
je 0x40871d
mov eax, dword [ebp + 0x10]
mov cl, byte [edi]
cmp cl, byte [eax]
jne 0x408711
test cl, cl
je 0x40870d
mov cl, byte [edi + 1]
cmp cl, byte [eax + 1]
jne 0x408711
add edi, 2
add eax, 2
test cl, cl
jne 0x4086f1
xor eax, eax
jmp 0x408716
sbb eax, eax
or eax, 1
test eax, eax
sete bl
jmp 0x408786
mov edx, str.Strings
xor ecx, ecx
movzx eax, byte [edi + ecx]
cmp al, byte [edx + ecx]
jne 0x408737
inc ecx
cmp ecx, 8
jne 0x408724
mov bl, 1
jmp 0x408786
xor bl, bl
jmp 0x408786
test bl, bl
je 0x408786
lea edx, [ebp - 4]
mov ecx, 0x42f26c
call fcn.00408521
test eax, eax
je 0x408786
mov ecx, dword [ebp - 0x10]
mov edx, edi
call fcn.0040857b
test eax, eax
js 0x408786
cmp eax, esi
jae 0x408786
imul edi, eax, 0x258
push 0x257
push dword [ebp - 4]
add edi, dword [ebp + 0xc]
push edi
call fcn.0040f5d0
add esp, 0xc
mov byte [edi + 0x257], 0
inc dword [ebp - 8]
lea edx, [ebp - 0xc]
mov ecx, 0x42f268
call fcn.00408521
test eax, eax
jne 0x408690
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp dword [ebp - 8], eax
mov ebx, dword [ebp - 0x18]
push 5
pop edi
cmove edi, ecx
jmp 0x4087b4
push 6
pop edi
push ebx
call fcn.0040bf7e
pop ecx
pop ebx
jmp 0x4087c1
push 6
pop edi
test esi, esi
je 0x4087cc
push esi
call fcn.0040f557
pop ecx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408c11
Capabilities:
Delete file
Get common file path

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x408c78
push ebx
push str.update.log
push 0x434810
push 0x42cd04
lea ebx, [esi + 0x20c]
push 0x104
push ebx
call fcn.0040214f
add esp, 0x14
dec eax
cmp eax, 0x102
ja 0x408c77
push edi
lea edi, [esi + 4]
push edi
push 0
push 0x42f8e4
push 0x434810
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x408c76
push 0x42f8ec
push edi
call fcn.0040fa5c
pop ecx
pop ecx
push ebx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop ebx
pop esi
ret 8

Function at 0x408c7c
Capabilities:
Delete file
Move file

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x408cb9
push edi
push dword [esi]
call fcn.0040f557
and dword [esi], 0
lea edi, [esi + 0x20c]
push 0
push edi
add esi, 4
call fcn.00410782
add esp, 0xc
test eax, eax
jne 0x408cb0
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x408cb8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
pop edi
pop esi
ret
Function at 0x408ebd
Capabilities:
Copy file
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50c
mov eax, dword [0x432008]
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_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x408eef
xor eax, eax
jmp 0x4090bf
push 0xf01ff
push str.MozillaMaintenance
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
push esi
test edi, edi
jne 0x408f0f
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x408ee8
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
lea eax, [ebp - 0x4ac]
push eax
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x408f3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x408f3b
push edi
call esi
jmp 0x408ee8
mov esi, dword [ebp - 0x4ac]
push esi
call fcn.0040bcb6
push esi
mov esi, eax
mov dword [ebp - 0x4b0], eax
push ebx
push esi
call fcn.0040d680
add esp, 0x10
lea eax, [ebp - 0x4ac]
push eax
push dword [ebp - 0x4ac]
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
push edi
test eax, eax
jne 0x408f7f
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4090b6
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [esi + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
mov edi, 0x20a
lea eax, [ebp - 0x4a8]
push edi
push ebx
push eax
call fcn.0040d680
mov edx, dword [esi + 0xc]
lea ecx, [ebp - 0x4a8]
push str.maintenanceservice_tmp.exe
call fcn.00408e34
add esp, 0x10
test eax, eax
je 0x4090b6
push edi
lea eax, [ebp - 0x298]
push ebx
push eax
call fcn.0040d680
push 0x104
lea eax, [ebp - 0x298]
push 0x434c30
push eax
call fcn.0041073f
add esp, 0x18
lea ecx, [ebp - 0x298]
mov edx, str.maintenanceservice.exe
call fcn.004091e5
push ebx
lea eax, [ebp - 0x4a8]
push eax
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4090b6
push 0x44
pop edi
push edi
lea eax, [ebp - 0x508]
push ebx
push eax
call fcn.0040d680
mov dword [ebp - 0x508], edi
xor eax, eax
lea edi, [ebp - 0x4c0]
mov dword [ebp - 0x500], 0x42caec
stosd dword es:[edi], eax
push 0x80
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x88]
push eax
call fcn.0040d680
push 0x3f
lea eax, [ebp - 0x88]
push str.dummyparam.exe_upgrade
push eax
call fcn.0041073f
add esp, 0x24
lea eax, [ebp - 0x4c0]
push eax
lea eax, [ebp - 0x508]
push eax
push 0x434c30
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x4a8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
test ebx, ebx
je 0x4090b6
push dword [ebp - 0x4c0]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x4bc]
call esi
mov esi, dword [ebp - 0x4b0]
push esi
call fcn.0040bf7e
pop ecx
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b844
mov esp, ebp
pop ebp
ret
Function at 0x4090d0
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], edx
push 5
pop edx
mov dword [ebp - 0xc], ecx
call fcn.00409239
cmp eax, 1
je 0x4090f3
add eax, 0x4e20
jmp 0x409175
push esi
push edi
push 5
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x40910e
mov eax, 0x4269
jmp 0x409173
push ebx
push 0x10
push str.MozillaMaintenance
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x40912a
mov esi, 0x426a
jmp 0x409169
mov dword [ebp - 4], esi
push dword [ebp - 8]
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x409160
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x64
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
add eax, 0x64
mov dword [ebp - 4], eax
cmp eax, 0x1388
jb 0x40912d
jmp 0x409162
xor esi, esi
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409239
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x432008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 5
push 0
push 0
mov esi, edx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x40928b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
cmp ecx, 5
je 0x409281
xor eax, eax
cmp ecx, 0x429
setne al
add eax, 0xfe
jmp 0x40938c
mov eax, 0xfd
jmp 0x40938c
push edi
push 4
push str.MozillaMaintenance
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
mov dword [ebp - 0x2c], edi
test edi, edi
jne 0x4092fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
sub esi, 5
je 0x4092f1
sub esi, 1
je 0x4092e7
sub esi, 0x75
je 0x4092dd
sub esi, 0x3a9
je 0x4092d3
mov eax, 0xef
jmp 0x40938b
mov eax, 0xee
jmp 0x40938b
mov eax, 0xed
jmp 0x40938b
mov eax, 0xec
jmp 0x40938b
mov eax, 0xeb
jmp 0x40938b
and dword [ebp - 0x30], 0
mov edi, 0xcf
imul eax, esi, 0x3e8
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x34], eax
test eax, eax
je 0x40937d
lea eax, [ebp - 0x2c]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x40935c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7c
jbe 0x40939c
cmp eax, 0x41c
je 0x409364
cmp eax, 0x424
jbe 0x4093b2
cmp eax, 0x426
jbe 0x409364
cmp eax, 0x45b
jne 0x4093b2
mov edi, 0xde
jmp 0x4093b7
mov edi, dword [ebp - 0x24]
cmp edi, 1
je 0x40937d
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x30]
add eax, 0x32
mov dword [ebp - 0x30], eax
cmp eax, dword [ebp - 0x34]
jb 0x409317
mov edi, dword [ebp - 0x24]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b844
mov esp, ebp
pop ebp
ret
je 0x4093d8
sub eax, 5
je 0x4093d1
sub eax, 1
je 0x4093ca
sub eax, 0x51
je 0x4093c3
sub eax, 0x23
je 0x4093bc
mov edi, 0xdf
mov dword [ebp - 0x24], edi
jmp 0x40937d
mov edi, 0xdb
jmp 0x4093b7
mov edi, 0xdc
jmp 0x4093b7
mov edi, 0xd9
jmp 0x4093b7
mov edi, 0xda
jmp 0x4093b7
mov edi, 0xdd
jmp 0x4093b7