joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406b0f
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x522cc8
call fcn.004f70e4
sub esp, 0x28
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor eax, eax
mov ecx, 0x562275
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
call fcn.004f6dfd
mov eax, dword [ebp + 8]
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x406b64
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0x41
mov eax, dword [ebp + 0x18]
lea ecx, [eax - 0x10]
call fcn.00405e10
xor al, al
jmp 0x406cea
mov edi, dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x406b81
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0x42
jmp 0x406cdc
push edi
lea eax, [ebp - 0x2c]
push 0x529fc4
push eax
call fcn.00404891
add esp, 0xc
push str.___o_
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
call fcn.00404829
add esp, 0xc
push dword [ebp + 0x10]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004047c7
add esp, 0xc
push str.___aoa
push eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 4
push eax
call fcn.00404829
add esp, 0xc
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 5
push ecx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004047c7
add esp, 0xc
push 0x529fa0
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 6
push eax
call fcn.00404829
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00405e10
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00405e10
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00405e10
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00405e10
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0xc
lea ecx, [ecx - 0x10]
call fcn.00405e10
mov ecx, dword [ebp + 0x14]
call fcn.00405691
test al, al
jne 0x406c96
push dword [ebp + 0x14]
lea eax, [ebp - 0x34]
push str.__p_
push eax
call fcn.00404891
add esp, 0xc
push 0x529b44
push eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 0xd
push eax
call fcn.00404829
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xe
call fcn.00404a69
mov ecx, dword [ebp - 0x30]
lea ecx, [ecx - 0x10]
call fcn.00405e10
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0xc
call fcn.00405e10
push 0xffffffffffffffff
push ebx
xor eax, eax
push eax
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
push ecx
mov ecx, esp
push dword [ebp + 8]
mov dword [ebp - 0x34], ecx
call fcn.0040406a
call fcn.004069df
mov ecx, eax
add esp, 0x1c
mov eax, dword [ebp + 0x1c]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00405e10
jmp 0x406cd9
mov byte [ebp - 0x18], bl
mov ecx, dword [ebp + 0x18]
add ecx, 0xfffffff0
call fcn.00405e10
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x406cf9
Capabilities:
Get common file path

Disassembly:
mov eax, 0x522b57
call fcn.004f70e4
sub esp, 0x20c
push esi
xor esi, esi
mov ecx, 0x562275
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
call fcn.004f6dfd
push 0x208
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.004fa2f0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push 0x1c
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
call fcn.004041e9
mov ecx, dword [ebp + 8]
push 0x529994
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], 1
call fcn.00404a8e
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x406f31
Capabilities:
Get session user name

Disassembly:
mov eax, 0x522d8e
call fcn.004f70e4
sub esp, 0x224
push esi
xor esi, esi
mov ecx, 0x562275
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], esi
call fcn.004f6dfd
push dword [ebp + 8]
call fcn.004076fb
pop ecx
xor edi, edi
mov dword [ebp - 4], esi
inc edi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x40705e
lea eax, [ebp - 0x10]
push eax
call fcn.0040706f
mov dword [esp], 0x208
lea eax, [ebp - 0x230]
push esi
push eax
mov dword [ebp - 4], edi
call fcn.004fa2f0
add esp, 0xc
mov dword [ebp - 0x20], 0x104
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x14]
call fcn.004041e9
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 2
cmp dword [eax - 0xc], esi
je 0x407048
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], esi
je 0x407048
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004047a6
pop ecx
pop ecx
test al, al
je 0x407048
lea eax, [ebp - 0x18]
push eax
call fcn.0040777b
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004047c7
push str.AppDataRoamingMicrosoftInternet_ExplorerQuick_LaunchUser_PinnedTaskBar_
push eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 4
push eax
call fcn.00404829
add esp, 0x1c
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 5
call fcn.004046ee
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00405e10
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00405e10
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00405e10
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00405e10
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00405e10
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x40706f
Capabilities:
Get session information
Get session user name

Disassembly:
mov eax, 0x522db8
call fcn.004f70e4
sub esp, 0x20
push ebx
xor ebx, ebx
mov ecx, 0x562275
mov dword [ebp - 0x18], ebx
call fcn.004f6dfd
mov ecx, dword [ebp + 8]
call fcn.00404155
lea eax, [ebp - 0x10]
mov dword [ebp - 4], ebx
push eax
xor ecx, ecx
lea eax, [ebp - 0x1c]
push eax
inc ecx
push ecx
push ebx
push ebx
mov dword [ebp - 0x18], ecx
call sub.WTSAPI32.dll_WTSEnumerateSessionsW
test eax, eax
je 0x40710c
mov edx, dword [ebp - 0x1c]
mov eax, ebx
cmp dword [ebp - 0x10], eax
jbe 0x4070dc
lea ecx, [edx + 8]
cmp dword [ecx], ebx
je 0x4070cd
inc eax
add ecx, 0xc
cmp eax, dword [ebp - 0x10]
jb 0x4070be
jmp 0x4070dc
push esi
imul esi, eax, 0xc
push edi
lea edi, [ebp - 0x2c]
add esi, edx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
push edx
call sub.WTSAPI32.dll_WTSFreeMemory
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push 5
push dword [ebp - 0x2c]
push ebx
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x40710c
push dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
call fcn.00404765
push dword [ebp - 0x14]
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40751e
Capabilities:
Get common file path

Disassembly:
mov eax, 0x522d3c
call fcn.004f70e4
sub esp, 0x10c
and dword [ebp - 0x10], 0
mov ecx, 0x562275
push esi
push edi
call fcn.004f6dfd
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.00404155
and dword [ebp - 4], 0
lea eax, [ebp - 0x118]
mov edi, 0x104
mov dword [ebp - 0x10], 1
push edi
push 0
push eax
call fcn.004fa2f0
add esp, 0xc
lea eax, [ebp - 0x118]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x118]
mov ecx, esi
push eax
call fcn.0040470f
push 2
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.004057a2
push eax
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.004046ee
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00405e10
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4075bd
Capabilities:
Get session user name

Disassembly:
mov eax, 0x522d8e
call fcn.004f70e4
sub esp, 0x224
push esi
xor esi, esi
mov ecx, 0x562275
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], esi
call fcn.004f6dfd
push dword [ebp + 8]
call fcn.00406cf9
pop ecx
xor edi, edi
mov dword [ebp - 4], esi
inc edi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x4076ea
lea eax, [ebp - 0x10]
push eax
call fcn.0040706f
mov dword [esp], 0x208
lea eax, [ebp - 0x230]
push esi
push eax
mov dword [ebp - 4], edi
call fcn.004fa2f0
add esp, 0xc
mov dword [ebp - 0x20], 0x104
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x14]
call fcn.004041e9
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 2
cmp dword [eax - 0xc], esi
je 0x4076d4
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], esi
je 0x4076d4
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004047a6
pop ecx
pop ecx
test al, al
je 0x4076d4
lea eax, [ebp - 0x18]
push eax
call fcn.0040777b
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004047c7
push 0x529afc
push eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 4
push eax
call fcn.00404829
add esp, 0x1c
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 5
call fcn.004046ee
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00405e10
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00405e10
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00405e10
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00405e10
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00405e10
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x4076fb
Capabilities:
Get common file path

Disassembly:
mov eax, 0x522b57
call fcn.004f70e4
sub esp, 0x20c
push esi
xor esi, esi
mov ecx, 0x562275
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
call fcn.004f6dfd
push 0x208
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.004fa2f0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push 0x1a
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
call fcn.004041e9
mov ecx, dword [ebp + 8]
push str.MicrosoftInternet_ExplorerQuick_LaunchUser_PinnedTaskBar_
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], 1
call fcn.00404a8e
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x407858
Capabilities:
Check if file exists
Create service
Persist via windows service
Start service

Disassembly:
mov eax, 0x522e12
call fcn.004f70e4
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
mov ecx, 0x562275
inc edi
mov dword [ebp - 4], edi
call fcn.004f6dfd
push 0x529994
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00404829
push str.GptChromeService.exe
push eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push eax
call fcn.00404829
add esp, 0x18
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 4
lea ecx, [ecx - 0x10]
call fcn.00405e10
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40792c
push 0xf003f
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x40792c
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040406a
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
push edi
push 2
push 0x110
push 0xf01ff
push esi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
test edi, edi
jne 0x40790d
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x407924
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push ebx
call edi
lea ecx, [esi - 0x10]
call fcn.00405e10
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00405e10
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00405e10
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00405e10
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4079f6
Capabilities:
Get session user name

Disassembly:
mov eax, 0x522c46
call fcn.004f70e4
sub esp, 0x214
mov ecx, 0x562275
push esi
call fcn.004f6dfd
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x407abe
lea eax, [ebp - 0x14]
push eax
call fcn.0040706f
xor esi, esi
mov dword [esp], 0x208
lea eax, [ebp - 0x220]
mov dword [ebp - 4], esi
push esi
push eax
call fcn.004fa2f0
add esp, 0xc
mov dword [ebp - 0x18], 0x104
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x10]
call fcn.004041e9
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], esi
je 0x407aa8
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], esi
je 0x407aab
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004047a6
pop ecx
pop ecx
test al, al
je 0x407aa8
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00405e10
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00405e10
mov al, 1
jmp 0x407ac0
mov eax, dword [ebp - 0x10]
lea ecx, [eax - 0x10]
call fcn.00405e10
mov eax, dword [ebp - 0x14]
lea ecx, [eax - 0x10]
call fcn.00405e10
xor al, al
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x407bbb
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov ecx, 0x562275
push ebx
push edi
call fcn.004f6dfd
xor ebx, ebx
or edi, 0xffffffff
inc ebx
cmp dword [ebp + 8], 0
je 0x407c81
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x22c], 0x22c
lea eax, [ebp - 0x22c]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x407c64
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x208]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407c34
test dx, dx
je 0x407c30
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407c34
add eax, 4
add ecx, 4
test dx, dx
jne 0x407c0e
xor eax, eax
jmp 0x407c38
sbb eax, eax
or eax, ebx
test eax, eax
jne 0x407c57
mov edi, dword [ebp - 0x224]
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp eax, ebx
jne 0x407c6a
lea eax, [ebp - 0x22c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x407c05
jmp 0x407c6c
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
movzx eax, bl
cmp edi, 0xffffffff
pop esi
cmove eax, ecx
jmp 0x407c83
xor al, al
pop edi
pop ebx
leave
ret

Function at 0x407d35
Capabilities:
Create shortcut via ishelllink

Disassembly:
mov eax, 0x522e5d
call fcn.004f70e4
sub esp, 0xc
push ebx
mov ecx, 0x562275
call fcn.004f6dfd
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push 0x536990
push 1
push ebx
push 0x536a00
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x407e11
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x14], ebx
push 0x5369b0
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
js 0x407e08
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
push 2
mov edx, dword [ecx]
push dword [eax]
push ecx
call dword [edx + 0x14]
test eax, eax
js 0x407dff
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ecx, edi
push 0x5c
call fcn.00405fe8
push eax
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.004057a2
mov eax, dword [ebp - 0x10]
push dword [edi]
mov dword [ebp - 4], ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x10]
push ebx
push dword [edi]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x14]
push 1
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00405e10
pop edi
pop esi
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 0xc]
mov al, 1
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x407e26
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x522e76
call fcn.004f70e4
push ecx
push edi
xor edi, edi
mov ecx, 0x562275
mov dword [ebp - 4], edi
call fcn.004f6dfd
call fcn.004056a9
push edi
test al, al
je 0x407e79
sub esp, 0x18
mov ecx, esp
push dword [ebp + 8]
call fcn.0040305d
call fcn.0040c559
add esp, 0x1c
push 1
sub esp, 0x18
mov ecx, esp
push dword [ebp + 8]
call fcn.0040305d
call fcn.0040c559
add esp, 0x1c
jmp 0x407e9c
push edi
push edi
push dword [ebp + 8]
push str.taskbarunpin
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push edi
push edi
push edi
push dword [ebp + 8]
push str.taskbarpin
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00405e10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
leave
ret

Function at 0x407eb4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x522ea8
call fcn.004f70e4
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x10], ebx
mov ecx, 0x562275
mov dword [ebp - 4], 1
call fcn.004f6dfd
lea ecx, [ebp + 0x10]
call fcn.004053d7
push eax
movzx eax, word [ebp + 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
mov esi, eax
call fcn.00402435
mov ecx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x10], 1
call fcn.00402aa6
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00405e10
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40843d
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov ecx, 0x562275
push edi
call fcn.004f6dfd
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x4084a3
push esi
push 0xf01ff
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x408482
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4084a2
lea eax, [ebp - 0x1c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop esi
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00405e10
pop edi
leave
ret

Function at 0x4084b1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov ecx, 0x562275
push ebx
push edi
call fcn.004f6dfd
lea ecx, [ebp - 0x1c]
call fcn.00402435
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 3
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x408512
mov ecx, dword [ebp + 0xc]
push esi
mov dword [ebp - 4], ebx
mov esi, dword [ecx + 0x10]
call fcn.004029d0
push ebx
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
lea ecx, [ebp - 0x1c]
call fcn.00402a3c
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00405e10
pop edi
pop ebx
leave
ret

Function at 0x40854b
Capabilities:
Get common file path

Disassembly:
mov eax, 0x522b57
call fcn.004f70e4
sub esp, 0x804
push edi
xor edi, edi
mov ecx, 0x562275
mov dword [ebp - 0x10], edi
call fcn.004f6dfd
mov ecx, dword [ebp + 8]
call fcn.00404155
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 4], edi
push edi
push eax
mov dword [ebp - 0x10], 1
call fcn.004fa2f0
add esp, 0xc
lea eax, [ebp - 0x810]
push edi
push 0x10
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
pop edi
test eax, eax
je 0x4085c4
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x810]
push eax
call fcn.004061b6
mov ecx, dword [ebp + 8]
push 0x529994
call fcn.00404a8e
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret

Function at 0x4085d3
Capabilities:
Get common file path

Disassembly:
mov eax, 0x522b57
call fcn.004f70e4
sub esp, 0x804
push edi
xor edi, edi
mov ecx, 0x562275
mov dword [ebp - 0x10], edi
call fcn.004f6dfd
mov ecx, dword [ebp + 8]
call fcn.00404155
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 4], edi
push edi
push eax
mov dword [ebp - 0x10], 1
call fcn.004fa2f0
add esp, 0xc
lea eax, [ebp - 0x810]
push edi
push 0x19
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
pop edi
test eax, eax
je 0x40864c
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x810]
push eax
call fcn.004061b6
mov ecx, dword [ebp + 8]
push 0x529994
call fcn.00404a8e
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x40867a
Capabilities:
Get common file path

Disassembly:
mov eax, 0x522b57
call fcn.004f70e4
sub esp, 0x804
push edi
xor edi, edi
mov ecx, 0x562275
mov dword [ebp - 0x10], edi
call fcn.004f6dfd
mov ecx, dword [ebp + 8]
call fcn.00404155
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 4], edi
push edi
push eax
mov dword [ebp - 0x10], 1
call fcn.004fa2f0
add esp, 0xc
lea eax, [ebp - 0x810]
push edi
push 2
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
pop edi
test eax, eax
je 0x4086f3
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x810]
push eax
call fcn.004061b6
mov ecx, dword [ebp + 8]
push 0x529994
call fcn.00404a8e
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret

Function at 0x408702
Capabilities:
Get common file path

Disassembly:
mov eax, 0x522b70
call fcn.004f70e4
sub esp, 0x808
mov ecx, 0x562275
push esi
xor esi, esi
call fcn.004f6dfd
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x408734
push dword [ebp + 8]
call fcn.004085d3
pop ecx
jmp 0x40879c
lea ecx, [ebp - 0x10]
call fcn.00404155
push 0x800
lea eax, [ebp - 0x814]
mov dword [ebp - 4], esi
push esi
push eax
call fcn.004fa2f0
add esp, 0xc
lea eax, [ebp - 0x814]
push esi
push 0x10
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x408785
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x10]
call fcn.004061b6
push 0x529994
lea ecx, [ebp - 0x10]
call fcn.00404a8e
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0040406a
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00405e10
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x4087ac
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov ecx, 0x562275
call fcn.004f6dfd
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 2
push 0x40000000
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x408832
movzx eax, word [ebp + 0xc]
push edi
push dword [ebp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x40882a
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x40882a
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor edx, edx
movzx ebx, bl
inc edx
test eax, eax
cmovne ebx, edx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00405e10
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00405e10
pop esi
mov al, bl
pop ebx
leave
ret