joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004580
Capabilities:
Delete file
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
je 0x1000469a
push ebx
push 2
push 3
push ebx
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000469a
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x14]
push ebx
push eax
lea ecx, [esp + 0x18]
push 4
push ecx
push esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call ebp
mov eax, dword [esp + 0x10]
lea edx, [eax*8]
sub edx, eax
lea eax, [edx*8 + 0x3c]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
add esp, 4
cmp edi, ebx
jne 0x1000460c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 4
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
mov dword [edi], ecx
mov eax, dword [esp + 0x10]
push ebx
push edx
lea ecx, [eax*8]
lea edx, [edi + 4]
sub ecx, eax
shl ecx, 3
push ecx
push edx
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.10004510
mov esi, eax
cmp esi, ebx
jne 0x10004658
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
mov eax, dword [esi]
xor ebp, ebp
cmp eax, ebx
jbe 0x10004680
lea ebx, [esi + 4]
push 0
push edi
push ebx
call fcn.10004f20
test eax, eax
jne 0x10004676
push ebx
call sub.iphlpapi.dll_DeleteIpForwardEntry
mov eax, dword [esi]
inc ebp
add ebx, 0x38
cmp ebp, eax
jb 0x10004663
push edi
mov edi, dword [sym.imp.MSVCRT.dll_free]
call edi
push esi
call edi
mov eax, dword [esp + 0x24]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 4

Function at 0x100046b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
xor edi, edi
mov esi, ecx
cmp ebp, edi
je 0x1000470a
push 0x104
lea eax, [esi + 4]
push ebp
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
call fcn.10004510
cmp eax, edi
mov dword [esi + 0x108], eax
je 0x1000470a
call fcn.10004510
cmp eax, edi
mov dword [esi + 0x10c], eax
jne 0x10004712
mov eax, dword [esi + 0x108]
cmp eax, edi
je 0x1000470a
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [esi + 0x108], edi
pop edi
pop esi
xor eax, eax
pop ebp
ret 4
push edi
push 2
push 2
push edi
push 1
push 0xc0000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x1000470a
mov edx, dword [esi + 0x108]
lea ecx, [esp + 0x10]
push edi
push ecx
push 4
push edx
push ebp
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 0x108]
cmp dword [eax], edi
jbe 0x10004778
push ebx
xor ebx, ebx
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [ebx + eax + 4]
push 0x38
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 0x108]
inc edi
add ebx, 0x38
cmp edi, dword [eax]
jb 0x10004754
pop ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebp
ret 4
Function at 0x10004840
Capabilities:
Check for time delay via gettickcount
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001bc40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov word [ebp - 0x38], 0
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x68]
push edx
push 0x10020e84
push 0
push 0xc000880
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x10004923
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov edi, eax
lea ecx, [ebp - 0x70]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov ebx, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
call ebx
test eax, eax
je 0x100048e7
cmp dword [ebp - 0x70], 0x103
jne 0x100048e7
call esi
sub eax, edi
cmp eax, 0x7530
jae 0x100048e7
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call ebx
test eax, eax
jne 0x100048bd
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x24]
push edx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov eax, dword [ebp - 0x20]
push eax
call esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10005190
Capabilities:
Delete file

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x110]
test eax, eax
je 0x10005218
mov eax, dword [esi + 0x108]
test eax, eax
je 0x10005218
mov eax, dword [eax]
push eax
push str.Route_Restore_before_table_count:_d
push 4
call fcn.1000be40
mov eax, dword [esi + 0x110]
add esp, 0xc
xor ebp, ebp
cmp dword [eax], 0
jbe 0x10005218
xor ebx, ebx
mov ecx, dword [esi + 0x108]
lea edi, [ebx + eax + 4]
push 0
push ecx
push edi
call fcn.10004f20
test eax, eax
jne 0x1000520a
mov edx, dword [edi + 4]
push edx
call sub.WS2_32.dll_ntohl
push eax
mov eax, dword [edi]
push eax
call sub.WS2_32.dll_ntohl
push eax
push str.Route_delete:_x__x
push 2
call fcn.1000be40
add esp, 0x10
push edi
call sub.iphlpapi.dll_DeleteIpForwardEntry
mov eax, dword [esi + 0x110]
inc ebp
add ebx, 0x38
cmp ebp, dword [eax]
jb 0x100051cb
mov eax, dword [esi + 0x108]
test eax, eax
je 0x10005244
mov ecx, dword [eax]
xor edi, edi
test ecx, ecx
jbe 0x10005244
xor ebx, ebx
lea ecx, [ebx + eax + 4]
push ecx
call sub.iphlpapi.dll_SetIpForwardEntry
mov eax, dword [esi + 0x108]
inc edi
add ebx, 0x38
cmp edi, dword [eax]
jb 0x1000522c
mov ecx, esi
call fcn.100043e0
lea edx, [esi + 4]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
pop esi
pop ebp
cmp ecx, 4
pop ebx
jb 0x1000526a
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 1
ret
Function at 0x10006850
Capabilities:
Get common file path

Disassembly:
sub esp, 0x410
push ebx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x211]
mov byte [esp + 0x210], bl
mov byte [esp + 0x10c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x10d]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
call fcn.1000ea50
lea ecx, [esp + 0x10c]
lea edx, [esp + 0x210]
push ecx
push str._sdriversgwvnic.inf
push 0x104
push edx
call fcn.1000c010
add esp, 0x10
call fcn.1000f5c0
test eax, eax
je 0x100068fc
call fcn.100102d0
lea eax, [esp + 0x210]
push eax
call fcn.1000ea10
call fcn.10010300
push ebx
call fcn.1000e630
pop edi
mov eax, 1
pop ebx
add esp, 0x410
ret
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x315]
mov byte [esp + 0x314], bl
rep stosd dword es:[edi], eax
push esi
lea ecx, [esp + 0xc]
stosw word es:[edi], ax
push 0x104
push ecx
push ebx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, 0x5c
mov esi, ecx
cmp byte [esp + esi + 0xc], al
je 0x10006957
dec esi
jmp 0x1000694e
inc esi
push 0x103
push str.gwupdater.dll
lea edx, [esp + esi + 0x14]
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
lea eax, [esp + 0xc]
lea ecx, [esp + 0x318]
mov byte [esp + esi + 0x10f], bl
push eax
push str.rundll32.exe___s__GWVNICInstall
push 0x104
push ecx
call fcn.1000c010
add esp, 0x10
lea edx, [esp + 0x318]
push 1
push 1
push edx
call fcn.1000ee70
pop esi
push ebx
call fcn.1000e630
pop edi
mov eax, 1
pop ebx
add esp, 0x410
ret
Function at 0x1000b8d0
Capabilities:
Check for time delay via gettickcount
Create process on windows
Create process suspended
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001bc60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1164
call fcn.1001bae0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x1024], 0
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x1023]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x1128], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x1127]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x1128]
push eax
push str.SystemRoot
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push 0x103
push str._system32_netsh.exe
lea ecx, [ebp - 0x1128]
push ecx
call dword [sym.imp.MSVCRT.dll_strncat]
add esp, 0xc
mov byte [ebp - 0x1025], 0
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x1128]
push eax
push str._s__s
push 0x1000
lea ecx, [ebp - 0x1024]
push ecx
call fcn.1000c010
add esp, 0x14
lea edx, [ebp - 0x1024]
push edx
push 0x1002214c
push 2
call fcn.1000be40
add esp, 0xc
lea eax, [ebp - 0x116c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [ebp - 0x1140]
or al, 1
mov dword [ebp - 0x1140], eax
mov word [ebp - 0x113c], 0
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x116c]
push edx
push 0x10022150
push 0
push 0xc000880
push 0
push 0
push 0
lea eax, [ebp - 0x1024]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
lea ecx, [ebp - 0x1024]
push ecx
je 0x1000baab
push str.Netsh_OK:_s
push 4
call fcn.1000be40
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebx, eax
lea edx, [ebp - 0x1174]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x1000ba6c
mov esi, dword [ebp + 0xc]
cmp dword [ebp - 0x1174], 0x103
jne 0x1000ba6c
call edi
mov ecx, eax
sub ecx, ebx
lea eax, [esi + esi*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 3
cmp ecx, edx
jae 0x1000ba6c
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x1174]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x1000ba2d
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x24]
push edx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov eax, dword [ebp - 0x20]
push eax
call esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1174]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Netsh_Failed__d_:_s
push 4
call fcn.1000be40
add esp, 0x10
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1000be40
Capabilities:
Print debug messages
Write file on windows

Disassembly:
mov eax, 0x1114
call fcn.1001bae0
mov eax, dword [0x10022298]
push esi
mov esi, dword [esp + 0x111c]
push edi
cmp esi, eax
jb 0x1000c001
mov eax, dword [esp + 0x1124]
test eax, eax
je 0x1000c001
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x1c]
cmp esi, 8
rep stosd dword es:[edi], eax
mov ecx, 0x240
lea edi, [esp + 0x81c]
rep stosd dword es:[edi], eax
jbe 0x1000be91
xor esi, esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x16]
mov eax, dword [esp + 0x14]
push str.GWCLI
shl esi, 4
add esi, 0x100222a0
and ecx, 0xffff
push esi
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x1e]
push edx
mov edx, dword [esp + 0x1e]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
push str.__02d__02d__02d:_02d:_02d___s___s_
lea eax, [esp + 0x3c]
push 0x800
push eax
call fcn.1000c010
mov edx, dword [esp + 0x114c]
lea ecx, [esp + 0x1150]
push ecx
push edx
lea eax, [esp + 0x84c]
push 0x800
push eax
call dword [sym.imp.MSVCRT.dll__vsnprintf]
mov esi, dword [sym.imp.MSVCRT.dll_strncat]
lea ecx, [esp + 0x854]
push 0x7ff
lea edx, [esp + 0x58]
push ecx
push edx
call esi
add esp, 0x44
lea eax, [esp + 0x1c]
mov byte [esp + 0x81b], 0
push 0x10022384
push eax
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
push 0x7ff
lea ecx, [esp + 0x20]
push 0x10022388
push ecx
call esi
mov al, byte [0x1002229c]
add esp, 0xc
test al, 1
mov byte [esp + 0x81b], 0
je 0x1000bf7d
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test byte [0x1002229c], 2
je 0x1000c001
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push str.c:gwlog.txt
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000c001
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push 0
push 0
push esi
call edi
cmp eax, 0x20000
jbe 0x1000bfd8
push 0
push 0
push 0
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea eax, [esp + 8]
push 0
push eax
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x28]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
add esp, 0x1114
ret
Function at 0x1000cb10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x108
mov eax, dword [esp + 0x10c]
push ebx
push edi
mov ebx, 0xfffffffe
mov cl, byte [eax]
mov dword [esp + 8], 0
test cl, cl
jne 0x1000cb40
pop edi
or eax, 0xffffffff
pop ebx
add esp, 0x108
ret 8
mov edi, dword [esp + 0x118]
cmp byte [edi], 0
jne 0x1000cb5a
pop edi
or eax, 0xffffffff
pop ebx
add esp, 0x108
ret 8
lea ecx, [esp + 0xc]
push 0
push ecx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
cmp eax, 0x104
jae 0x1000cbdf
test eax, eax
je 0x1000cbdf
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1000cbdf
push esi
push str.newdev.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x1000cbd1
push str.UpdateDriverForPlugAndPlayDevicesA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000cbca
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
push 1
push edx
push edi
push 0
call eax
test eax, eax
je 0x1000cbca
mov eax, dword [esp + 0xc]
xor ebx, ebx
test eax, eax
setne bl
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
mov eax, ebx
pop edi
pop ebx
add esp, 0x108
ret 8
pop edi
mov eax, 0xfffffffe
pop ebx
add esp, 0x108
ret 8

Function at 0x1000d1f0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov edx, ecx
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [edx + 4]
push esi
push 1
push eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 8

Function at 0x1000d220
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x400
push esi
mov esi, ecx
lea ecx, [esp + 4]
push eax
push ecx
call fcn.1000d3d0
test eax, eax
jle 0x1000d262
mov ecx, dword [esi + 4]
lea edx, [esp + 4]
push eax
mov eax, dword [esp + 0x40c]
push edx
push 7
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
add esp, 0x400
ret 8
xor eax, eax
pop esi
add esp, 0x400
ret 8

Function at 0x1000d290
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
lea edx, [esp]
push eax
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [ecx + 4]
push 0
push edx
push eax
mov dword [esp + 0x1c], 4
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000d2d1
mov ecx, dword [esp + 0x10]
mov edx, dword [esp]
mov dword [ecx], edx
add esp, 8
ret 8

Function at 0x1000d2e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
lea eax, [esp]
push eax
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push 0
push edx
push eax
mov dword [esp + 0x18], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
pop ecx
ret 8
Function at 0x1000d4a0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x120
lea ecx, [esp + 8]
push ebx
push ebp
push esi
push edi
call fcn.1000d110
mov edi, dword [esp + 0x13c]
mov esi, 0x10008
test edi, edi
je 0x1000d4c8
mov esi, 0x10108
mov ebx, dword [esp + 0x138]
test ebx, ebx
jne 0x1000d4ee
lea ecx, [esp + 0x18]
call fcn.1000d120
pop edi
pop esi
pop ebp
mov eax, 0x3f2
pop ebx
add esp, 0x120
ret 0xc
mov ebp, dword [esp + 0x134]
push edi
push ebx
push ebp
call fcn.1000d5c0
lea eax, [esp + 0x10]
push eax
push esi
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x1000d5a5
mov eax, dword [esp + 0x10]
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x40]
push ecx
push edx
push 0
push eax
mov dword [esp + 0x34], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
cmp esi, 0x103
je 0x1000d564
test esi, esi
jne 0x1000d59a
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x30]
push edi
push ecx
push edx
call fcn.1000d4a0
mov esi, eax
test esi, esi
je 0x1000d517
jmp 0x1000d59a
lea ecx, [esp + 0x24]
call fcn.1000d110
push edi
push ebx
push ebp
call fcn.1000d5c0
test edi, edi
je 0x1000d587
push edi
push ebx
push ebp
call fcn.1000d430
mov esi, eax
test esi, esi
je 0x1000d591
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
lea ecx, [esp + 0x24]
call fcn.1000d120
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
call fcn.1000d120
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x120
ret 0xc

Function at 0x1000eb90
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebp
xor ebp, ebp
push esi
push ebp
push 0xa
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x1000ec14
push ebx
lea eax, [esp + 0xc]
push edi
push eax
push esi
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1000ebfe
mov edi, dword [esp + 0x13c]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea ecx, [esp + 0x34]
push ecx
push edi
call ebx
test eax, eax
je 0x1000ebec
lea edx, [esp + 0x10]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x1000ebfe
jmp 0x1000ebcf
mov eax, dword [esp + 0x140]
mov ecx, dword [esp + 0x18]
mov ebp, 1
mov dword [eax], ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov eax, ebp
pop esi
pop ebp
add esp, 0x128
ret 8
mov eax, ebp
pop esi
pop ebp
add esp, 0x128
ret 8
Function at 0x1000ee70
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x64
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
lea eax, [esp + 0x18]
push eax
push 0xf01ff
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ecx, [esp + 0x10]
mov edx, dword [esp + 0x18]
push ecx
push 1
push 1
push edi
push 0x2000000
push edx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
cmp ebp, edi
je 0x1000efe9
push str.WTSGetActiveConsoleSessionId
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x1000efe9
lea eax, [esp + 0x1c]
push eax
push str.explorer.exe
call fcn.1000eb90
test eax, eax
je 0x1000ef06
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
jne 0x1000ef0c
call esi
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push 4
push eax
push 0xc
push ecx
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
xor edx, edx
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x30]
mov dword [esp + 0x20], edx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], 0x44
test eax, eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x38], str.WinSta0Default
jne 0x1000ef67
mov word [esp + 0x60], dx
mov dword [esp + 0x5c], 1
lea eax, [esp + 0x20]
mov edx, dword [esp + 0x78]
lea ecx, [esp + 0x30]
push eax
mov eax, dword [esp + 0x14]
push ecx
push 0
push 0
push 0x8000020
push 0
push 0
push 0
push edx
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
mov dword [esp + 0x78], eax
je 0x1000efe5
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x1000efe5
mov edx, dword [esp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
lea ecx, [esp + 0x80]
push ecx
push edx
call edi
test eax, eax
je 0x1000efe5
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x80], 0x103
jne 0x1000efe5
push 0x64
call esi
lea eax, [esp + 0x80]
mov ecx, dword [esp + 0x20]
push eax
push ecx
call edi
test eax, eax
jne 0x1000efc1
mov edi, dword [esp + 0x78]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1000eff6
push ebx
call esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1000f001
push eax
call esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000f00c
push eax
call esi
test ebp, ebp
je 0x1000f017
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 0xc