joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49d763b7
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x49d76410
call fcn.49d72210
xor eax, eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x49d76406
cmp ecx, 0xffffffff
je 0x49d76406
and dword [ebp - 4], eax
mov edx, 0x5a4d
cmp word [ecx], dx
jne 0x49d763ff
mov edx, dword [ecx + 0x3c]
test edx, edx
jl 0x49d763ff
cmp edx, 0x10000000
jae 0x49d763ff
lea eax, [edx + ecx]
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0x49d8ba49
mov dword [ebp - 4], 0xfffffffe
call fcn.49d713aa
ret 4

Function at 0x49d78994
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
push ebx
mov ebx, dword [eax + 4]
push esi
mov esi, dword [eax + 8]
push edi
mov edi, dword [ebp + 0xc]
sub edi, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov ecx, 0x49d70000
sub edi, ecx
sar edi, 2
add esi, ecx
mov edx, dword [esi]
lea eax, [eax + edi*4 + 0x49d70000]
add ebx, ecx
mov ecx, dword [eax]
mov dword [ebp + 8], edx
lea eax, [ecx + 0x49d70002]
test ecx, ecx
js 0x49d8b995
mov dword [ebp - 8], eax
test edx, edx
je 0x49d78a48
cmp dword [ebp + 8], 0xffffffff
je 0x49d8b9df
cmp dword [ebp + 8], 0
je 0x49d8b9fb
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.49d78a37
mov esi, eax
test esi, esi
je 0x49d8b9e8
mov dword [ebp - 4], 1
test esi, esi
je 0x49d8b9fb
cmp dword [ebp - 4], 0
je 0x49d78a29
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
push edx
push edx
push ebx
call sub.KERNEL32.dll_LoadLibraryExA
mov edi, eax
mov dword [ebp + 8], edi
test edi, edi
je 0x49d8b9b8
push 0
push edi
push esi
call sub.KERNEL32.dll_InterlockedCompareExchange
mov esi, eax
test esi, esi
jne 0x49d8b9aa
push 8
pop ecx
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [0x49d78aac]
mov dword [ebp - 0x2c], 0x24
mov dword [ebp - 0x20], ebx
test eax, eax
je 0x49d789e6
jmp 0x49d8b99d
Function at 0x49d7a2e5
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x49d940ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
push edi
xor edi, edi
push 0x30
mov dword [ebp - 0x430], ebx
mov dword [0x49d94120], edi
call fcn.49d7190d
mov dword [esi], eax
mov dword [eax], edi
mov dword [eax + 4], edi
xor ecx, ecx
inc ecx
mov edi, eax
add eax, 8
mov dword [eax], ecx
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x428], ecx
lea esi, [ebx + 0x4c]
cmp dword [ebx + 0x48], ecx
jb 0x49d7a4dc
mov ebx, dword [esi]
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x49d7a348
sub eax, edx
sar eax, 1
push eax
push ebx
call fcn.49d7a5ac
mov byte [ebp - 0x424], al
test al, al
jne 0x49d7a375
mov ecx, dword [0x49d94120]
test ecx, ecx
jne 0x49d8b81d
cmp byte [ebp + 0x10], 0
mov byte [esi + 8], al
je 0x49d7a39c
push dword [ebp - 0x424]
push ebx
call fcn.49d7da05
push ebx
mov dword [ebp - 0x420], eax
call fcn.49d713cf
mov ebx, dword [ebp - 0x420]
and dword [0x49d94120], 0
push ebx
call fcn.49d79aa9
mov dword [ebp - 0x420], eax
cmp eax, 1
je 0x49d8b835
push str.C:Userswin7user
push 0x106
lea eax, [ebp - 0x41c]
push eax
call fcn.49d717fb
call fcn.49d79c11
lea eax, [ebp - 0x41c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x49d7a3dc
sub eax, edx
sar eax, 1
mov ebx, eax
cmp ebx, 3
jbe 0x49d7a407
cmp byte [ebp - 0x424], cl
jne 0x49d8b77d
xor eax, eax
mov word [ebp + ebx*2 - 0x41e], ax
cmp ebx, 0x103
jae 0x49d8b845
mov eax, dword [ebp - 0x420]
mov eax, dword [eax + 0x10]
cmp word [eax], 0
je 0x49d8b7a2
push eax
push 0x106
lea eax, [ebp - 0x210]
push eax
call fcn.49d717fb
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x49d7a441
sub eax, edx
sar eax, 1
lea eax, [eax + ebx + 1]
mov ecx, 0x104
cmp eax, ecx
ja 0x49d8b851
mov eax, dword [ebp - 0x420]
mov edx, dword [eax + 0x10]
cmp word [edx], 0
je 0x49d7a484
mov eax, dword [eax + 0x14]
test eax, eax
je 0x49d7daf2
cmp word [eax], 0
je 0x49d7daf2
lea eax, [ebp - 0x210]
push eax
call fcn.49d74c13
mov dword [esi], eax
lea eax, [ebp - 0x41c]
push eax
call fcn.49d74c13
mov dword [esi + 4], eax
mov ecx, dword [edi + 4]
push eax
test ecx, ecx
jne 0x49d8b7d0
call fcn.49d74c13
mov dword [edi + 4], eax
mov al, byte [esi + 8]
mov byte [edi + 0x10], al
mov dword [edi + 0xc], esi
inc dword [ebp - 0x428]
mov eax, dword [ebp - 0x430]
mov ecx, dword [ebp - 0x428]
mov esi, dword [esi + 0xc]
cmp ecx, dword [eax + 0x48]
jbe 0x49d7a341
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.49d7139d
leave
ret 0x10
lea eax, [ebp - 0x210]
lea ebx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x49d7dafb
sub eax, ebx
sar eax, 1
add eax, 2
cmp eax, ecx
jae 0x49d7a484
cmp byte [ebp - 0x424], dl
je 0x49d7a484
jmp 0x49d8b7ac
Function at 0x401424
Capabilities:
Create directory
Get common file path

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
push edi
xor ebx, ebx
push ebx
push ebx
push 0x23
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x401440
xor eax, eax
jmp 0x401475
push 0x4134ec
push edi
call fcn.004042ba
pop ecx
pop ecx
test eax, eax
je 0x40143c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
push edi
call esi
push str.logs
push edi
call fcn.004042ba
pop ecx
pop ecx
test eax, eax
je 0x401474
push ebx
push edi
call esi
xor eax, eax
inc eax
pop esi
pop edi
pop ebx
ret

Function at 0x401505
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x41a0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
cmp esi, 1
jl 0x401571
push edi
lea edi, [esi - 1]
push edi
lea eax, [ebp - 0x41c]
push ebx
push eax
call fcn.00401478
add esp, 0xc
test eax, eax
je 0x401569
push esi
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.00401478
add esp, 0xc
test eax, eax
je 0x401569
push 1
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esi, edi
cmp esi, 1
jge 0x401526
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004051ba
leave
ret

Function at 0x401592
Capabilities:
Create thread

Disassembly:
push esi
xor esi, esi
push esi
push esi
push esi
push 0x40157f
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
pop esi
je 0x4015b1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret
Function at 0x40211c
Capabilities:
Check if file exists
Get file attributes
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb74
mov eax, dword [0x41a0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
push 0x105
lea eax, [ebp - 0x210]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x40216c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_obtain_module_filename_when_attempting_to_modify_service_description.____d_
call fcn.00401000
push eax
call fcn.00404dc4
add esp, 0xc
jmp 0x4022c6
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x40218b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_remove_file_spec_when_attempting_to_modify_service_description.____d_
jmp 0x402159
lea eax, [ebp - 0x210]
push str.updater.ini
push eax
call fcn.004042ba
pop ecx
pop ecx
test eax, eax
jne 0x4021b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_append_updater.ini_filename_when_attempting_to_modify_service_description.____d_
jmp 0x402159
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4021d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.updater.ini_file_does_not_exist__will_not_modify_service_description.____d_
jmp 0x402159
push esi
push ebx
lea eax, [ebp - 0x468]
push eax
push 1
lea eax, [ebp - 0x210]
push str.MozillaMaintenanceDescription
push eax
call fcn.00403f7d
mov esi, eax
add esp, 0x14
cmp esi, ebx
je 0x4021fb
mov byte [ebp - 0x468], bl
push 0x257
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0xb70]
push eax
call fcn.00406ea0
add esp, 0xc
cmp esi, ebx
mov byte [ebp - 0x919], bl
pop esi
jne 0x4022b4
lea eax, [ebp - 0xb70]
push eax
call fcn.00405890
pop ecx
test eax, eax
je 0x4022b4
push 0x258
lea eax, [ebp - 0x918]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xb70]
push eax
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x40226c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_convert_description_to_wide_string_format.____d_
jmp 0x402159
lea eax, [ebp - 0x918]
mov dword [ebp - 0xb74], eax
lea eax, [ebp - 0xb74]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x40229d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_change_service_config.____d_
jmp 0x402159
push str.The_service_description_was_updated_successfully.
call fcn.00401000
push eax
call fcn.00404d99
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x4022c8
push str.updater.ini_file_does_not_contain_a_maintenance_service_description.
call fcn.00401000
push eax
call fcn.00404dc4
pop ecx
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004051ba
leave
ret
Function at 0x4022d6
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 ebx
push esi
mov esi, dword [ebp + 0x1a0]
push edi
mov edi, dword [ebp + 0x1a4]
push esi
mov dword [ebp - 0x80], eax
call fcn.00404fa8
mov ebx, eax
pop ecx
cmp ebx, 2
jbe 0x402353
push str.maintenanceservice_tmp.exe
push esi
call fcn.00406fc4
pop ecx
pop ecx
test eax, eax
jne 0x402353
cmp word [esi], 0x22
jne 0x402353
cmp word [esi + ebx*2 - 2], 0x22
jne 0x402353
push str.The_MozillaMaintenance_service_path_is_correct.
call fcn.00401000
push eax
call fcn.00404d99
and dword [edi], 0
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x402438
push esi
push str.The_MozillaMaintenance_path_is_NOT_correct._It_was:__ls
call fcn.00401000
push eax
call fcn.00404d99
xor ebx, ebx
inc ebx
xor eax, eax
mov dword [edi], ebx
push 0x208
mov word [ebp - 0x7c], ax
xor edi, edi
lea eax, [ebp - 0x7a]
push edi
push eax
call fcn.00405140
push 0x104
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.004052e9
add esp, 0x24
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 0x4023c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Couldnt_remove_file_spec.____d_
call fcn.00401000
push eax
call fcn.00404dc4
add esp, 0xc
xor eax, eax
jmp 0x402438
lea eax, [ebp - 0x7c]
push 0x413d14
push eax
call fcn.004042ba
pop ecx
pop ecx
test eax, eax
jne 0x4023ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Couldnt_append_file_spec.____d_
jmp 0x4023b6
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
push edi
push edi
push edi
push edi
push edi
push edi
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 0x40241f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_fix_service_path.____d_
jmp 0x4023b6
lea eax, [ebp - 0x7c]
push eax
push str.Fixed_service_path_to:__ls.
call fcn.00401000
push eax
call fcn.00404d99
add esp, 0xc
mov eax, ebx
mov ecx, dword [ebp + 0x190]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004051ba
add ebp, 0x194
leave
ret
Function at 0x402740
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 sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
push esi
call fcn.00405805
pop ecx
mov edi, eax
push edi
push esi
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x402792
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_obtain_file_info_of_old_service.____d_
call fcn.00401000
push eax
call fcn.00404dc4
push edi
call fcn.00405771
add esp, 0x10
xor eax, eax
pop edi
pop esi
leave
ret
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x414034
push edi
mov dword [ebp - 4], edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x4027d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_query_file_version_info_of_old_service.____d_
call fcn.00401000
push eax
call fcn.00404dc4
add esp, 0xc
xor esi, esi
push edi
call fcn.00405771
pop ecx
mov eax, esi
jmp 0x40278e
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]
mov dword [edx], ecx
movzx eax, word [eax + 0xc]
mov ecx, dword [ebp + 0x18]
xor esi, esi
mov dword [ecx], eax
inc esi
jmp 0x4027c8
Function at 0x4027ff
Capabilities:
Stop service

Disassembly:
sub esp, 0x20
mov eax, dword [0x41a0a0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebp
push esi
push 0xf003f
xor ebp, ebp
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
cmp esi, ebp
jne 0x402845
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_open_service_manager.____d_
call fcn.00401000
push eax
call fcn.00404dc4
add esp, 0xc
xor eax, eax
jmp 0x40292a
push ebx
push edi
push 0xf01ff
mov edi, str.MozillaMaintenance
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
cmp ebx, ebp
jne 0x402887
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_open_service.____d_
call fcn.00401000
push eax
call fcn.00404dc4
add esp, 0xc
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x402928
push str.Sending_stop_request...
call fcn.00401000
push eax
call fcn.00404d99
pop ecx
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [esp + 0x10]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x4028d7
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
cmp eax, 0x426
je 0x4028d7
call ebp
push eax
push str.Error_sending_stop_request.____d_
call fcn.00401000
push eax
call fcn.00404dc4
add esp, 0xc
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
push str.Waiting_for_service_stop...
call fcn.00401000
push eax
call fcn.00404d99
push 0x1e
push edi
call fcn.004043d7
push 0x1e
push 0x413d14
mov esi, eax
call fcn.00404617
add esp, 0x18
push esi
push str.Done_waiting_for_service_stop__last_service_state:__d
call fcn.00401000
push eax
call fcn.00404d99
xor eax, eax
add esp, 0xc
cmp esi, 1
sete al
pop edi
pop ebx
mov ecx, dword [esp + 0x24]
pop esi
pop ebp
xor ecx, esp
call fcn.004051ba
add esp, 0x20
ret
Function at 0x40293b
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0xf003f
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x24], eax
cmp eax, esi
jne 0x40298b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_open_service_manager.____d_
call fcn.00401000
push eax
call fcn.00404dc4
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004051ba
leave
ret
push ebx
push edi
push 0xf01ff
push str.MozillaMaintenance
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
cmp edi, esi
jne 0x4029cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_open_service.____d_
call fcn.00401000
push eax
call fcn.00404dc4
add esp, 0xc
push dword [ebp - 0x24]
call ebx
pop edi
mov eax, esi
pop ebx
jmp 0x40297e
lea eax, [ebp - 0x20]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
jmp 0x402a07
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x1c], 1
mov eax, dword [ebp - 8]
lea esi, [esi + eax + 0xa]
je 0x402a0b
cmp esi, 0xea60
ja 0x402a0b
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4029de
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov esi, eax
test esi, esi
jne 0x402a29
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [eax - 0x430]
neg esi
sbb esi, esi
inc esi
push edi
call ebx
jmp 0x4029c4
Function at 0x403030
Capabilities:
Create directory

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x403065
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.00401000
push eax
call fcn.00404dc4
add esp, 0xc
xor eax, eax
pop esi
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x40307e
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 0x403053
push str.update
push esi
call fcn.004042ba
pop ecx
pop ecx
test eax, eax
jne 0x40309d
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 0x403053
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.updater.exe
push esi
call fcn.004042ba
pop ecx
pop ecx
test eax, eax
je 0x40308f
xor eax, eax
inc eax
pop esi
ret

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

Disassembly:
sub esp, 0x210
mov eax, dword [0x41a0a0]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, dword [esp + 0x218]
push edi
xor edi, edi
cmp word [esi], di
je 0x403180
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebp
push esi
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x40311d
call ebp
cmp eax, 3
je 0x40311d
call ebp
cmp eax, 2
je 0x40311d
push esi
push str.Could_not_delete_service_updater_path:__ls.
call fcn.00401000
push eax
call fcn.00404dc4
add esp, 0xc
xor eax, eax
push 0x208
push eax
mov word [esp + 0x18], ax
lea eax, [esp + 0x1a]
push eax
call fcn.00405140
push str.updater.ini
lea eax, [esp + 0x20]
push esi
push eax
call fcn.004046e0
add esp, 0x18
test eax, eax
je 0x40317e
lea eax, [esp + 0x10]
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x40317e
call ebp
cmp eax, 3
je 0x40317e
call ebp
cmp eax, 2
je 0x40317e
lea eax, [esp + 0x10]
push eax
push str.Could_not_delete_service_updater_INI_path:__ls.
call fcn.00401000
push eax
call fcn.00404dc4
add esp, 0xc
pop ebp
pop ebx
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.004051ba
add esp, 0x210
ret
Function at 0x403199
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x41a0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x244], eax
mov dword [eax], ebx
xor eax, eax
push 0x208
mov word [ebp - 0x23c], ax
lea eax, [ebp - 0x23a]
push ebx
push eax
mov esi, ecx
call fcn.00405140
push 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call fcn.004052e9
lea eax, [ebp - 0x23c]
push str.update.status
push eax
call fcn.004042ba
add esp, 0x20
test eax, eax
jne 0x40321b
push str.Could_not_append_path_for_update.status_file
call fcn.00401000
push eax
call fcn.00404dc4
pop ecx
pop ecx
xor eax, eax
jmp 0x4032e9
push ebx
push ebx
push 3
push ebx
push 7
push 0x80000000
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x240], esi
cmp esi, 0xffffffff
jne 0x403248
push str.Could_not_open_update.status_file
jmp 0x403207
push edi
push 7
pop ecx
xor eax, eax
mov byte [ebp - 0x30], bl
lea edi, [ebp - 0x2f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
stosb byte es:[edi], al
lea eax, [ebp - 0x248]
push eax
push 0x20
lea eax, [ebp - 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403293
push str.Could_not_read_from_update.status_file
call fcn.00401000
push eax
call fcn.00404dc4
pop ecx
pop ecx
cmp esi, ebx
je 0x40328f
push esi
call fcn.00401d1a
pop ecx
xor eax, eax
jmp 0x4032e8
lea eax, [ebp - 0x30]
push eax
push str.updater.exe_returned_status:__s
call fcn.00401000
push eax
call fcn.00404d99
mov esi, str.applying
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
push 8
lea eax, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x30]
push eax
movsb byte es:[edi], byte [esi]
call fcn.00407052
mov ecx, dword [ebp - 0x244]
add esp, 0x18
neg eax
sbb eax, eax
inc eax
mov dword [ecx], eax
cmp dword [ebp - 0x240], ebx
je 0x4032e5
push dword [ebp - 0x240]
call fcn.00401d1a
pop ecx
xor eax, eax
inc eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004051ba
leave
ret
Function at 0x403d31
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 0x403d81
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
je 0x403d6e
xor eax, eax
jmp 0x403e17
push 0xf0000008
push 1
push esi
push esi
lea eax, [ebp - 8]
push eax
call edi
test eax, eax
je 0x403d67
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 0x403d67
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 0x403d67
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 0x403d67
push dword [ebx]
call fcn.00405805
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push dword [ebx]
push esi
push eax
call fcn.00405140
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 0x403d67
cmp dword [ebp - 4], esi
je 0x403e05
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 8], esi
je 0x403e14
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
inc eax
pop edi
pop esi
leave
ret