joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40645f
Capabilities:
Create directory

Disassembly:
mov eax, 0x4dffbe
call fcn.004b1eac
sub esp, 0x14
push ebx
push esi
push edi
mov ecx, 0x51c275
call fcn.004b1bc6
lea ecx, [ebp - 0x20]
call fcn.00404195
and dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x4e5b84
call fcn.00404074
push ecx
mov ecx, esp
mov byte [ebp - 4], 1
push dword [ebp + 8]
mov dword [ebp - 0x10], ecx
call fcn.00403f4a
mov byte [ebp - 4], 0
call fcn.0040821e
mov edi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
sub edi, dword [ebp - 0x20]
add esp, 0xc
sar edi, 2
call fcn.00404035
xor esi, esi
mov byte [ebp - 4], 2
test edi, edi
je 0x406541
mov eax, dword [ebp - 0x20]
lea ebx, [eax + esi*4]
test esi, esi
jne 0x40651b
push 1
mov ecx, ebx
call fcn.00405201
cmp ax, 0x3a
jne 0x406541
push 0x4e5994
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.00404709
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00404949
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 2
lea ecx, [ecx - 0x10]
call fcn.00405cf0
jmp 0x40653c
push ebx
lea ecx, [ebp - 0x10]
call fcn.00404949
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x4e5994
lea ecx, [ebp - 0x10]
call fcn.0040496e
inc esi
cmp esi, edi
jb 0x4064d2
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00405cf0
lea ecx, [ebp - 0x20]
call fcn.00408b85
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x406563
Capabilities:
Create shortcut via ishelllink

Disassembly:
mov eax, 0x4dffff
call fcn.004b1eac
sub esp, 0x10
push ebx
xor ebx, ebx
mov ecx, 0x51c275
inc ebx
mov dword [ebp - 4], ebx
call fcn.004b1bc6
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x10]
push eax
push 0x4f2930
push ebx
push 0
push 0x4f29a0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x40669f
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x18]
push edx
push 0x4f2950
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
jne 0x406696
lea eax, [ebp - 0x14]
push eax
call fcn.00406da7
pop ecx
push 0x2e
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.00405ec8
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0xc]
call fcn.00405682
mov ecx, dword [ebp - 0x10]
push dword [eax]
mov byte [ebp - 4], 3
push ecx
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 2
lea ecx, [ecx - 0x10]
call fcn.00405cf0
push 0x5c
lea ecx, [ebp + 8]
call fcn.00405ec8
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 8]
call fcn.00405682
mov ecx, dword [ebp - 0x10]
push dword [eax]
mov byte [ebp - 4], 4
push ecx
mov edx, dword [ecx]
call dword [edx + 0x24]
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 2
lea ecx, [ecx - 0x10]
call fcn.00405cf0
mov eax, dword [ebp - 0x10]
push dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004046a7
add esp, 0xc
mov ecx, dword [ebp - 0x18]
push ebx
push dword [eax]
mov byte [ebp - 4], 5
mov edx, dword [ecx]
push ecx
call dword [edx + 0x18]
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00405cf0
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], bl
lea ecx, [ecx - 0x10]
call fcn.00405cf0
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x4066a1
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
xor bl, bl
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00405cf0
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00405cf0
mov ecx, dword [ebp - 0xc]
mov al, bl
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4068bf
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4e0073
call fcn.004b1eac
sub esp, 0x4c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor esi, esi
mov ecx, 0x51c275
mov dword [ebp - 4], esi
call fcn.004b1bc6
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push eax
mov edi, 0x4e5b44
mov dword [ebp - 0x14], 1
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.00404771
add esp, 0xc
push edi
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
call fcn.00404709
add esp, 0xc
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.00404532
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00405cf0
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00405cf0
cmp byte [ebp + 0x1c], 0
mov ecx, 0x440
push 0x40
pop eax
cmovne eax, ecx
mov dword [ebp - 0x58], 0x3c
mov dword [ebp - 0x54], eax
xorps xmm0, xmm0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0xc]
push 5
pop ecx
movlpd qword [ebp - 0x34], xmm0
mov eax, dword [eax]
mov dword [ebp - 0x44], eax
xor eax, eax
cmp byte [ebp + 0x18], al
movlpd qword [ebp - 0x2c], xmm0
cmovne eax, ecx
movlpd qword [ebp - 0x24], xmm0
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x38], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x4069a6
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov dword [esi], eax
cmp byte [ebp + 0x10], 0
je 0x4069c5
push dword [ebp + 0x20]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov esi, dword [ebp - 0x14]
jmp 0x4069d3
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00405cf0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x4069ef
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4e00cc
call fcn.004b1eac
sub esp, 0x28
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor eax, eax
mov ecx, 0x51c275
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
call fcn.004b1bc6
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 0x406a44
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0x41
mov eax, dword [ebp + 0x18]
lea ecx, [eax - 0x10]
call fcn.00405cf0
xor al, al
jmp 0x406bca
mov edi, dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x406a61
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0x42
jmp 0x406bbc
push edi
lea eax, [ebp - 0x2c]
push 0x4e5fc4
push eax
call fcn.00404771
add esp, 0xc
push str.___o_
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
call fcn.00404709
add esp, 0xc
push dword [ebp + 0x10]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004046a7
add esp, 0xc
push str.___aoa
push eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 4
push eax
call fcn.00404709
add esp, 0xc
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 5
push ecx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004046a7
add esp, 0xc
push 0x4e5fa0
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 6
push eax
call fcn.00404709
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00405cf0
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00405cf0
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00405cf0
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00405cf0
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0xc
lea ecx, [ecx - 0x10]
call fcn.00405cf0
mov ecx, dword [ebp + 0x14]
call fcn.00405571
test al, al
jne 0x406b76
push dword [ebp + 0x14]
lea eax, [ebp - 0x34]
push str.__p_
push eax
call fcn.00404771
add esp, 0xc
push 0x4e5b44
push eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 0xd
push eax
call fcn.00404709
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xe
call fcn.00404949
mov ecx, dword [ebp - 0x30]
lea ecx, [ecx - 0x10]
call fcn.00405cf0
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0xc
call fcn.00405cf0
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.00403f4a
call fcn.004068bf
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.00405cf0
jmp 0x406bb9
mov byte [ebp - 0x18], bl
mov ecx, dword [ebp + 0x18]
add ecx, 0xfffffff0
call fcn.00405cf0
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 0x406bd9
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4dff5b
call fcn.004b1eac
sub esp, 0x20c
push esi
xor esi, esi
mov ecx, 0x51c275
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
call fcn.004b1bc6
push 0x208
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.004b5210
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.004040c9
mov ecx, dword [ebp + 8]
push 0x4e5994
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], 1
call fcn.0040496e
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x406e11
Capabilities:
Get session user name

Disassembly:
mov eax, 0x4e0192
call fcn.004b1eac
sub esp, 0x224
push esi
xor esi, esi
mov ecx, 0x51c275
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], esi
call fcn.004b1bc6
push dword [ebp + 8]
call fcn.004075db
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 0x406f3e
lea eax, [ebp - 0x10]
push eax
call fcn.00406f4f
mov dword [esp], 0x208
lea eax, [ebp - 0x230]
push esi
push eax
mov dword [ebp - 4], edi
call fcn.004b5210
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.004040c9
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 2
cmp dword [eax - 0xc], esi
je 0x406f28
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], esi
je 0x406f28
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00404686
pop ecx
pop ecx
test al, al
je 0x406f28
lea eax, [ebp - 0x18]
push eax
call fcn.0040765b
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.004046a7
push str.AppDataRoamingMicrosoftInternet_ExplorerQuick_LaunchUser_PinnedTaskBar_
push eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 4
push eax
call fcn.00404709
add esp, 0x1c
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 5
call fcn.004045ce
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00405cf0
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00405cf0
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00405cf0
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00405cf0
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00405cf0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x406f4f
Capabilities:
Get session information
Get session user name

Disassembly:
mov eax, 0x4e01bc
call fcn.004b1eac
sub esp, 0x20
push ebx
xor ebx, ebx
mov ecx, 0x51c275
mov dword [ebp - 0x18], ebx
call fcn.004b1bc6
mov ecx, dword [ebp + 8]
call fcn.00404035
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 0x406fec
mov edx, dword [ebp - 0x1c]
mov eax, ebx
cmp dword [ebp - 0x10], eax
jbe 0x406fbc
lea ecx, [edx + 8]
cmp dword [ecx], ebx
je 0x406fad
inc eax
add ecx, 0xc
cmp eax, dword [ebp - 0x10]
jb 0x406f9e
jmp 0x406fbc
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 0x406fec
push dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
call fcn.00404645
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 0x4073fe
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4e0140
call fcn.004b1eac
sub esp, 0x10c
and dword [ebp - 0x10], 0
mov ecx, 0x51c275
push esi
push edi
call fcn.004b1bc6
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.00404035
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.004b5210
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.004045ef
push 2
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.00405682
push eax
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.004045ce
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00405cf0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x40749d
Capabilities:
Get session user name

Disassembly:
mov eax, 0x4e0192
call fcn.004b1eac
sub esp, 0x224
push esi
xor esi, esi
mov ecx, 0x51c275
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], esi
call fcn.004b1bc6
push dword [ebp + 8]
call fcn.00406bd9
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 0x4075ca
lea eax, [ebp - 0x10]
push eax
call fcn.00406f4f
mov dword [esp], 0x208
lea eax, [ebp - 0x230]
push esi
push eax
mov dword [ebp - 4], edi
call fcn.004b5210
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.004040c9
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 2
cmp dword [eax - 0xc], esi
je 0x4075b4
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], esi
je 0x4075b4
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00404686
pop ecx
pop ecx
test al, al
je 0x4075b4
lea eax, [ebp - 0x18]
push eax
call fcn.0040765b
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.004046a7
push 0x4e5afc
push eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 4
push eax
call fcn.00404709
add esp, 0x1c
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 5
call fcn.004045ce
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00405cf0
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx - 0x10]
call fcn.00405cf0
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00405cf0
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00405cf0
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00405cf0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x4075db
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4dff5b
call fcn.004b1eac
sub esp, 0x20c
push esi
xor esi, esi
mov ecx, 0x51c275
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
call fcn.004b1bc6
push 0x208
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.004b5210
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.004040c9
mov ecx, dword [ebp + 8]
push str.MicrosoftInternet_ExplorerQuick_LaunchUser_PinnedTaskBar_
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], 1
call fcn.0040496e
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x407738
Capabilities:
Check if file exists
Create service
Persist via windows service
Start service

Disassembly:
mov eax, 0x4e0216
call fcn.004b1eac
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
mov ecx, 0x51c275
inc edi
mov dword [ebp - 4], edi
call fcn.004b1bc6
push 0x4e5994
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00404709
push str.GptChromeService.exe
push eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push eax
call fcn.00404709
add esp, 0x18
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 4
lea ecx, [ecx - 0x10]
call fcn.00405cf0
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40780c
push 0xf003f
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x40780c
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x18]
call fcn.00403f4a
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 0x4077ed
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x407804
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.00405cf0
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00405cf0
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00405cf0
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00405cf0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4078d6
Capabilities:
Get session user name

Disassembly:
mov eax, 0x4e004a
call fcn.004b1eac
sub esp, 0x214
mov ecx, 0x51c275
push esi
call fcn.004b1bc6
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x40799e
lea eax, [ebp - 0x14]
push eax
call fcn.00406f4f
xor esi, esi
mov dword [esp], 0x208
lea eax, [ebp - 0x220]
mov dword [ebp - 4], esi
push esi
push eax
call fcn.004b5210
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.004040c9
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], esi
je 0x407988
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], esi
je 0x40798b
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00404686
pop ecx
pop ecx
test al, al
je 0x407988
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00405cf0
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00405cf0
mov al, 1
jmp 0x4079a0
mov eax, dword [ebp - 0x10]
lea ecx, [eax - 0x10]
call fcn.00405cf0
mov eax, dword [ebp - 0x14]
lea ecx, [eax - 0x10]
call fcn.00405cf0
xor al, al
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x407a9b
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov ecx, 0x51c275
push ebx
push edi
call fcn.004b1bc6
xor ebx, ebx
or edi, 0xffffffff
inc ebx
cmp dword [ebp + 8], 0
je 0x407b61
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 0x407b44
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x208]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407b14
test dx, dx
je 0x407b10
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407b14
add eax, 4
add ecx, 4
test dx, dx
jne 0x407aee
xor eax, eax
jmp 0x407b18
sbb eax, eax
or eax, ebx
test eax, eax
jne 0x407b37
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 0x407b4a
lea eax, [ebp - 0x22c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x407ae5
jmp 0x407b4c
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 0x407b63
xor al, al
pop edi
pop ebx
leave
ret

Function at 0x407c15
Capabilities:
Create shortcut via ishelllink

Disassembly:
mov eax, 0x4e0261
call fcn.004b1eac
sub esp, 0xc
push ebx
mov ecx, 0x51c275
call fcn.004b1bc6
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push 0x4f2930
push 1
push ebx
push 0x4f29a0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x407cf1
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x14], ebx
push 0x4f2950
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
js 0x407ce8
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 0x407cdf
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ecx, edi
push 0x5c
call fcn.00405ec8
push eax
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.00405682
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.00405cf0
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 0x407d06
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4e027a
call fcn.004b1eac
push ecx
push edi
xor edi, edi
mov ecx, 0x51c275
mov dword [ebp - 4], edi
call fcn.004b1bc6
call fcn.00405589
push edi
test al, al
je 0x407d59
sub esp, 0x18
mov ecx, esp
push dword [ebp + 8]
call fcn.00402f3d
call fcn.0040c439
add esp, 0x1c
push 1
sub esp, 0x18
mov ecx, esp
push dword [ebp + 8]
call fcn.00402f3d
call fcn.0040c439
add esp, 0x1c
jmp 0x407d7c
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.00405cf0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
leave
ret

Function at 0x407d94
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4e02ac
call fcn.004b1eac
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x10], ebx
mov ecx, 0x51c275
mov dword [ebp - 4], 1
call fcn.004b1bc6
lea ecx, [ebp + 0x10]
call fcn.004052b7
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.00402315
mov ecx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x10], 1
call fcn.00402986
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00405cf0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret