joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100033ec
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x634
lea eax, [ebp - 4]
push esi
push edi
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
mov esi, edx
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x1000341a
xor al, al
jmp 0x1000349b
push esi
push edi
push str._s__s
lea eax, [ebp - 0x630]
push 0x30c
push eax
call dword [sym.imp.ntdll.dll__snwprintf]
add esp, 0x14
lea eax, [ebp - 0x630]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x630]
push eax
mov eax, dword [ebp + 8]
push 1
push 0
add eax, 0x618
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10003413
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x630]
call fcn.10004fe4
pop ecx
pop ecx
test al, al
je 0x10003499
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100034a1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, 0x104
mov esi, edx
push ebx
push dword [ebp + 8]
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10003513
push str._rundll32.exe
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov edx, dword [ebp + 0x10]
mov ecx, edi
call fcn.1000532d
test al, al
je 0x10003513
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor eax, eax
push eax
push eax
push 1
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateFiberEx]
push esi
push str.__s__3
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.ntdll.dll__snwprintf]
add esp, 0x10
test eax, eax
js 0x10003513
cmp eax, ebx
je 0x10003513
mov al, 1
jmp 0x10003515
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10003c7d
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea esi, [ecx + 0x618]
mov ecx, esi
call fcn.10003782
mov ecx, esi
call fcn.1000373c
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x10003cc1
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10003cc6
Capabilities:
Delete file
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 1
mov dword [ebp - 4], ecx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x41c]
mov esi, 0x104
push esi
push eax
push str._LOCALAPPDATA__PRODUCTNAME_xBin
call ebx
dec eax
cmp eax, 0x102
ja 0x10003d0c
lea ecx, [ebp - 0x41c]
call fcn.1000408d
push 1
call edi
push esi
lea eax, [ebp - 0x210]
push eax
push 0x10007328
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
dec eax
cmp eax, 0x102
ja 0x10003d36
lea eax, [ebp - 0x210]
push eax
call esi
push 1
call edi
mov edi, 0x104
lea eax, [ebp - 0x210]
push edi
push eax
push str._LOCALAPPDATA__PRODUCTNAME_xBin_f.dat
call ebx
dec eax
cmp eax, 0x102
ja 0x10003d5f
lea eax, [ebp - 0x210]
push eax
call esi
mov eax, dword [ebp - 4]
add eax, 0xa28
push eax
lea eax, [ebp - 0x41c]
push eax
push str._s_s.dll
lea eax, [ebp - 0x210]
push edi
push eax
call dword [sym.imp.ntdll.dll__snwprintf]
add esp, 0x14
lea eax, [ebp - 0x210]
push eax
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10003d95
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push esi
mov esi, ecx
lea ecx, [ebp - 0x208]
push edi
call fcn.100048d8
test al, al
je 0x10003e3c
lea eax, [ebp - 0x410]
add esi, 0x410
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
mov ecx, esi
mov edx, eax
call fcn.10004d14
pop ecx
test al, al
je 0x10003e3c
mov esi, dword [sym.imp.ntdll.dll__snwprintf]
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x208]
mov edi, 0x104
push eax
push str._sdefaultspref__s.js
lea eax, [ebp - 0x618]
push edi
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x208]
push eax
push str._s_s
lea eax, [ebp - 0x820]
push edi
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x618]
add esp, 0x14
push eax
call esi
lea eax, [ebp - 0x820]
push eax
call esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10003e42
Capabilities:
Delete file
Enumerate files on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc7c
and dword [ebp - 0x250], 0
lea eax, [ebp - 0x24c]
push ebx
push esi
push edi
push 0x24c
push 0
push eax
mov esi, ecx
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [ebp - 0x660]
add esi, 0x410
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
mov ecx, esi
mov edx, eax
call fcn.10004d14
pop ecx
test al, al
je 0x10003f90
push 1
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, 0x104
lea eax, [ebp - 0x458]
push esi
push eax
push str._APPDATA_MozillaFirefoxProfiles
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x102
ja 0x10003f90
mov edi, dword [sym.imp.ntdll.dll__snwprintf]
lea eax, [ebp - 0x458]
push eax
push str._s
lea eax, [ebp - 0x868]
push esi
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x868]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10003f90
mov ebx, 0x208
test byte [ebp - 0x250], 0x10
je 0x10003f73
lea eax, [ebp - 0x660]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x458]
push eax
push str._s_sextensions__s.xpi
lea eax, [ebp - 0xc78]
push ebx
push eax
call edi
add esp, 0x18
lea eax, [ebp - 0xc78]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x660]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x458]
push eax
push str._s_sjetpack__s
lea eax, [ebp - 0xc78]
push ebx
push eax
call edi
add esp, 0x18
lea ecx, [ebp - 0xc78]
call fcn.1000408d
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10003f04
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10003f97
Capabilities:
Delete registry key
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
push ebx
push esi
push edi
mov edi, edx
test edi, edi
je 0x10004086
lea ecx, [edi + 0x618]
call fcn.1000412e
test al, al
je 0x10004086
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, SysReAllocString
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall9563BC59_9556_4805_8CD4_886781779D8D
push ebx
call esi
push str.SoftwareCLASSESCLSID9563BC59_9556_4805_8CD4_886781779D8D
push ebx
call esi
mov ecx, edi
call fcn.10003c7d
call fcn.10004be5
mov ecx, edi
call fcn.10003cc6
mov ecx, str.chrome.exe
call fcn.1000515c
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 1
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x210]
push 0x104
push eax
push str._LOCALAPPDATA__PRODUCTNAME_Component
call ebx
dec eax
cmp eax, 0x102
ja 0x10004044
push 0x12c
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10004086
lea ecx, [ebp - 0x210]
call fcn.1000408d
mov ecx, edi
call fcn.10003d95
mov ecx, str.firefox.exe
call fcn.1000515c
push 1
call esi
push 0x104
lea eax, [ebp - 0x420]
push eax
push str._LOCALAPPDATA__PRODUCTNAME_Component2
call ebx
dec eax
cmp eax, 0x102
ja 0x1000407f
lea ecx, [ebp - 0x420]
call fcn.1000408d
mov ecx, edi
call fcn.10003e42
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000408d
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
and dword [ebp - 0x20], 0
xor eax, eax
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0x1c]
push 6
pop ecx
rep stosd dword es:[edi], eax
push esi
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
mov eax, 0x104
cmp edi, eax
jge 0x10004128
push eax
push esi
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
xor eax, eax
mov dword [ebp - 0x1c], 3
mov word [ebp + edi*2 - 0x22a], ax
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x18], eax
mov eax, 0x614
mov word [ebp - 0x10], ax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFiberEx]
xor eax, eax
push eax
push eax
push 1
push eax
push eax
call esi
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
call edi
xor eax, eax
push eax
push eax
push 1
push eax
push eax
call esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100044a8
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
push edi
push 1
mov esi, ecx
call ebx
push 0x104
push esi
push str._ProgramFiles_GoogleChromeApplication_BROWSNAMEC_.exe
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
dec eax
cmp eax, 0x102
ja 0x100044e2
push esi
call edi
cmp eax, 0xffffffff
je 0x100044e2
mov al, 1
jmp 0x10004553
push 1
call ebx
push 0x104
push esi
push str._ProgramW6432_GoogleChromeApplication_BROWSNAMEC_.exe
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x102
ja 0x10004507
push esi
call edi
cmp eax, 0xffffffff
jne 0x100044de
push 1
call ebx
push 0x104
push esi
push str._LOCALAPPDATA_GoogleChromeApplication_BROWSNAMEC_.exe
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x102
ja 0x1000452c
push esi
call edi
cmp eax, 0xffffffff
jne 0x100044de
push 1
call ebx
push 0x104
push esi
push str._LOCALAPPDATA_ChromeApplication_BROWSNAMEC_.exe
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x102
ja 0x10004551
push esi
call edi
cmp eax, 0xffffffff
jne 0x100044de
xor al, al
pop edi
pop esi
pop ebx
ret

Function at 0x10004671
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
push esi
xor ebx, ebx
mov esi, ecx
inc ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x104
lea eax, [ebp - 0x208]
push eax
push str.select__from_win32_process_where_executablepath_like____BROWSNAMEC_.exe_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x102
jbe 0x100046ab
xor al, al
jmp 0x100046e1
push esi
lea ecx, [ebp - 0x208]
call fcn.100056c6
pop ecx
test al, al
je 0x100046dd
lea ecx, [ebp - 0x410]
call fcn.100044a8
test al, al
je 0x100046dd
lea eax, [ebp - 0x410]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x100046df
xor ebx, ebx
mov al, bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100046e7
Capabilities:
Check if file exists
Get file attributes
Query environment variable
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
push 1
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0x10007328
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x102
jbe 0x10004723
xor al, al
jmp 0x100047b0
xor ebx, ebx
lea eax, [ebp - 0x210]
push ebx
push ebx
push 4
push ebx
push ebx
push 0x1f01ff
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000471c
push ebx
lea eax, [ebp - 8]
push eax
push 0x208
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10004766
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100047a7
mov ecx, esi
call fcn.10004671
test al, al
jne 0x10004781
mov edx, esi
mov ecx, 0x10004557
call fcn.1000447b
test al, al
je 0x1000471c
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 1]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100048d8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push esi
mov esi, ecx
mov ecx, 0x100047b7
mov edx, esi
call fcn.1000447b
test al, al
je 0x10004926
push esi
push str._s_firefox.exe
lea eax, [ebp - 0x208]
push 0x104
push eax
call dword [sym.imp.ntdll.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10004963
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push ebx
push esi
push edi
xor eax, eax
xor esi, esi
push 0x208
mov word [ebp - 0x230], ax
mov ebx, edx
lea eax, [ebp - 0x22e]
mov dword [ebp - 8], ebx
mov edi, ecx
mov dword [ebp - 4], esi
push esi
push eax
mov dword [ebp - 0x20], edi
call sub.ntdll.dll_memset
add esp, 0xc
push 4
pop eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 4]
push eax
push 0x20119
push esi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10004a7d
lea eax, [ebp - 0x24]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0xc]
push eax
push esi
push str.CurrentMajorVersionNumber
push dword [ebp - 4]
call edi
test eax, eax
jne 0x10004a09
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x1c]
push eax
push esi
push str.CurrentMinorVersionNumber
push dword [ebp - 4]
call edi
test eax, eax
jne 0x10004a09
cmp dword [ebp - 0xc], 4
jne 0x10004a09
cmp dword [ebp - 0x1c], 4
je 0x10004a7a
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x20a
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push str.CurrentVersion
push dword [ebp - 4]
call edi
test eax, eax
jne 0x10004a7d
cmp dword [ebp - 0x18], 1
jne 0x10004a7d
lea eax, [ebp - 0x230]
push 0x2e
push eax
call dword [sym.imp.ntdll.dll_wcschr]
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10004a50
xor eax, eax
mov word [edi], ax
mov ebx, dword [sym.imp.ntdll.dll__wtoi]
lea eax, [ebp - 0x230]
push eax
call ebx
pop ecx
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
mov dword [eax], esi
test edi, edi
je 0x10004a7a
lea eax, [edi + 2]
push eax
call ebx
pop ecx
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
xor esi, esi
inc esi
cmp dword [ebp - 4], 0
je 0x10004a8c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10004be5
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push str.LocalFC6B2E80_03FF_4415_B850_5FA94D62AE61
xor ebx, ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 4], eax
test eax, eax
jne 0x10004c06
xor al, al
jmp 0x10004c59
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push str.LocalFC6B2E80_03FF_4415_B850_5FA94D62AE62
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
test esi, esi
je 0x10004c50
push 0x2710
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10004c44
cmp eax, 0x80
je 0x10004c44
push esi
call edi
jmp 0x10004c50
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call edi
mov bl, 1
push dword [ebp - 4]
call edi
pop edi
mov al, bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10004c5e
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
push esi
xor esi, esi
mov dword [esp + 0x18], 0x67452301
push edx
mov edx, ecx
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], 0xefcdab89
mov dword [esp + 0x24], 0x98badcfe
mov dword [esp + 0x28], 0x10325476
call fcn.10003326
pop ecx
mov edx, esi
mov eax, edx
mov ecx, edx
sar eax, 2
and ecx, 3
shl ecx, 3
mov eax, dword [esp + eax*4 + 0x10]
shr eax, cl
mov byte [esp + edx + 8], al
inc edx
cmp edx, 8
jl 0x10004ca1
mov eax, dword [esp + 0x10]
mov edx, 0x10006e00
push 0xfffffffffffffff7
shr eax, 3
pop ecx
sub ecx, eax
and ecx, 0x3f
inc ecx
push ecx
lea ecx, [esp + 0x14]
call fcn.10003326
push 8
lea edx, [esp + 0x10]
lea ecx, [esp + 0x18]
call fcn.10003326
mov edx, dword [ebp + 8]
pop ecx
pop ecx
mov eax, esi
mov ecx, esi
sar eax, 2
and ecx, 3
shl ecx, 3
mov eax, dword [esp + eax*4 + 0x18]
shr eax, cl
mov byte [esi + edx], al
inc esi
cmp esi, 0x10
jl 0x10004cf1
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10004d80
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov esi, edx
mov dword [ebp - 4], ecx
push 3
xor edx, edx
pop ecx
lea eax, [esi + 2]
div ecx
mov edi, eax
mov eax, dword [ebp + 0xc]
shl edi, 2
mov dword [ebp - 8], edi
cmp dword [eax], edi
jae 0x10004dac
xor al, al
jmp 0x10004e68
xor edx, edx
mov dword [eax], edi
test esi, esi
je 0x10004e48
mov edi, dword [ebp - 4]
push ebx
mov ebx, dword [ebp + 8]
cmp edx, esi
jae 0x10004dc9
mov cl, byte [edx + edi]
inc edx
jmp 0x10004dcb
xor cl, cl
cmp edx, esi
jae 0x10004dd5
mov ah, byte [edx + edi]
inc edx
jmp 0x10004dd7
xor ah, ah
cmp edx, esi
jae 0x10004de4
mov al, byte [edx + edi]
inc edx
mov byte [ebp + 0xf], al
jmp 0x10004de8
mov byte [ebp + 0xf], 0
movzx eax, ah
movzx ecx, cl
shl ecx, 8
add ecx, eax
movzx eax, byte [ebp + 0xf]
shl ecx, 8
add ecx, eax
mov eax, ecx
shr eax, 0x12
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx], al
mov eax, ecx
shr eax, 0xc
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + 1], al
mov eax, ecx
shr eax, 6
and ecx, 0x3f
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + 2], al
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + 3], al
add ebx, 4
cmp edx, esi
jb 0x10004dc3
mov edi, dword [ebp - 8]
push 3
pop ecx
pop ebx
xor edx, edx
mov eax, esi
div ecx
mov ecx, dword [edx*4 + 0x10006e80]
test ecx, ecx
jle 0x10004e66
mov eax, dword [ebp + 8]
dec eax
add eax, edi
mov byte [eax], 0x3d
dec eax
dec ecx
jne 0x10004e5f
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10004f2e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, edx
xor esi, esi
test edi, edi
je 0x10004f52
push ebx
mov ebx, dword [ebp + 8]
xor edx, edx
mov eax, esi
div dword [ebp + 0xc]
mov al, byte [edx + ebx]
xor byte [esi + ecx], al
inc esi
cmp esi, edi
jb 0x10004f3f
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x10004fe4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
push 0x40
xor edi, edi
lea eax, [ebp - 0x54]
xorps xmm0, xmm0
mov esi, ecx
push edi
push eax
movdqu xmmword [ebp - 0x10], xmm0
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0x58], 0x44
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push edi
push 1
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateFiberEx]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1000504f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor al, al
jmp 0x10005062
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 8]
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword [edx], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10005068
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
mov word [ebp - 0xc], 0x500
lea eax, [ebp - 4]
mov dword [ebp - 8], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x100050af
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
cmp dword [ebp - 4], 0
pop ebx
je 0x100050bf
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
xor eax, eax
cmp dword [ebp - 8], eax
setne al
mov esp, ebp
pop ebp
ret

Function at 0x100050cb
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 4], ecx
push esi
push 2
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100050f2
xor eax, eax
jmp 0x10005155
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x10005148
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1000513a
cmp dword [ebp - 0x228], ebx
jbe 0x1000513a
test esi, esi
je 0x10005134
cmp dword [ebp - 0x228], esi
jae 0x1000513a
mov esi, dword [ebp - 0x228]
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1000510c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret