joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4030a7
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
sub esp, 0x40
mov eax, dword [0x42e440]
xor eax, esp
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x44]
push ebx
push ebp
push esi
push edi
push eax
mov edi, ecx
mov dword [esp + 0x18], eax
call fcn.00412b13
lea ecx, [esp + 0x1c]
push ecx
push eax
call fcn.0040c9a3
add esp, 0xc
test eax, eax
je 0x403100
call fcn.0040dd78
push dword [eax]
push dword [edi + 0x10]
push str.LoadSourceFile:_unable_to_stat_destination_file:__S__err:__d
call fcn.0040200f
push eax
call fcn.00408506
add esp, 0x10
push 6
pop eax
jmp 0x4031dc
mov esi, dword [edi + 0x20]
push esi
cmp dword [esp + 0x30], esi
je 0x403125
push dword [esp + 0x30]
push str.LoadSourceFile:_destination_file_size__d_does_not_match_expected_size__d
call fcn.0040200f
push eax
call fcn.00408506
add esp, 0x10
push 2
jmp 0x4030fa
call fcn.0040be77
mov ebx, eax
mov dword [edi + 0x38], ebx
pop ecx
test ebx, ebx
jne 0x403138
push 0xd
jmp 0x4030fa
test esi, esi
je 0x403165
mov ebp, esi
cmp esi, 0x7fffffff
jb 0x40314b
mov ebp, 0x7fffffff
push dword [esp + 0x14]
push ebp
push 1
push ebx
call fcn.0040cede
add esp, 0x10
cmp eax, ebp
jne 0x4031bf
add ebx, eax
sub esi, eax
jne 0x40313c
mov esi, dword [edi + 0x38]
or edx, 0xffffffff
mov ecx, dword [edi + 0x20]
xor ebp, ebp
add ecx, esi
mov eax, ecx
sub eax, esi
cmp ecx, esi
sbb ebx, ebx
not ebx
and ebx, eax
je 0x40319a
movzx eax, byte [esi]
mov ecx, edx
shr ecx, 0x18
xor ecx, eax
shl edx, 8
xor edx, dword [ecx*4 + 0x428390]
inc esi
inc ebp
cmp ebp, ebx
jne 0x403180
not edx
cmp edx, dword [edi + 0x24]
je 0x4031da
push dword [edi + 0x24]
push edx
push str.LoadSourceFile:_destination_file_crc__d_does_not_match_expected_crc__d
call fcn.0040200f
push eax
call fcn.00408506
add esp, 0x10
push 4
jmp 0x4030fa
push dword [edi + 0x10]
push str.LoadSourceFile:_error_reading_destination_file:__S
call fcn.0040200f
push eax
call fcn.00408506
add esp, 0xc
jmp 0x4030f8
xor eax, eax
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040bd82
add esp, 0x40
ret 4
Function at 0x4038ad
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x60
mov eax, edx
mov edx, dword [esp + 0x64]
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, eax
push edi
call fcn.00403838
mov ebx, eax
test ebx, ebx
je 0x403984
push 0x40
xor ebp, ebp
lea eax, [esp + 0x30]
push ebp
push eax
call fcn.00414050
xor eax, eax
mov dword [esp + 0x24], ebp
add esp, 0xc
mov dword [esp + 0x28], 0x44
lea edi, [esp + 0x1c]
mov dword [esp + 0x30], str.winsta0Default
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
test edi, edi
je 0x40392e
push dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x1c]
call esi
jmp 0x40397b
push ebp
push ebp
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ebp
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebp
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x40395e
mov eax, str._null_
push eax
push str.Error_restarting:__s_n
call fcn.0040ddfa
pop ecx
pop ecx
cmp dword [esp + 0x14], ebp
je 0x40397b
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call fcn.0040be3f
pop ecx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
Function at 0x403dbf
Capabilities:
Get common file path
Move file
Write file on windows

Disassembly:
sub esp, 0x414
mov eax, dword [0x42e440]
xor eax, esp
mov dword [esp + 0x410], eax
push ebp
push edi
xor eax, eax
mov ebp, 0x206
push ebp
push eax
mov word [esp + 0x10], ax
mov edi, ecx
lea eax, [esp + 0x12]
push eax
call fcn.00414050
add esp, 0xc
lea eax, [esp + 8]
push eax
push 0
push 0x429de4
push dword [0x43074c]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [esp + 8]
call fcn.00402610
test eax, eax
je 0x403e1b
xor al, al
jmp 0x403e5d
push esi
lea eax, [esp + 0xc]
push 0x427d94
push eax
call fcn.0040c03b
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x403e5a
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403e38
push esi
sub ecx, edx
push 1
push ecx
push edi
call fcn.0040c7c6
add esp, 0x10
push esi
cmp eax, 1
je 0x403e74
call fcn.0040c92c
pop ecx
xor al, al
pop esi
mov ecx, dword [esp + 0x418]
pop edi
pop ebp
xor ecx, esp
call fcn.0040bd82
add esp, 0x414
ret
call fcn.0040c92c
xor eax, eax
push ebp
push eax
mov word [esp + 0x220], ax
lea eax, [esp + 0x222]
push eax
call fcn.00414050
push dword [0x43074c]
lea eax, [esp + 0x228]
push str._supdate.status
push 0x104
push eax
call fcn.00401fe5
add esp, 0x20
lea eax, [esp + 0x214]
push 1
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne al
jmp 0x403e5c

Function at 0x403f22
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x42e440]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push dword [0x43074c]
lea eax, [ebp - 0x24c]
push str._s_update.status
push 0x104
push eax
call fcn.00401fe5
lea eax, [ebp - 0x24c]
push 0x429bd4
push eax
call fcn.0040c03b
mov edx, eax
add esp, 0x18
mov dword [ebp - 0x250], edx
test edx, edx
jne 0x403f76
xor bl, bl
jmp 0x403fec
push esi
push edi
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x23]
xor ebx, ebx
mov byte [ebp - 0x24], bl
rep stosd dword es:[edi], eax
push edx
push 1
push 0x20
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x24]
push eax
call fcn.0040cede
mov esi, str.pending_service
lea edi, [ebp - 0x44]
push 0xf
lea eax, [ebp - 0x44]
push eax
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x24]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, str.applied_service
lea edi, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0040d340
add esp, 0x1c
pop edi
pop esi
test eax, eax
je 0x403fde
push 0xf
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0040d340
add esp, 0xc
test eax, eax
jne 0x403fe0
mov bl, 1
push dword [ebp - 0x250]
call fcn.0040c92c
pop ecx
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0040bd82
mov esp, ebp
pop ebp
ret
Function at 0x403ffd
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x23c
mov eax, dword [0x42e440]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push ebp
push dword [0x43074c]
mov ebp, ecx
lea eax, [esp + 0x3c]
push str._s_update.status
push 0x104
xor ebx, ebx
push eax
mov byte [ebp], bl
call fcn.00401fe5
lea eax, [esp + 0x48]
push 0x429bd4
push eax
call fcn.0040c03b
mov edx, eax
add esp, 0x18
mov dword [esp + 8], edx
test edx, edx
je 0x4040aa
push esi
push edi
push 7
pop ecx
xor eax, eax
mov byte [esp + 0x20], bl
lea edi, [esp + 0x21]
rep stosd dword es:[edi], eax
push edx
push 1
push 0x20
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x2c]
push eax
call fcn.0040cede
mov esi, str.succeeded
lea edi, [esp + 0x24]
push 9
lea eax, [esp + 0x28]
push eax
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x38]
push eax
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.0040d340
push dword [esp + 0x2c]
neg eax
mov bl, 1
sbb al, al
inc al
mov byte [ebp], al
call fcn.0040c92c
add esp, 0x20
pop edi
pop esi
mov ecx, dword [esp + 0x240]
mov al, bl
pop ebp
pop ebx
xor ecx, esp
call fcn.0040bd82
add esp, 0x23c
ret
Function at 0x404134
Capabilities:
Create directory

Disassembly:
sub esp, 0x830
mov eax, dword [0x42e440]
xor eax, esp
mov dword [esp + 0x828], eax
push ebp
push esi
push edi
mov ebp, 0x104
lea eax, [esp + 0x10]
push ebp
push eax
mov esi, 0x431230
push esi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0x40416e
push 0x22
pop eax
jmp 0x40437f
lea eax, [esp + 0x10]
push eax
push str._s.bak
lea eax, [esp + 0x220]
push ebp
push eax
call fcn.00401fe5
push esi
push str._s.bak_updated
lea eax, [esp + 0x640]
push ebp
push eax
call fcn.00401fe5
add esp, 0x20
lea ecx, [esp + 0x218]
xor dl, dl
call fcn.004023a7
lea eax, [esp + 0x218]
push eax
lea eax, [esp + 0x14]
push eax
push str.Begin_moving_destDir___S__to_tmpDir___S_
call fcn.0040200f
push eax
call fcn.00408506
push 1
lea edx, [esp + 0x22c]
lea ecx, [esp + 0x24]
call fcn.00402687
add esp, 0x14
xor edi, edi
jmp 0x404225
mov eax, edi
inc edi
cmp eax, 0xa
jge 0x40422c
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x18]
push eax
push edi
push str.PerformReplaceRequest:_destDir_rename_attempt__d_failed._File:__S._Last_error:__d__err:__d
call fcn.0040200f
push eax
call fcn.00408506
add esp, 0x18
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
lea edx, [esp + 0x21c]
lea ecx, [esp + 0x14]
call fcn.00402687
pop ecx
mov esi, eax
cmp esi, 7
je 0x4041e1
test esi, esi
je 0x40424b
push esi
push str.Moving_destDir_to_tmpDir_failed__err:__d
call fcn.0040200f
push eax
call fcn.00408506
add esp, 0xc
mov eax, esi
jmp 0x40437f
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x62c]
push eax
push str.Begin_moving_newDir___S__to_destDir___S_
call fcn.0040200f
push eax
call fcn.00408506
push 1
lea edx, [esp + 0x24]
lea ecx, [esp + 0x63c]
call fcn.00402687
mov esi, eax
add esp, 0x14
test esi, esi
je 0x4042da
push esi
push str.Moving_newDir_to_destDir_failed__err:__d
call fcn.0040200f
push eax
call fcn.00408506
add esp, 0xc
push str.Now__try_to_move_tmpDir_back_to_destDir
call fcn.0040200f
push eax
call fcn.00408506
xor dl, dl
lea ecx, [esp + 0x18]
call fcn.004023a7
push 1
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x224]
call fcn.00402687
add esp, 0xc
test eax, eax
je 0x404244
push eax
push str.Moving_tmpDir_back_to_destDir_failed__err:__d
jmp 0x404236
push str.Now__remove_the_tmpDir
call fcn.0040200f
push eax
call fcn.00408506
pop ecx
pop ecx
mov dl, 1
lea ecx, [esp + 0x218]
call fcn.004023a7
test eax, eax
je 0x404376
push eax
push str.Removing_tmpDir_failed__err:__d
call fcn.0040200f
push eax
call fcn.00408506
add esp, 0xc
lea eax, [esp + 0x10]
push str.tobedeleted
push eax
push 0x42a0b8
lea eax, [esp + 0x42c]
push ebp
push eax
call fcn.00401fe5
add esp, 0x14
lea eax, [esp + 0x420]
push eax
call fcn.0040d793
pop ecx
lea eax, [esp + 0x420]
push 0
push eax
call fcn.0040d284
pop ecx
pop ecx
test eax, eax
je 0x404363
lea eax, [esp + 0x420]
push eax
call fcn.0040d762
pop ecx
lea edx, [esp + 0x420]
lea ecx, [esp + 0x218]
call fcn.004027a8
mov byte [0x430533], 1
xor eax, eax
mov ecx, dword [esp + 0x834]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0040bd82
add esp, 0x830
ret
Function at 0x405acb
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x44
mov eax, dword [0x42e440]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push 0x429bd4
push ebp
call fcn.0040c03b
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x405afd
push ebp
push str.GetManifestContents:_error_opening_manifest_file:__S
jmp 0x405c07
push esi
call fcn.00412b13
lea ecx, [esp + 0x1c]
push ecx
push eax
call fcn.0040c9a3
add esp, 0xc
test eax, eax
je 0x405b20
push ebp
push str.GetManifestContents:_error_stating_manifest_file:__S
jmp 0x405c07
mov edi, dword [esp + 0x2c]
lea eax, [edi + 1]
push eax
call fcn.0040be77
mov ebx, eax
pop ecx
test ebx, ebx
je 0x405bdf
mov ecx, ebx
mov dword [esp + 0x10], ecx
test edi, edi
je 0x405b84
cmp edi, 0x7fffffff
jae 0x405b52
mov eax, edi
mov dword [esp + 0x14], edi
jmp 0x405b5b
mov eax, 0x7fffffff
mov dword [esp + 0x14], eax
push esi
push eax
push 1
push ecx
call fcn.0040cede
add esp, 0x10
cmp eax, dword [esp + 0x14]
jne 0x405c01
mov ecx, dword [esp + 0x10]
add ecx, eax
mov dword [esp + 0x10], ecx
sub edi, eax
jne 0x405b42
mov edi, dword [esp + 0x2c]
mov byte [edi + ebx], 0
mov ebp, dword [esp + 0x2c]
lea eax, [ebp*2 + 2]
push eax
call fcn.0040be77
mov edi, eax
pop ecx
test edi, edi
je 0x405bdf
lea eax, [ebp + 1]
push eax
push edi
push 0xffffffffffffffff
push ebx
push 8
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x405c17
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetManifestContents:_error_converting_utf8_to_utf16le:__d
call fcn.0040200f
push eax
call fcn.00408506
push ebx
call fcn.0040be3f
push edi
call fcn.0040be3f
add esp, 0x14
xor edi, edi
test esi, esi
je 0x405bec
push esi
call fcn.0040c92c
pop ecx
mov ecx, dword [esp + 0x4c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040bd82
add esp, 0x44
ret
push ebp
push str.GetManifestContents:_error_reading_manifest_file:__S
call fcn.0040200f
push eax
call fcn.00408506
add esp, 0xc
jmp 0x405bdf
push ebx
call fcn.0040be3f
pop ecx
jmp 0x405be1
Function at 0x40669d
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x42e440]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4066e4
lea ecx, [ebp - 0x258]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406716
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
pop esi
cmp eax, esi
je 0x4066e0
call fcn.0040dd78
mov dword [eax], esi
xor eax, eax
jmp 0x40673f
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 0x406716
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
pop esi
cmp eax, esi
je 0x4066d9
call fcn.0040dd78
mov dword [eax], 9
jmp 0x4066e0
push 0x208
push 0
mov esi, 0x430540
push esi
call fcn.00414050
push 0x104
lea ecx, [ebp - 0x22c]
push ecx
push esi
call fcn.0040cf8a
add esp, 0x18
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040bd82
mov esp, ebp
pop ebp
ret

Function at 0x4068c5
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, edx
mov dword [esp], eax
push ebx
push ebp
push esi
test ecx, ecx
je 0x40696f
test eax, eax
je 0x40696f
mov esi, dword [esp + 0x18]
test esi, esi
je 0x40696f
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x40696f
cmp dword [esp + 0x20], 0
je 0x40696f
push ecx
push 1
push dword [esp + 0x1c]
push eax
call fcn.0040cede
add esp, 0x10
cmp eax, 1
je 0x40692a
push dword [esp + 0x20]
push str.ERROR:_Could_not_read__s_n
call fcn.0040d686
add eax, 0x40
push eax
call fcn.0040e5c8
add esp, 0xc
jmp 0x406984
xor ebp, ebp
test ebx, ebx
je 0x40694c
push dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, esi
call fcn.004068a2
pop ecx
test eax, eax
jne 0x406950
inc ebp
add esi, 4
cmp ebp, ebx
jb 0x406930
xor eax, eax
jmp 0x406987
push dword [esp + 0x20]
push str.ERROR:_Could_not_update_verify_context_for__s_n
call fcn.0040d686
add eax, 0x40
push eax
call fcn.0040e5c8
add esp, 0xc
push 0xfffffffffffffffe
pop eax
jmp 0x406987
push str.ERROR:_Invalid_parameter_specified._n
call fcn.0040d686
add eax, 0x40
push eax
call fcn.0040e5c8
pop ecx
pop ecx
or eax, 0xffffffff
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4073cd
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 0x407424
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
je 0x407410
xor eax, eax
jmp 0x4074c4
push 0xf0000008
push 1
push ebp
push ebp
lea eax, [esp + 0x24]
push eax
call esi
test eax, eax
je 0x407409
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 0x407409
push ebp
push edi
push ebx
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x407409
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 0x407409
push dword [edi]
call fcn.0040ed98
push dword [edi]
mov esi, eax
mov eax, dword [esp + 0x28]
push ebp
push esi
mov dword [eax], esi
call fcn.00414050
add esp, 0x10
push ebp
push edi
push esi
push 2
push dword [esp + 0x20]
call ebx
test eax, eax
je 0x407409
cmp dword [esp + 0x10], ebp
je 0x4074b0
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [esp + 0x14], ebp
je 0x4074c1
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 0x4076af
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push 0x429bd4
push ecx
mov dword [esp + 0x18], edx
call fcn.0040c03b
mov esi, eax
mov dword [esp + 0x20], esi
pop ecx
pop ecx
test esi, esi
je 0x407899
push 2
push 0
push esi
call fcn.0040e98e
add esp, 0xc
test eax, eax
jne 0x407899
push esi
call fcn.0040f9ea
mov ebx, eax
pop ecx
test ebx, ebx
jle 0x407899
lea ecx, [ebx + 1]
push edi
push ecx
call fcn.0040ed98
mov edi, eax
mov dword [esp + 0x24], edi
pop ecx
test edi, edi
jne 0x407713
push 0xa
jmp 0x407737
push 0
push 0
push esi
call fcn.0040e98e
add esp, 0xc
test eax, eax
jne 0x407735
push esi
push ebx
push 1
push edi
call fcn.0040cede
add esp, 0x10
cmp eax, ebx
je 0x40773d
push 6
pop ebp
jmp 0x40788f
lea edx, [esp + 0x18]
mov byte [edi + ebx], 0
mov ecx, 0x428350
mov dword [esp + 0x18], edi
mov byte [esp + 0x13], 0
xor ebp, ebp
call fcn.004075f2
test eax, eax
je 0x407884
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x14]
mov cl, byte [eax]
cmp cl, 0x23
je 0x407866
cmp cl, 0x3b
je 0x407866
mov edx, eax
mov ecx, 0x428354
call fcn.004075ca
mov ebx, eax
mov dword [esp + 0x14], ebx
mov al, byte [ebx]
test al, al
je 0x407866
cmp al, 0x5b
jne 0x407818
inc ebx
lea edx, [esp + 0x14]
mov ecx, 0x42834c
mov dword [esp + 0x14], ebx
call fcn.004075f2
test eax, eax
je 0x407811
lea edx, [esp + 0x14]
mov ecx, 0x428354
call fcn.004075f2
test eax, eax
jne 0x407811
cmp dword [esp + 0x30], eax
je 0x4077ff
mov eax, dword [esp + 0x30]
mov cl, byte [ebx]
cmp cl, byte [eax]
jne 0x4077f1
test cl, cl
je 0x4077ed
mov cl, byte [ebx + 1]
cmp cl, byte [eax + 1]
jne 0x4077f1
add ebx, 2
add eax, 2
test cl, cl
jne 0x4077d1
xor eax, eax
jmp 0x4077f6
sbb eax, eax
or eax, 1
test eax, eax
sete byte [esp + 0x13]
jmp 0x407866
push 8
push str.Strings
push ebx
call fcn.0041acad
add esp, 0xc
jmp 0x4077f6
mov byte [esp + 0x13], 0
jmp 0x407866
cmp byte [esp + 0x13], 0
je 0x407866
lea edx, [esp + 0x14]
mov ecx, 0x428348
call fcn.004075f2
test eax, eax
je 0x407866
mov edx, ebx
mov ecx, edi
call fcn.0040764c
test eax, eax
js 0x407866
cmp eax, dword [esp + 0x28]
jae 0x407866
imul ebx, eax, 0x258
push 0x257
push dword [esp + 0x18]
add ebx, esi
push ebx
call fcn.0040c440
add esp, 0xc
mov byte [ebx + 0x257], 0
inc ebp
lea edx, [esp + 0x18]
mov ecx, 0x428350
call fcn.004075f2
test eax, eax
jne 0x40776a
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
sub ebp, dword [esp + 0x28]
neg ebp
sbb ebp, ebp
and ebp, 5
push edi
call fcn.0040e8c7
pop ecx
pop edi
jmp 0x40789c
push 6
pop ebp
test esi, esi
je 0x4078a7
push esi
call fcn.0040c92c
pop ecx
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x407d5e
Capabilities:
Copy file
Create process on windows

Disassembly:
sub esp, 0x50c
mov eax, dword [0x42e440]
xor eax, esp
mov dword [esp + 0x504], eax
push ebx
push ebp
push esi
push edi
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x407d92
xor eax, eax
jmp 0x407f72
push 0xf01ff
push str.MozillaMaintenance
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
push edi
test esi, esi
jne 0x407db2
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x407d8b
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
lea eax, [esp + 0x10]
push eax
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x407ddc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x407ddc
push esi
call edi
jmp 0x407d8b
mov eax, dword [esp + 0x10]
push eax
mov dword [esp + 0x18], eax
call fcn.0040ed98
mov ebp, eax
pop ecx
test ebp, ebp
je 0x407e01
push dword [esp + 0x14]
push ebx
push ebp
call fcn.00414050
add esp, 0xc
jmp 0x407e03
mov ebp, ebx
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
push esi
test eax, eax
jne 0x407e20
call edi
jmp 0x407f65
call edi
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
xor eax, eax
mov esi, 0x208
push esi
mov word [esp + 0x304], ax
lea eax, [esp + 0x306]
push ebx
push eax
call fcn.00414050
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0x30c]
push str.maintenanceservice_tmp.exe
call fcn.00407cdc
add esp, 0x10
test eax, eax
je 0x407f65
xor eax, eax
push esi
mov word [esp + 0xf4], ax
lea eax, [esp + 0xf6]
push ebx
push eax
call fcn.00414050
push 0x104
mov esi, 0x431230
lea eax, [esp + 0x100]
push esi
push eax
call fcn.0040cf8a
add esp, 0x18
lea ecx, [esp + 0xf0]
mov edx, str.maintenanceservice.exe
call fcn.0040809b
push ebx
lea eax, [esp + 0x304]
push eax
lea eax, [esp + 0xf8]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x407f65
push 0x40
lea eax, [esp + 0x30]
push ebx
push eax
call fcn.00414050
xor eax, eax
mov dword [esp + 0x24], ebx
lea edi, [esp + 0x28]
mov dword [esp + 0x34], 0x44
stosd dword es:[edi], eax
push 0x7e
push ebx
mov dword [esp + 0x44], 0x427d8c
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov word [esp + 0x84], ax
lea eax, [esp + 0x86]
push eax
call fcn.00414050
push 0x3f
lea eax, [esp + 0x8c]
push str.dummyparam.exe_upgrade
push eax
call fcn.0040cf8a
add esp, 0x24
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
push esi
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x324]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
test ebx, ebx
je 0x407f65
push dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x1c]
call esi
test ebp, ebp
je 0x407f70
push ebp
call fcn.0040e8c7
pop ecx
mov eax, ebx
mov ecx, dword [esp + 0x514]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040bd82
add esp, 0x50c
ret
Function at 0x407f8b
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.004080e6
cmp eax, 1
je 0x407fae
add eax, 0x4e20
jmp 0x408030
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 0x407fc9
mov eax, 0x4269
jmp 0x40802e
push ebx
push 0x10
push str.MozillaMaintenance
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x407fe5
mov esi, 0x426a
jmp 0x408024
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 0x40801b
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 0x407fe8
jmp 0x40801d
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