joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405650
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x43d00c]
mov bl, byte [ebp + 0xc]
mov esi, edx
mov edi, ecx
xor eax, ebp
mov dword [ebp - 0x10], eax
push str.MOZ_LAUNCHED_CHILD1
call fcn.0041ccbc
add esp, 4
push edi
call fcn.0041d384
add esp, 4
test eax, eax
je 0x4056b7
mov ecx, dword [0x43db8c]
mov edx, dword fs:[0x2c]
mov eax, dword [0x43fa9c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40574e
push str.Warning:_chdir_failed
push 0x43f890
call fcn.00410af0
add esp, 8
test bl, bl
je 0x4056cd
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412fa1
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x14]
mov edx, esi
mov ecx, dword [eax]
push edi
push eax
call fcn.00404d90
add esp, 8
test eax, eax
je 0x4056bb
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [ebp - 0x14]
call ebx
mov esi, eax
call ebx
sub eax, esi
cmp eax, 0x270f
ja 0x405740
nop dword [eax]
mov ebx, 0x2710
sub ebx, eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
push edi
call dword [sym.imp.USER32.dll_WaitForInputIdle]
cmp eax, 0xffffffff
jne 0x405740
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x5bf
jne 0x405740
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, 0x2710
jb 0x405700
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4056bb
push 0x43fa9c
call fcn.004127a7
add esp, 4
cmp dword [0x43fa9c], 0xffffffff
jne 0x4056a5
mov dword [0x43f890], 0
push 0x40a010
call fcn.00412a1c
add esp, 4
push 0x43fa9c
call fcn.004127f9
add esp, 4
jmp 0x4056a5
Function at 0x407ac0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x210
mov eax, dword [0x43d00c]
mov esi, ecx
lea edi, [ebp - 0x21a]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0x20a
push 0
push edi
call fcn.00415350
add esp, 0xc
cmp byte [0x43f684], 0
je 0x407b10
push edi
push 0x437c22
push 0x43ec50
call fcn.00411050
add esp, 0xc
test eax, eax
jne 0x407b2d
jmp 0x407b7a
push 0x437c16
push 0x43ec50
push str._s_s
push 0x105
push edi
call fcn.00403ef0
add esp, 0x14
push 0x43859a
push edi
call fcn.0041db22
add esp, 8
test eax, eax
je 0x407b7a
mov edi, eax
push esi
call fcn.0041fc30
add esp, 4
push edi
push 1
push eax
push esi
call fcn.0041f65e
add esp, 0x10
cmp eax, 1
jne 0x407b7e
cmp byte [0x43f684], 0
je 0x407b76
push 0x43ec50
call fcn.004110d0
add esp, 4
test eax, eax
je 0x407b7e
mov bl, 1
jmp 0x407b80
xor ebx, ebx
jmp 0x407b89
xor ebx, ebx
push edi
call fcn.0041ee50
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412fa1
mov eax, ebx
add esp, 0x210
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x407ba0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x624
mov eax, dword [0x43d00c]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov ecx, dword [0x43db8c]
mov edx, dword fs:[0x2c]
mov eax, dword [0x43fa9c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x407cdd
mov eax, dword [0x43f890]
test eax, eax
je 0x407bf2
push eax
call fcn.0041ee50
add esp, 4
mov dword [0x43f890], 0
cmp byte [0x43f479], 1
jne 0x407cc9
lea esi, [ebp - 0x216]
push 0x20a
push 0
push esi
call fcn.00415350
add esp, 0xc
push esi
push 0x437c22
push 0x43ec50
call fcn.00411050
add esp, 0xc
test eax, eax
je 0x407c64
lea edi, [ebp - 0x420]
push 0x20a
push 0
push edi
call fcn.00415350
add esp, 0xc
push 0x43ec50
push str._supdate.status
push 0x105
push edi
call fcn.00403ef0
add esp, 0x10
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea esi, [ebp - 0x420]
push 0x20a
push 0
push esi
call fcn.00415350
add esp, 0xc
push esi
push 0x4381c0
push 0x43ec50
call fcn.00411050
add esp, 0xc
test eax, eax
je 0x407cc9
lea edi, [ebp - 0x62a]
push 0x20a
push 0
push edi
call fcn.00415350
add esp, 0xc
push 0x43ec50
push str._supdate.log
push 0x105
push edi
call fcn.00403ef0
add esp, 0x10
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00412fa1
add esp, 0x624
pop esi
pop edi
pop ebp
ret
push 0x43fa9c
call fcn.004127a7
add esp, 4
cmp dword [0x43fa9c], 0xffffffff
jne 0x407bd6
mov dword [0x43f890], 0
push 0x40a010
call fcn.00412a1c
add esp, 4
push 0x43fa9c
call fcn.004127f9
add esp, 4
jmp 0x407bd6
Function at 0x40ade0
Capabilities:
Hash data via wincrypt
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
test ecx, ecx
je 0x40ae3c
mov esi, edx
test edx, edx
je 0x40ae3c
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x40ae3c
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x40ae3c
cmp dword [ebp + 0x14], 0
je 0x40ae3c
push ecx
push 1
push dword [ebp + 8]
push esi
call fcn.0041f44b
add esp, 0x10
cmp eax, 1
jne 0x40ae84
nop dword [eax + eax]
push 0
push dword [ebp + 8]
push esi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x40ae5f
add ebx, 4
dec edi
jne 0x40ae20
xor eax, eax
jmp 0x40ae7f
push 2
call fcn.00415c8f
add esp, 4
push eax
push 1
push 0x24
push str.ERROR:_Invalid_parameter_specified._n
call fcn.0041f65e
add esp, 0x10
mov eax, 0xffffffff
jmp 0x40ae7f
push 2
call fcn.00415c8f
add esp, 4
push dword [ebp + 0x14]
push str.ERROR:_Could_not_update_verify_context_for__s_n
push eax
call fcn.00405600
add esp, 0xc
mov eax, 0xfffffffe
pop esi
pop edi
pop ebx
pop ebp
ret
push 2
call fcn.00415c8f
add esp, 4
push dword [ebp + 0x14]
push str.ERROR:_Could_not_read__s_n
push eax
call fcn.00405600
add esp, 0xc
mov eax, 0xffffffff
jmp 0x40ae7f
Function at 0x40b7e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x43d00c]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor eax, ebp
mov dword [esp + 0x30], eax
push ebx
push 0x20
push 1
push edi
call fcn.0041f44b
add esp, 0x10
mov esi, 6
cmp eax, 0x20
jne 0x40b8ab
mov esi, dword [sym.imp.WSOCK32.dll_ntohl]
push dword [edi + 8]
call esi
mov dword [edi + 8], eax
push dword [edi + 0xc]
call esi
mov dword [edi + 0xc], eax
push dword [edi + 0x10]
call esi
mov dword [edi + 0x10], eax
push dword [edi + 0x14]
call esi
mov dword [edi + 0x14], eax
push dword [edi + 0x18]
call esi
mov dword [edi + 0x18], eax
push dword [edi + 0x1c]
call esi
mov dword [edi + 0x1c], eax
push ebx
call fcn.0041a679
add esp, 4
mov ecx, esp
push ecx
push eax
call fcn.0041a9f7
add esp, 8
mov esi, 6
test eax, eax
jne 0x40b8ab
mov eax, 0x4944424d
mov ecx, 0x30314646
mov esi, 0x29
xor eax, dword [edi]
xor ecx, dword [edi + 4]
or ecx, eax
jne 0x40b8ab
mov eax, dword [esp + 0x14]
cmp eax, 0x20
jb 0x40b8ab
add eax, 0xffffffe0
sub eax, dword [edi + 0x14]
jb 0x40b8ab
sub eax, dword [edi + 0x18]
jb 0x40b8ab
xor esi, esi
cmp eax, dword [edi + 0x1c]
mov eax, 0x29
cmovne esi, eax
cmovb esi, eax
mov ecx, dword [esp + 0x30]
xor ecx, ebp
call fcn.00412fa1
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40b8c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov ecx, dword [ebp + 8]
mov edi, dword [ecx + 0x18]
mov eax, dword [ecx + 8]
add edi, dword [ecx + 0x14]
add eax, dword [ebp + 0x10]
add edi, dword [ecx + 0x1c]
mov dword [ebp - 0x20], eax
push edi
call fcn.0041facb
add esp, 4
test eax, eax
mov dword [ebp - 0x14], eax
je 0x40b94a
test edi, edi
je 0x40b927
mov esi, dword [ebp - 0x14]
nop word cs:[eax + eax]
nop
cmp edi, 0x7fffffff
mov ebx, 0x7fffffff
cmovb ebx, edi
push dword [ebp + 0xc]
push ebx
push 1
push esi
call fcn.0041f44b
add esp, 0x10
cmp eax, ebx
jne 0x40b954
add esi, ebx
sub edi, eax
jne 0x40b900
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
imul ecx, eax, 0xaaaaaaab
ror ecx, 2
cmp ecx, 0x15555555
jbe 0x40b960
mov dword [ebp - 0x10], 0x29
jmp 0x40ba6e
mov eax, 0xc
jmp 0x40ba7c
mov dword [ebp - 0x10], 6
jmp 0x40ba6e
test eax, eax
jle 0x40ba67
mov edi, dword [ebp - 0x14]
mov ecx, dword [edx + 0x1c]
mov esi, dword [ebp + 0x10]
mov ebx, edi
add ebx, eax
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x24], ebx
add eax, ebx
add ecx, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], ecx
nop dword [eax + eax]
push dword [edi]
call dword [sym.imp.WSOCK32.dll_ntohl]
mov dword [edi], eax
push dword [edi + 4]
call dword [sym.imp.WSOCK32.dll_ntohl]
mov dword [edi + 4], eax
push dword [edi + 8]
call dword [sym.imp.WSOCK32.dll_ntohl]
mov dword [edi + 8], eax
mov ecx, dword [ebp - 0x20]
mov eax, dword [edi]
sub ecx, esi
cmp eax, ecx
ja 0x40b93e
mov ecx, dword [ebp - 0x2c]
sub ecx, ebx
cmp eax, ecx
ja 0x40b93e
test eax, eax
je 0x40b9e0
xor eax, eax
movzx ecx, byte [esi + eax]
add byte [ebx + eax], cl
inc eax
mov ecx, dword [edi]
cmp eax, ecx
jb 0x40b9d0
jmp 0x40b9e2
xor ecx, ecx
push dword [ebp + 0x14]
push ecx
push 1
push ebx
call fcn.0041f65e
add esp, 0x10
cmp eax, dword [edi]
mov dword [ebp - 0x1c], eax
jne 0x40ba84
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x18]
mov eax, dword [edi + 4]
mov dword [ebp - 0x10], 0x40
sub ecx, edx
cmp eax, ecx
ja 0x40b93e
push dword [ebp + 0x14]
push eax
push 1
push edx
call fcn.0041f65e
add esp, 0x10
cmp eax, dword [edi + 4]
jne 0x40ba6e
add esi, dword [ebp - 0x1c]
mov edx, dword [ebp + 0x10]
mov ecx, dword [edi + 8]
sub edx, esi
cmp ecx, edx
jl 0x40b93e
mov edx, dword [ebp - 0x20]
sub edx, esi
cmp ecx, edx
jg 0x40b93e
add edi, 0xc
add ebx, dword [ebp - 0x1c]
add dword [ebp - 0x18], eax
add esi, ecx
mov dword [ebp - 0x10], 0
cmp edi, dword [ebp - 0x24]
jb 0x40b990
jmp 0x40ba6e
mov dword [ebp - 0x10], 0
push dword [ebp - 0x14]
call fcn.0041f641
add esp, 4
mov eax, dword [ebp - 0x10]
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0x40
jmp 0x40ba6e
Function at 0x40bb20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 8
mov eax, dword [0x43d00c]
mov esi, dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push 0x438464
push esi
push eax
call fcn.0041db39
add esp, 0xc
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x40bb78
push 0x40c
call fcn.0041facb
add esp, 4
test eax, eax
je 0x40bb9c
mov esi, eax
mov dword [eax], edi
add eax, 4
push 0x408
push 0
push eax
call fcn.00415350
add esp, 0xc
jmp 0x40bba7
push 2
call fcn.00415c8f
add esp, 4
push eax
push 1
push 0x2a
push str.ERROR:_could_not_open_file_in_mar_wopen___n
call fcn.0041f65e
add esp, 0x10
push esi
call fcn.0041dc56
jmp 0x40bba2
push edi
call fcn.0041ee50
add esp, 4
xor esi, esi
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00412fa1
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebp
ret
Function at 0x40c220
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
xor esi, esi
mov edi, dword [ecx + 8]
sub edi, eax
je 0x40c253
mov esi, 0xffffffff
jl 0x40c253
mov ebx, dword [ebp + 8]
add eax, dword [ecx + 4]
push 0
push eax
push dword [ebx]
call fcn.0041a69f
add esp, 0xc
test eax, eax
je 0x40c25a
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0x18]
cmp edi, eax
cmovg edi, eax
push dword [ebx]
push edi
push 1
push dword [ebp + 0x14]
call fcn.0041f44b
add esp, 0x10
jmp 0x40c255

Function at 0x40c280
Capabilities:
Encode data using xor

Disassembly:
movdqa xmm0, xmmword [0x4353b0]
movdqa xmm1, xmmword [0x4353c0]
movdqa xmm2, xmmword [0x4353d0]
movdqa xmm3, xmmword [0x4353e0]
mov eax, 0xfffffc00
nop word cs:[eax + eax]
nop
movdqa xmm5, xmm0
pxor xmm6, xmm6
movdqa xmm4, xmm0
paddd xmm0, xmm3
pand xmm5, xmm1
psrld xmm4, 1
psubd xmm6, xmm5
pxor xmm5, xmm5
pand xmm6, xmm2
pxor xmm6, xmm4
pand xmm4, xmm1
psubd xmm5, xmm4
psrld xmm6, 1
pxor xmm4, xmm4
pand xmm5, xmm2
pxor xmm5, xmm6
pand xmm6, xmm1
psubd xmm4, xmm6
psrld xmm5, 1
pxor xmm6, xmm6
pand xmm4, xmm2
pxor xmm4, xmm5
pand xmm5, xmm1
psubd xmm6, xmm5
psrld xmm4, 1
pxor xmm5, xmm5
pand xmm6, xmm2
pxor xmm6, xmm4
pand xmm4, xmm1
psubd xmm5, xmm4
psrld xmm6, 1
pxor xmm4, xmm4
pand xmm5, xmm2
pxor xmm5, xmm6
pand xmm6, xmm1
psubd xmm4, xmm6
psrld xmm5, 1
pxor xmm6, xmm6
pand xmm4, xmm2
pxor xmm4, xmm5
pand xmm5, xmm1
psubd xmm6, xmm5
psrld xmm4, 1
pxor xmm5, xmm5
pand xmm6, xmm2
pxor xmm6, xmm4
pand xmm4, xmm1
psubd xmm5, xmm4
psrld xmm6, 1
pand xmm5, xmm2
pxor xmm5, xmm6
movdqu xmmword [eax + 0x43fea8], xmm5
add eax, 0x10
jne 0x40c2b0
ret

Function at 0x40c3a0
Capabilities:
Encode data using xor

Disassembly:
movdqa xmm0, xmmword [0x4353f0]
movdqa xmm1, xmmword [0x435400]
movdqa xmm2, xmmword [0x435410]
movdqa xmm3, xmmword [0x435420]
movdqa xmm4, xmmword [0x435430]
mov eax, 0xfffff800
nop dword [eax]
movdqa xmm6, xmm0
movdqa xmm5, xmm0
pxor xmm7, xmm7
paddq xmm0, xmm4
pand xmm6, xmm2
pand xmm5, xmm1
psubq xmm7, xmm6
psrlq xmm5, 1
pxor xmm6, xmm6
pand xmm7, xmm3
pxor xmm7, xmm5
pand xmm5, xmm2
psubq xmm6, xmm5
psrlq xmm7, 1
pxor xmm5, xmm5
pand xmm6, xmm3
pxor xmm6, xmm7
pand xmm7, xmm2
psubq xmm5, xmm7
psrlq xmm6, 1
pxor xmm7, xmm7
pand xmm5, xmm3
pxor xmm5, xmm6
pand xmm6, xmm2
psubq xmm7, xmm6
psrlq xmm5, 1
pxor xmm6, xmm6
pand xmm7, xmm3
pxor xmm7, xmm5
pand xmm5, xmm2
psubq xmm6, xmm5
psrlq xmm7, 1
pxor xmm5, xmm5
pand xmm6, xmm3
pxor xmm6, xmm7
pand xmm7, xmm2
psubq xmm5, xmm7
psrlq xmm6, 1
pxor xmm7, xmm7
pand xmm5, xmm3
pxor xmm5, xmm6
pand xmm6, xmm2
psubq xmm7, xmm6
psrlq xmm5, 1
pxor xmm6, xmm6
pand xmm7, xmm3
pxor xmm7, xmm5
pand xmm5, xmm2
psubq xmm6, xmm5
psrlq xmm7, 1
pand xmm6, xmm3
pxor xmm6, xmm7
movdqu xmmword [eax + 0x4406a8], xmm6
add eax, 0x10
jne 0x40c3d0
ret
Function at 0x40cc20
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov esi, ecx
mov ecx, dword [esp + 0x24]
xor ebp, ebp
cmp dword [esi], 4
mov eax, dword [ecx]
jne 0x40cdd6
mov ebx, dword [esp + 0x28]
sub ebx, eax
cmp ebx, 5
jb 0x40cdd6
mov edi, dword [esi + 0x10]
add edx, eax
add ebx, 0xfffffffc
xor ebp, ebp
mov eax, 0xffffffff
mov dword [esp + 0xc], esi
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
jmp 0x40cc7d
mov ecx, ebp
mov ebp, ecx
inc ebp
cmp ebp, ebx
jae 0x40cdbb
mov cl, byte [edx + ebp]
and cl, 0xfe
cmp cl, 0xe8
jne 0x40cc70
mov ecx, ebp
sub ecx, eax
cmp ecx, 3
jbe 0x40cca0
xor edi, edi
jmp 0x40cce0
dec cl
shl edi, cl
mov eax, edi
mov edi, 0
and eax, 7
je 0x40cce0
mov ecx, 0x17
bt ecx, eax
jae 0x40cdae
movzx ecx, byte [eax + 0x435450]
mov edi, ebp
sub edi, ecx
mov cl, byte [edi + edx + 4]
inc cl
cmp cl, 1
jbe 0x40cdae
mov edi, eax
nop word [eax + eax]
movzx eax, byte [edx + ebp + 4]
mov ecx, eax
inc cl
cmp cl, 1
jbe 0x40ccf7
lea edi, [edi + edi + 1]
jmp 0x40cdb2
mov dword [esp], edi
movzx edi, byte [edx + ebp + 2]
movzx ecx, byte [edx + ebp + 1]
shl eax, 0x18
movzx ebx, byte [edx + ebp + 3]
mov edx, dword [esp]
shl edi, 8
or eax, ecx
shl ebx, 0x10
or eax, edi
mov edi, dword [esi + 0xc]
mov esi, 0xfffffffb
or eax, ebx
add edi, ebp
sub esi, edi
add eax, esi
test edx, edx
je 0x40cd71
movzx ecx, byte [edx + 0x435450]
mov ebx, 0x18
mov edx, eax
shl ecx, 3
sub ebx, ecx
mov edi, ecx
mov ecx, ebx
shr edx, cl
inc dl
cmp dl, 1
ja 0x40cd71
mov ecx, edi
mov edi, 0xffffffff
neg cl
shl edi, cl
not edi
nop word [eax + eax]
xor eax, edi
mov ecx, ebx
add eax, esi
mov edx, eax
shr edx, cl
inc dl
cmp dl, 2
jb 0x40cd60
mov edx, eax
mov esi, dword [esp + 0xc]
mov edi, dword [esp]
lea ecx, [ebp + 4]
and edx, 0x1000000
mov ebx, edx
neg ebx
or ebx, edx
mov edx, dword [esp + 8]
shr ebx, 0x18
mov byte [edx + ebp + 1], al
mov byte [edx + ebp + 2], ah
shr eax, 0x10
mov byte [edx + ebp + 3], al
mov byte [edx + ebp + 4], bl
mov ebx, dword [esp + 4]
mov eax, ebp
jmp 0x40cc72
lea edi, [eax + eax + 1]
mov ecx, ebp
mov eax, ebp
jmp 0x40cc72
mov edx, ebp
sub edx, eax
xor eax, eax
mov ecx, edx
dec cl
shl edi, cl
mov ecx, dword [esp + 0x24]
cmp edx, 3
cmovbe eax, edi
mov dword [esi + 0x10], eax
mov eax, dword [ecx]
add eax, ebp
mov dword [ecx], eax
add dword [esi + 0xc], ebp
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40fb40
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [0x43d00c]
mov ebx, dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
call fcn.00420010
add esp, 4
test eax, eax
je 0x40fd2d
mov edi, eax
movzx eax, word [ebx + eax*2 - 2]
cmp ax, 0x5c
je 0x40fb7a
cmp ax, 0x2f
jne 0x40fb7b
dec edi
lea eax, [edi + 2]
mov ecx, 0xffffffff
add eax, eax
cmovae ecx, eax
push ecx
call fcn.00412763
add esp, 4
mov esi, eax
lea eax, [edi + edi + 4]
push eax
push 0
push esi
call fcn.00415350
add esp, 0xc
lea eax, [edi + 1]
push eax
push ebx
push esi
call fcn.00420489
add esp, 0xc
push esi
call fcn.0041d731
add esp, 4
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push 0xf0000000
push 1
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x40fc9c
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x40fcc3
add edi, edi
push 0
push edi
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x40fcc3
mov dword [ebp - 0x1c], 4
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x20]
push 0
push eax
push ecx
push 4
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
xor edi, edi
test eax, eax
je 0x40fd43
mov edi, dword [ebp - 0x20]
push edi
call fcn.00412763
add esp, 4
mov ebx, eax
push edi
push 0
push eax
call fcn.00415350
add esp, 0xc
push 0
lea eax, [ebp - 0x20]
push eax
push ebx
push 2
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x40fcc3
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40fc85
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x14]
mov edi, 1
test eax, eax
je 0x40fcc5
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x40fcc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x40fcc3
push 0xf0000008
push 1
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x40fbec
xor edi, edi
push esi
call fcn.0041276c
add esp, 4
test edi, edi
je 0x40fd2d
mov esi, dword [ebp + 0xc]
push 0x104
push str.SOFTWAREMozillaMaintenanceService_
push esi
call fcn.00420489
add esp, 0xc
cmp dword [ebp - 0x20], 0
mov edi, ebx
je 0x40fd1d
add esi, 0x48
xor ebx, ebx
nop word cs:[eax + eax]
nop
movzx eax, byte [edi + ebx]
push eax
push str._.2x
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
inc ebx
add esi, 4
cmp ebx, dword [ebp - 0x20]
jb 0x40fd00
push edi
call fcn.0041276c
add esp, 4
mov esi, 1
jmp 0x40fd2f
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412fa1
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
jmp 0x40fcc5
Function at 0x410a30
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x10
mov eax, dword [0x43d00c]
xor eax, ebp
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0xc]
push ecx
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x410a86
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x10]
push eax
push 4
push ecx
push 0x12
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
setne al
cmp dword [ebp - 0x10], 3
sete bl
and bl, al
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x410a88
xor ebx, ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00412fa1
mov eax, ebx
add esp, 0x10
pop ebx
pop ebp
ret

Function at 0x410b50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x43d00c]
mov esi, dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [esi], 0
jne 0x410b7d
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412fa1
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [ebp + 0x10]
mov dword [ebp - 0x14], eax
push dword [esi]
push 1
push 0xd
push str._Warning:
call fcn.0041f65e
add esp, 0x10
mov ebx, dword [ebp - 0x14]
mov edi, dword [esi]
call fcn.0040a3b0
push ebx
push 0
push dword [ebp + 0xc]
push edi
push dword [eax + 4]
push dword [eax]
call fcn.00415fe5
add esp, 0x18
push dword [esi]
push 1
push 4
push str._n
call fcn.0041f65e
add esp, 0x10
jmp 0x410b6b
Function at 0x410ec0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x43d00c]
mov edi, ecx
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x8000
push section..rdata
call sub.SHELL32.dll_SHGetKnownFolderPath
xor esi, esi
test eax, eax
js 0x410f0a
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.00420010
add esp, 4
cmp eax, 0x105
jb 0x410f1e
push ebx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412fa1
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x105
push ebx
push edi
call fcn.00420489
add esp, 0xc
push dword [ebp - 0x14]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push str.Mozilla_Maintenance_Service
push edi
call fcn.00411c00
add esp, 8
test eax, eax
je 0x410f0a
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x410f62
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x410f0a
push str.UpdateLogs
push edi
call fcn.00411c00
add esp, 8
test eax, eax
je 0x410f0a
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x410f92
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x410f0a
mov esi, 1
jmp 0x410f0a
Function at 0x411630
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [0x43d00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 5
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
je 0x411706
mov esi, eax
push 4
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x411729
mov ecx, dword [ebp + 0xc]
mov edi, eax
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x30], 0xcf
imul ebx, ecx, 0x3e8
test ebx, ebx
je 0x41174e
xor esi, esi
jmp 0x4116ad
cmp dword [ebp - 0x30], 1
je 0x41176e
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
add esi, 0x32
cmp esi, ebx
jae 0x411755
lea eax, [ebp - 0x38]
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x411690
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7b
jle 0x4117aa
lea ecx, [eax - 0x41c]
cmp ecx, 0xa
ja 0x4116e8
mov edx, 0x601
bt edx, ecx
jb 0x41169a
cmp eax, 0x7c
je 0x4117eb
cmp eax, 0x45b
jne 0x4117f8
mov ebx, 0xde
mov dword [ebp - 0x30], ebx
jmp 0x411773
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x429
mov ebx, 0xfd
sete cl
xor ecx, 0xff
cmp eax, 5
cmovne ebx, ecx
jmp 0x411781
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp edi, 0x7a
jg 0x41175a
cmp edi, 5
je 0x411795
cmp edi, 6
jne 0x4117a3
mov ebx, 0xec
jmp 0x411781
mov ebx, 0xcf
jmp 0x411773
mov ebx, dword [ebp - 0x30]
jmp 0x411773
cmp edi, 0x7b
je 0x41179c
cmp edi, 0x424
jne 0x4117a3
mov ebx, 0xee
jmp 0x411781
mov ebx, 1
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
push dword [ebp - 0x3c]
call esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412fa1
mov eax, ebx
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, 0xeb
jmp 0x411781
mov ebx, 0xed
jmp 0x411781
mov ebx, 0xef
jmp 0x411781
cmp eax, 0x56
jg 0x4117c3
cmp eax, 5
je 0x4117d7
cmp eax, 6
jne 0x4117f8
mov ebx, 0xd9
mov dword [ebp - 0x30], ebx
jmp 0x411773
cmp eax, 0x57
je 0x4117e1
cmp eax, 0x7a
jne 0x4117f8
mov ebx, 0xdb
mov dword [ebp - 0x30], ebx
jmp 0x411773
mov ebx, 0xda
mov dword [ebp - 0x30], ebx
jmp 0x411773
mov ebx, 0xdc
mov dword [ebp - 0x30], ebx
jmp 0x411773
mov ebx, 0xdd
mov dword [ebp - 0x30], ebx
jmp 0x411773
mov ebx, 0xdf
mov dword [ebp - 0x30], ebx
jmp 0x411773