joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41fe8c
Capabilities:
Set file attributes

Disassembly:
push 0x10
mov eax, 0x5b189d
call fcn.00580e6b
push dword [ebp + 0xc]
and dword [ebp - 0x10], 0
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
call esi
mov dword [ebp - 0x14], eax
push 0x677b98
lea eax, [ebp - 0x1c]
push eax
call fcn.00408561
and dword [ebp - 4], 0
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
xor ebx, ebx
push ecx
inc ebx
mov ecx, eax
mov dword [ebp - 0x10], ebx
call fcn.0040fc53
pop ecx
pop ecx
mov dword [ebp - 4], ebx
mov eax, dword [eax]
push 3
pop edi
push dword [ebp + 0xc]
mov dword [ebp - 0x10], edi
push eax
call esi
test eax, eax
jne 0x41fef1
xor esi, esi
cmp dword [ebp - 0x14], esi
je 0x41fef3
mov esi, ebx
and dword [ebp - 4], 0
mov dword [ebp - 0x10], edi
and dword [ebp - 0x10], 0xfffffffd
lea ecx, [ebp - 0x18]
call fcn.004085a2
or dword [ebp - 4], 0xffffffff
test byte [ebp - 0x10], bl
je 0x41ff1b
and dword [ebp - 0x10], 0xfffffffe
lea ecx, [ebp - 0x1c]
call fcn.004085a2
test esi, esi
je 0x41ff2e
cmp dword [0x6af38c], ebx
jl 0x41ff49
push str.CLEAN:_Processing_file:_attributes_changed_successfully
jmp 0x41ff3b
cmp dword [0x6af38c], ebx
jl 0x41ff49
push str.CLEAN:_Processing_file:_attributes_failed_to_change
push str.Helper::virSetFileAttributes
push ebx
call fcn.00532962
add esp, 0xc
test esi, esi
setne al
call fcn.00580f43
ret
Function at 0x42019a
Capabilities:
Get storage device properties

Disassembly:
push 0x60
mov eax, 0x5b1846
call fcn.00580ed4
xor ebx, ebx
push str..X:
lea esi, [ebp - 0x3c]
mov byte [ebp - 0x65], bl
call fcn.004081bb
mov dword [ebp - 4], ebx
push 4
pop edi
mov eax, esi
call fcn.004260b2
mov ecx, dword [ebp + 8]
mov cx, word [ecx]
mov word [eax], cx
cmp dword [ebp - 0x24], 8
mov eax, dword [ebp - 0x38]
jae 0x4201da
lea eax, [ebp - 0x38]
push ebx
push ebx
push 3
push ebx
push 7
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x420241
xor eax, eax
push 9
pop ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x18], bl
lea edi, [ebp - 0x17]
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
push ebx
mov dword [ebp - 0x64], ebx
lea edi, [ebp - 0x60]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x6c]
push eax
push 0x28
lea eax, [ebp - 0x64]
push eax
push 0xc
lea eax, [ebp - 0x20]
push eax
push 0x2d1400
push esi
mov dword [ebp - 0x6c], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x42023a
cmp dword [ebp - 0x48], 7
sete byte [ebp - 0x65]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea esi, [ebp - 0x3c]
call fcn.00409c0f
mov al, byte [ebp - 0x65]
call fcn.00580f57
ret

Function at 0x420947
Capabilities:
Get session user name

Disassembly:
push 0x2c
mov eax, 0x5b1819
call fcn.00580ed4
mov eax, dword [ebp + 8]
and dword [ebp - 0x38], 0
mov dword [ebp - 0x30], eax
mov eax, 0x101
push eax
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x34], eax
call fcn.0042b336
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.004260b2
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
lea eax, [ebp - 0x2c]
je 0x4209b2
call fcn.004260b2
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x420998
sub eax, edx
sar eax, 1
mov ecx, eax
lea eax, [ebp - 0x2c]
call fcn.004260d2
jmp 0x4209b7
call fcn.004082ff
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4209c3
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x30]
call fcn.00408561
mov dword [ebp - 0x38], esi
mov byte [ebp - 4], 0
push 0
push esi
lea esi, [ebp - 0x2c]
call fcn.00409c0f
mov eax, dword [ebp - 0x30]
call fcn.00580f57
ret
Function at 0x4209e7
Capabilities:
Get hostname

Disassembly:
push 0x2c
mov eax, 0x5b17d3
call fcn.00580ed4
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.0042b336
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.004260b2
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
lea eax, [ebp - 0x2c]
je 0x420a50
call fcn.004260b2
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x420a36
sub eax, edx
sar eax, 1
mov ecx, eax
lea eax, [ebp - 0x2c]
call fcn.004260d2
jmp 0x420a55
call fcn.004082ff
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x420a61
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x30]
call fcn.00408561
mov dword [ebp - 0x38], esi
mov byte [ebp - 4], 0
push 0
push esi
lea esi, [ebp - 0x2c]
call fcn.00409c0f
mov eax, dword [ebp - 0x30]
call fcn.00580f57
ret

Function at 0x420b9e
Capabilities:
Delete registry value

Disassembly:
push 8
mov eax, 0x5a869d
call fcn.00580e6b
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 0x420bdd
cmp byte [0x6c8ed0], bl
je 0x420bd6
cmp byte [ebp + 0x18], bl
je 0x420bd6
mov edi, 0x20119
jmp 0x420bf4
mov edi, 0x20019
jmp 0x420bf4
cmp byte [0x6c8ed0], bl
je 0x420bef
mov edi, 0x20106
cmp byte [ebp + 0x18], bl
jne 0x420bf4
mov edi, 0x20006
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], ebx
je 0x420c07
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 0x420c32
push dword [ebp + 0x10]
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
cmp eax, ebx
jne 0x420c32
mov byte [ebp - 0xd], 1
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], ebx
je 0x420c40
push dword [ebp - 0x14]
call esi
mov byte [ebp - 4], bl
lea ecx, [ebp + 0xc]
call fcn.004085a2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.004085a2
mov al, byte [ebp - 0xd]
call fcn.00580f43
ret
Function at 0x420c60
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push 0x14
mov eax, 0x5ae881
call fcn.00580e6b
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x18], ebx
cmp byte [ebp + 0x10], bl
je 0x420c9b
cmp byte [0x6c8ed0], bl
je 0x420c92
cmp byte [ebp + 0x14], bl
je 0x420c92
mov dword [ebp - 0x14], 0x20119
jmp 0x420cb6
mov dword [ebp - 0x14], 0x20019
jmp 0x420cb6
cmp byte [0x6c8ed0], bl
je 0x420caf
mov dword [ebp - 0x14], 0x20106
cmp byte [ebp + 0x14], bl
jne 0x420cb6
mov dword [ebp - 0x14], 0x20006
lea eax, [ebp - 0x1c]
push eax
call fcn.0040850b
mov byte [ebp - 4], 1
lea eax, [ebp + 0x10]
push eax
call fcn.0040850b
mov byte [ebp - 4], 2
push 0x5c
lea esi, [ebp + 0xc]
call fcn.004263d2
mov esi, eax
cmp esi, 0xffffffff
jne 0x420cee
lea eax, [ebp + 0xc]
lea edi, [ebp + 0x10]
call fcn.004085c5
jmp 0x420d43
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
call fcn.004265d2
mov byte [ebp - 4], 3
lea edi, [ebp - 0x1c]
call fcn.004085c5
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.004085a2
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.00426576
mov byte [ebp - 4], 4
lea edi, [ebp + 0x10]
call fcn.004085c5
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.004085a2
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 0x420d8e
push dword [ebp + 0x10]
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
cmp eax, ebx
je 0x420d81
cmp eax, 2
jne 0x420d85
push dword [ebp + 0x10]
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
test eax, eax
jne 0x420d85
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.004085a2
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call fcn.004085a2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004085a2
mov al, byte [ebp - 0xd]
call fcn.00580f43
ret
Function at 0x42132a
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x6b06f8]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0xc
mov eax, 0x5b178a
call fcn.00580e6b
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.004211c2
pop ecx
pop ecx
lea eax, [ebp - 0x10]
push eax
push 0x20019
push ebx
lea esi, [ebp + 0x810]
call fcn.004087dc
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4213f3
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 0x4213ea
push 0x400
lea eax, [ebp]
push eax
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x4213e4
push ecx
mov eax, esp
mov dword [ebp - 0x18], esp
lea ecx, [ebp]
push ecx
push eax
call fcn.00408561
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0042132a
pop ecx
pop ecx
inc esi
cmp esi, dword [ebp - 0x14]
jb 0x4213ac
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x810]
call fcn.004085a2
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.0057372c
add ebp, 0x804
leave
ret
Function at 0x421425
Capabilities:
Delete registry key

Disassembly:
push 0x10
mov eax, 0x5b4b1a
call fcn.00580e6b
and dword [ebp - 4], 0
and dword [ebp - 0x14], 0
cmp byte [ebp + 0x10], 0
mov byte [ebp - 0xd], 0
je 0x421460
cmp byte [0x6c8ed0], 0
je 0x421459
cmp byte [ebp + 0x14], 0
je 0x421459
mov ebx, 0x20119
jmp 0x421479
mov ebx, 0x20019
jmp 0x421479
cmp byte [0x6c8ed0], 0
je 0x421474
cmp byte [ebp + 0x14], 0
mov ebx, 0x20106
jne 0x421479
mov ebx, 0x20006
lea eax, [ebp - 0x18]
push eax
call fcn.0040850b
mov byte [ebp - 4], 1
lea eax, [ebp + 0x10]
push eax
call fcn.0040850b
mov byte [ebp - 4], 2
push 0x5c
lea esi, [ebp + 0xc]
call fcn.004263d2
mov esi, eax
cmp esi, 0xffffffff
jne 0x4214b1
lea eax, [ebp + 0xc]
lea edi, [ebp + 0x10]
call fcn.004085c5
jmp 0x421506
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
call fcn.004265d2
mov byte [ebp - 4], 3
lea edi, [ebp - 0x18]
call fcn.004085c5
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.004085a2
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.00426576
mov byte [ebp - 4], 4
lea edi, [ebp + 0x10]
call fcn.004085c5
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.004085a2
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 0x42156d
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
xor bl, bl
jmp 0x421554
cmp eax, 5
jne 0x421564
test bl, bl
jne 0x421564
push ecx
mov eax, esp
mov dword [ebp - 0x1c], esp
lea ecx, [ebp + 0x10]
push ecx
push eax
call fcn.00408532
mov byte [ebp - 4], 5
push dword [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0042132a
pop ecx
pop ecx
inc bl
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x421527
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.004085a2
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004085a2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004085a2
mov al, byte [ebp - 0xd]
call fcn.00580f43
ret
Function at 0x422320
Capabilities:
Get file version info

Disassembly:
push 0x34
mov eax, 0x5ae83e
call fcn.00580e6b
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x24], esi
push dword [ebp + 8]
call fcn.0040850b
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 0x42247f
lea ebx, [ebp - 0x20]
call fcn.0042694e
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 0x422473
push dword [esi]
lea eax, [ebp - 0x40]
push eax
call fcn.004224b9
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 0x422466
lea eax, [ebp - 0x14]
push eax
call fcn.0040850b
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 0x4223cd
call fcn.0057451a
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 0x4223e1
call fcn.0057451a
movzx eax, word [edi + 2]
push 0x677f64
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.00417833
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 0x42242c
cmp dword [ebp - 0x1c], edi
je 0x42242c
cmp dword [ebp - 0x18], edi
ja 0x42244c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.004085a2
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x34]
inc ebx
sar eax, 2
cmp ebx, eax
jb 0x4223a9
jmp 0x422466
push dword [ebp - 0x18]
mov eax, dword [ebp + 8]
push dword [ebp - 0x1c]
call fcn.0040ce50
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.004085a2
mov byte [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
call fcn.00448a80
mov byte [ebp - 4], 0
lea ebx, [ebp - 0x20]
call fcn.00426993
mov eax, dword [ebp + 8]
call fcn.00580f43
ret
Function at 0x422c32
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b498c
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x6b06f8]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x6b06f8]
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 0x422d5d
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 0x422d53
cmp dword [esp + 0x10], ebx
je 0x422d53
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x422d53
inc eax
push eax
lea esi, [esp + 0x28]
call fcn.0042b336
mov dword [esp + 0x50], ebx
xor esi, esi
cmp dword [esp + 0x10], ebx
jbe 0x422d42
push dword [esp + 0x38]
xor edi, edi
lea eax, [esp + 0x28]
call fcn.004260b2
push eax
push esi
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, ebx
jne 0x422d3b
lea eax, [esp + 0x24]
call fcn.004260b2
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00408561
mov byte [esp + 0x50], 1
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x24]
call fcn.0041395f
mov byte [esp + 0x50], bl
lea ecx, [esp + 0x1c]
call fcn.004085a2
inc esi
cmp esi, dword [esp + 0x10]
jb 0x422ce8
or dword [esp + 0x50], 0xffffffff
push ebx
push 1
lea esi, [esp + 0x2c]
call fcn.00409c0f
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.0057372c
mov esp, ebp
pop ebp
ret

Function at 0x422d7b
Capabilities:
Query environment variable

Disassembly:
push 0x48
mov eax, 0x5b1533
call fcn.00580ed4
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.004081bb
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.0040850b
mov dword [ebp - 0x54], esi
push edi
lea esi, [ebp - 0x2c]
call fcn.0042b336
mov byte [ebp - 4], 2
push edi
xor edi, edi
mov eax, esi
call fcn.004260b2
push eax
push dword [ebp - 0x50]
call ebx
test eax, eax
je 0x422df9
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x422df0
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x4c]
call fcn.00408606
mov byte [ebp - 4], 1
push 0
push 1
lea esi, [ebp - 0x2c]
call fcn.00409c0f
mov byte [ebp - 4], 0
push 0
push 1
lea esi, [ebp - 0x48]
call fcn.00409c0f
mov eax, dword [ebp - 0x4c]
call fcn.00580f57
ret
Function at 0x423301
Capabilities:
Check if file exists

Disassembly:
push 0x10
mov eax, 0x5b491f
call fcn.00580e6b
lea esi, [ebp - 0x1c]
call fcn.00476200
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
call fcn.0046f870
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
mov dword [esp], 0x678008
push ecx
mov ecx, eax
call fcn.0040fc53
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.004085a2
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004085a2
or dword [ebp - 4], 0xffffffff
call fcn.00476240
mov al, bl
call fcn.00580f43
ret

Function at 0x423374
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x5aba7a
call fcn.00580e6b
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.00408184
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 0x423451
lea eax, [ebp - 0x18]
push eax
xor edi, edi
mov eax, esi
call fcn.004260b2
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 0x423415
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
inc ecx
call fcn.004260d2
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
call fcn.004260b2
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push ebx
push dword [ebp - 0x1c]
call esi
test eax, eax
jne 0x423440
cmp dword [ebp - 0x10], 1
je 0x42342b
cmp dword [ebp - 0x10], 2
je 0x42342b
cmp dword [ebp - 0x10], 7
jne 0x423440
mov eax, dword [ebp - 0x18]
test eax, eax
jbe 0x423440
shr eax, 1
mov ecx, eax
mov eax, dword [ebp - 0x14]
call fcn.004260d2
jmp 0x423448
mov eax, dword [ebp - 0x14]
call fcn.004082ff
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
call fcn.00580f43
ret
Function at 0x4235af
Capabilities:
Modify service

Disassembly:
push 0xffffffffffffffff
push 0x5a6b7c
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6b06f8]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor esi, esi
inc esi
cmp dword [0x6af38c], esi
mov edi, str.Helper::runManualService
jl 0x4235f5
push str.WD_service_stage1
push edi
push esi
call fcn.00532962
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 0x4236fe
cmp dword [0x6af38c], esi
jl 0x42362d
push str.WD_service_stage2
push edi
push esi
call fcn.00532962
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 0x4236c8
cmp dword [0x6af38c], 1
jl 0x423663
push str.WD_service_stage3
push edi
push 1
call fcn.00532962
add esp, 0xc
or dword [esp + 0x14], 0xffffffff
lea eax, [esp + 0x14]
push eax
push esi
call fcn.0042354b
pop ecx
pop ecx
test al, al
je 0x4236e8
cmp dword [esp + 0x14], 4
jne 0x4236e8
cmp dword [0x6af38c], 1
jl 0x423699
push str.WD_service_stage4
push edi
push 1
call fcn.00532962
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 0x4236e8
cmp dword [0x6af38c], 1
jl 0x4236e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WD_ChangeServiceConfig__i
jmp 0x4236dd
cmp dword [0x6af38c], 1
jl 0x4236e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WD_OpenService__i
push edi
push 1
call fcn.00532962
add esp, 0x10
call fcn.0041d9a5
mov byte [esp + 0x28], bl
cmp esi, ebx
je 0x42371c
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x42371c
cmp dword [0x6af38c], esi
jl 0x42371c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WD_OpenSCManager__i
push edi
push esi
call fcn.00532962
add esp, 0x10
or dword [esp + 0x28], 0xffffffff
cmp ebp, ebx
je 0x42372c
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 0x424364
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push 0x58
mov eax, 0x5ae791
call fcn.00580e6b
xor esi, esi
inc esi
mov dword [ebp - 4], esi
push 0x44
pop edi
push edi
xor ebx, ebx
lea eax, [ebp - 0x64]
push ebx
push eax
call fcn.005783f0
mov dword [ebp - 0x64], edi
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov word [ebp - 0x34], ax
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x38], esi
call fcn.0040850b
mov byte [ebp - 4], 2
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push str.__s___s
call fcn.00417833
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea esi, [ebp - 0x10]
call fcn.004087dc
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
xor esi, esi
test eax, eax
jne 0x424410
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.004085a2
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
call fcn.004085a2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004085a2
mov eax, esi
call fcn.00580f43
ret
inc esi
jmp 0x4243e5