joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46dc10
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x104
mov eax, dword [0x496400]
xor eax, esp
mov dword [esp + 0x100], eax
mov ecx, dword [esp + 0x10c]
push ebx
mov ebx, dword [esp + 0x10c]
push ebp
push esi
push edi
mov eax, dword [ebx]
mov edi, dword [esp + 0x124]
push 0
push dword [esp + 0x124]
mov ebp, dword [eax + 8]
push ecx
mov dword [edi], 0
push dword [ebp + 0x98]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x46dcb0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x46dc7d
mov dword [edi], 0x51
jmp 0x46dcad
push 0x100
lea eax, [esp + 0x14]
push eax
push esi
call fcn.00424440
push eax
push str.Recv_failure:__s
push dword [ebx + 4]
call fcn.0043a600
mov eax, dword [ebx + 4]
add esp, 0x18
mov dword [eax + 0x8d8], esi
mov dword [edi], 0x38
or esi, 0xffffffff
push dword [edi]
push esi
push dword [ebp + 0x98]
push dword [esp + 0x12c]
push str.nw_in_read_len_zu__fd_d______d__err_d
push dword [ebx]
push dword [ebx + 4]
call fcn.0043a7a0
mov ecx, dword [esp + 0x12c]
add esp, 0x1c
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0047af12
add esp, 0x104
ret

Function at 0x46dcf0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x188
mov eax, dword [0x496400]
xor eax, esp
mov dword [esp + 0x184], eax
mov eax, dword [esp + 0x18c]
push ebx
mov ebx, dword [esp + 0x194]
push esi
mov esi, dword [eax + 8]
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x260]
test dword [eax + 0x44], 0x800
jne 0x46de1d
push 0x80
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0x80
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x10]
push eax
push dword [esi + 0x98]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x46ddaa
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x8c]
push 0x100
push eax
push esi
call fcn.00424440
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.0043a600
add esp, 0x1c
mov eax, 2
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.0047af12
add esp, 0x188
ret
lea eax, [esi + 0x11c]
push eax
lea eax, [esi + 0xea]
push eax
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
call fcn.0043ca70
add esp, 0x10
test al, al
jne 0x46de1d
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push edi
call esi
mov edi, dword [eax]
call esi
mov esi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push edi
call fcn.00424440
push eax
push dword [esi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0043a600
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.0047af12
add esp, 0x188
ret
mov ecx, dword [esp + 0x18c]
xor eax, eax
pop esi
pop ebx
xor ecx, esp
call fcn.0047af12
add esp, 0x188
ret
Function at 0x473830
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x120
mov eax, dword [0x496400]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x124]
push ebx
push ebp
mov ebp, dword [esp + 0x134]
xor ebx, ebx
push esi
push edi
mov edi, dword [esp + 0x138]
xor esi, esi
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4738b0
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00424530
push eax
push edi
push str.schannel:_invalid_path_name_for_CA_file__s:__s
push ebp
call fcn.0043a600
push esi
call dword [0x496004]
add esp, 0x20
lea eax, [ebx + 0x4d]
jmp 0x473a10
push 0
push 0x80
push 3
push 0
push 1
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x47390a
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00424530
push eax
push edi
push str.schannel:_failed_to_open_CA_file__s:__s
push ebp
call fcn.0043a600
push 0
mov esi, 0x4d
call dword [0x496004]
add esp, 0x20
jmp 0x473a01
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x47394a
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00424530
push eax
push edi
push str.schannel:_failed_to_determine_size_of_CA_file__s:__s
push ebp
call fcn.0043a600
add esp, 0x1c
mov esi, 0x4d
jmp 0x4739ed
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x28], ebx
jl 0x473978
jg 0x47395e
cmp edi, 0x100000
jbe 0x473978
push 0x100000
push str.schannel:_CA_file_exceeds_max_size_of__u_bytes
push ebp
call fcn.0043a600
add esp, 0xc
mov esi, 0x4d
jmp 0x4739ed
lea eax, [edi + 1]
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x473990
lea esi, [eax + 0x1b]
jmp 0x4739ed
test edi, edi
je 0x4739d4
nop dword [eax]
nop dword [eax + eax]
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x473a2d
mov eax, dword [esp + 0x10]
test eax, eax
je 0x473a29
add esi, eax
cmp esi, edi
jb 0x4739a0
push ebp
push dword [esp + 0x18]
mov byte [edi + ebx], 0
push edi
push ebx
push dword [esp + 0x2c]
call fcn.00473630
add esp, 0x14
mov esi, eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [0x496004]
add esp, 4
push dword [esp + 0x20]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0047af12
add esp, 0x120
ret
mov edi, esi
jmp 0x4739d4
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00424530
push eax
push dword [esp + 0x24]
push str.schannel:_failed_to_read_from_CA_file__s:__s
push ebp
call fcn.0043a600
add esp, 0x1c
mov esi, 0x4d
jmp 0x4739ed
Function at 0x479d50
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [section..data]
mov esi, eax
add esp, 4
test esi, esi
jne 0x479d7b
pop esi
pop ebp
add esp, 0xc
ret
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x479dca
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [edi]
push ebx
push dword [esp + 0x2c]
push dword [esi + 4]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 0xc]
push dword [esi + 4]
mov dword [esp + 0x28], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov ebx, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x28], ebx
jmp 0x479dd2
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x30]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x479e43
mov ebp, dword [esp + 0x14]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x479e00
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
cmp ebx, dword [ebp + 0x10]
jae 0x479e75
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x48d4c5
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x48d4c6
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x479e50
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x479e80
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push dword [esp + 0x24]
call fcn.00427f60
mov edx, dword [ebp + 0xc]
mov ebx, eax
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x14], ebx
lea ecx, [ecx + edx*2]
add ecx, 0xc
push ecx
call dword [section..data]
mov esi, eax
add esp, 8
test esi, esi
je 0x47a002
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x479f02
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [esp + 0x28]
push ebx
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 0xc]
push dword [esi + 4]
mov dword [esp + 0x38], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov eax, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x1c]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x479f73
mov ebp, dword [esp + 0x24]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x479f30
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
cmp ebx, dword [ebp + 0x10]
jae 0x479fa5
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x48d4c5
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x48d4c6
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x479f80
push dword [esp + 0x30]
call fcn.00427f60
mov ecx, dword [esi]
push eax
push dword [esp + 0x34]
push dword [esi + 4]
mov eax, dword [ecx + 4]
call eax
mov edi, dword [esp + 0x44]
add esp, 0x10
mov ebx, dword [esi]
test edi, edi
jne 0x479fd0
mov edi, dword [ebx + 0xc]
add edi, dword [esi + 8]
push dword [esi + 4]
mov eax, dword [ebx + 8]
push edi
call eax
push dword [ebx + 0x14]
mov eax, dword [ebx + 4]
push edi
push dword [esi + 8]
call eax
push dword [esi + 8]
mov eax, dword [ebx + 8]
push edi
call eax
push esi
call dword [0x496004]
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0xc
ret
Function at 0x47a0d0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
lea eax, [esp + 4]
push 0xf0000040
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x47a0f6
mov eax, 0x1b
add esp, 0xc
ret
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x800c
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x47a12e
push eax
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esp + 4], 0
mov eax, 2
add esp, 0xc
ret
push dword [esp + 0x18]
call fcn.00427f60
add esp, 4
push 0
push eax
push dword [esp + 0x1c]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0
push 2
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [esp], 0x20
jne 0x47a185
push 0
lea eax, [esp + 4]
push eax
push dword [esp + 0x18]
push 2
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [esp + 8]
test eax, eax
je 0x47a194
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x47a1a5
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
add esp, 0xc
ret
Function at 0x47ade0
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x47ae2c
push ebx
mov ebx, dword [esp + 0x10]
mov cl, byte [esi + ebx]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [esi + ebx], cl
inc esi
cmp esi, edi
jb 0x47adf1
pop ebx
pop edi
pop esi
ret

Function at 0x47c041
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x47c080
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x47c080
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x47c080
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x47c080
cmp dword [ecx + 0x74], 0xe
jbe 0x47c080
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40141b
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x401408
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x401438
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret

Function at 0x401845
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x10014
call fcn.0040c840
mov eax, dword [0x421050]
xor eax, esp
mov dword [esp + 0x10010], eax
mov eax, dword [esp + 0x10018]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor ebp, ebp
push edi
push ebp
push ebp
push 3
push ebp
push 1
push 0x80000000
push ecx
mov ebx, edx
mov dword [esp + 0x38], eax
mov dword [eax], ebp
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x401a0a
push ebp
push ebp
push 3
push ebp
push 1
push 0x80000000
push ebx
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x4019f1
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebp
push edi
call ebx
push ebp
push esi
mov dword [esp + 0x1c], eax
call ebx
mov ebx, dword [esp + 0x14]
cmp ebx, 0xffffffff
je 0x4019f1
cmp eax, 0xffffffff
je 0x4019f1
cmp ebx, eax
jne 0x4019e1
mov eax, ebx
mov dword [esp + 0x14], ebp
shr eax, 0xf
and ebx, 0x7fff
mov dword [esp + 0x18], eax
test eax, eax
je 0x401986
push ebp
lea eax, [esp + 0x14]
push eax
push 0x8000
lea eax, [esp + 0x2c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4019f1
mov ecx, 0x8000
cmp dword [esp + 0x10], ecx
jne 0x4019f1
push ebp
lea eax, [esp + 0x14]
push eax
push ecx
lea eax, [esp + 0x802c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4019f1
cmp dword [esp + 0x10], 0x8000
jne 0x4019f1
lea edx, [esp + 0x20]
mov ecx, ebp
mov eax, dword [edx + ecx*4]
lea edx, [esp + 0x8020]
cmp eax, dword [edx + ecx*4]
lea edx, [esp + 0x20]
jne 0x4019e1
inc ecx
cmp ecx, 0x2000
jne 0x401957
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x18]
jb 0x4018f7
test ebx, ebx
je 0x4019e6
push ebp
lea eax, [esp + 0x14]
push eax
push ebx
lea eax, [esp + 0x2c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4019f1
cmp dword [esp + 0x10], ebx
jne 0x4019f1
push ebp
lea eax, [esp + 0x14]
push eax
push ebx
lea eax, [esp + 0x802c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4019f1
cmp dword [esp + 0x10], ebx
jne 0x4019f1
push ebx
lea eax, [esp + 0x8024]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004100ee
add esp, 0xc
test eax, eax
je 0x4019e6
xor ebp, ebp
inc ebp
jmp 0x4019f1
mov eax, dword [esp + 0x1c]
xor ecx, ecx
inc ecx
mov ebp, ecx
mov dword [eax], ecx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x401a03
cmp esi, 0xffffffff
je 0x401a03
push esi
call ebx
test edi, edi
je 0x401a0a
push edi
call ebx
mov ecx, dword [esp + 0x10020]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00404d91
add esp, 0x10014
ret
Function at 0x401a25
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push 0x20206
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallMozillaMaintenanceService
push 0x80000002
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x401a51
xor eax, eax
jmp 0x401a91
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x401a56
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push edi
push str.DisplayVersion
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401a97
Capabilities:
Get file version info

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov dword [esp + 0x14], edx
mov ebx, ecx
push ebp
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
push edi
call fcn.00405529
pop ecx
mov esi, eax
push esi
push edi
push ebp
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x401ad5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_obtain_file_info_of_old_service.____d_
jmp 0x401aff
lea eax, [esp + 0x18]
mov dword [esp + 0x10], esi
push eax
lea eax, [esp + 0x14]
push eax
push 0x41cbd4
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x401b0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_query_file_version_info_of_old_service.____d_
call fcn.0040101c
push eax
call fcn.00404bd5
add esp, 0xc
jmp 0x401b3e
mov edx, dword [esp + 0x10]
xor ebp, ebp
mov ecx, dword [esp + 0x14]
inc ebp
movzx eax, word [edx + 0xa]
mov dword [ecx], eax
mov eax, dword [esp + 0x20]
movzx ecx, word [edx + 8]
mov dword [eax], ecx
mov eax, dword [esp + 0x24]
movzx ecx, word [edx + 0xe]
mov dword [eax], ecx
mov eax, dword [esp + 0x28]
movzx ecx, word [edx + 0xc]
mov dword [eax], ecx
test esi, esi
je 0x401b49
push esi
call fcn.004054fe
pop ecx
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x401b53
Capabilities:
Check if file exists
Get file attributes
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb80
mov eax, dword [0x421050]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x105
lea eax, [ebp - 0x218]
mov edi, ecx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x401ba1
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.0040101c
push eax
call fcn.00404bd5
add esp, 0xc
jmp 0x401cf4
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x401bc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_remove_file_spec_when_attempting_to_modify_service_description.____d_
jmp 0x401b8e
mov edx, str.updater.ini
lea ecx, [ebp - 0x218]
call fcn.00404696
test eax, eax
jne 0x401be2
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 0x401b8e
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x401c02
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.updater.ini_file_does_not_exist__will_not_modify_service_description.____d_
jmp 0x401b8e
push ecx
lea eax, [ebp - 0x470]
push eax
push ecx
lea ecx, [ebp - 0x218]
call fcn.00403e69
mov esi, eax
lea eax, [ebp - 0x470]
test esi, esi
push 0x257
setne cl
push eax
lea eax, [ebp - 0xb78]
dec cl
and byte [ebp - 0x470], cl
push eax
call fcn.004055a0
add esp, 0x18
mov byte [ebp - 0x921], 0
test esi, esi
jne 0x401ce2
lea ecx, [ebp - 0xb78]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401c58
sub ecx, edx
je 0x401ce2
push 0x258
lea eax, [ebp - 0x920]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xb78]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x401c9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_convert_description_to_wide_string_format.____d_
jmp 0x401b8e
lea eax, [ebp - 0x920]
mov dword [ebp - 0xb7c], eax
lea eax, [ebp - 0xb7c]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x401ccb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_change_service_config.____d_
jmp 0x401b8e
push str.The_service_description_was_updated_successfully.
call fcn.0040101c
push eax
call fcn.00404baa
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x401cf6
push str.updater.ini_file_does_not_contain_a_maintenance_service_description.
call fcn.0040101c
push eax
call fcn.00404bd5
pop ecx
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00404d91
mov esp, ebp
pop ebp
ret
Function at 0x401d06
Capabilities:
Modify service

Disassembly:
sub esp, 0x210
mov eax, dword [0x421050]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
mov ebx, dword [esp + 0x218]
push ebp
push esi
push edi
mov edi, edx
mov ebp, ecx
mov esi, edi
xor ecx, ecx
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, cx
jne 0x401d30
sub esi, edx
sar esi, 1
cmp esi, 2
jbe 0x401d81
push str.maintenanceservice_tmp.exe
push edi
call fcn.004056c4
pop ecx
pop ecx
test eax, eax
jne 0x401d81
push 0x22
pop eax
cmp word [edi], ax
jne 0x401d81
cmp word [edi + esi*2 - 2], ax
jne 0x401d81
push str.The_MozillaMaintenance_service_path_is_correct.
call fcn.0040101c
push eax
call fcn.00404baa
and dword [ebx], 0
xor eax, eax
pop ecx
pop ecx
inc eax
jmp 0x401e6a
push edi
push str.The_MozillaMaintenance_path_is_NOT_correct._It_was:__ls
call fcn.0040101c
push eax
call fcn.00404baa
xor esi, esi
xor eax, eax
inc esi
mov word [esp + 0x1c], ax
mov dword [ebx], esi
lea eax, [esp + 0x1e]
push 0x208
xor ebx, ebx
push ebx
push eax
call fcn.0040bc00
push 0x104
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.00404da0
add esp, 0x24
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x401dfb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Couldnt_remove_file_spec.____d_
call fcn.0040101c
push eax
call fcn.00404bd5
add esp, 0xc
xor eax, eax
jmp 0x401e6a
mov edx, 0x41cf24
lea ecx, [esp + 0x10]
call fcn.00404696
test eax, eax
jne 0x401e1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Couldnt_append_file_spec.____d_
jmp 0x401de9
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x28]
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x401e50
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_fix_service_path.____d_
jmp 0x401de9
lea ecx, [esp + 0x10]
push ecx
push str.Fixed_service_path_to:__ls.
call fcn.0040101c
push eax
call fcn.00404baa
add esp, 0xc
mov eax, esi
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00404d91
add esp, 0x210
ret