joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408bb6
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov edi, dword [0x44a838]
cmp byte [edi + 0x6d], 0
je 0x408bd4
push dword [edi + 0x6e]
mov dword [edi + 0x72], 0xfffffffe
call dword [sym.imp.KERNEL32.DLL_SetEvent]
lea esi, [edi + 0x58]
mov byte [edi + 0x68], 1
call fcn.0040ae7d
push 0
push dword [edi + 4]
mov dword [edi + 0x69], eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
ret

Function at 0x409126
Capabilities:
Create process on windows

Disassembly:
push 5
xor eax, eax
push eax
push eax
push str.http:__go.gamenet.ru_a_19_221_inst
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [esi + 0x6e]
mov dword [esi + 0x72], 1
call dword [sym.imp.KERNEL32.DLL_SetEvent]
ret

Function at 0x40abd1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x43b05d
call fcn.00439f7c
push ecx
push ecx
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
xor edi, edi
mov dword [ebp - 0x14], eax
cmp eax, edi
je 0x40acd7
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, edi
je 0x40acd7
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov dword [ebp + 0xc], eax
cmp eax, edi
je 0x40acd7
push dword [ebp - 0x14]
push 2
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov esi, eax
cmp esi, edi
je 0x40acd7
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
cmp eax, edi
je 0x40acd7
push dword [ebp - 0x14]
push dword [ebp + 0xc]
push eax
call fcn.0040ef90
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov dword [ebx + 4], esi
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x10]
push eax
push edi
push esi
mov dword [ebp - 4], edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x40acc6
mov eax, dword [ebp - 0x10]
push 0x10
mov dword [ebp + 8], eax
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
cmp esi, edi
je 0x40aca6
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [ebp + 0xc], edi
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromStream]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
jmp 0x40aca8
xor esi, esi
mov dword [ebx], esi
cmp esi, edi
je 0x40acc6
mov eax, dword [esi + 8]
mov dword [esi + 8], edi
cmp eax, edi
je 0x40acc6
mov ecx, dword [ebx]
cmp ecx, edi
je 0x40acc4
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebx], edi
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
cmp eax, edi
je 0x40acd7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret 8
Function at 0x4025e0
Capabilities:
Encrypt data using aes mixcolumns step

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov ecx, 0x51c00c
call fcn.004c108d
mov byte [ebp - 1], 0
mov eax, 1
imul ecx, eax, 0
mov dl, byte [ebp + 0xc]
mov byte [ebp + ecx - 0xc], dl
mov dword [ebp - 8], 1
jmp 0x402618
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 4
jge 0x402653
mov ecx, dword [ebp - 8]
movzx edx, byte [ebp + ecx - 0xd]
shl edx, 1
mov eax, dword [ebp - 8]
mov byte [ebp + eax - 0xc], dl
mov ecx, dword [ebp - 8]
movzx edx, byte [ebp + ecx - 0xd]
and edx, 0x80
je 0x402651
mov eax, dword [ebp - 8]
movzx ecx, byte [ebp + eax - 0xc]
xor ecx, 0x1b
mov edx, dword [ebp - 8]
mov byte [ebp + edx - 0xc], cl
jmp 0x40260f
mov dword [ebp - 8], 0
jmp 0x402665
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 4
jge 0x40268c
movzx edx, byte [ebp + 8]
mov ecx, dword [ebp - 8]
sar edx, cl
and edx, 1
je 0x40268a
mov eax, dword [ebp - 8]
movzx ecx, byte [ebp + eax - 0xc]
movzx edx, byte [ebp - 1]
xor edx, ecx
mov byte [ebp - 1], dl
jmp 0x40265c
movzx eax, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 8
Function at 0x40b140
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov dword [ebp - 8], ecx
mov ecx, 0x51c22b
call fcn.004c108d
push 0
lea ecx, [ebp - 0x18]
call fcn.00407c50
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x18]
call fcn.0040abe0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40b19e
mov edx, dword [ebp - 4]
mov dword [ebp - 0x1c], edx
lea ecx, [ebp - 0x18]
call fcn.00407e30
mov eax, dword [ebp - 0x1c]
jmp 0x40b220
mov dword [ebp - 0xc], 0x100
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x22c]
push edx
push 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x40b1fe
lea ecx, [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x18]
call fcn.0040b140
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40b1f5
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
lea ecx, [ebp - 0x18]
call fcn.00407e30
mov eax, dword [ebp - 0x20]
jmp 0x40b220
mov dword [ebp - 0xc], 0x100
jmp 0x40b1a5
lea ecx, [ebp - 0x18]
call fcn.00408d50
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.00408fb0
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x18]
call fcn.00407e30
mov eax, dword [ebp - 0x24]
mov esp, ebp
pop ebp
ret 4

Function at 0x40b230
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
mov ecx, 0x51c229
call fcn.004c108d
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x40b299
push 0x4ec31c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40b266
mov eax, 1
jmp 0x40b2b7
push str.RegDeleteKeyTransactedW
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40b297
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 0xc]
jmp 0x40b2b7
jmp 0x40b2b2
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x40b2b2
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x40b2b7
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x40bfe0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e4e05
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov ecx, 0x51c276
call fcn.004c108d
lea ecx, [ebp - 0x40]
call fcn.00407b00
mov dword [ebp - 4], 0
lea eax, [ebp - 0x40]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push 0x4ebde8
call fcn.004073f0
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 1
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
mov edx, dword [ebp + 8]
push edx
call fcn.00407390
mov byte [ebp - 4], 0
call fcn.0040edb0
add esp, 0xc
lea ecx, [ebp - 0x40]
call fcn.004103d0
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x10]
call fcn.00407360
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], 0
jmp 0x40c073
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x1c]
jae 0x40c134
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp - 0x40]
call fcn.00408140
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x14], 0
jne 0x40c105
push 1
mov ecx, dword [ebp - 0x18]
call fcn.00409ba0
movzx eax, ax
cmp eax, 0x3a
je 0x40c0c6
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00407d20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00407dc0
jmp 0x40c14f
push 0x4ebdec
mov ecx, dword [ebp - 0x18]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.00408230
add esp, 0xc
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x10]
call fcn.004084a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00407d20
jmp 0x40c06a
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp - 0x10]
call fcn.004084a0
push 0
lea ecx, [ebp - 0x10]
call fcn.00408170
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x4ebdf0
lea ecx, [ebp - 0x10]
call fcn.004084d0
jmp 0x40c06a
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00407d20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00407dc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40c660
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e4eed
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov ecx, 0x51c276
call fcn.004c108d
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], 1
lea eax, [ebp + 8]
push eax
push 0x4ec1f4
lea ecx, [ebp - 0x2c]
push ecx
call fcn.004082d0
add esp, 0xc
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov byte [ebp - 4], 2
push 0x4ec1f0
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.00408230
add esp, 0xc
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x24], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp + 8]
call fcn.00407fd0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00407d20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00407d20
push 0x3c
push 0
lea ecx, [ebp - 0x70]
push ecx
call fcn.004c4400
add esp, 0xc
mov dword [ebp - 0x70], 0x3c
movzx edx, byte [ebp + 0x1c]
test edx, edx
je 0x40c72e
mov dword [ebp - 0x6c], 0x440
jmp 0x40c735
mov dword [ebp - 0x6c], 0x40
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
lea ecx, [ebp + 8]
call fcn.00408170
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp + 0xc]
call fcn.00408170
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], 0
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x40c771
mov dword [ebp - 0x54], 5
jmp 0x40c778
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x70]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp dword [ebp + 0x14], 0
je 0x40c79e
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
movzx edx, byte [ebp + 0x10]
test edx, edx
je 0x40c7c2
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00407d20
mov eax, dword [ebp - 0x30]
jmp 0x40c80b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40cac0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e4d2e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov ecx, 0x51c276
call fcn.004c108d
push 0x208
push 0
lea eax, [ebp - 0x21c]
push eax
call fcn.004c4400
add esp, 0xc
lea ecx, [ebp - 0x21c]
push ecx
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea edx, [ebp - 0x21c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00407470
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
push 0x4ebc1c
mov ecx, dword [ebp + 8]
call fcn.004084d0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x40cde0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5036
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x238
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov ecx, 0x51c276
call fcn.004c108d
mov eax, dword [ebp + 8]
push eax
call fcn.0040d8f0
add esp, 4
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
or ecx, 1
mov dword [ebp - 0x18], ecx
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x40cf73
lea edx, [ebp - 0x10]
push edx
call fcn.0040cf90
add esp, 4
mov dword [ebp - 4], 1
push 0x208
push 0
lea eax, [ebp - 0x244]
push eax
call fcn.004c4400
add esp, 0xc
mov dword [ebp - 0x20], 0x104
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x244]
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x14]
call fcn.00407470
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.0040a600
movzx ecx, al
test ecx, ecx
jne 0x40cf5b
lea ecx, [ebp - 0x14]
call fcn.0040a600
movzx edx, al
test edx, edx
jne 0x40cf5b
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.00408100
add esp, 8
movzx edx, al
test edx, edx
je 0x40cf5b
lea eax, [ebp - 0x1c]
push eax
call fcn.0040d9a0
add esp, 4
mov byte [ebp - 4], 3
push str.AppDataRoamingMicrosoftInternet_ExplorerQuick_LaunchUser_PinnedTaskBar_
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x38]
push eax
call fcn.00408190
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x28], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x28]
push edx
lea eax, [ebp - 0x34]
push eax
call fcn.00408230
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x30]
push edx
mov ecx, dword [ebp + 8]
call fcn.00407fd0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x34]
call fcn.00407d20
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.00407d20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.00407d20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00407d20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00407d20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40cf90
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e506e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov ecx, 0x51c276
call fcn.004c108d
mov ecx, dword [ebp + 8]
call fcn.00407360
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
or eax, 1
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x14]
push edx
push 1
push 0
push 0
call sub.WTSAPI32.dll_WTSEnumerateSessionsW
test eax, eax
je 0x40d070
mov dword [ebp - 0x10], 0
jmp 0x40d007
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x20]
jae 0x40d039
imul edx, dword [ebp - 0x10], 0xc
mov eax, dword [ebp - 0x14]
cmp dword [eax + edx + 8], 0
jne 0x40d037
imul ecx, dword [ebp - 0x10], 0xc
add ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov dword [ebp - 0x34], edx
mov eax, dword [ecx + 4]
mov dword [ebp - 0x30], eax
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x2c], ecx
jmp 0x40d039
jmp 0x40cffe
mov edx, dword [ebp - 0x14]
push edx
call sub.WTSAPI32.dll_WTSFreeMemory
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 5
mov edx, dword [ebp - 0x34]
push edx
push 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x40d070
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00408090
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x40d590
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov ecx, 0x51c276
call fcn.004c108d
xor eax, eax
mov dword [ebp - 4], eax
mov ecx, 1
imul edx, ecx, 0
movzx eax, byte [ebp + 8]
mov byte [ebp + edx - 4], al
mov ecx, 1
shl ecx, 0
mov byte [ebp + ecx - 4], 0x3a
mov edx, 1
shl edx, 1
mov byte [ebp + edx - 4], 0x5c
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov eax, dword [ebp - 8]
imul eax, dword [ebp - 0xc]
mul dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret
Function at 0x40d670
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e4fd6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov ecx, 0x51c276
call fcn.004c108d
mov ecx, dword [ebp + 8]
call fcn.00407360
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
push 0x104
push 0
lea ecx, [ebp - 0x124]
push ecx
call fcn.004c4400
add esp, 0xc
push 0x104
lea edx, [ebp - 0x124]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x124]
push eax
mov ecx, dword [ebp + 8]
call fcn.00408000
push 2
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040a860
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
call fcn.00407fd0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00407d20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40d740
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5036
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x238
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov ecx, 0x51c276
call fcn.004c108d
mov eax, dword [ebp + 8]
push eax
call fcn.0040cac0
add esp, 4
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
or ecx, 1
mov dword [ebp - 0x18], ecx
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x40d8d3
lea edx, [ebp - 0x10]
push edx
call fcn.0040cf90
add esp, 4
mov dword [ebp - 4], 1
push 0x208
push 0
lea eax, [ebp - 0x244]
push eax
call fcn.004c4400
add esp, 0xc
mov dword [ebp - 0x20], 0x104
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x244]
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x14]
call fcn.00407470
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.0040a600
movzx ecx, al
test ecx, ecx
jne 0x40d8bb
lea ecx, [ebp - 0x14]
call fcn.0040a600
movzx edx, al
test edx, edx
jne 0x40d8bb
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.00408100
add esp, 8
movzx edx, al
test edx, edx
je 0x40d8bb
lea eax, [ebp - 0x1c]
push eax
call fcn.0040d9a0
add esp, 4
mov byte [ebp - 4], 3
push 0x4ebd54
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x38]
push eax
call fcn.00408190
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x28], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x28]
push edx
lea eax, [ebp - 0x34]
push eax
call fcn.00408230
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x30]
push edx
mov ecx, dword [ebp + 8]
call fcn.00407fd0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x34]
call fcn.00407d20
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.00407d20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.00407d20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00407d20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00407d20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x40d8f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e4d2e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov ecx, 0x51c276
call fcn.004c108d
push 0x208
push 0
lea eax, [ebp - 0x21c]
push eax
call fcn.004c4400
add esp, 0xc
lea ecx, [ebp - 0x21c]
push ecx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea edx, [ebp - 0x21c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00407470
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
push 0x4ec1f8
mov ecx, dword [ebp + 8]
call fcn.004084d0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40db70
Capabilities:
Check if file exists
Create service
Persist via windows service
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e50d5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov dword [ebp - 4], 1
mov ecx, 0x51c276
call fcn.004c108d
push str.GptChromeService.exe
push 0x4eb8a4
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.00408230
add esp, 0xc
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x24], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.00408230
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.00407d20
lea ecx, [ebp - 0x10]
call fcn.00408170
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40dc1e
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00407d20
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00407d20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00407d20
jmp 0x40dd40
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40dc62
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00407d20
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00407d20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00407d20
jmp 0x40dd40
lea edx, [ebp + 0xc]
push edx
lea ecx, [ebp - 0x18]
call fcn.00407390
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x10]
call fcn.00408170
push eax
push 1
push 2
push pe_nt_image_headers32
push 0xf01ff
lea ecx, [ebp - 0x18]
call fcn.00408170
push eax
lea ecx, [ebp - 0x18]
call fcn.00408170
push eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40dcef
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [ebp - 0x18]
call fcn.00407d20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00407d20
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00407d20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00407d20
jmp 0x40dd40
push 0
push 0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [ebp - 0x18]
call fcn.00407d20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00407d20
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00407d20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00407d20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret