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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dd523
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x64106c]
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], 0x624de0
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.00465b20
add esp, 4
test al, al
je 0x465e70
mov eax, dword [ebp - 0x80]
xor esi, esi
mov dword [ebp - 0x9c], eax
test eax, eax
jle 0x465e1a
lea edi, [ebx + 4]
lea ecx, [ebp - 0x70]
call fcn.004645d0
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.00464b80
test edi, edi
je 0x465dfb
cmp byte [ebp - 0x28], 0
je 0x465dfb
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
setne al
test al, al
je 0x465dfb
cmp byte [ebx + 0x48], 0
je 0x465dfb
push edi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
setne al
test al, al
je 0x465dfb
push edi
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
test al, al
je 0x465dfb
mov eax, dword [ebp - 0x98]
and eax, 0x1f01ff
cmp eax, 0x1f01ff
jne 0x465dfb
movzx eax, byte [ebp - 0x71]
and al, 0xef
je 0x465e64
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0
call fcn.00464810
inc esi
cmp esi, dword [ebp - 0x9c]
jl 0x465d61
mov edi, dword [ebp - 0xa0]
sub esp, 8
lea ecx, [ebp - 0x94]
push ebx
call fcn.00464e30
test al, al
je 0x465e70
test edi, edi
je 0x465e70
push 0
lea ecx, [ebp - 0x94]
call fcn.00464c30
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 0x465e70
xor esi, esi
jmp 0x465e8e
lea ecx, [ebp - 0x70]
call fcn.00464810
xor esi, esi
jmp 0x465e8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x465e89
jle 0x465e8e
movzx esi, si
or esi, 0x80070000
jmp 0x465e8e
mov esi, 0x80004005
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x94], 0x624de0
test ecx, ecx
je 0x465ec2
mov edx, dword [ebp - 0x80]
call fcn.00468080
push dword [ebp - 0x84]
call fcn.00512cbd
add esp, 4
mov dword [ebp - 0x84], 0
push dword [ebp - 0x90]
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
call fcn.00512cbd
add esp, 4
mov dword [ebp - 0x90], 0
lea ecx, [ebp - 0x84]
call fcn.00467d00
push dword [ebp - 0x90]
mov dword [ebp - 0x94], 0x624e38
call fcn.00512cbd
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.004c2233
mov esp, ebp
pop ebp
ret
Function at 0x468200
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push ecx
mov esi, ecx
call fcn.0044a250
add esp, 4
test al, al
je 0x46821b
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00468130
test al, al
jne 0x468214
push ebx
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x46825b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x4682b0
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 0x468283
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 0x46829a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x46829c
movzx ebx, bx
or ebx, 0x80070000
jmp 0x46829c
xor ebx, ebx
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x4682ad
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 0x4682c0
Capabilities:
Modify service

Disassembly:
push ebx
push esi
push ecx
mov ebx, edx
mov esi, ecx
call fcn.00468380
add esp, 4
test al, al
je 0x4682d8
pop esi
xor eax, eax
pop ebx
ret
mov ecx, esi
call fcn.00468600
test eax, eax
js 0x468376
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x468318
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x468373
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 0x468346
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 0x46835d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x46835f
movzx ebx, bx
or ebx, 0x80070000
jmp 0x46835f
xor ebx, ebx
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x468370
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 0x468500
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x64106c]
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 0x46854f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4685eb
movzx eax, ax
pop edi
or eax, 0x80070000
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c2233
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 0x468577
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x4685d4
movzx ebx, bx
or ebx, 0x80070000
jmp 0x4685d4
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 0x4685a6
mov eax, dword [ebp - 0x1c]
cmp eax, 4
je 0x4685d2
cmp eax, 2
je 0x4685d2
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4685d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x4685ca
movzx ebx, bx
or ebx, 0x80070000
cmp ebx, 0x80070420
jne 0x4685d4
xor ebx, ebx
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x4685e5
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.004c2233
mov esp, ebp
pop ebp
ret
Function at 0x468600
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x64106c]
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 0x468652
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x468725
movzx eax, ax
pop edi
or eax, 0x80070000
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c2233
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 0x4686b6
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 0x4686cd
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x46870c
cmp eax, 3
je 0x4686d0
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 0x4686cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x46870e
movzx ebx, bx
or ebx, 0x80070000
jmp 0x46870e
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x46870c
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
cmp dword [ebp - 0x1c], 1
mov edi, eax
je 0x468709
call ebx
sub eax, edi
cmp eax, 0x1f40
jae 0x468735
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 0x4686e5
mov edi, dword [ebp - 0x24]
xor ebx, ebx
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x46871f
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.004c2233
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1c], 1
je 0x468709
mov edi, dword [ebp - 0x24]
mov ebx, 0x800705b4
jmp 0x46870e

Function at 0x468750
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 0x468786
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4687de
pop edi
movzx eax, ax
pop esi
or eax, 0x80070000
pop ebx
pop ebp
ret
push 0
push 0
push 0x624e80
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 0x4687d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x4687d9
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 0x469ef0
Capabilities:
Get common file path

Disassembly:
push 0x244
mov eax, 0x5dde26
call fcn.004c2889
mov esi, ecx
cmp byte [esi + 0x69], 0
je 0x469fb1
lea ebx, [esi + 0xb4]
push 0
mov edx, ebx
call fcn.00473aa8
pop ecx
test al, al
jne 0x469f26
xor al, al
jmp 0x46a0c4
push ebx
lea ecx, [ebp - 0x250]
call fcn.00404f90
lea edx, [ebp - 0x250]
lea ecx, [ebp - 0x248]
call fcn.004215b0
and dword [ebp - 4], 0
lea ecx, [ebp - 0x250]
push eax
call fcn.00404f90
push 0
lea edx, [ebp - 0x250]
lea ecx, [ebp - 0x230]
call fcn.00419480
pop ecx
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 2
call fcn.004051e0
add esi, 0x18
cmp dword [esi + 0x14], 8
jb 0x469f81
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.00405040
jmp 0x469f1f
lea eax, [ebp - 0x248]
push eax
call fcn.00469e1f
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 3
push 0
push eax
call fcn.0050b930
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.00404f90
push 0
lea edx, [ebp - 0x250]
lea ecx, [ebp - 0x230]
call fcn.00419480
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.00405040
cmp byte [esi + 0x68], 0
mov ecx, 0x622c28
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.00405a20
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.004050d0
push ecx
lea eax, [esi + 0x18]
mov byte [ebp - 4], 5
push eax
lea edx, [ebp - 0x230]
mov ecx, esi
call fcn.00473f2c
pop ecx
pop ecx
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 3
mov bl, al
call fcn.00405040
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.004051e0
mov al, bl
call fcn.004c2833
ret
Function at 0x46cbcd
Capabilities:
Enumerate processes

Disassembly:
push 0x264
mov eax, 0x5de62f
call fcn.004c2889
mov edi, ecx
push 0x22c
xor ebx, ebx
lea eax, [ebp - 0x240]
push ebx
push eax
call fcn.0050b930
add esp, 0xc
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x46cc0c
xor al, al
jmp 0x46cc9c
lea eax, [ebp - 0x240]
mov dword [ebp - 0x240], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x46cc8f
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x270]
call fcn.004050d0
push 0xfde9
lea edx, [ebp - 0x270]
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x258]
call fcn.00419560
pop ecx
lea eax, [ebp - 0x258]
mov byte [ebp - 4], 1
push eax
mov ecx, edi
call fcn.00422f40
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], bl
call fcn.004051e0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x270]
call fcn.00405040
lea eax, [ebp - 0x240]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x46cc26
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
call fcn.004c2833
ret

Function at 0x46cdf5
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 0x46ce0c
mov ecx, edi
call fcn.00416690
cmp dword [esi + 0x14], 8
jb 0x46ce14
mov esi, dword [esi]
push 0x40
push 0x624fac
push esi
call fcn.005149f5
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x46ce31
xor al, al
jmp 0x46ceba
push ebx
mov ebx, 0x10000
push ebx
call fcn.004c24ba
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.005144b1
add esp, 0x14
jmp 0x46ce9a
test edi, edi
je 0x46ce76
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.004060c0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
sub eax, ecx
cmp eax, ebx
jb 0x46ceab
push esi
push 0x10000
push 1
push dword [ebp - 8]
add ecx, ebx
mov dword [ebp - 4], ecx
call fcn.005144b1
add esp, 0x10
mov ebx, eax
test ebx, ebx
jne 0x46ce5a
push esi
call fcn.005134ff
pop ecx
test eax, eax
je 0x46ceaf
mov byte [ebp - 0xc], 0
push esi
call fcn.00513787
mov al, byte [ebp - 0xc]
pop ecx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46cec0
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x64106c]
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 0x46cef3
mov eax, dword [eax]
push eax
push 0x624fbc
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0x104
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.0050b930
add esp, 0xc
cmp dword [esi + 0x14], 0x10
jb 0x46cf1c
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.00405250
cmp dword [edi + 0x14], 0x10
jb 0x46cf47
mov esi, dword [edi]
jmp 0x46cf49
mov esi, edi
lea eax, [ebp - 0x10c]
mov ecx, edi
push eax
call fcn.00411f10
xor edx, edx
mov ecx, dword [eax]
sub ecx, esi
cmp esi, dword [eax]
cmova ecx, edx
test ecx, ecx
je 0x46cf74
cmp byte [esi], 0x2f
jne 0x46cf6e
mov byte [esi], 0x5c
inc esi
inc ebx
cmp ebx, ecx
jne 0x46cf66
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c2233
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x64106c]
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 0x46cfb8
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.0050b930
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x46cfe2
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.004050d0
cmp dword [esi + 0x14], 8
mov byte [ebp - 0x20d], 0x5c
mov byte [ebp - 0x20e], 0x2f
jb 0x46d01b
mov edi, dword [esi]
jmp 0x46d01d
mov edi, esi
lea eax, [ebp - 0x214]
mov ecx, esi
push eax
call fcn.004059f0
lea edx, [ebp - 0x20d]
lea ecx, [ebp - 0x20e]
push dword [eax]
push edi
call fcn.0046e4eb
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004c2233
mov esp, ebp
pop ebp
ret
Function at 0x46d18c
Capabilities:
Enumerate services

Disassembly:
push 0x5c
mov eax, 0x5de6b3
call fcn.004c2889
mov ebx, ecx
push 4
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x46d28d
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.00406850
and dword [ebp - 4], 0
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x34]
call fcn.00411310
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 0x46d220
cmp eax, 0xea
je 0x46d1d5
cmp eax, 0x7a
je 0x46d1d5
jmp 0x46d281
cmp dword [ebp - 0x20], 0x10
lea esi, [ebp - 0x34]
cmovae esi, dword [ebp - 0x34]
xor edi, edi
cmp dword [ebp - 0x18], edi
jle 0x46d281
push dword [esi]
lea ecx, [ebp - 0x68]
call fcn.004050d0
push 0xfde9
lea edx, [ebp - 0x68]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.00419560
pop ecx
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 2
push eax
mov ecx, ebx
call fcn.00422f40
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.004051e0
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0
call fcn.00405040
inc edi
lea esi, [esi + 0x24]
cmp edi, dword [ebp - 0x18]
jl 0x46d232
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004051e0
call fcn.004c2833
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x64106c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x46d3fa
mov eax, dword [esi]
jmp 0x46d3fc
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x46d4a8
push ebx
push edi
mov ebx, 0x208
lea eax, [ebp - 0x20c]
push ebx
xor edi, edi
push edi
push eax
call fcn.0050b930
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x46d42f
mov eax, dword [esi]
jmp 0x46d431
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.0050b930
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push edi
push 0x624fe8
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
cmp dword [esi + 0x14], 8
jb 0x46d484
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 0x46d4a6
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.004c2233
mov esp, ebp
pop ebp
ret
Function at 0x46d4b7
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x64106c]
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 0x46d56b
push ebx
call fcn.004c24ba
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 0x46d564
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x61fec8
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x46d564
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + 0xa]
movzx edx, word [eax + 8]
cmp ecx, 5
jne 0x46d540
test edx, edx
je 0x46d564
push 0x61e440
jmp 0x46d570
cmp ecx, 6
jne 0x46d558
cmp edx, 2
mov eax, 0x61e670
mov ecx, 0x624fec
cmovae eax, ecx
push eax
jmp 0x46d570
cmp ecx, 0xa
jne 0x46d564
push 0x625024
jmp 0x46d570
push edi
call fcn.004c2285
pop ecx
push 0x625028
mov ecx, esi
call fcn.004050d0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c2233
mov esp, ebp
pop ebp
ret
Function at 0x46fdb9
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 [0x64106c]
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 0x46fdf4
mov byte [ebp - 0x229], 0
jmp 0x46fdfb
mov byte [ebp - 0x229], 1
cmp byte [ebp - 0x229], bl
je 0x46fe71
push 0x208
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.0050b930
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, 0x6178b4
lea ecx, [ebp - 0x228]
call fcn.0046b3e0
pop ecx
cmp dword [eax + 0x14], 8
jb 0x46fe43
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.00405040
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46fe71
xor al, al
jmp 0x46fe7a
push ebx
call dword [sym.imp.USER32.dll_BlockInput]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004c2233
mov esp, ebp
pop ebp
ret