joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425aee
Capabilities:
Get hostname

Disassembly:
push 0x2c
mov eax, 0x5bd894
call fcn.0058ec94
mov eax, dword [ebp + 8]
and dword [ebp - 0x38], 0
push 0x10
mov dword [ebp - 0x30], eax
pop eax
push eax
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x34], eax
call fcn.0042b233
xor esi, esi
inc esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x34]
push eax
xor edi, edi
lea eax, [ebp - 0x2c]
call fcn.0042b255
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
lea eax, [ebp - 0x2c]
je 0x425b57
call fcn.0042b255
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x425b3d
sub eax, edx
sar eax, 1
mov ecx, eax
lea eax, [ebp - 0x2c]
call fcn.0042b275
jmp 0x425b5c
call fcn.00408353
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x425b68
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x30]
call fcn.004085b5
mov dword [ebp - 0x38], esi
mov byte [ebp - 4], 0
push 0
push esi
lea esi, [ebp - 0x2c]
call fcn.00409da6
mov eax, dword [ebp - 0x30]
call fcn.0058ed17
ret

Function at 0x425ca5
Capabilities:
Delete registry value

Disassembly:
push 8
mov eax, 0x5b6146
call fcn.0058ec2b
mov dword [ebp - 4], 1
xor ebx, ebx
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 2
cmp byte [ebp + 0x14], bl
je 0x425ce4
cmp byte [0x6ddebc], bl
je 0x425cdd
cmp byte [ebp + 0x18], bl
je 0x425cdd
mov edi, 0x20119
jmp 0x425cfb
mov edi, 0x20019
jmp 0x425cfb
cmp byte [0x6ddebc], bl
je 0x425cf6
mov edi, 0x20106
cmp byte [ebp + 0x18], bl
jne 0x425cfb
mov edi, 0x20006
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], ebx
je 0x425d0e
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x14]
push eax
push edi
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x425d39
push dword [ebp + 0x10]
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
cmp eax, ebx
jne 0x425d39
mov byte [ebp - 0xd], 1
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], ebx
je 0x425d47
push dword [ebp - 0x14]
call esi
mov byte [ebp - 4], bl
lea ecx, [ebp + 0xc]
call fcn.004085f6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.004085f6
mov al, byte [ebp - 0xd]
call fcn.0058ed03
ret
Function at 0x425d67
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push 0x14
mov eax, 0x5ba4b5
call fcn.0058ec2b
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x18], ebx
cmp byte [ebp + 0x10], bl
je 0x425da2
cmp byte [0x6ddebc], bl
je 0x425d99
cmp byte [ebp + 0x14], bl
je 0x425d99
mov dword [ebp - 0x14], 0x20119
jmp 0x425dbd
mov dword [ebp - 0x14], 0x20019
jmp 0x425dbd
cmp byte [0x6ddebc], bl
je 0x425db6
mov dword [ebp - 0x14], 0x20106
cmp byte [ebp + 0x14], bl
jne 0x425dbd
mov dword [ebp - 0x14], 0x20006
lea eax, [ebp - 0x1c]
push eax
call fcn.0040855f
mov byte [ebp - 4], 1
lea eax, [ebp + 0x10]
push eax
call fcn.0040855f
mov byte [ebp - 4], 2
push 0x5c
lea esi, [ebp + 0xc]
call fcn.0042b71b
mov esi, eax
cmp esi, 0xffffffff
jne 0x425df5
lea eax, [ebp + 0xc]
lea edi, [ebp + 0x10]
call fcn.00408619
jmp 0x425e4a
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
call fcn.0042b91b
mov byte [ebp - 4], 3
lea edi, [ebp - 0x1c]
call fcn.00408619
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.004085f6
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax - 0xc]
lea eax, [ebp - 0x20]
push eax
sub ecx, esi
lea eax, [ebp + 0xc]
dec ecx
push eax
call fcn.0042b8bf
mov byte [ebp - 4], 4
lea edi, [ebp + 0x10]
call fcn.00408619
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.004085f6
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
push ebx
push dword [ebp - 0x1c]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x425e95
push dword [ebp + 0x10]
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
cmp eax, ebx
je 0x425e88
cmp eax, 2
jne 0x425e8c
push dword [ebp + 0x10]
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
test eax, eax
jne 0x425e8c
mov byte [ebp - 0xd], 1
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call fcn.004085f6
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call fcn.004085f6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004085f6
mov al, byte [ebp - 0xd]
call fcn.0058ed03
ret
Function at 0x4264d6
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x6c56f8]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0xc
mov eax, 0x5bd84b
call fcn.0058ec2b
mov edi, dword [ebp + 0x80c]
xor ebx, ebx
mov dword [ebp - 4], ebx
push dword [ebp + 0x810]
mov dword [ebp - 0x10], ebx
push edi
call fcn.0042636e
pop ecx
pop ecx
lea eax, [ebp - 0x10]
push eax
push 0x20019
push ebx
lea esi, [ebp + 0x810]
call fcn.00408830
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42659f
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor esi, esi
cmp dword [ebp - 0x14], ebx
jbe 0x426596
push 0x400
lea eax, [ebp]
push eax
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x426590
push ecx
mov eax, esp
mov dword [ebp - 0x18], esp
lea ecx, [ebp]
push ecx
push eax
call fcn.004085b5
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.004264d6
pop ecx
pop ecx
inc esi
cmp esi, dword [ebp - 0x14]
jb 0x426558
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x810]
call fcn.004085f6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.00581268
add ebp, 0x804
leave
ret
Function at 0x4265d1
Capabilities:
Delete registry key

Disassembly:
push 0x10
mov eax, 0x5c0d69
call fcn.0058ec2b
and dword [ebp - 4], 0
and dword [ebp - 0x14], 0
cmp byte [ebp + 0x10], 0
mov byte [ebp - 0xd], 0
je 0x42660c
cmp byte [0x6ddebc], 0
je 0x426605
cmp byte [ebp + 0x14], 0
je 0x426605
mov ebx, 0x20119
jmp 0x426625
mov ebx, 0x20019
jmp 0x426625
cmp byte [0x6ddebc], 0
je 0x426620
cmp byte [ebp + 0x14], 0
mov ebx, 0x20106
jne 0x426625
mov ebx, 0x20006
lea eax, [ebp - 0x18]
push eax
call fcn.0040855f
mov byte [ebp - 4], 1
lea eax, [ebp + 0x10]
push eax
call fcn.0040855f
mov byte [ebp - 4], 2
push 0x5c
lea esi, [ebp + 0xc]
call fcn.0042b71b
mov esi, eax
cmp esi, 0xffffffff
jne 0x42665d
lea eax, [ebp + 0xc]
lea edi, [ebp + 0x10]
call fcn.00408619
jmp 0x4266b2
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
call fcn.0042b91b
mov byte [ebp - 4], 3
lea edi, [ebp - 0x18]
call fcn.00408619
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.004085f6
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax - 0xc]
lea eax, [ebp - 0x1c]
push eax
sub ecx, esi
lea eax, [ebp + 0xc]
dec ecx
push eax
call fcn.0042b8bf
mov byte [ebp - 4], 4
lea edi, [ebp + 0x10]
call fcn.00408619
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.004085f6
lea eax, [ebp - 0x14]
push eax
push ebx
push 0
push dword [ebp - 0x18]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x426719
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
xor bl, bl
jmp 0x426700
cmp eax, 5
jne 0x426710
test bl, bl
jne 0x426710
push ecx
mov eax, esp
mov dword [ebp - 0x1c], esp
lea ecx, [ebp + 0x10]
push ecx
push eax
call fcn.00408586
mov byte [ebp - 4], 5
push dword [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004264d6
pop ecx
pop ecx
inc bl
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x4266d3
mov byte [ebp - 0xd], 1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call fcn.004085f6
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004085f6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004085f6
mov al, byte [ebp - 0xd]
call fcn.0058ed03
ret
Function at 0x426b2e
Capabilities:
Get common file path

Disassembly:
push 0x30
mov eax, 0x5bd794
call fcn.0058ec94
mov eax, dword [ebp + 8]
and dword [ebp - 0x34], 0
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
push 0x400
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x3c], eax
call fcn.0042b233
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
mov esi, dword [ebp - 0x18]
xor edi, edi
lea eax, [ebp - 0x2c]
call fcn.0042b255
push eax
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x426b7f
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.004085b5
mov byte [ebp - 4], 2
push dword [ebp - 0x3c]
mov ecx, eax
push dword [ebp - 0x30]
call fcn.004116ea
pop ecx
pop ecx
mov dword [ebp - 0x34], ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x38]
call fcn.004085f6
mov byte [ebp - 4], 0
push 0
push ebx
lea esi, [ebp - 0x2c]
call fcn.00409da6
mov eax, dword [ebp - 0x30]
call fcn.0058ed17
ret
Function at 0x426bc2
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push 0x264
mov eax, 0x5ba465
call fcn.0058ec94
mov esi, dword [ebp + 8]
and dword [ebp - 0x260], 0
push 0x24c
lea eax, [ebp - 0x25c]
push 0
push eax
call fcn.00586790
add esp, 0xc
lea eax, [ebp - 0x26c]
push 0x68798c
push eax
mov ecx, esi
call fcn.004116ea
pop ecx
pop ecx
and dword [ebp - 4], 0
mov eax, dword [eax]
lea ecx, [ebp - 0x260]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x268], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x26c]
call fcn.004085f6
cmp dword [ebp - 0x268], 0xffffffff
je 0x426d72
mov ecx, 0x6880d4
lea eax, [ebp - 0x234]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x426c6d
test dx, dx
je 0x426c69
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x426c6d
add eax, 4
add ecx, 4
test dx, dx
jne 0x426c47
xor eax, eax
jmp 0x426c72
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x426d4b
mov ecx, 0x6880d8
lea eax, [ebp - 0x234]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x426cab
test dx, dx
je 0x426ca7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x426cab
add eax, 4
add ecx, 4
test dx, dx
jne 0x426c85
xor eax, eax
jmp 0x426cb0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x426d4b
lea eax, [ebp - 0x270]
push 0x6810d0
push eax
mov ecx, esi
call fcn.004116ea
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x234]
push ecx
lea ecx, [ebp - 0x264]
push ecx
mov ecx, eax
call fcn.004116ea
add esp, 0x10
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x270]
call fcn.004085f6
test byte [ebp - 0x260], 0x10
je 0x426d1f
push dword [ebp + 0xc]
lea eax, [ebp - 0x264]
push eax
call fcn.00426bc2
pop ecx
pop ecx
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0x80
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x264]
call fcn.004085f6
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x426c3c
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp + 0xc], 0
je 0x426d80
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
call fcn.0058ed17
ret
Function at 0x4277eb
Capabilities:
Get file version info

Disassembly:
push 0x34
mov eax, 0x5bd678
call fcn.0058ec2b
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x24], esi
push dword [ebp + 8]
call fcn.0040855f
mov dword [ebp - 4], esi
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x28], esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, esi
je 0x42794a
lea ebx, [ebp - 0x20]
call fcn.0042c18f
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x20]
push dword [esi]
xor ebx, ebx
push edi
push ebx
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x42793e
push dword [esi]
lea eax, [ebp - 0x40]
push eax
call fcn.00427984
pop ecx
pop ecx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x34]
sar eax, 2
test eax, eax
jbe 0x427931
lea eax, [ebp - 0x14]
push eax
call fcn.0040855f
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x30]
mov ecx, eax
sub ecx, dword [ebp - 0x34]
sar ecx, 2
cmp ebx, ecx
jb 0x427898
call fcn.0058204a
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
sub eax, ecx
sar eax, 2
lea edi, [ecx + ebx*4]
cmp ebx, eax
jb 0x4278ac
call fcn.0058204a
movzx eax, word [edi + 2]
push 0x688950
push eax
mov eax, dword [ebp - 0x34]
movzx eax, word [eax + ebx*4]
push eax
push str.StringFileInfo_04x_04x_s
lea eax, [ebp - 0x14]
call fcn.004310f7
add esp, 0x10
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 0x14]
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov eax, dword [esi]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4278f7
cmp dword [ebp - 0x1c], edi
je 0x4278f7
cmp dword [ebp - 0x18], edi
ja 0x427917
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.004085f6
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x34]
inc ebx
sar eax, 2
cmp ebx, eax
jb 0x427874
jmp 0x427931
push dword [ebp - 0x18]
mov eax, dword [ebp + 8]
push dword [ebp - 0x1c]
call fcn.0040cdd5
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.004085f6
mov byte [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
call fcn.00416d1e
mov byte [ebp - 4], 0
lea ebx, [ebp - 0x20]
call fcn.004170a7
mov eax, dword [ebp + 8]
call fcn.0058ed03
ret
Function at 0x428436
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5c0bdb
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x6c56f8]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x6c56f8]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], edx
lea edx, [esp + 0x14]
push edx
push 9
xor ebx, ebx
push ebx
push ecx
push eax
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x428561
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x2c]
push eax
push ebx
push ebx
push ebx
push dword [esp + 0x40]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x428557
cmp dword [esp + 0x10], ebx
je 0x428557
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x428557
inc eax
push eax
lea esi, [esp + 0x28]
call fcn.0042b233
mov dword [esp + 0x50], ebx
xor esi, esi
cmp dword [esp + 0x10], ebx
jbe 0x428546
push dword [esp + 0x38]
xor edi, edi
lea eax, [esp + 0x28]
call fcn.0042b255
push eax
push esi
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, ebx
jne 0x42853f
lea eax, [esp + 0x24]
call fcn.0042b255
push eax
lea eax, [esp + 0x20]
push eax
call fcn.004085b5
mov byte [esp + 0x50], 1
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x24]
call fcn.00416ae3
mov byte [esp + 0x50], bl
lea ecx, [esp + 0x1c]
call fcn.004085f6
inc esi
cmp esi, dword [esp + 0x10]
jb 0x4284ec
or dword [esp + 0x50], 0xffffffff
push ebx
push 1
lea esi, [esp + 0x2c]
call fcn.00409da6
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00581268
mov esp, ebp
pop ebp
ret

Function at 0x42857f
Capabilities:
Query environment variable

Disassembly:
push 0x48
mov eax, 0x5bd500
call fcn.0058ec94
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
mov edi, ecx
push edi
lea esi, [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
call fcn.0040820f
xor esi, esi
inc esi
mov dword [ebp - 4], esi
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
call ebx
push dword [ebp - 0x4c]
mov edi, eax
inc edi
inc edi
call fcn.0040855f
mov dword [ebp - 0x54], esi
push edi
lea esi, [ebp - 0x2c]
call fcn.0042b233
mov byte [ebp - 4], 2
push edi
xor edi, edi
mov eax, esi
call fcn.0042b255
push eax
push dword [ebp - 0x50]
call ebx
test eax, eax
je 0x4285fd
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4285f4
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x4c]
call fcn.0040865a
mov byte [ebp - 4], 1
push 0
push 1
lea esi, [ebp - 0x2c]
call fcn.00409da6
mov byte [ebp - 4], 0
push 0
push 1
lea esi, [ebp - 0x48]
call fcn.00409da6
mov eax, dword [ebp - 0x4c]
call fcn.0058ed17
ret
Function at 0x428b99
Capabilities:
Resolve dns

Disassembly:
push 0x10
mov eax, 0x5c0b6a
call fcn.0058ec5e
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], edi
push dword [ebp + 8]
call fcn.0040fdb0
mov dword [ebp - 4], edi
xor ebx, ebx
inc ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
push str.AVUpdServer
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
cmp esi, edi
je 0x428c26
mov dword [ebp - 0x14], edi
cmp dword [ebp - 0x14], 0x64
jae 0x428c26
mov eax, dword [ebp - 0x14]
shl eax, 2
mov ecx, dword [esi + 0xc]
cmp dword [eax + ecx], edi
je 0x428c21
mov eax, dword [eax + ecx]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00408474
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], edi
je 0x428c16
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
call fcn.0042c5a5
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.004084b5
inc dword [ebp - 0x14]
jmp 0x428bd5
mov dword [ebp - 4], edi
mov eax, dword [ebp + 8]
call fcn.0058ed03
ret

Function at 0x428c3c
Capabilities:
Check if file exists

Disassembly:
push 0x10
mov eax, 0x5c0b2e
call fcn.0058ec2b
lea esi, [ebp - 0x1c]
call fcn.0048e9e0
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
call fcn.00487d50
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
mov dword [esp], 0x688a08
push ecx
mov ecx, eax
call fcn.004116ea
pop ecx
pop ecx
mov byte [ebp - 4], 2
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne bl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.004085f6
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004085f6
or dword [ebp - 4], 0xffffffff
call fcn.0048ea20
mov al, bl
call fcn.0058ed03
ret
Function at 0x428caf
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x5b85f0
call fcn.0058ec2b
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], 2
call fcn.004081d8
mov dword [ebp - 4], ebx
xor eax, eax
lea ecx, [ebp - 0x1c]
push ecx
inc eax
push eax
push ebx
push str.SYSTEMCurrentControlSetControlSession_Manager
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x428d8c
lea eax, [ebp - 0x18]
push eax
xor edi, edi
mov eax, esi
call fcn.0042b255
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
mov ebx, str.BootExecute
push ebx
push dword [ebp - 0x1c]
call esi
cmp eax, 0xea
jne 0x428d50
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
inc ecx
call fcn.0042b275
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
call fcn.0042b255
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push ebx
push dword [ebp - 0x1c]
call esi
test eax, eax
jne 0x428d7b
cmp dword [ebp - 0x10], 1
je 0x428d66
cmp dword [ebp - 0x10], 2
je 0x428d66
cmp dword [ebp - 0x10], 7
jne 0x428d7b
mov eax, dword [ebp - 0x18]
test eax, eax
jbe 0x428d7b
shr eax, 1
mov ecx, eax
mov eax, dword [ebp - 0x14]
call fcn.0042b275
jmp 0x428d83
mov eax, dword [ebp - 0x14]
call fcn.00408353
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
call fcn.0058ed03
ret
Function at 0x428eed
Capabilities:
Modify service

Disassembly:
push 0xffffffffffffffff
push 0x5b475f
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6c56f8]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor esi, esi
inc esi
cmp dword [0x6c438c], esi
mov edi, str.Helper::runManualService
jl 0x428f33
push str.WD_service_stage1
push edi
push esi
call fcn.00540a02
add esp, 0xc
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x28], ebx
cmp ebp, ebx
je 0x42903c
cmp dword [0x6c438c], esi
jl 0x428f6b
push str.WD_service_stage2
push edi
push esi
call fcn.00540a02
add esp, 0xc
push 3
push str.TrustedInstaller
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [esp + 0x1c], esi
mov byte [esp + 0x28], 1
cmp esi, ebx
je 0x429006
cmp dword [0x6c438c], 1
jl 0x428fa1
push str.WD_service_stage3
push edi
push 1
call fcn.00540a02
add esp, 0xc
or dword [esp + 0x14], 0xffffffff
lea eax, [esp + 0x14]
push eax
push esi
call fcn.00428e86
pop ecx
pop ecx
test al, al
je 0x429026
cmp dword [esp + 0x14], 4
jne 0x429026
cmp dword [0x6c438c], 1
jl 0x428fd7
push str.WD_service_stage4
push edi
push 1
call fcn.00540a02
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push 3
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x429026
cmp dword [0x6c438c], 1
jl 0x429026
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WD_ChangeServiceConfig__i
jmp 0x42901b
cmp dword [0x6c438c], 1
jl 0x429026
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WD_OpenService__i
push edi
push 1
call fcn.00540a02
add esp, 0x10
call fcn.00422402
mov byte [esp + 0x28], bl
cmp esi, ebx
je 0x42905a
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x42905a
cmp dword [0x6c438c], esi
jl 0x42905a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WD_OpenSCManager__i
push edi
push esi
call fcn.00540a02
add esp, 0x10
or dword [esp + 0x28], 0xffffffff
cmp ebp, ebx
je 0x42906a
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x429ca2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x6c56f8]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0x10
mov eax, 0x5bd43c
call fcn.0058ec2b
xor ebx, ebx
mov dword [ebp - 4], ebx
push edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
call fcn.0040855f
mov dword [ebp - 4], ebx
xor esi, esi
push str.SoftwareSMRHomeGlobal
lea eax, [ebp - 0x10]
inc esi
push eax
mov dword [ebp - 0x18], esi
call fcn.004085b5
mov dword [ebp - 4], esi
xor eax, eax
push 0x7fe
mov word [ebp], ax
lea eax, [ebp + 2]
push ebx
push eax
call fcn.00586790
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp]
push eax
push ebx
push str.Renewed
push dword [ebp - 0x10]
mov dword [ebp - 0x14], 0x400
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x429d46
mov eax, dword [ebp - 0x14]
shr eax, 1
xor ecx, ecx
mov word [ebp + eax*2], cx
lea eax, [ebp]
push eax
push edi
call fcn.0040865a
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10]
call fcn.004085f6
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.00581268
add ebp, 0x804
leave
ret