joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d1e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f51b6
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, 0x536275
call fcn.004c6d76
mov ecx, dword [ebp + 8]
call fcn.00407780
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.004ca3c0
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.00408450
push 2
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040a3d0
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.00408420
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00408170
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40d2b0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5216
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, 0x536275
call fcn.004c6d76
mov eax, dword [ebp + 8]
push eax
call fcn.0040c630
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 0x40d443
lea edx, [ebp - 0x10]
push edx
call fcn.0040cb00
add esp, 4
mov dword [ebp - 4], 1
push 0x208
push 0
lea eax, [ebp - 0x244]
push eax
call fcn.004ca3c0
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.00407890
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.0040a170
movzx ecx, al
test ecx, ecx
jne 0x40d42b
lea ecx, [ebp - 0x14]
call fcn.0040a170
movzx edx, al
test edx, edx
jne 0x40d42b
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.00408550
add esp, 8
movzx edx, al
test edx, edx
je 0x40d42b
lea eax, [ebp - 0x1c]
push eax
call fcn.0040d510
add esp, 4
mov byte [ebp - 4], 3
push 0x4fc2a0
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x38]
push eax
call fcn.004085e0
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.00408680
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.00408420
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x34]
call fcn.00408170
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.00408170
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.00408170
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00408170
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00408170
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x40d460
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4f6e
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, 0x536275
call fcn.004c6d76
push 0x208
push 0
lea eax, [ebp - 0x21c]
push eax
call fcn.004ca3c0
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.00407890
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
push 0x4fbcc0
mov ecx, dword [ebp + 8]
call fcn.00408920
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40d6e0
Capabilities:
Check if file exists
Create service
Persist via windows service
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f52b5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov dword [ebp - 4], 1
mov ecx, 0x536275
call fcn.004c6d76
push str.GptChromeService.exe
push 0x4fbe0c
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.00408680
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.00408680
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.00408170
lea ecx, [ebp - 0x10]
call fcn.004085c0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40d78e
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00408170
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00408170
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00408170
jmp 0x40d8b0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40d7d2
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00408170
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00408170
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00408170
jmp 0x40d8b0
lea edx, [ebp + 0xc]
push edx
lea ecx, [ebp - 0x18]
call fcn.004077b0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x10]
call fcn.004085c0
push eax
push 1
push 2
push 0x110
push 0xf01ff
lea ecx, [ebp - 0x18]
call fcn.004085c0
push eax
lea ecx, [ebp - 0x18]
call fcn.004085c0
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 0x40d85f
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [ebp - 0x18]
call fcn.00408170
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00408170
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00408170
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00408170
jmp 0x40d8b0
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.00408170
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00408170
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00408170
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00408170
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40d9a0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4f8d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
mov ecx, 0x536275
call fcn.004c6d76
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x40da92
lea eax, [ebp - 0x18]
push eax
call fcn.0040cb00
add esp, 4
mov dword [ebp - 4], 0
push 0x208
push 0
lea ecx, [ebp - 0x224]
push ecx
call fcn.004ca3c0
add esp, 0xc
mov dword [ebp - 0x1c], 0x104
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00407890
lea ecx, [ebp - 0x18]
call fcn.0040a170
movzx edx, al
test edx, edx
jne 0x40da7b
lea ecx, [ebp - 0x14]
call fcn.0040a170
movzx eax, al
test eax, eax
jne 0x40da7b
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.00408550
add esp, 8
movzx eax, al
test eax, eax
je 0x40da7b
mov byte [ebp - 0xd], 1
lea ecx, [ebp - 0x14]
call fcn.00408170
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00408170
mov al, byte [ebp - 0xd]
jmp 0x40da94
lea ecx, [ebp - 0x14]
call fcn.00408170
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00408170
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40dc20
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov ecx, 0x536275
call fcn.004c6d76
mov dword [ebp - 0x18], 0xffffffff
mov byte [ebp - 1], 1
cmp dword [ebp + 8], 0
jne 0x40dc4b
xor al, al
jmp 0x40dd4d
mov dword [ebp - 0x2c], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x258], 0x22c
lea eax, [ebp - 0x258]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_Process32FirstW
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x40dd36
mov edx, dword [ebp + 8]
mov dword [ebp - 0xc], edx
lea eax, [ebp - 0x234]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov dx, word [ecx]
mov word [ebp - 0xe], dx
mov eax, dword [ebp - 0xc]
cmp dx, word [eax]
jne 0x40dcd9
cmp word [ebp - 0xe], 0
je 0x40dcd0
mov ecx, dword [ebp - 8]
mov dx, word [ecx + 2]
mov word [ebp - 0x10], dx
mov eax, dword [ebp - 0xc]
cmp dx, word [eax + 2]
jne 0x40dcd9
add dword [ebp - 8], 4
add dword [ebp - 0xc], 4
cmp word [ebp - 0x10], 0
jne 0x40dc94
mov dword [ebp - 0x1c], 0
jmp 0x40dce1
sbb ecx, ecx
or ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x24], 0
jne 0x40dd1e
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x28], eax
push 1
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp eax, 1
je 0x40dd1e
mov byte [ebp - 1], 0
jmp 0x40dd36
lea eax, [ebp - 0x258]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_Process32NextW
mov dword [ebp - 0x20], eax
jmp 0x40dc7b
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], 0xffffffff
jne 0x40dd4a
xor al, al
jmp 0x40dd4d
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x40de90
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f52fd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov ecx, 0x536275
call fcn.004c6d76
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 0x50c438
push 1
push 0
push 0x50c4a8
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x40dfdb
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
push ecx
push 0x50c458
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [eax]
call edx
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x40dfcd
push 2
mov ecx, dword [ebp + 8]
call fcn.004085c0
push eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ecx + 0x14]
call eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x40dfbf
push 0x5c
mov ecx, dword [ebp + 0xc]
call fcn.0040b170
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.0040a3d0
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
call fcn.004085c0
push eax
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [eax + 0x50]
call edx
lea ecx, [ebp - 0x1c]
call fcn.004085c0
push eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ecx + 0x24]
call eax
push 0
mov ecx, dword [ebp + 0xc]
call fcn.004085c0
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [edx + 0x44]
call ecx
push 1
push 0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [eax + 0x18]
call edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00408170
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [edx + 8]
call ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40e000
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f531d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov dword [ebp - 4], 0
mov ecx, 0x536275
call fcn.004c6d76
call fcn.0040a250
movzx eax, al
test eax, eax
je 0x40e07f
push 0
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x10], esp
lea ecx, [ebp + 8]
call fcn.004085c0
push eax
mov ecx, esi
call fcn.004052e0
call fcn.00416d30
add esp, 0x1c
push 1
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x14], esp
lea ecx, [ebp + 8]
call fcn.004085c0
push eax
mov ecx, esi
call fcn.004052e0
call fcn.00416d30
add esp, 0x1c
jmp 0x40e0b7
push 0
push 0
push 0
lea ecx, [ebp + 8]
call fcn.004085c0
push eax
push 0x4fbe10
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
push 0
push 0
lea ecx, [ebp + 8]
call fcn.004085c0
push eax
push str.taskbarpin
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00408170
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40ea90
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov ecx, 0x536275
call fcn.004c6d76
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40eac2
lea ecx, [ebp + 8]
call fcn.00408170
jmp 0x40eb2d
push 0xf01ff
lea ecx, [ebp + 8]
call fcn.004085c0
push eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40eaf7
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [ebp + 8]
call fcn.00408170
jmp 0x40eb2d
lea edx, [ebp - 0x24]
push edx
push 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [ebp + 8]
call fcn.00408170
mov esp, ebp
pop ebp
ret

Function at 0x40eb40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov ecx, 0x536275
call fcn.004c6d76
lea ecx, [ebp - 0x28]
call fcn.00403570
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
lea ecx, [ebp + 8]
call fcn.004085c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40eb92
jmp 0x40ebd7
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00404dd0
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00404c40
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40ebd1
mov ecx, dword [ebp + 0xc]
call fcn.00404dd0
cmp dword [ebp - 8], eax
je 0x40ebd3
jmp 0x40ebd7
xor edx, edx
jne 0x40eb66
cmp dword [ebp - 4], 0xffffffff
je 0x40ebe7
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x28]
call fcn.004037a0
lea ecx, [ebp + 8]
call fcn.00408170
mov esp, ebp
pop ebp
ret
Function at 0x40ec30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4f6e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x808
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov ecx, 0x536275
call fcn.004c6d76
mov ecx, dword [ebp + 8]
call fcn.00407780
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
push 0x800
push 0
lea ecx, [ebp - 0x814]
push ecx
call fcn.004ca3c0
add esp, 0xc
push 0x800
push 0
lea edx, [ebp - 0x814]
push edx
call fcn.004ca3c0
add esp, 0xc
push 0
push 0x10
lea eax, [ebp - 0x814]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40ece0
lea ecx, [ebp - 0x814]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004084e0
push 0x4fbfa4
mov ecx, dword [ebp + 8]
call fcn.00408920
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x40ed00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4f6e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x808
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov ecx, 0x536275
call fcn.004c6d76
mov ecx, dword [ebp + 8]
call fcn.00407780
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
push 0x800
push 0
lea ecx, [ebp - 0x814]
push ecx
call fcn.004ca3c0
add esp, 0xc
push 0x800
push 0
lea edx, [ebp - 0x814]
push edx
call fcn.004ca3c0
add esp, 0xc
push 0
push 0x19
lea eax, [ebp - 0x814]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40edb0
lea ecx, [ebp - 0x814]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004084e0
push 0x4fbfa0
mov ecx, dword [ebp + 8]
call fcn.00408920
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x40ee00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4f6e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x808
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov ecx, 0x536275
call fcn.004c6d76
mov ecx, dword [ebp + 8]
call fcn.00407780
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
push 0x800
push 0
lea ecx, [ebp - 0x814]
push ecx
call fcn.004ca3c0
add esp, 0xc
push 0x800
push 0
lea edx, [ebp - 0x814]
push edx
call fcn.004ca3c0
add esp, 0xc
push 0
push 2
lea eax, [ebp - 0x814]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40eeb0
lea ecx, [ebp - 0x814]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004084e0
push 0x4fbf9c
mov ecx, dword [ebp + 8]
call fcn.00408920
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40eed0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f509d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x808
mov dword [ebp - 0x10], 0
mov ecx, 0x536275
call fcn.004c6d76
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x40ef26
mov eax, dword [ebp + 8]
push eax
call fcn.0040ed00
add esp, 4
mov ecx, dword [ebp - 0x10]
or ecx, 1
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
jmp 0x40efbb
lea ecx, [ebp - 0x14]
call fcn.00407780
mov dword [ebp - 4], 0
push 0x800
push 0
lea edx, [ebp - 0x814]
push edx
call fcn.004ca3c0
add esp, 0xc
push 0x800
push 0
lea eax, [ebp - 0x814]
push eax
call fcn.004ca3c0
add esp, 0xc
push 0
push 0x10
lea ecx, [ebp - 0x814]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40ef94
lea edx, [ebp - 0x814]
push edx
lea ecx, [ebp - 0x14]
call fcn.004084e0
push 0x4fbcbc
lea ecx, [ebp - 0x14]
call fcn.00408920
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
call fcn.004077b0
mov ecx, dword [ebp - 0x10]
or ecx, 1
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00408170
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov ecx, 0x536275
call fcn.004c6d76
mov byte [ebp - 1], 0
mov dword [ebp - 0x14], 0
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
lea ecx, [ebp + 8]
call fcn.004085c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x40f031
mov byte [ebp - 2], 0
lea ecx, [ebp + 8]
call fcn.00408170
lea ecx, [ebp + 0x10]
call fcn.00408170
mov al, byte [ebp - 2]
jmp 0x40f0c1
lea ecx, [ebp + 0x10]
call fcn.004085c0
push eax
movzx eax, word [ebp + 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40f052
jmp 0x40f09e
mov ecx, dword [ebp - 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40f069
jmp 0x40f09e
mov edx, dword [ebp - 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x18], eax
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40f096
jmp 0x40f09e
mov byte [ebp - 1], 1
xor ecx, ecx
jne 0x40f031
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 1]
mov byte [ebp - 3], al
lea ecx, [ebp + 8]
call fcn.00408170
lea ecx, [ebp + 0x10]
call fcn.00408170
mov al, byte [ebp - 3]
mov esp, ebp
pop ebp
ret