joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f470
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
push ebx
mov eax, dword [eax]
push esi
mov esi, ecx
xor ebx, ebx
and eax, 7
mov dword [ebp - 4], esi
cmp edx, 5
jae 0x40f494
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
add dword [ebp + 8], 5
push edi
add edx, 0xfffffffc
or edi, 0xffffffff
add edx, esi
mov dword [ebp - 8], edx
add esi, ebx
mov dword [ebp - 0xc], esi
cmp esi, edx
jae 0x40f4c2
lea ecx, [ecx]
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x40f4bf
inc esi
cmp esi, edx
jb 0x40f4b0
mov dword [ebp - 0xc], esi
mov ebx, esi
sub ebx, dword [ebp - 4]
mov ecx, ebx
sub ecx, edi
cmp esi, edx
jae 0x40f5e7
cmp ecx, 3
jbe 0x40f4dc
xor eax, eax
jmp 0x40f51a
dec ecx
shl eax, cl
and eax, 7
je 0x40f51a
movzx ecx, byte [eax + 0x47ace8]
mov edx, esi
sub edx, ecx
cmp byte [eax + 0x47ace0], 0
mov cl, byte [edx + 4]
je 0x40f504
test cl, cl
je 0x40f504
cmp cl, 0xff
jne 0x40f517
mov edx, dword [ebp - 8]
mov esi, dword [ebp - 4]
and eax, 3
add eax, eax
mov edi, ebx
or eax, 1
inc ebx
jmp 0x40f4a4
mov edx, dword [ebp - 8]
mov cl, byte [esi + 4]
mov edi, ebx
mov dword [ebp - 0x18], edi
test cl, cl
je 0x40f53c
cmp cl, 0xff
je 0x40f53c
mov esi, dword [ebp - 4]
and eax, 3
add eax, eax
or eax, 1
inc ebx
jmp 0x40f4a4
movzx edi, cl
movzx ecx, byte [esi + 3]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 2]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 1]
mov esi, dword [ebp + 8]
shl edi, 8
or edi, ecx
lea ecx, [ecx]
cmp dword [ebp + 0x10], 0
je 0x40f56d
lea edx, [edi + ebx]
add edx, esi
jmp 0x40f573
mov edx, edi
sub edx, ebx
sub edx, esi
test eax, eax
je 0x40f5b1
movzx edi, byte [eax + 0x47ace8]
shl edi, 3
mov ecx, 0x18
sub ecx, edi
mov dword [ebp - 0x14], edi
mov edi, edx
shr edi, cl
mov ecx, edi
mov dword [ebp - 0x10], edi
test cl, cl
je 0x40f59d
cmp cl, 0xff
jne 0x40f5b1
mov ecx, 0x20
sub ecx, dword [ebp - 0x14]
mov edi, 1
shl edi, cl
dec edi
xor edi, edx
jmp 0x40f560
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x18]
mov ecx, edx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, edx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, edx
shr ecx, 8
mov byte [esi + 1], dl
mov edx, dword [ebp - 8]
mov byte [esi + 2], cl
mov esi, dword [ebp - 4]
add ebx, 5
jmp 0x40f4a4
pop edi
cmp ecx, 3
jbe 0x40f5fc
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [ecx], eax
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
shl eax, cl
mov ecx, dword [ebp + 0xc]
pop esi
and eax, 7
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411320
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4a5590]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x214]
push eax
push 0x101
push 0
push str.SoftwareAVGZen
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
mov dword [ebp - 0x214], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41143d
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00450d40
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push str.ZenCommonDir
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x411431
cmp dword [ebp - 0x21c], 1
jne 0x411431
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [ebp - 0x210], 0
jne 0x4113f9
xor ecx, ecx
push ecx
lea eax, [ebp - 0x210]
push eax
mov ecx, esi
call fcn.0040a110
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c32d
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411402
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x210]
push eax
mov ecx, esi
call fcn.0040a110
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c32d
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 0xe0010013
pop esi
call fcn.0044c32d
mov esp, ebp
pop ebp
ret
Function at 0x411be0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4687e1
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4a5590]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], 0
call fcn.00412020
test al, al
je 0x411c31
mov dword [0x4a99e4], 4
jmp 0x411c3a
call fcn.00411f60
test al, al
jne 0x411c44
mov dword [0x4a6abc], 4
lea ecx, [ebp - 0x28]
call fcn.0042e430
push str..exe
mov edx, eax
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.00412310
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x2c], 1
jb 0x411c80
push dword [ebp - 0x28]
call fcn.0044d639
add esp, 4
xor eax, eax
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x411c9e
mov edx, dword [esi]
jmp 0x411ca0
mov edx, esi
mov ecx, str.AVG_TOOLBAR
call fcn.0041e220
test eax, eax
jns 0x411cc6
push 0
push 0x47abfc
mov ecx, esi
mov dword [0x4a6abc], 0
call fcn.0040a110
mov eax, dword [0x4a6abc]
cmp eax, 3
jne 0x411d21
push 0
call fcn.0044e03b
add esp, 4
push 0
push 3
push edx
push eax
call fcn.00467f20
mov ecx, eax
or eax, edx
je 0x411d15
cmp ecx, 1
jne 0x411d00
test edx, edx
jne 0x411d00
mov dword [0x4a6abc], 2
jmp 0x411d47
cmp ecx, 2
jne 0x411cf4
test edx, edx
jne 0x411cf4
mov dword [0x4a6abc], 1
jmp 0x411d47
mov dword [0x4a6abc], 4
jmp 0x411d26
cmp eax, 4
jne 0x411d47
cmp dword [esi + 0x14], 8
jb 0x411d30
mov eax, dword [esi]
jmp 0x411d32
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x47abfc
mov ecx, esi
call fcn.0040a110
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044c32d
mov esp, ebp
pop ebp
ret

Function at 0x411f60
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x468798
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x4a5590]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x148]
push eax
mov dword [ebp - 0x148], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x411fda
push 0x18
push str.extract_avg:GetVersionEx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
call fcn.0040a110
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.0041ff20
cmp dword [ebp - 0x144], 5
jne 0x411ff3
cmp dword [ebp - 0x140], 1
jne 0x411ff3
cmp word [ebp - 0x34], 3
jb 0x412002
mov al, byte [ebp - 0x2e]
cmp al, 3
je 0x412002
cmp al, 2
je 0x412002
mov al, 1
jmp 0x412004
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044c32d
mov esp, ebp
pop ebp
ret
Function at 0x412b10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x468848
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4a5590]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x14
xor eax, eax
push 0x47b830
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.0040a110
push 0x47abf8
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.00412310
add esp, 4
cmp dword [ebp - 0x14], 8
jb 0x412b8a
push dword [ebp - 0x28]
call fcn.0044d639
add esp, 4
cmp dword [ebp - 0x2c], 8
mov eax, dword [ebp - 0x40]
jae 0x412b96
lea eax, [ebp - 0x40]
push 0
lea ecx, [ebp - 0x44]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x412c0a
mov edx, dword [esi + 0x14]
cmp edx, 8
jb 0x412bc5
mov ecx, dword [esi]
jmp 0x412bc7
mov ecx, esi
lea edi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412bd0
sub ecx, edi
sar ecx, 1
cmp edx, 8
jb 0x412be6
mov esi, dword [esi]
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push str.CurSID
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x2c], 8
jb 0x412c1b
push dword [ebp - 0x40]
call fcn.0044d639
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044c32d
mov esp, ebp
pop ebp
ret

Function at 0x412c40
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x468818
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4a5590]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x14
xor eax, eax
push 0x47b830
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.0040a110
push 0x47abf8
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.00412310
add esp, 4
cmp dword [ebp - 0x14], 8
jb 0x412cb6
push dword [ebp - 0x28]
call fcn.0044d639
add esp, 4
cmp dword [ebp - 0x2c], 8
mov eax, dword [ebp - 0x40]
jae 0x412cc2
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x44]
push ecx
push 0xf003f
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x412cf4
push str.CurSID
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x2c], 8
jb 0x412d05
push dword [ebp - 0x40]
call fcn.0044d639
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044c32d
mov esp, ebp
pop ebp
ret
Function at 0x415960
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a5590]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0x10
lea eax, [ebp - 0x24]
push eax
push 0x59
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x415a3f
cmp word [ebp - 0x24], 0
jne 0x41599b
xor ecx, ecx
jmp 0x4159b0
lea ecx, [ebp - 0x24]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4159a1
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.0040a110
push 0x10
lea eax, [ebp - 0x24]
push eax
push 0x5a
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x415a3f
push 1
push str._0_:
mov ecx, esi
call fcn.004092c0
cmp word [ebp - 0x24], 0
jne 0x415a07
xor ecx, ecx
push ecx
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.004092c0
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c32d
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x24]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415a10
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.004092c0
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c32d
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor al, al
pop esi
call fcn.0044c32d
mov esp, ebp
pop ebp
ret 8
Function at 0x4163e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor bl, bl
cmp dword [edx + 0x14], 8
jb 0x4163f1
mov edx, dword [edx]
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41649f
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x41641e
mov eax, dword [esi]
jmp 0x416420
mov eax, esi
lea ecx, [ebp - 8]
push ecx
push 0
lea ecx, [ebp - 0xc]
push ecx
push 0
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x416495
cmp dword [ebp - 0xc], 1
jne 0x416495
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
push edi
neg ecx
or ecx, eax
push ecx
call fcn.0044bdc0
add esp, 4
cmp dword [esi + 0x14], 8
mov edi, eax
jb 0x416467
mov esi, dword [esi]
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41648b
mov ecx, dword [ebp + 0xc]
push edi
call fcn.00409270
mov bl, 1
push edi
call fcn.0044d60a
add esp, 4
pop edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41e220
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 8]
mov edi, edx
push eax
mov edx, ecx
call fcn.0041e1a0
add esp, 8
test eax, eax
js 0x41e2a6
push esi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41e285
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x41e29d
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x41e2a5
movzx eax, ax
pop esi
or eax, 0x80070000
pop edi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x41e350
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46938b
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4a5590]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x30], 0x4acd9c
mov dword [0x4acdb4], 7
mov dword [0x4acdb0], 0
mov word [0x4acda0], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
call fcn.0041e510
mov esi, eax
cmp esi, 0x4acda0
je 0x41e3f0
cmp dword [0x4acdb4], 8
jb 0x41e3c9
push dword [0x4acda0]
call fcn.0044d639
add esp, 4
xor eax, eax
push esi
mov ecx, 0x4acda0
mov dword [0x4acdb4], 7
mov dword [0x4acdb0], 0
mov word [0x4acda0], ax
call fcn.00409c20
cmp dword [ebp - 0x14], 8
jb 0x41e401
push dword [ebp - 0x28]
call fcn.0044d639
add esp, 4
cmp dword [0x4acdb4], 8
mov eax, dword [0x4acda0]
jae 0x41e414
mov eax, 0x4acda0
push 0
push 0x80
push 4
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x4acd9c], eax
cmp eax, 0xffffffff
jne 0x41e43f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [0x4acd9c]
mov word [ebp - 0x2c], 0xfeff
cmp eax, 0xffffffff
je 0x41e45d
push 0
lea ecx, [ebp - 0x34]
push ecx
push 2
lea ecx, [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, 0x4acd9c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044c32d
mov esp, ebp
pop ebp
ret
Function at 0x41ea40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4694a0
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x4a5590]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x58]
call fcn.0042f4f0
push eax
mov edx, 0x47c010
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.0041ee20
add esp, 4
push 0x47c008
mov edx, eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00412310
add esp, 4
cmp dword [ebp - 0x2c], 8
jb 0x41eab3
push dword [ebp - 0x40]
call fcn.0044d639
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 4
cmp dword [ebp - 0x44], 8
jb 0x41eadc
push dword [ebp - 0x58]
call fcn.0044d639
add esp, 4
xor eax, eax
mov word [ebp - 0x58], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
sub eax, 0
je 0x41eb10
dec eax
je 0x41eb07
dec eax
jne 0x41eb1f
push 7
push str.ERROR:
jmp 0x41eb17
push 9
push str.WARNING:
jmp 0x41eb17
push 6
push 0x47c014
lea ecx, [ebp - 0x28]
call fcn.004092c0
push 0x47bfb8
mov edx, esi
lea ecx, [ebp - 0x70]
call fcn.0040b640
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.00409570
mov byte [ebp - 4], 4
cmp dword [ebp - 0x5c], 8
jb 0x41eb57
push dword [ebp - 0x70]
call fcn.0044d639
add esp, 4
mov ecx, dword [0x4acd9c]
cmp ecx, 0xffffffff
je 0x41eb82
cmp dword [ebp - 0x14], 8
mov edx, dword [ebp - 0x28]
jae 0x41eb6e
lea edx, [ebp - 0x28]
push 0
lea eax, [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x18]
add eax, eax
push eax
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x14], 8
jb 0x41eb93
push dword [ebp - 0x28]
call fcn.0044d639
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044c32d
mov esp, ebp
pop ebp
ret 8

Function at 0x41f070
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4a5590]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x114
lea eax, [ebp - 0x118]
push 0
push eax
xor bl, bl
call fcn.00450d40
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41f0d0
cmp dword [ebp - 0x114], 6
pop ebx
setae al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c32d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0044c32d
mov esp, ebp
pop ebp
ret
Function at 0x41f150
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4a5590]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x114
lea eax, [ebp - 0x118]
push 0
push eax
mov esi, ecx
call fcn.00450d40
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41f1e4
cmp dword [ebp - 0x114], 6
setae al
test al, al
je 0x41f1e4
mov ecx, esi
call fcn.0041f210
test al, al
je 0x41f1d0
mov ecx, esi
call fcn.0041f0f0
cmp eax, 1
jne 0x41f1f5
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c32d
mov esp, ebp
pop ebp
ret
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c32d
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.0041f210
xor ecx, ecx
test al, al
setne cl
lea eax, [ecx + 1]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0044c32d
mov esp, ebp
pop ebp
ret

Function at 0x41f210
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4a5590]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
push 8
push ecx
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x41f24c
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c32d
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 2
push dword [ebp - 0x14]
mov dword [ebp - 0x18], 0
call esi
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41f333
push ebx
push eax
call fcn.0044bdc0
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push ebx
push 2
push dword [ebp - 0x14]
call esi
test eax, eax
je 0x41f329
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xc], 0
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x41f329
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x41f329
mov ecx, dword [ebx]
xor eax, eax
cmp eax, ecx
sbb al, al
not al
and byte [ebp - 0xd], al
push edi
xor edi, edi
test ecx, ecx
je 0x41f31f
lea esi, [ebx + 4]
nop
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x41f311
push dword [ebp - 0x1c]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x41f311
test byte [esi + 4], 4
jne 0x41f31b
inc edi
add esi, 8
cmp edi, dword [ebx]
jb 0x41f2f0
jmp 0x41f31f
mov byte [ebp - 0xd], 1
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
pop edi
push ebx
call fcn.0044d60a
add esp, 4
pop ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0xd]
xor ecx, ebp
pop esi
call fcn.0044c32d
mov esp, ebp
pop ebp
ret
Function at 0x41f4a0
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x4a5590]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x41f5e9
push esi
push 0x24
push str.TuneUp.UtilitiesSvc
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x41f5ca
mov dword [ebp - 0x48], 0x24
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x44]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x41f599
cmp dword [ebp - 0x40], 1
jne 0x41f519
mov ebx, 1
jmp 0x41f599
lea eax, [ebp - 0x48]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x41f599
mov eax, dword [ebp - 0x24]
cmp eax, 1
je 0x41f591
cmp eax, 3
jne 0x41f591
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [ebp - 0x10]
cmp eax, 0x1f4
jae 0x41f552
mov eax, 0x1f4
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x48]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x41f58e
mov eax, dword [ebp - 0x24]
cmp eax, 1
je 0x41f591
call ebx
sub eax, dword [ebp - 0x4c]
cmp eax, 0x7530
ja 0x41f58e
mov eax, dword [ebp - 0x24]
cmp eax, 3
je 0x41f543
jmp 0x41f591
mov eax, dword [ebp - 0x24]
xor ebx, ebx
cmp eax, 1
sete bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
jne 0x41f5ab
mov ebx, 1
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop esi
pop edi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c32d
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
je 0x41f5dc
cmp eax, 0x7b
jne 0x41f5e1
mov ebx, 1
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
mov ecx, dword [ebp - 4]
pop edi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0044c32d
mov esp, ebp
pop ebp
ret