joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10089200
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x103680b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
mov dword [0x10374b50], eax
mov ecx, dword [ebp + 8]
mov dword [0x10374b48], ecx
mov edx, dword [ebp + 0xc]
mov dword [0x10374e34], edx
mov eax, dword [ebp + 0x14]
mov dword [0x10374e38], eax
mov ecx, dword [ebp + 0x10]
mov dword [0x10374e30], ecx
push 0x104
push 0
lea edx, [ebp - 0x20c]
push edx
call fcn.1026c0f0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call fcn.10084350
push 0x104
push 0
lea ecx, [ebp - 0x108]
push ecx
call fcn.1026c0f0
add esp, 0xc
lea edx, [ebp - 0x108]
push edx
call fcn.10084350
push 1
push 0
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push 0x10321a30
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ff9df
mov esp, ebp
pop ebp
ret

Function at 0x1008ce00
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x1008ce5f
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1008ce2c
mov eax, 1
jmp 0x1008ce7d
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 0x1008ce5d
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 0x1008ce7d
jmp 0x1008ce78
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x1008ce78
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x1008ce7d
mov eax, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x1008d000
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
xor eax, eax
jne 0x1008d009
cmp dword [ebp + 0xc], 0
je 0x1008d01c
mov dword [ebp - 0xc], 1
jmp 0x1008d023
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
jne 0x1008d036
mov eax, 0xd
jmp 0x1008d08b
xor edx, edx
jne 0x1008d00d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
add ecx, 2
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 8]
mov ax, word [edx]
mov word [ebp - 2], ax
add dword [ebp - 8], 2
cmp word [ebp - 2], 0
jne 0x1008d049
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x14]
sar ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
lea eax, [edx + edx + 2]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1008d0a0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x103680b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x20c], ecx
push 0
lea ecx, [ebp - 0x21c]
call fcn.10083700
mov eax, dword [ebp - 0x20c]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x20c]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.100837a0
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x208], 0
je 0x1008d11f
mov edx, dword [ebp - 0x208]
mov dword [ebp - 0x220], edx
lea ecx, [ebp - 0x21c]
call fcn.10083730
mov eax, dword [ebp - 0x220]
jmp 0x1008d1d4
mov dword [ebp - 0x210], 0x100
lea eax, [ebp - 0x230]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x204]
push edx
push 0
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1008d1a3
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.1008d0a0
mov dword [ebp - 0x208], eax
cmp dword [ebp - 0x208], 0
je 0x1008d197
mov edx, dword [ebp - 0x208]
mov dword [ebp - 0x224], edx
lea ecx, [ebp - 0x21c]
call fcn.10083730
mov eax, dword [ebp - 0x224]
jmp 0x1008d1d4
mov dword [ebp - 0x210], 0x100
jmp 0x1008d129
lea ecx, [ebp - 0x21c]
call fcn.10083750
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x20c]
call fcn.1008ce90
mov dword [ebp - 0x228], eax
lea ecx, [ebp - 0x21c]
call fcn.10083730
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ff9df
mov esp, ebp
pop ebp
ret 4
Function at 0x1008d360
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1029acc0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x103680b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x24]
call fcn.10090570
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x20]
call fcn.10090570
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.10089970
mov byte [ebp - 4], 2
push 0x103235a4
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x1c]
push eax
call fcn.10089630
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.1008e560
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], edx
mov byte [ebp - 4], 4
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x38]
push edx
call fcn.100896e0
add esp, 0xc
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x18]
call fcn.10089890
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x38]
call fcn.100898b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x3c]
call fcn.100898b0
lea ecx, [ebp - 0x14]
call fcn.10089970
mov byte [ebp - 4], 6
cmp dword [ebp + 0x20], 0
je 0x1008d44e
mov edx, dword [ebp + 0x20]
push edx
lea ecx, [ebp - 0x14]
call fcn.10089870
jmp 0x1008d45a
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.10089890
mov ecx, dword [ebp - 0x10]
call fcn.1008e990
test eax, eax
je 0x1008d492
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x18]
call fcn.10049320
push eax
lea ecx, [ebp - 0x20]
call fcn.10049320
push eax
mov ecx, dword [ebp - 0x10]
call fcn.1008ec20
jmp 0x1008d50f
mov ecx, dword [ebp - 0x10]
call fcn.1008ea20
test eax, eax
je 0x1008d4ba
lea ecx, [ebp - 0x1c]
call fcn.10049320
push eax
lea ecx, [ebp - 0x14]
call fcn.10049320
push eax
mov ecx, dword [ebp - 0x10]
call fcn.1008f0d0
jmp 0x1008d50f
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x48]
push ecx
call fcn.100896e0
add esp, 0xc
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x44], edx
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x44]
push eax
lea ecx, [ebp - 0x18]
call fcn.10089890
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x48]
call fcn.100898b0
push 1
push 0
push 0
lea ecx, [ebp - 0x18]
call fcn.10049320
push eax
push str.taskbarpin
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.100898b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.100898b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.100898b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.100898b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.100898b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x1008d560
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1029ad00
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x103680b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10090570
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.100905f0
movzx ecx, al
test ecx, ecx
je 0x1008d5be
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.100898b0
jmp 0x1008d6cb
lea ecx, [ebp - 0x14]
call fcn.10089970
mov byte [ebp - 4], 1
push 0x103235c8
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.10089630
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.1008e560
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 - 0x14]
call fcn.10089890
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.100898b0
mov ecx, dword [ebp - 0x10]
call fcn.1008e990
test eax, eax
je 0x1008d641
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x14]
push eax
push ecx
call fcn.100896e0
add esp, 0xc
mov ecx, dword [ebp - 0x10]
call fcn.1008ed90
jmp 0x1008d6a4
mov ecx, dword [ebp - 0x10]
call fcn.1008ea20
test eax, eax
je 0x1008d669
lea ecx, [ebp - 0x18]
call fcn.10049320
push eax
lea ecx, [ebp - 0x14]
call fcn.10049320
push eax
mov ecx, dword [ebp - 0x10]
call fcn.1008f0d0
jmp 0x1008d6a4
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x30]
push eax
call fcn.100896e0
add esp, 0xc
mov dword [ebp - 0x2c], eax
push 1
push 0
push 0
mov ecx, dword [ebp - 0x2c]
call fcn.10049320
push eax
push str.taskbarunpin
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x30]
call fcn.100898b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.100898b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.100898b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.100898b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x1008df30
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x103680b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], 0
mov byte [ebp - 0xc], 0
mov byte [ebp - 0xb], 0
mov byte [ebp - 0xa], 0
mov byte [ebp - 9], 0
mov byte [ebp - 8], 0
mov byte [ebp - 7], 5
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x12
push 1
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1008dfa8
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ff9df
mov esp, ebp
pop ebp
ret
Function at 0x1008dfc0
Capabilities:
Check if file exists
Create process on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1029aea0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x103680b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1008e004
xor eax, eax
jmp 0x1008e121
cmp dword [ebp - 0x10], 0
jne 0x1008e0b9
push 0x1032364c
lea ecx, [ebp - 0x14]
call fcn.10090570
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x14]
call fcn.100897d0
push 0x10323650
lea ecx, [ebp - 0x14]
call fcn.100897d0
push 0
push 0
lea ecx, [ebp - 0x14]
call fcn.10049320
push eax
push str.Cacls.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x1008e09e
lea ecx, [ebp - 0x18]
call fcn.10089970
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ShellExecute_failed:_d
lea edx, [ebp - 0x18]
push edx
call fcn.100908a0
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.10049320
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.100898b0
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.100898b0
mov eax, dword [ebp - 0x20]
jmp 0x1008e121
cmp dword [ebp - 0x10], 0
jne 0x1008e0fe
push str.Cacls_failed.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.100902c0
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x1008e0fe
mov dword [ebp - 0x24], 4
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x10], 0
jne 0x1008e11e
push str.SetFileSecurity_failed.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x28]
call fcn.1008f5a0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x1008e140
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
push 0
push 0x2000000
push 3
push 0
push 5
push 0xc0000000
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x1008e1b0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x1008e1a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8
Function at 0x1008e2c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1029aefb
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x103680b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x828], ecx
mov dword [ebp - 0x820], 0
push 0x10323718
lea ecx, [ebp - 0x818]
call fcn.10090570
mov dword [ebp - 4], 0
push 0x800
push 0
lea eax, [ebp - 0x810]
push eax
call fcn.1026c0f0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov dword [ebp - 0x824], eax
mov dword [ebp - 0x814], 1
lea ecx, [ebp - 0x81c]
push ecx
mov edx, dword [ebp - 0x824]
push edx
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
je 0x1008e385
lea eax, [ebp - 0x810]
push eax
push 0
mov ecx, dword [ebp - 0x81c]
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [ebp - 0x814], eax
mov edx, dword [ebp - 0x81c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1008e3a0
lea eax, [ebp - 0x810]
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [ebp - 0x814], eax
cmp dword [ebp - 0x814], 0
jl 0x1008e3bb
lea ecx, [ebp - 0x810]
push ecx
lea ecx, [ebp - 0x818]
call fcn.10089870
lea edx, [ebp - 0x818]
push edx
mov ecx, dword [ebp + 8]
call fcn.10089950
mov eax, dword [ebp - 0x820]
or eax, 1
mov dword [ebp - 0x820], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x818]
call fcn.100898b0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100ff9df
mov esp, ebp
pop ebp
ret 4
Function at 0x1008e410
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1029aefb
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x103680b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x828], ecx
mov dword [ebp - 0x820], 0
push 0x1032371c
lea ecx, [ebp - 0x818]
call fcn.10090570
mov dword [ebp - 4], 0
push 0x800
push 0
lea eax, [ebp - 0x810]
push eax
call fcn.1026c0f0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov dword [ebp - 0x824], eax
mov dword [ebp - 0x814], 1
lea ecx, [ebp - 0x81c]
push ecx
mov edx, dword [ebp - 0x824]
push edx
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
je 0x1008e4d5
lea eax, [ebp - 0x810]
push eax
push 0
mov ecx, dword [ebp - 0x81c]
push ecx
push 0x17
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [ebp - 0x814], eax
mov edx, dword [ebp - 0x81c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1008e4f0
lea eax, [ebp - 0x810]
push eax
push 0
push 0
push 0x17
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [ebp - 0x814], eax
cmp dword [ebp - 0x814], 0
jl 0x1008e50b
lea ecx, [ebp - 0x810]
push ecx
lea ecx, [ebp - 0x818]
call fcn.10089870
lea edx, [ebp - 0x818]
push edx
mov ecx, dword [ebp + 8]
call fcn.10089950
mov eax, dword [ebp - 0x820]
or eax, 1
mov dword [ebp - 0x820], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x818]
call fcn.100898b0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100ff9df
mov esp, ebp
pop ebp
ret 4
Function at 0x1008e560
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1029af3b
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x103680b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x224], 0
lea ecx, [ebp - 0x21c]
call fcn.10089970
mov dword [ebp - 4], 0
lea eax, [ebp - 0x220]
push eax
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x1008e64e
push 0x208
push 0
lea ecx, [ebp - 0x218]
push ecx
call fcn.1026c0f0
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
mov eax, dword [ebp - 0x220]
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.10089870
push str.MicrosoftInternet_ExplorerQuick_LaunchUser_PinnedTaskBar
lea ecx, [ebp - 0x21c]
call fcn.100897d0
push 0x5c
lea ecx, [ebp - 0x21c]
call fcn.10049320
push eax
mov ecx, dword [ebp - 0x228]
call fcn.1008e6a0
push 0x1032379c
lea ecx, [ebp - 0x21c]
call fcn.1008a870
mov edx, dword [ebp - 0x220]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 0x21c]
push eax
mov ecx, dword [ebp + 8]
call fcn.10089950
mov ecx, dword [ebp - 0x224]
or ecx, 1
mov dword [ebp - 0x224], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.100898b0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100ff9df
mov esp, ebp
pop ebp
ret 4
Function at 0x1008e6a0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1029af80
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x103680b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x8c], ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.10050a20
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x90]
push ecx
lea ecx, [ebp - 0x28]
call fcn.10090390
mov ecx, eax
call fcn.10090360
movzx edx, word [eax]
movzx eax, word [ebp + 0xc]
cmp edx, eax
jne 0x1008e736
lea ecx, [ebp - 0x28]
call fcn.10050750
sub eax, 1
push eax
push 0
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x28]
call fcn.10050590
mov dword [ebp - 0x80], eax
mov edx, dword [ebp - 0x80]
push edx
lea ecx, [ebp - 0x28]
call fcn.10050910
lea ecx, [ebp - 0x58]
call fcn.100508c0
push 0
movzx eax, word [ebp + 0xc]
push eax
lea ecx, [ebp - 0x28]
call fcn.100505e0
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0xffffffff
jne 0x1008e769
mov byte [ebp - 0x71], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100508c0
mov al, byte [ebp - 0x71]
jmp 0x1008e863
lea ecx, [ebp - 0x40]
call fcn.10050a90
mov byte [ebp - 4], 1
mov ecx, 1
test ecx, ecx
je 0x1008e812
mov edx, dword [ebp - 0x78]
add edx, 1
push edx
movzx eax, word [ebp + 0xc]
push eax
lea ecx, [ebp - 0x28]
call fcn.100505e0
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0xffffffff
jne 0x1008e7be
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x40]
call fcn.10050850
lea ecx, [ebp - 0x40]
call fcn.10050770
push eax
call fcn.1027b02f
add esp, 4
jmp 0x1008e812
mov edx, dword [ebp - 0x78]
push edx
push 0
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x28]
call fcn.10050590
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x84]
push ecx
lea ecx, [ebp - 0x40]
call fcn.10050910
lea ecx, [ebp - 0x70]
call fcn.100508c0
lea ecx, [ebp - 0x40]
call fcn.10050770
push eax
call fcn.1027b02f
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.10050750
cmp dword [ebp - 0x78], eax
jb 0x1008e80d
jmp 0x1008e812
jmp 0x1008e775
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.1027af57
add esp, 8
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0xffffffff
je 0x1008e838
mov dword [ebp - 0x7c], 1
jmp 0x1008e83f
mov dword [ebp - 0x7c], 0
mov al, byte [ebp - 0x7c]
mov byte [ebp - 0x72], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.100508c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100508c0
mov al, byte [ebp - 0x72]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100ff9df
mov esp, ebp
pop ebp
ret 8
Function at 0x1008e990
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x103680b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x124], ecx
push 0x114
push 0
lea eax, [ebp - 0x118]
push eax
call fcn.1026c0f0
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 5
ja 0x1008e9eb
mov dword [ebp - 0x11c], 1
jmp 0x1008e9f5
mov dword [ebp - 0x11c], 0
mov edx, dword [ebp - 0x11c]
mov dword [ebp - 0x120], edx
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ff9df
mov esp, ebp
pop ebp
ret

Function at 0x1008eab0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1029afe8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x103680b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp + 8]
call fcn.10049320
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x14], 0
jne 0x1008eb2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xb7
je 0x1008eb2d
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.100898b0
mov eax, dword [ebp - 0x18]
jmp 0x1008eb62
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
lea eax, [ebp + 8]
push eax
call fcn.10089950
push reloc.WS2_32.dll_htonl
mov ecx, dword [ebp - 0x1c]
call fcn.1008efb0
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.100898b0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4