joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4023c1
Capabilities:
Copy file

Disassembly:
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4023fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esp + 0xc]
push dword [esp + 0xc]
push str.ensure_copy:_failed_to_copy_the_file__S_over_to__S__lasterr:__x
call fcn.004020d6
push eax
call fcn.00406afb
add esp, 0x14
push 7
pop eax
ret
xor eax, eax
ret

Function at 0x4025cd
Capabilities:
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x427d40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
push str._s.moz_backup
mov esi, 0x104
lea edi, [ebp - 0x20c]
call fcn.004018e7
xor ebx, ebx
mov eax, edi
push ebx
push eax
call fcn.0040e276
add esp, 0x10
test eax, eax
jne 0x4026c9
call fcn.004021d3
test eax, eax
je 0x4026c9
cmp byte [0x429789], bl
jne 0x4026c9
cmp byte [0x42978a], bl
jne 0x4026c9
mov eax, edi
push eax
push str.backup_discard:_unable_to_remove:__S
call fcn.004020d6
push eax
call fcn.00406afb
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push ebx
push 0x41f958
push str.tobedeleted
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push ebx
lea ecx, [ebp - 0x414]
mov esi, edi
call fcn.004023fe
test eax, eax
pop ecx
lea eax, [ebp - 0x414]
je 0x40269a
push eax
mov eax, edi
push eax
push str.backup_discard:_failed_to_rename_file:_S__dst:_S
call fcn.004020d6
push eax
call fcn.00406afb
add esp, 0x10
push 7
pop eax
jmp 0x4026cb
push 4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
lea eax, [ebp - 0x414]
push eax
je 0x4026b6
push str.backup_discard:_file_renamed_and_will_be_removed_on_OS_reboot:__S
jmp 0x4026bb
push str.backup_discard:_failed_to_schedule_OS_reboot_removal_of_file:__S
call fcn.004020d6
push eax
call fcn.00406afb
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b2d4
leave
ret
Function at 0x402bb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x427d40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
mov esi, ecx
mov dword [ebp - 0x3c], eax
call fcn.00412ee3
lea ecx, [ebp - 0x34]
push ecx
push eax
call fcn.0040b843
add esp, 0xc
test eax, eax
je 0x402c05
call fcn.0040e119
push dword [eax]
push dword [esi + 0x10]
push str.LoadSourceFile:_unable_to_stat_destination_file:__S__err:__d
call fcn.004020d6
push eax
call fcn.00406afb
add esp, 0x10
push 6
pop eax
jmp 0x402cd4
push edi
mov edi, dword [esi + 0x20]
push edi
cmp dword [ebp - 0x20], edi
je 0x402c29
push dword [ebp - 0x20]
push str.LoadSourceFile:_destination_file_size__d_does_not_match_expected_size__d
call fcn.004020d6
push eax
call fcn.00406afb
add esp, 0x10
push 0x2a
jmp 0x402c38
call fcn.0040b5b2
pop ecx
mov dword [esi + 0x38], eax
test eax, eax
jne 0x402c3e
push 0xd
pop eax
jmp 0x402cd3
push ebx
mov dword [ebp - 0x38], eax
test edi, edi
je 0x402c6d
mov ebx, 0x7fffffff
cmp edi, ebx
jae 0x402c51
mov ebx, edi
push dword [ebp - 0x3c]
push ebx
push 1
push dword [ebp - 0x38]
call fcn.0040d333
add esp, 0x10
cmp eax, ebx
jne 0x402c7a
add dword [ebp - 0x38], eax
sub edi, eax
jne 0x402c46
mov edx, dword [esi + 0x38]
mov eax, dword [esi + 0x20]
or ecx, 0xffffffff
add eax, edx
jmp 0x402ca9
push dword [esi + 0x10]
push str.LoadSourceFile:_error_reading_destination_file:__S
call fcn.004020d6
push eax
call fcn.00406afb
add esp, 0xc
push 6
jmp 0x402ccd
movzx ebx, byte [edx]
mov edi, ecx
shr edi, 0x18
xor edi, ebx
shl ecx, 8
xor ecx, dword [edi*4 + 0x427138]
inc edx
cmp edx, eax
jne 0x402c94
mov esi, dword [esi + 0x24]
not ecx
cmp ecx, esi
je 0x402cd0
push esi
push ecx
push str.LoadSourceFile:_destination_file_crc__d_does_not_match_expected_crc__d
call fcn.004020d6
push eax
call fcn.00406afb
add esp, 0x10
push 4
pop eax
jmp 0x402cd2
xor eax, eax
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040b2d4
leave
ret 4

Function at 0x403227
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x427d40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [0x429168]
mov esi, 0x104
push str._s_update.status
lea edi, [ebp - 0x20c]
mov ebx, ecx
call fcn.004018e7
mov eax, edi
push eax
call fcn.0040234e
add esp, 0xc
test eax, eax
je 0x40327a
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b2d4
leave
ret
lea eax, [ebp - 0x20c]
push 0x41f32c
push eax
call fcn.0040b7e5
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x403269
push esi
push 1
push ebx
call fcn.0040ac60
pop ecx
push eax
push ebx
call fcn.0040b4c1
add esp, 0x10
cmp eax, 1
je 0x4032b9
xor bl, bl
push esi
call fcn.0040b6b3
pop ecx
mov al, bl
jmp 0x40326b
mov bl, 1
jmp 0x4032ae
Function at 0x4038d6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x427d40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
push 0x41f480
push esi
mov dword [ebp - 0x40], esi
call fcn.0040b7e5
mov edi, eax
pop ecx
pop ecx
mov dword [ebp - 0x38], edi
test edi, edi
jne 0x40391e
push esi
push str.GetManifestContents:_error_opening_manifest_file:__S
call fcn.004020d6
push eax
call fcn.00406afb
add esp, 0xc
xor eax, eax
jmp 0x4039bf
push edi
call fcn.00412ee3
lea ecx, [ebp - 0x34]
push ecx
push eax
call fcn.0040b843
add esp, 0xc
test eax, eax
je 0x403951
push esi
push str.GetManifestContents:_error_stating_manifest_file:__S
call fcn.004020d6
push eax
call fcn.00406afb
push edi
call fcn.0040b6b3
add esp, 0x10
jmp 0x403917
mov esi, dword [ebp - 0x20]
lea eax, [esi + 1]
push ebx
push eax
call fcn.0040b5b2
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x403968
push edi
jmp 0x4039b6
mov edi, esi
mov dword [ebp - 0x3c], ebx
test esi, esi
je 0x40399b
mov esi, 0x7fffffff
cmp edi, esi
jae 0x40397c
mov esi, edi
push dword [ebp - 0x38]
push esi
push 1
push dword [ebp - 0x3c]
call fcn.0040d333
add esp, 0x10
cmp eax, esi
jne 0x4039cd
add dword [ebp - 0x3c], eax
sub edi, eax
jne 0x403971
mov esi, dword [ebp - 0x20]
mov byte [esi + ebx], 0
mov esi, dword [ebp - 0x20]
lea eax, [esi + esi + 2]
push eax
call fcn.0040b5b2
mov edi, eax
pop ecx
test edi, edi
jne 0x4039ed
push dword [ebp - 0x38]
call fcn.0040b6b3
pop ecx
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040b2d4
leave
ret
push dword [ebp - 0x40]
push str.GetManifestContents:_error_reading_manifest_file:__S
call fcn.004020d6
push eax
call fcn.00406afb
push dword [ebp - 0x38]
call fcn.0040b6b3
add esp, 0x10
jmp 0x4039bc
inc esi
push esi
push edi
push 0xffffffffffffffff
push ebx
push 8
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x403a39
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetManifestContents:_error_converting_utf8_to_utf16le:__d
call fcn.004020d6
push eax
call fcn.00406afb
push ebx
call fcn.0040b0b8
push edi
call fcn.0040b0b8
add esp, 0x14
xor edi, edi
push dword [ebp - 0x38]
call fcn.0040b6b3
pop ecx
mov eax, edi
jmp 0x4039be
push ebx
call fcn.0040b0b8
pop ecx
jmp 0x403a2c
Function at 0x40585a
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x427d40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4058a2
lea ecx, [ebp - 0x254]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4058d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
pop esi
cmp eax, esi
je 0x40589e
call fcn.0040e119
mov dword [eax], esi
xor eax, eax
jmp 0x4058fd
lea eax, [ebp - 0x254]
push eax
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x4058d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
pop esi
cmp eax, esi
je 0x405897
call fcn.0040e119
mov dword [eax], 9
jmp 0x40589e
push 0x208
push 0
mov esi, 0x429c68
push esi
call fcn.0040b2f0
push 0x104
lea eax, [ebp - 0x228]
push eax
push esi
call fcn.0040dcb3
add esp, 0x18
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040b2d4
leave
ret

Function at 0x405925
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push 0xf0000000
xor esi, esi
push 1
push esi
push esi
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call edi
test eax, eax
jne 0x405975
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
je 0x405962
xor eax, eax
jmp 0x405a0b
push 0xf0000008
push 1
push esi
push esi
lea eax, [ebp - 8]
push eax
call edi
test eax, eax
je 0x40595b
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x8003
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x40595b
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x40595b
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 4
pop eax
push esi
lea ecx, [ebp - 0xc]
push ecx
push ebx
push eax
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
call edi
test eax, eax
je 0x40595b
push dword [ebx]
call fcn.0040e3e3
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push dword [ebx]
push esi
push eax
call fcn.0040b2f0
mov eax, dword [ebp + 0x10]
add esp, 0x10
push esi
push ebx
push dword [eax]
push 2
push dword [ebp - 4]
call edi
test eax, eax
je 0x40595b
cmp dword [ebp - 4], esi
je 0x4059f9
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 8], esi
je 0x405a08
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x405b71
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push 0x41f480
push dword [ebp + 8]
call fcn.0040b7e5
mov esi, eax
xor ebx, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
cmp esi, ebx
jne 0x405b9a
push 6
pop eax
pop esi
pop ebx
leave
ret
push 2
push ebx
push esi
call fcn.0040e318
add esp, 0xc
test eax, eax
je 0x405bb3
push esi
call fcn.0040b6b3
pop ecx
jmp 0x405b93
push edi
push esi
call fcn.0040f05e
mov edi, eax
pop ecx
cmp edi, ebx
jg 0x405bd2
push 6
pop esi
push dword [ebp - 0xc]
call fcn.0040b6b3
pop ecx
mov eax, esi
pop edi
jmp 0x405b96
lea eax, [edi + 1]
push eax
call fcn.0040e3e3
mov esi, eax
pop ecx
mov dword [ebp - 0x18], esi
push ebx
cmp esi, ebx
jne 0x405bf0
call fcn.0040dbd1
pop ecx
push 0xa
jmp 0x405bc3
push ebx
push dword [ebp - 0xc]
call fcn.0040e318
add esp, 0xc
test eax, eax
je 0x405c09
push esi
call fcn.0040dbd1
pop ecx
jmp 0x405bc1
push dword [ebp - 0xc]
push edi
push 1
push esi
call fcn.0040d333
add esp, 0x10
cmp eax, edi
jne 0x405c00
mov byte [esi + edi], bl
mov dword [ebp - 0x10], esi
mov byte [ebp - 1], bl
xor esi, esi
jmp 0x405d25
mov cl, byte [eax]
cmp cl, 0x23
je 0x405d25
cmp cl, 0x3b
je 0x405d25
mov edi, 0x420fa4
call fcn.00405afb
mov cl, byte [eax]
mov dword [ebp - 8], eax
test cl, cl
je 0x405d25
cmp cl, 0x5b
jne 0x405cae
inc eax
push 0x420fa8
lea ebx, [ebp - 8]
mov dword [ebp - 8], eax
mov edi, eax
call fcn.00405b23
pop ecx
test eax, eax
je 0x405ca8
push 0x420fa4
call fcn.00405b23
pop ecx
test eax, eax
jne 0x405ca8
cmp dword [ebp + 0x18], eax
je 0x405ca1
push dword [ebp + 0x18]
push edi
call fcn.0040b030
neg eax
sbb al, al
pop ecx
inc al
pop ecx
mov byte [ebp - 1], al
jmp 0x405d25
push str.Strings
jmp 0x405c8b
mov byte [ebp - 1], 0
jmp 0x405d25
cmp byte [ebp - 1], 0
je 0x405d25
push 0x420fa0
lea ebx, [ebp - 8]
mov dword [ebp - 0x14], eax
call fcn.00405b23
pop ecx
test eax, eax
je 0x405d25
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x405d25
xor edi, edi
jmp 0x405cef
push ebx
push dword [ebp - 0x14]
call fcn.0040b030
pop ecx
pop ecx
test eax, eax
je 0x405d53
push ebx
call fcn.0040ac60
pop ecx
lea ebx, [ebx + eax + 1]
inc edi
cmp byte [ebx], 0
jne 0x405cd4
or eax, 0xffffffff
test eax, eax
js 0x405d25
cmp eax, dword [ebp + 0x10]
jae 0x405d25
mov ecx, dword [ebp + 0x14]
imul eax, eax, 0x258
push 0x257
push dword [ebp - 8]
lea ebx, [eax + ecx]
push ebx
call fcn.0040b1b0
add esp, 0xc
mov byte [ebx + 0x257], 0
inc esi
push 0x420f9c
lea ebx, [ebp - 0x10]
call fcn.00405b23
pop ecx
test eax, eax
jne 0x405c2c
sub esi, dword [ebp + 0x10]
push dword [ebp - 0x18]
neg esi
sbb esi, esi
and esi, 5
call fcn.0040dbd1
pop ecx
jmp 0x405bc4
mov eax, edi
jmp 0x405cf7
Function at 0x405f65
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x427d40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x208
mov word [ebp - 0x218], ax
xor esi, esi
lea eax, [ebp - 0x216]
push esi
push eax
call fcn.0040b2f0
push 0x104
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.0040dcb3
lea eax, [ebp - 0x218]
push str.update.status
push eax
call fcn.00405f31
add esp, 0x20
test eax, eax
je 0x406025
mov eax, dword [str.pending]
push esi
push esi
push 2
push esi
mov dword [ebp - 0xc], eax
mov eax, dword [0x42068c]
push esi
mov dword [ebp - 8], eax
push 0x40000000
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x406025
push ebx
push esi
lea eax, [ebp - 0x21c]
push eax
push 7
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, esi
pop ebx
je 0x406025
cmp dword [ebp - 0x21c], 7
jne 0x406025
xor eax, eax
inc eax
jmp 0x406027
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040b2d4
leave
ret
Function at 0x406035
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x427d40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 5
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
mov dword [ebp - 0x34], ebx
cmp ebx, edi
jne 0x40608a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x406080
xor ecx, ecx
cmp eax, 0x429
setne cl
lea eax, [ecx + 0xfe]
jmp 0x406175
mov eax, 0xfd
jmp 0x406175
push 4
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x30], eax
cmp eax, edi
jne 0x4060f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
sub eax, 5
je 0x4060e8
dec eax
je 0x4060de
sub eax, 0x75
je 0x4060d4
sub eax, 0x3a9
je 0x4060ca
mov eax, 0xef
jmp 0x406175
mov eax, 0xee
jmp 0x406175
mov eax, 0xed
jmp 0x406175
mov eax, 0xec
jmp 0x406175
mov eax, 0xeb
jmp 0x406175
mov esi, dword [ebp + 0xc]
imul esi, esi, 0x3e8
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], 0xcf
cmp esi, edi
jbe 0x406160
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x32
pop ebx
lea eax, [ebp - 0x38]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x406184
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7c
jbe 0x40619b
cmp eax, 0x41c
je 0x40618a
cmp eax, 0x424
jbe 0x406159
cmp eax, 0x426
jbe 0x40618a
mov dword [ebp - 0x24], 0xde
cmp eax, 0x45b
je 0x406160
mov dword [ebp - 0x24], 0xdf
push dword [ebp - 0x30]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [ebp - 0x24]
call esi
push dword [ebp - 0x34]
call esi
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b2d4
leave
ret
cmp dword [ebp - 0x24], 1
je 0x406160
add dword [ebp - 0x2c], ebx
push ebx
call edi
cmp dword [ebp - 0x2c], esi
jb 0x406112
jmp 0x406160
je 0x4061d3
sub eax, 5
je 0x4061ca
dec eax
je 0x4061c1
sub eax, 0x51
je 0x4061b8
sub eax, 0x23
jne 0x406159
mov dword [ebp - 0x24], 0xdb
jmp 0x406160
mov dword [ebp - 0x24], 0xdc
jmp 0x406160
mov dword [ebp - 0x24], 0xd9
jmp 0x406160
mov dword [ebp - 0x24], 0xda
jmp 0x406160
mov dword [ebp - 0x24], 0xdd
jmp 0x406160
Function at 0x406211
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x427d40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.0040b2f0
push edi
call fcn.0040b00d
mov ecx, 0x104
add esp, 0x10
cmp eax, ecx
jbe 0x40625d
xor eax, eax
jmp 0x406295
push ecx
lea eax, [ebp - 0x210]
push edi
push eax
call fcn.0040dcb3
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 [esi], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040b2d4
leave
ret
Function at 0x406725
Capabilities:
Start service

Disassembly:
push ecx
push esi
push 5
mov esi, str.MozillaMaintenance
push esi
call fcn.00406035
pop ecx
pop ecx
cmp eax, 1
je 0x406742
add eax, 0x4e20
jmp 0x40675d
push ebx
push 5
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [esp + 8], eax
cmp eax, ebx
jne 0x406760
mov eax, 0x4269
pop ebx
pop esi
pop ecx
ret
push ebp
push edi
push 0x10
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
cmp edi, ebx
jne 0x406789
mov esi, 0x426a
push dword [esp + 0x10]
call ebp
pop edi
mov eax, esi
pop ebp
jmp 0x40675c
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4067b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x64
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
add ebx, 0x64
cmp ebx, 0x1388
jb 0x406789
jmp 0x4067bb
xor esi, esi
push edi
call ebp
jmp 0x40677d
Function at 0x406c7c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push dword [edi]
xor ebx, ebx
inc ebx
push ebx
lea eax, [ebp - 0x14]
push 4
push eax
call fcn.0040d333
add esp, 0x10
cmp eax, ebx
je 0x406ca3
or eax, 0xffffffff
jmp 0x406d71
push 4
lea eax, [ebp - 0x14]
push str.MAR1
push eax
call fcn.0040bb95
add esp, 0xc
test eax, eax
jne 0x406c9b
push dword [edi]
lea eax, [ebp - 0xc]
push ebx
push 4
push eax
call fcn.0040d333
add esp, 0x10
cmp eax, ebx
jne 0x406c9b
push esi
push dword [ebp - 0xc]
mov esi, dword [sym.imp.WSOCK32.dll_ntohl]
call esi
push 0
push eax
push dword [edi]
mov dword [ebp - 0xc], eax
call fcn.0040e318
add esp, 0xc
test eax, eax
jne 0x406d35
push dword [edi]
lea eax, [ebp - 4]
push ebx
push 4
push eax
call fcn.0040d333
add esp, 0x10
cmp eax, ebx
jne 0x406d35
push dword [ebp - 4]
call esi
push eax
mov dword [ebp - 4], eax
call fcn.0040b5b2
mov ebx, eax
pop ecx
test ebx, ebx
je 0x406d35
push dword [edi]
push 1
push dword [ebp - 4]
push ebx
call fcn.0040d333
add esp, 0x10
cmp eax, 1
je 0x406d3a
push ebx
call fcn.0040b0b8
pop ecx
or eax, 0xffffffff
jmp 0x406d70
mov eax, dword [ebp - 4]
add eax, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 8], eax
jae 0x406d5d
push eax
push edi
lea esi, [ebp - 8]
call fcn.00406bdb
pop ecx
pop ecx
test eax, eax
je 0x406d45
push ebx
call fcn.0040b0b8
pop ecx
mov ecx, dword [ebp - 0x10]
xor eax, eax
cmp dword [ebp - 8], ecx
sete al
dec eax
pop esi
pop ebx
leave
ret
Function at 0x406db5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
sub esp, 0x10
cmp dword [ebp + 0xc], eax
jne 0x406dcc
cmp dword [ebp + 0x14], eax
jne 0x406dcc
or eax, 0xffffffff
leave
ret
push eax
push 4
push dword [ebp + 8]
call fcn.0040e318
add esp, 0xc
test eax, eax
jne 0x406dc7
push edi
push dword [ebp + 8]
xor edi, edi
inc edi
push edi
lea eax, [ebp - 8]
push 4
push eax
call fcn.0040d333
add esp, 0x10
cmp eax, edi
je 0x406e00
or eax, 0xffffffff
jmp 0x406fa8
push ebx
push esi
push dword [ebp - 8]
mov esi, dword [sym.imp.WSOCK32.dll_ntohl]
call esi
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 8], eax
test ebx, ebx
je 0x406e4a
push edi
push 8
push dword [ebp + 8]
call fcn.0040e318
add esp, 0xc
test eax, eax
jne 0x406f73
push dword [ebp + 8]
push edi
push 4
push ebx
call fcn.0040d333
add esp, 0x10
cmp eax, edi
jne 0x406f73
push dword [ebx]
call esi
mov dword [ebx], eax
mov ebx, dword [ebp + 8]
push 0
push dword [ebp - 8]
push ebx
call fcn.0040e318
add esp, 0xc
test eax, eax
jne 0x406f73
push edi
push 4
push ebx
call fcn.0040e318
add esp, 0xc
test eax, eax
jne 0x406f73
push ebx
push edi
lea eax, [ebp - 4]
push 4
push eax
call fcn.0040d333
add esp, 0x10
cmp eax, edi
jne 0x406f73
push dword [ebp - 4]
call esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x406ea9
xor ecx, ecx
cmp dword [ebp - 4], 8
setne cl
mov dword [eax], ecx
xor eax, eax
cmp dword [ebp + 0x14], eax
je 0x406fa4
push eax
push eax
push 0x10
push ebx
call fcn.0040fdce
add esp, 0x10
test eax, eax
jne 0x406f73
push ebx
push edi
lea eax, [ebp - 0xc]
push 4
push eax
call fcn.0040d333
add esp, 0x10
cmp eax, edi
jne 0x406f73
push dword [ebp - 0xc]
call esi
mov dword [ebp - 0xc], eax
cmp eax, 8
ja 0x406f73
and dword [ebp + 0xc], 0
test eax, eax
je 0x406f40
push edi
push 4
push ebx
call fcn.0040e318
add esp, 0xc
test eax, eax
jne 0x406f73
push ebx
push edi
lea eax, [ebp - 0x10]
push 4
push eax
call fcn.0040d333
add esp, 0x10
cmp eax, edi
jne 0x406f73
push dword [ebp - 0x10]
call esi
push edi
push eax
push ebx
mov dword [ebp - 0x10], eax
call fcn.0040e318
add esp, 0xc
test eax, eax
jne 0x406f73
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0xc]
jb 0x406efa
push ebx
call fcn.0040f05e
pop ecx
cmp eax, dword [ebp - 4]
jne 0x406f54
mov eax, dword [ebp + 0x14]
and dword [eax], 0
jmp 0x406fa4
mov ebx, dword [ebp + 0x1c]
test ebx, ebx
je 0x406f8f
push dword [ebp + 8]
mov eax, dword [ebp + 0x14]
push edi
push 4
push ebx
mov dword [eax], edi
call fcn.0040d333
add esp, 0x10
cmp eax, edi
je 0x406f78
or eax, 0xffffffff
jmp 0x406fa6
push dword [ebx]
call esi
mov esi, dword [ebp + 0x18]
mov dword [ebx], eax
test esi, esi
je 0x406fa4
push dword [ebp + 8]
call fcn.0040f05e
jmp 0x406fa1
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x406fa4
push dword [ebp + 8]
call fcn.0040f05e
add eax, 4
mov dword [esi], eax
pop ecx
xor eax, eax
pop esi
pop ebx
pop edi
leave
ret