joyce8/EMBER2024-capa huggingface dataset:
Function at 0x466420
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dd713
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x64006c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xa0], edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x90], 0
mov byte [ebp - 0x8c], 0
mov dword [ebp - 0x88], 2
mov dword [ebp - 0x94], 0x624e68
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
lea eax, [ebp - 0x94]
mov dword [ebp - 4], 0
push eax
call fcn.00466290
add esp, 4
test al, al
je 0x4665e0
mov eax, dword [ebp - 0x80]
xor esi, esi
mov dword [ebp - 0x9c], eax
test eax, eax
jle 0x46658a
lea edi, [ebx + 4]
lea ecx, [ebp - 0x70]
call fcn.00464d40
sub esp, 8
mov byte [ebp - 4], 1
lea eax, [ebp - 0x71]
mov dword [ebp - 0x98], 0
mov byte [ebp - 0x71], 0
push eax
push ecx
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
lea ecx, [ebp - 0x94]
call fcn.004652f0
test edi, edi
je 0x46656b
cmp byte [ebp - 0x28], 0
je 0x46656b
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
setne al
test al, al
je 0x46656b
cmp byte [ebx + 0x48], 0
je 0x46656b
push edi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
setne al
test al, al
je 0x46656b
push edi
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
test al, al
je 0x46656b
mov eax, dword [ebp - 0x98]
and eax, 0x1f01ff
cmp eax, 0x1f01ff
jne 0x46656b
movzx eax, byte [ebp - 0x71]
and al, 0xef
je 0x4665d4
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0
call fcn.00464f80
inc esi
cmp esi, dword [ebp - 0x9c]
jl 0x4664d1
mov edi, dword [ebp - 0xa0]
sub esp, 8
lea ecx, [ebp - 0x94]
push ebx
call fcn.004655a0
test al, al
je 0x4665e0
test edi, edi
je 0x4665e0
push 0
lea ecx, [ebp - 0x94]
call fcn.004653a0
push eax
push 0
push 0
push 4
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
sete al
test al, al
je 0x4665e0
xor esi, esi
jmp 0x4665fe
lea ecx, [ebp - 0x70]
call fcn.00464f80
xor esi, esi
jmp 0x4665fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x4665f9
jle 0x4665fe
movzx esi, si
or esi, 0x80070000
jmp 0x4665fe
mov esi, 0x80004005
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x94], 0x624e68
test ecx, ecx
je 0x466632
mov edx, dword [ebp - 0x80]
call fcn.004687f0
push dword [ebp - 0x84]
call fcn.00512dcd
add esp, 4
mov dword [ebp - 0x84], 0
push dword [ebp - 0x90]
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
call fcn.00512dcd
add esp, 4
mov dword [ebp - 0x90], 0
lea ecx, [ebp - 0x84]
call fcn.00468470
push dword [ebp - 0x90]
mov dword [ebp - 0x94], 0x624ec0
call fcn.00512dcd
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c2344
mov esp, ebp
pop ebp
ret
Function at 0x468970
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push ecx
mov esi, ecx
call fcn.0044a920
add esp, 4
test al, al
je 0x46898b
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.004688a0
test al, al
jne 0x468984
push ebx
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x4689cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x468a20
movzx ebx, bx
or ebx, 0x80070000
pop edi
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push 2
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x4689f3
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
push eax
push 3
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x468a0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x468a0c
movzx ebx, bx
or ebx, 0x80070000
jmp 0x468a0c
xor ebx, ebx
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x468a1d
push esi
call eax
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call eax
pop edi
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x468a30
Capabilities:
Modify service

Disassembly:
push ebx
push esi
push ecx
mov ebx, edx
mov esi, ecx
call fcn.00468af0
add esp, 4
test al, al
je 0x468a48
pop esi
xor eax, eax
pop ebx
ret
mov ecx, esi
call fcn.00468d70
test eax, eax
js 0x468ae6
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x468a88
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x468ae3
movzx ebx, bx
pop edi
or ebx, 0x80070000
pop esi
mov eax, ebx
pop ebx
ret
push 2
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x468ab6
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push 1
push 2
push 0x10
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x468acd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x468acf
movzx ebx, bx
or ebx, 0x80070000
jmp 0x468acf
xor ebx, ebx
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x468ae0
push esi
call eax
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x468c70
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x64006c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0xf003f
push 0
push 0
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x468cbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x468d5b
movzx eax, ax
pop edi
or eax, 0x80070000
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c2344
mov esp, ebp
pop ebp
ret
push ebx
push 0x14
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x468ce7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x468d44
movzx ebx, bx
or ebx, 0x80070000
jmp 0x468d44
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x1c], xmm0
movq qword [ebp - 0xc], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x468d16
mov eax, dword [ebp - 0x1c]
cmp eax, 4
je 0x468d42
cmp eax, 2
je 0x468d42
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x468d42
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x468d3a
movzx ebx, bx
or ebx, 0x80070000
cmp ebx, 0x80070420
jne 0x468d44
xor ebx, ebx
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x468d55
push esi
call eax
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call eax
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004c2344
mov esp, ebp
pop ebp
ret
Function at 0x468d70
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x64006c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0xf003f
push 0
push 0
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
jne 0x468dc2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x468e95
movzx eax, ax
pop edi
or eax, 0x80070000
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c2344
mov esp, ebp
pop ebp
ret
push ebx
push 0x24
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x468e26
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x1c], xmm0
movq qword [ebp - 0xc], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x468e3d
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x468e7c
cmp eax, 3
je 0x468e40
lea eax, [ebp - 0x20]
mov dword [ebp - 8], 0
push eax
xorps xmm0, xmm0
push 1
push esi
movups xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x468e3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x468e7e
movzx ebx, bx
or ebx, 0x80070000
jmp 0x468e7e
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x468e7c
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
cmp dword [ebp - 0x1c], 1
mov edi, eax
je 0x468e79
call ebx
sub eax, edi
cmp eax, 0x1f40
jae 0x468ea5
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x1c], 1
jne 0x468e55
mov edi, dword [ebp - 0x24]
xor ebx, ebx
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x468e8f
push esi
call eax
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call eax
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004c2344
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1c], 1
je 0x468e79
mov edi, dword [ebp - 0x24]
mov ebx, 0x800705b4
jmp 0x468e7e

Function at 0x468ec0
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
mov edi, edx
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x468ef6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x468f4e
pop edi
movzx eax, ax
pop esi
or eax, 0x80070000
pop ebx
pop ebp
ret
push 0
push 0
push 0x624f08
push 0
push 0
push dword [ebp + 8]
push 1
push 2
push dword [ebp + 0xc]
push 0xf01ff
push edi
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x468f44
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x468f49
movzx edi, di
push esi
or edi, 0x80070000
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
push eax
xor edi, edi
call ebx
push esi
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x46a01d
Capabilities:
Get common file path

Disassembly:
push 0x244
mov eax, 0x5dde1c
call fcn.004c299a
mov esi, ecx
cmp byte [esi + 0x69], 0
je 0x46a0de
lea ebx, [esi + 0xb4]
push 0
mov edx, ebx
call fcn.00473bd3
pop ecx
test al, al
jne 0x46a053
xor al, al
jmp 0x46a1f1
push ebx
lea ecx, [ebp - 0x250]
call fcn.00405430
lea edx, [ebp - 0x250]
lea ecx, [ebp - 0x248]
call fcn.00421aa0
and dword [ebp - 4], 0
lea ecx, [ebp - 0x250]
push eax
call fcn.00405430
push 0
lea edx, [ebp - 0x250]
lea ecx, [ebp - 0x230]
call fcn.00419950
pop ecx
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 2
call fcn.00405680
add esi, 0x18
cmp dword [esi + 0x14], 8
jb 0x46a0ae
mov esi, dword [esi]
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push esi
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.004054e0
jmp 0x46a04c
lea eax, [ebp - 0x248]
push eax
call fcn.00469f4c
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 3
push 0
push eax
call fcn.0050ba40
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x250]
call fcn.00405430
push 0
lea edx, [ebp - 0x250]
lea ecx, [ebp - 0x230]
call fcn.00419950
pop ecx
mov byte [ebp - 4], 4
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
cmovae eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 3
call fcn.004054e0
cmp byte [esi + 0x68], 0
mov ecx, str..exe
mov eax, str..dll
cmove eax, ecx
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 0x9c]
call fcn.00405ec0
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00405570
push ecx
lea eax, [esi + 0x18]
mov byte [ebp - 4], 5
push eax
lea edx, [ebp - 0x230]
mov ecx, esi
call fcn.00474057
pop ecx
pop ecx
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 3
mov bl, al
call fcn.004054e0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.00405680
mov al, bl
call fcn.004c2944
ret
Function at 0x46ccf8
Capabilities:
Enumerate processes

Disassembly:
push 0x264
mov eax, 0x5de625
call fcn.004c299a
mov edi, ecx
push 0x22c
xor ebx, ebx
lea eax, [ebp - 0x240]
push ebx
push eax
call fcn.0050ba40
add esp, 0xc
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x46cd37
xor al, al
jmp 0x46cdc7
lea eax, [ebp - 0x240]
mov dword [ebp - 0x240], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x46cdba
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x270]
call fcn.00405570
push 0xfde9
lea edx, [ebp - 0x270]
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x258]
call fcn.00419a30
pop ecx
lea eax, [ebp - 0x258]
mov byte [ebp - 4], 1
push eax
mov ecx, edi
call fcn.00423430
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], bl
call fcn.00405680
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x270]
call fcn.004054e0
lea eax, [ebp - 0x240]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x46cd51
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
call fcn.004c2944
ret

Function at 0x46cf20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, edx
mov esi, ecx
test edi, edi
je 0x46cf37
mov ecx, edi
call fcn.00416b60
cmp dword [esi + 0x14], 8
jb 0x46cf3f
mov esi, dword [esi]
push 0x40
push 0x624fd0
push esi
call fcn.00514b05
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x46cf5c
xor al, al
jmp 0x46cfe5
push ebx
mov ebx, 0x10000
push ebx
call fcn.004c25cb
and dword [ebp - 4], 0
mov ecx, eax
push esi
xor eax, eax
mov dword [ebp - 8], ecx
inc eax
push ebx
push eax
push ecx
mov dword [ebp - 0xc], eax
call fcn.005145c1
add esp, 0x14
jmp 0x46cfc5
test edi, edi
je 0x46cfa1
mov ecx, dword [ebp + 8]
mov eax, ebx
sub ecx, dword [ebp - 4]
cmp ecx, ebx
cmovb eax, ecx
mov ecx, edi
push eax
push dword [ebp - 8]
call fcn.00406570
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
sub eax, ecx
cmp eax, ebx
jb 0x46cfd6
push esi
push 0x10000
push 1
push dword [ebp - 8]
add ecx, ebx
mov dword [ebp - 4], ecx
call fcn.005145c1
add esp, 0x10
mov ebx, eax
test ebx, ebx
jne 0x46cf85
push esi
call fcn.0051360f
pop ecx
test eax, eax
je 0x46cfda
mov byte [ebp - 0xc], 0
push esi
call fcn.00513897
mov al, byte [ebp - 0xc]
pop ecx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46cfeb
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x64006c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x10c], edi
mov esi, edx
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 0x110], ebx
jb 0x46d01e
mov eax, dword [eax]
push eax
push 0x624f98
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0x104
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.0050ba40
add esp, 0xc
cmp dword [esi + 0x14], 0x10
jb 0x46d047
mov esi, dword [esi]
push 0x104
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x108]
mov ecx, edi
push eax
call fcn.004056f0
cmp dword [edi + 0x14], 0x10
jb 0x46d072
mov esi, dword [edi]
jmp 0x46d074
mov esi, edi
lea eax, [ebp - 0x10c]
mov ecx, edi
push eax
call fcn.004123d0
xor edx, edx
mov ecx, dword [eax]
sub ecx, esi
cmp esi, dword [eax]
cmova ecx, edx
test ecx, ecx
je 0x46d09f
cmp byte [esi], 0x2f
jne 0x46d099
mov byte [esi], 0x5c
inc esi
inc ebx
cmp ebx, ecx
jne 0x46d091
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c2344
mov esp, ebp
pop ebp
ret

Function at 0x46d0b2
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x64006c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x218], 0
push esi
mov esi, ecx
mov dword [ebp - 0x214], esi
cmp dword [eax + 0x14], 8
push edi
mov edi, edx
jb 0x46d0e3
mov eax, dword [eax]
push eax
push str.install_path
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0050ba40
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x46d10d
mov edi, dword [edi]
push 0x104
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00405570
cmp dword [esi + 0x14], 8
mov byte [ebp - 0x20d], 0x5c
mov byte [ebp - 0x20e], 0x2f
jb 0x46d146
mov edi, dword [esi]
jmp 0x46d148
mov edi, esi
lea eax, [ebp - 0x214]
mov ecx, esi
push eax
call fcn.00405e90
lea edx, [ebp - 0x20d]
lea ecx, [ebp - 0x20e]
push dword [eax]
push edi
call fcn.0046e616
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004c2344
mov esp, ebp
pop ebp
ret
Function at 0x46d2b7
Capabilities:
Enumerate services

Disassembly:
push 0x5c
mov eax, 0x5de6a9
call fcn.004c299a
mov ebx, ecx
push 4
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x46d3b8
xor eax, eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x20], eax
push eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0xf
call fcn.00406d00
and dword [ebp - 4], 0
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x34]
call fcn.004117d0
cmp dword [ebp - 0x20], 0x10
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 0x24]
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
push 1
push 0x3b
push edi
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x46d34b
cmp eax, 0xea
je 0x46d300
cmp eax, 0x7a
je 0x46d300
jmp 0x46d3ac
cmp dword [ebp - 0x20], 0x10
lea esi, [ebp - 0x34]
cmovae esi, dword [ebp - 0x34]
xor edi, edi
cmp dword [ebp - 0x18], edi
jle 0x46d3ac
push dword [esi]
lea ecx, [ebp - 0x68]
call fcn.00405570
push 0xfde9
lea edx, [ebp - 0x68]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.00419a30
pop ecx
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 2
push eax
mov ecx, ebx
call fcn.00423430
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.00405680
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0
call fcn.004054e0
inc edi
lea esi, [esi + 0x24]
cmp edi, dword [ebp - 0x18]
jl 0x46d35d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00405680
call fcn.004c2944
ret

Function at 0x46d505
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x64006c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x46d525
mov eax, dword [esi]
jmp 0x46d527
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x46d5d3
push ebx
push edi
mov ebx, 0x208
lea eax, [ebp - 0x20c]
push ebx
xor edi, edi
push edi
push eax
call fcn.0050ba40
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x46d55a
mov eax, dword [esi]
jmp 0x46d55c
mov eax, esi
push 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push ebx
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.0050ba40
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push edi
push 0x625008
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
cmp dword [esi + 0x14], 8
jb 0x46d5af
mov esi, dword [esi]
push 1
lea eax, [ebp - 0x414]
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
call esi
test eax, eax
je 0x46d5d1
push 4
push edi
lea eax, [ebp - 0x414]
push eax
call esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004c2344
mov esp, ebp
pop ebp
ret
Function at 0x46d5e2
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x64006c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
push 0
mov esi, ecx
push str.kernel32.dll
mov dword [ebp - 8], esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x46d696
push ebx
call fcn.004c25cb
pop ecx
mov edi, eax
xor eax, eax
push edi
push ebx
push eax
push str.kernel32.dll
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x46d68f
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x61feb4
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x46d68f
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + 0xa]
movzx edx, word [eax + 8]
cmp ecx, 5
jne 0x46d66b
test edx, edx
je 0x46d68f
push 0x61e400
jmp 0x46d69b
cmp ecx, 6
jne 0x46d683
cmp edx, 2
mov eax, 0x61e638
mov ecx, 0x62500c
cmovae eax, ecx
push eax
jmp 0x46d69b
cmp ecx, 0xa
jne 0x46d68f
push str.342
jmp 0x46d69b
push edi
call fcn.004c2396
pop ecx
push 0x625004
mov ecx, esi
call fcn.00405570
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c2344
mov esp, ebp
pop ebp
ret
Function at 0x46fee4
Capabilities:
Check for peb beingdebugged flag
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x64006c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 1
call dword [sym.imp.USER32.dll_BlockInput]
xor ebx, ebx
mov byte [ebp - 0x229], bl
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
test eax, eax
jne 0x46ff1f
mov byte [ebp - 0x229], 0
jmp 0x46ff26
mov byte [ebp - 0x229], 1
cmp byte [ebp - 0x229], bl
je 0x46ff9c
push 0x208
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.0050ba40
add esp, 0xc
lea eax, [ebp - 0x210]
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xa
mov edx, 0x617874
lea ecx, [ebp - 0x228]
call fcn.0046b50d
pop ecx
cmp dword [eax + 0x14], 8
jb 0x46ff6e
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x228]
call fcn.004054e0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46ff9c
xor al, al
jmp 0x46ffa5
push ebx
call dword [sym.imp.USER32.dll_BlockInput]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004c2344
mov esp, ebp
pop ebp
ret