joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c540
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov esi, dword [edi]
mov dword [ebp - 4], ecx
test esi, esi
je 0x40c59e
mov dword [edi], 0
jmp 0x40c560
mov eax, 0x400000
cmp esi, 0x400000
ja 0x40c56f
mov eax, esi
push 0
lea edx, [ebp + 8]
push edx
push eax
push ebx
push dword [ecx]
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 8]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x40c5a7
test ecx, ecx
je 0x40c59e
mov ecx, dword [ebp - 4]
test esi, esi
jne 0x40c560
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f440
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 0x40f464
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 0x40f492
lea ecx, [ecx]
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x40f48f
inc esi
cmp esi, edx
jb 0x40f480
mov dword [ebp - 0xc], esi
mov ebx, esi
sub ebx, dword [ebp - 4]
mov ecx, ebx
sub ecx, edi
cmp esi, edx
jae 0x40f5b7
cmp ecx, 3
jbe 0x40f4ac
xor eax, eax
jmp 0x40f4ea
dec ecx
shl eax, cl
and eax, 7
je 0x40f4ea
movzx ecx, byte [eax + 0x47ad28]
mov edx, esi
sub edx, ecx
cmp byte [eax + 0x47ad20], 0
mov cl, byte [edx + 4]
je 0x40f4d4
test cl, cl
je 0x40f4d4
cmp cl, 0xff
jne 0x40f4e7
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 0x40f474
mov edx, dword [ebp - 8]
mov cl, byte [esi + 4]
mov edi, ebx
mov dword [ebp - 0x18], edi
test cl, cl
je 0x40f50c
cmp cl, 0xff
je 0x40f50c
mov esi, dword [ebp - 4]
and eax, 3
add eax, eax
or eax, 1
inc ebx
jmp 0x40f474
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 0x40f53d
lea edx, [edi + ebx]
add edx, esi
jmp 0x40f543
mov edx, edi
sub edx, ebx
sub edx, esi
test eax, eax
je 0x40f581
movzx edi, byte [eax + 0x47ad28]
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 0x40f56d
cmp cl, 0xff
jne 0x40f581
mov ecx, 0x20
sub ecx, dword [ebp - 0x14]
mov edi, 1
shl edi, cl
dec edi
xor edi, edx
jmp 0x40f530
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 0x40f474
pop edi
cmp ecx, 3
jbe 0x40f5cc
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 0x4112f0
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 0x41140d
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00450d00
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 0x411401
cmp dword [ebp - 0x21c], 1
jne 0x411401
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [ebp - 0x210], 0
jne 0x4113c9
xor ecx, ecx
push ecx
lea eax, [ebp - 0x210]
push eax
mov ecx, esi
call fcn.0040a100
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c2ed
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 0x4113d2
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x210]
push eax
mov ecx, esi
call fcn.0040a100
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c2ed
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.0044c2ed
mov esp, ebp
pop ebp
ret
Function at 0x411bb0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x468771
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.00411ff0
test al, al
je 0x411c01
mov dword [0x4a99e4], 4
jmp 0x411c0a
call fcn.00411f30
test al, al
jne 0x411c14
mov dword [0x4a6aa8], 4
lea ecx, [ebp - 0x28]
call fcn.0042e3f0
push str..exe
mov edx, eax
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.004122e0
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x2c], 1
jb 0x411c50
push dword [ebp - 0x28]
call fcn.0044d5f9
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 0x411c6e
mov edx, dword [esi]
jmp 0x411c70
mov edx, esi
mov ecx, str.AVG_TOOLBAR
call fcn.0041e1e0
test eax, eax
jns 0x411c96
push 0
push 0x47ac50
mov ecx, esi
mov dword [0x4a6aa8], 0
call fcn.0040a100
mov eax, dword [0x4a6aa8]
cmp eax, 3
jne 0x411cf1
push 0
call fcn.0044dffb
add esp, 4
push 0
push 3
push edx
push eax
call fcn.00467ee0
mov ecx, eax
or eax, edx
je 0x411ce5
cmp ecx, 1
jne 0x411cd0
test edx, edx
jne 0x411cd0
mov dword [0x4a6aa8], 2
jmp 0x411d17
cmp ecx, 2
jne 0x411cc4
test edx, edx
jne 0x411cc4
mov dword [0x4a6aa8], 1
jmp 0x411d17
mov dword [0x4a6aa8], 4
jmp 0x411cf6
cmp eax, 4
jne 0x411d17
cmp dword [esi + 0x14], 8
jb 0x411d00
mov eax, dword [esi]
jmp 0x411d02
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x47ac50
mov ecx, esi
call fcn.0040a100
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.0044c2ed
mov esp, ebp
pop ebp
ret

Function at 0x411f30
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x468728
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 0x411faa
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.0040a100
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.0041fee0
cmp dword [ebp - 0x144], 5
jne 0x411fc3
cmp dword [ebp - 0x140], 1
jne 0x411fc3
cmp word [ebp - 0x34], 3
jb 0x411fd2
mov al, byte [ebp - 0x2e]
cmp al, 3
je 0x411fd2
cmp al, 2
je 0x411fd2
mov al, 1
jmp 0x411fd4
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.0044c2ed
mov esp, ebp
pop ebp
ret
Function at 0x412ae0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4687d8
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 0x47b868
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.0040a100
push 0x47ac4c
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.004122e0
add esp, 4
cmp dword [ebp - 0x14], 8
jb 0x412b5a
push dword [ebp - 0x28]
call fcn.0044d5f9
add esp, 4
cmp dword [ebp - 0x2c], 8
mov eax, dword [ebp - 0x40]
jae 0x412b66
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 0x412bda
mov edx, dword [esi + 0x14]
cmp edx, 8
jb 0x412b95
mov ecx, dword [esi]
jmp 0x412b97
mov ecx, esi
lea edi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412ba0
sub ecx, edi
sar ecx, 1
cmp edx, 8
jb 0x412bb6
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 0x412beb
push dword [ebp - 0x40]
call fcn.0044d5f9
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.0044c2ed
mov esp, ebp
pop ebp
ret

Function at 0x412c10
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4687a8
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 0x47b868
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.0040a100
push 0x47ac4c
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.004122e0
add esp, 4
cmp dword [ebp - 0x14], 8
jb 0x412c86
push dword [ebp - 0x28]
call fcn.0044d5f9
add esp, 4
cmp dword [ebp - 0x2c], 8
mov eax, dword [ebp - 0x40]
jae 0x412c92
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 0x412cc4
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 0x412cd5
push dword [ebp - 0x40]
call fcn.0044d5f9
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.0044c2ed
mov esp, ebp
pop ebp
ret
Function at 0x415930
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 0x415a0f
cmp word [ebp - 0x24], 0
jne 0x41596b
xor ecx, ecx
jmp 0x415980
lea ecx, [ebp - 0x24]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415971
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.0040a100
push 0x10
lea eax, [ebp - 0x24]
push eax
push 0x5a
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x415a0f
push 1
push str._0_:
mov ecx, esi
call fcn.004092b0
cmp word [ebp - 0x24], 0
jne 0x4159d7
xor ecx, ecx
push ecx
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.004092b0
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c2ed
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 0x4159e0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.004092b0
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c2ed
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor al, al
pop esi
call fcn.0044c2ed
mov esp, ebp
pop ebp
ret 8
Function at 0x4163b0
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 0x4163c1
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 0x41646f
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x4163ee
mov eax, dword [esi]
jmp 0x4163f0
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 0x416465
cmp dword [ebp - 0xc], 1
jne 0x416465
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.0044bd80
add esp, 4
cmp dword [esi + 0x14], 8
mov edi, eax
jb 0x416437
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 0x41645b
mov ecx, dword [ebp + 0xc]
push edi
call fcn.00409260
mov bl, 1
push edi
call fcn.0044d5ca
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 0x41e1e0
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.0041e160
add esp, 8
test eax, eax
js 0x41e266
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 0x41e245
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 0x41e25d
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 0x41e265
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 0x41e310
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46934b
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], 0x4acda0
mov dword [0x4acdb8], 7
mov dword [0x4acdb4], 0
mov word [0x4acda4], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
call fcn.0041e4d0
mov esi, eax
cmp esi, 0x4acda4
je 0x41e3b0
cmp dword [0x4acdb8], 8
jb 0x41e389
push dword [0x4acda4]
call fcn.0044d5f9
add esp, 4
xor eax, eax
push esi
mov ecx, 0x4acda4
mov dword [0x4acdb8], 7
mov dword [0x4acdb4], 0
mov word [0x4acda4], ax
call fcn.00409c10
cmp dword [ebp - 0x14], 8
jb 0x41e3c1
push dword [ebp - 0x28]
call fcn.0044d5f9
add esp, 4
cmp dword [0x4acdb8], 8
mov eax, dword [0x4acda4]
jae 0x41e3d4
mov eax, 0x4acda4
push 0
push 0x80
push 4
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x4acda0], eax
cmp eax, 0xffffffff
jne 0x41e3ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [0x4acda0]
mov word [ebp - 0x2c], 0xfeff
cmp eax, 0xffffffff
je 0x41e41d
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, 0x4acda0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044c2ed
mov esp, ebp
pop ebp
ret
Function at 0x41ea00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x469460
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.0042f4b0
push eax
mov edx, 0x47c00c
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.0041ede0
add esp, 4
push 0x47c004
mov edx, eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004122e0
add esp, 4
cmp dword [ebp - 0x2c], 8
jb 0x41ea73
push dword [ebp - 0x40]
call fcn.0044d5f9
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 0x41ea9c
push dword [ebp - 0x58]
call fcn.0044d5f9
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 0x41ead0
dec eax
je 0x41eac7
dec eax
jne 0x41eadf
push 7
push str.ERROR:
jmp 0x41ead7
push 9
push str.WARNING:
jmp 0x41ead7
push 6
push 0x47c010
lea ecx, [ebp - 0x28]
call fcn.004092b0
push 0x47c044
mov edx, esi
lea ecx, [ebp - 0x70]
call fcn.0040b610
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.00409560
mov byte [ebp - 4], 4
cmp dword [ebp - 0x5c], 8
jb 0x41eb17
push dword [ebp - 0x70]
call fcn.0044d5f9
add esp, 4
mov ecx, dword [0x4acda0]
cmp ecx, 0xffffffff
je 0x41eb42
cmp dword [ebp - 0x14], 8
mov edx, dword [ebp - 0x28]
jae 0x41eb2e
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 0x41eb53
push dword [ebp - 0x28]
call fcn.0044d5f9
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.0044c2ed
mov esp, ebp
pop ebp
ret 8

Function at 0x41f030
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.00450d00
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 0x41f090
cmp dword [ebp - 0x114], 6
pop ebx
setae al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c2ed
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0044c2ed
mov esp, ebp
pop ebp
ret
Function at 0x41f110
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.00450d00
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 0x41f1a4
cmp dword [ebp - 0x114], 6
setae al
test al, al
je 0x41f1a4
mov ecx, esi
call fcn.0041f1d0
test al, al
je 0x41f190
mov ecx, esi
call fcn.0041f0b0
cmp eax, 1
jne 0x41f1b5
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c2ed
mov esp, ebp
pop ebp
ret
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c2ed
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.0041f1d0
xor ecx, ecx
test al, al
setne cl
lea eax, [ecx + 1]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0044c2ed
mov esp, ebp
pop ebp
ret

Function at 0x41f1d0
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 0x41f20c
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044c2ed
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 0x41f2f3
push ebx
push eax
call fcn.0044bd80
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 0x41f2e9
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 0x41f2e9
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x41f2e9
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 0x41f2df
lea esi, [ebx + 4]
nop
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x41f2d1
push dword [ebp - 0x1c]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x41f2d1
test byte [esi + 4], 4
jne 0x41f2db
inc edi
add esi, 8
cmp edi, dword [ebx]
jb 0x41f2b0
jmp 0x41f2df
mov byte [ebp - 0xd], 1
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
pop edi
push ebx
call fcn.0044d5ca
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.0044c2ed
mov esp, ebp
pop ebp
ret
Function at 0x41f460
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 0x41f5a9
push esi
push 0x24
push str.TuneUp.UtilitiesSvc
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x41f58a
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 0x41f559
cmp dword [ebp - 0x40], 1
jne 0x41f4d9
mov ebx, 1
jmp 0x41f559
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 0x41f559
mov eax, dword [ebp - 0x24]
cmp eax, 1
je 0x41f551
cmp eax, 3
jne 0x41f551
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [ebp - 0x10]
cmp eax, 0x1f4
jae 0x41f512
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 0x41f54e
mov eax, dword [ebp - 0x24]
cmp eax, 1
je 0x41f551
call ebx
sub eax, dword [ebp - 0x4c]
cmp eax, 0x7530
ja 0x41f54e
mov eax, dword [ebp - 0x24]
cmp eax, 3
je 0x41f503
jmp 0x41f551
mov eax, dword [ebp - 0x24]
xor ebx, ebx
cmp eax, 1
sete bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
jne 0x41f56b
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.0044c2ed
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
je 0x41f59c
cmp eax, 0x7b
jne 0x41f5a1
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.0044c2ed
mov esp, ebp
pop ebp
ret