joyce8/EMBER2024-capa huggingface dataset:
Function at 0x986570
Capabilities:
Check os version

Disassembly:
sub esp, 8
test byte [0xc0ea44], 1
push ebx
push ebp
push esi
mov esi, 1
jne 0x986594
or dword [0xc0ea44], esi
call fcn.009686d0
mov dword [0xc0ea40], eax
mov eax, 2
test byte [0xc0ea44], al
jne 0x9865d4
or dword [0xc0ea44], eax
cmp dword [0xbfc9d0], 0
jne 0x9865ca
mov dword [0xbfc9d0], esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
js 0x9865ca
cmp al, 6
jb 0x9865ca
mov dword [0xbfc9d4], esi
mov eax, dword [0xbfc9d4]
mov dword [0xc0ea3c], eax
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x9865de
mov dword [ebx], esi
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x9865ed
mov dword [ebp], 0
cmp dword [0xc0ea40], 0
jne 0x986601
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8
cmp dword [0xc0136c], 0
jne 0x986623
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0xc0136c], eax
test eax, eax
je 0x9865f6
cmp eax, 0xffffffff
je 0x9865f6
cmp dword [0xc0137c], 0
jne 0x986682
mov ecx, str.Wtsapi32.dll
call fcn.0094c620
mov dword [0xc0137c], eax
test eax, eax
je 0x9865f6
cmp eax, 0xffffffff
je 0x9865f6
mov ecx, dword [0xc0136c]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WTSGetActiveConsoleSessionId
push ecx
call esi
mov edx, dword [0xc0137c]
push str.WTSQuerySessionInformationA
push edx
mov dword [0xc01370], eax
call esi
mov dword [0xc01374], eax
mov eax, dword [0xc0137c]
push str.WTSFreeMemory
push eax
call esi
mov dword [0xc01378], eax
mov eax, dword [0xc01370]
test eax, eax
je 0x9865f6
cmp dword [0xc01374], 0
je 0x9865f6
cmp dword [0xc01378], 0
je 0x9865f6
push edi
call eax
mov edi, eax
cmp edi, 0xffffffff
jne 0x9866bf
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push 8
xor esi, esi
push edi
push esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call dword [0xc01374]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x9866f9
cmp dword [esp + 0x14], 4
jne 0x9866f9
cmp ebx, esi
je 0x9866f9
xor ecx, ecx
cmp dword [eax], esi
sete cl
mov dword [ebx], ecx
cmp eax, esi
je 0x986708
push eax
call dword [0xc01378]
mov dword [esp + 0x10], esi
mov esi, edi
test ebp, ebp
je 0x986711
mov dword [ebp], edi
cmp dword [0xc0ea3c], 0
je 0x98671f
test edi, edi
jbe 0x98671f
dec edi
push 0xffffffffffffffff
call fcn.00986420
add esp, 4
test eax, eax
je 0x986738
call fcn.00986370
test eax, eax
jne 0x986738
xor edi, edi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
Function at 0x987d50
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x324
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x320], eax
push ebx
push esi
push edi
push 0x103
lea eax, [esp + 0x225]
mov esi, ecx
push 0
push eax
mov dword [esp + 0x18], esi
mov byte [esp + 0x22c], 0
call fcn.00a7ffb0
add esp, 0xc
lea ebx, [esp + 0x220]
mov byte [esi], 0
call fcn.009541a0
cmp eax, 1
jne 0x987e96
xor ebx, ebx
push 0x103
lea ecx, [esp + 0x15]
push ebx
push ecx
mov byte [esp + 0x1c], bl
call fcn.00a7ffb0
push 0x103
lea edx, [esp + 0x129]
push ebx
push edx
mov byte [esp + 0x130], bl
call fcn.00a7ffb0
add esp, 0x18
lea eax, [esp + 0x220]
push eax
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp byte [esp + 0x10], bl
je 0x987e1e
lea eax, [esp + 0x10]
inc eax
cmp byte [eax], bl
jne 0x987e00
lea edx, [esp + 0x10]
sub eax, edx
je 0x987e1e
cmp byte [esp + eax + 0xf], 0x5c
je 0x987e1e
push 0xaa1564
mov eax, edx
push eax
call esi
push str.eserv.ini
lea ecx, [esp + 0x14]
push ecx
call esi
push 1
push ebx
xor edx, edx
lea ecx, [esp + 0x18]
call fcn.0095a0f0
add esp, 8
test eax, eax
jne 0x987e96
lea edx, [esp + 0x10]
push edx
push 0x104
lea eax, [esp + 0x120]
push eax
push 0xaa1543
push str.FTPDownloadDir
push str.general
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x118], bl
je 0x987e96
xor ecx, ecx
lea edi, [esp + 0x118]
call fcn.0095a6d0
test eax, eax
je 0x987e96
mov esi, edi
call fcn.00960950
mov edx, dword [esp + 0xc]
mov ecx, edi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x32c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00a78f21
mov esp, ebp
pop ebp
ret
Function at 0x989220
Capabilities:
Get storage device properties

Disassembly:
sub esp, 0x14
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
xor edx, edx
push edx
mov dword [esp + 4], edx
mov dword [esp + 8], edx
mov dword [esp + 0xc], edx
lea edx, [esp + 4]
push edx
mov edx, dword [eax + 4]
push edx
push eax
push 0xc
lea eax, [esp + 0x18]
push eax
push 0x2d1400
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00a78f21
add esp, 0x14
ret 4
Function at 0x9899d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x748
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x744], eax
push ebx
push edi
push 0x103
lea eax, [esp + 0x645]
push 0
push eax
mov byte [esp + 0x64c], 0
call fcn.00a7ffb0
add esp, 0xc
push 0x103
lea ecx, [esp + 0x225]
push 0
push ecx
mov byte [esp + 0x22c], 0
call fcn.00a7ffb0
add esp, 0xc
push 0x103
lea edx, [esp + 0x53d]
push 0
push edx
mov byte [esp + 0x544], 0
call fcn.00a7ffb0
add esp, 0xc
push 0x103
lea eax, [esp + 0x15]
push 0
push eax
mov byte [esp + 0x1c], 0
call fcn.00a7ffb0
lea ecx, [esp + 0x64c]
add esp, 0xc
push ecx
lea edx, [esp + 0x14]
lea ecx, [esp + 0x224]
call fcn.0096df10
add esp, 4
cmp byte [esp + 0x10], 0
jne 0x989a9e
cmp byte [esp + 0x220], 0
je 0x989a9e
lea ecx, [esp + 0x10]
lea edx, [esp + 0x220]
call fcn.009597a0
lea edx, [esp + 0x220]
push edx
push 0x104
lea eax, [esp + 0x540]
push eax
push 0xaa1ac4
push str.InstalledForEScan
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
xor ecx, ecx
cmp byte [esp + 0x538], 0x30
setne cl
cmp byte [esp + 0x10], 0
mov dword [esp + 0xc], ecx
je 0x989af4
xor ecx, ecx
lea edi, [esp + 0x10]
call fcn.0095a6d0
test eax, eax
je 0x989af4
mov edx, edi
push edx
jmp 0x989afc
lea eax, [esp + 0x640]
push eax
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call ebx
cmp dword [esp + 0xc], 0
jne 0x989c2f
push 0x103
lea ecx, [esp + 0x435]
push 0
push ecx
mov byte [esp + 0x43c], 0
call fcn.00a7ffb0
add esp, 0xc
push 0x104
lea edx, [esp + 0x434]
push edx
push 0xaa1543
mov edx, str.InstallDirectory
mov ecx, 0xaa1ad0
call fcn.00958d30
add esp, 0xc
cmp byte [esp + 0x430], 0
je 0x989c2f
xor ecx, ecx
lea edi, [esp + 0x430]
call fcn.0095a6d0
cmp eax, 1
jne 0x989c2f
push 0x103
lea eax, [esp + 0x32d]
push 0
push eax
mov byte [esp + 0x334], 0
call fcn.00a7ffb0
add esp, 0xc
push 0x103
lea ecx, [esp + 0x11d]
push 0
push ecx
mov byte [esp + 0x124], 0
call fcn.00a7ffb0
add esp, 0xc
push esi
lea edx, [esp + 0x32c]
push edx
call ebx
mov ecx, esi
call fcn.00960910
push str.AVPLITE
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor ecx, ecx
mov edi, esi
call fcn.0095a6d0
test eax, eax
je 0x989c24
push esi
lea ecx, [esp + 0x11c]
push ecx
call ebx
lea ecx, [esp + 0x118]
call fcn.00960910
push 0xaab444
lea edx, [esp + 0x11c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 1
push 0
xor edx, edx
lea ecx, [esp + 0x120]
call fcn.0095a0f0
add esp, 8
test eax, eax
je 0x989c2f
lea eax, [esp + 0x328]
push eax
push esi
call ebx
mov ecx, dword [esp + 0x74c]
pop edi
pop ebx
xor ecx, esp
call fcn.00a78f21
mov esp, ebp
pop ebp
ret
Function at 0x98a140
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
xor esi, esi
push esi
lea eax, [esp + 0xc]
push eax
push esi
push 0x10
mov dword [esp + 0x18], esi
call edi
mov eax, dword [esp + 8]
cmp eax, esi
je 0x98a1d3
lea ecx, [esp + 0xc]
push ecx
push 1
push esi
push str.Control_PanelDesktop
push 0x80000001
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x98a1b8
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push esi
push esi
push esi
push str.SCRNSAVE.EXE
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0xc]
neg eax
sbb eax, eax
inc eax
push ecx
mov dword [esp + 0xc], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], esi
mov eax, dword [esp + 8]
cmp eax, esi
je 0x98a1d3
push esi
lea edx, [esp + 0xc]
push edx
push esi
push 0x72
mov dword [esp + 0x18], esi
call edi
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0xc
ret
Function at 0x98aa50
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x180
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x17c], eax
push esi
xor esi, esi
push edi
mov edi, ecx
mov dword [esp + 0xc], esi
cmp ebx, esi
je 0x98aa7b
mov byte [ebx], 0
cmp dword [0xb4c914], 0xffffffff
jne 0x98aaa7
push 0xb4c914
push str.OptimizeMemory
mov ecx, str.SOFTWAREMicroWorld
mov edx, 0x80000002
mov dword [0xb4c914], 1
call fcn.0094c0d0
cmp dword [0xb4c914], esi
je 0x98ab4d
push 0x3c
lea eax, [esp + 0x40]
push esi
push eax
call fcn.00a7ffb0
add esp, 0xc
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x3c], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x98aaeb
mov esi, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
shrd esi, edx, 0xa
shr edx, 0xa
jmp 0x98ab1f
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov esi, dword [esp + 0x20]
shr esi, 0xa
call fcn.00968b30
test eax, eax
jne 0x98ab3a
call fcn.00963620
cmp eax, 2
jg 0x98ab3a
cmp esi, 0x180000
jb 0x98ab63
cmp dword [0xb4c914], 4
je 0x98ab63
mov dword [0xb4c914], 0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x17c]
xor ecx, esp
call fcn.00a78f21
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x98ab6f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
jmp 0x98ab71
mov eax, edi
push eax
push 0x510
call fcn.0097af50
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x98abfb
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [esp + 0xc], esi
call edi
mov dword [esp + 0x14], eax
test esi, esi
jne 0x98ac42
test ebx, ebx
je 0x98abee
push 0x103
lea ecx, [esp + 0x7d]
push esi
push ecx
mov byte [esp + 0x84], 0
call fcn.00a7ffb0
add esp, 0xc
call edi
push 0x104
mov edi, eax
lea esi, [esp + 0x7c]
call fcn.00960a40
mov edx, esi
push edx
push str.SETSIZE:_Error__s.
push ebx
call fcn.00a78f30
add esp, 0x10
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x98ac42
test ebx, ebx
je 0x98ac42
push 0x103
lea ecx, [esp + 0x7d]
push 0
push ecx
mov byte [esp + 0x84], 0
call fcn.00a7ffb0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x104
mov edi, eax
lea esi, [esp + 0x7c]
call fcn.00960a40
mov edx, esi
push edx
push str.SETSIZE:_Unable_to_Open_Process__Reason:__s
push ebx
call fcn.00a78f30
add esp, 0x10
lea eax, [esp + 0x10]
push eax
call fcn.00985290
mov ecx, dword [esp + 0x184]
mov eax, dword [esp + 0xc]
pop edi
pop esi
xor ecx, esp
call fcn.00a78f21
mov esp, ebp
pop ebp
ret
Function at 0x98b030
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
sub esp, 0x830
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x82c], eax
push ebp
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [esp + 0x10], edi
cmp esi, edi
je 0x98b16b
cmp byte [esi], 0
je 0x98b16b
cmp ebx, edi
je 0x98b16b
push edi
push esi
mov byte [ebx], 0
call fcn.00965e80
add esp, 8
push esi
test eax, eax
jne 0x98b12d
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x820], edi
call esi
push 0xaa1543
lea ecx, [esp + 0x418]
push ecx
call esi
lea edx, [esp + 0x14]
push edx
push edi
push 0x98af40
mov dword [esp + 0x828], edi
call fcn.00a791b2
add esp, 0xc
mov dword [esp + 0x824], eax
cmp eax, 0xffffffff
je 0x98b13c
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x81c], edi
jne 0x98b0e3
push 1
call ebp
cmp dword [esp + 0x81c], edi
je 0x98b0d6
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0x2710
jae 0x98b111
push 5
call ebp
cmp dword [esp + 0x818], 1
je 0x98b11b
call esi
sub eax, edi
cmp eax, 0x2710
jb 0x98b0f8
cmp dword [esp + 0x818], 1
jne 0x98b158
cmp byte [esp + 0x414], 0
je 0x98b13c
lea eax, [esp + 0x414]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x82c]
xor ecx, esp
call fcn.00a78f21
add esp, 0x830
ret
mov eax, dword [esp + 0x828]
test eax, eax
je 0x98b13c
mov dword [eax], 1
jmp 0x98b13c
mov ecx, dword [esp + 0x838]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.00a78f21
add esp, 0x830
ret

Function at 0x98b8f0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x110
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x10c], eax
push esi
push 0x103
lea eax, [esp + 9]
push 0
push eax
mov byte [esp + 0x10], 0
call fcn.00a7ffb0
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add esp, 0xc
push str.C:PROGRA2eScanMAILSCAN.INI
push 0x104
lea ecx, [esp + 0xc]
push ecx
push 0xaae0f8
push str.Enabled
push str.General
call esi
cmp byte [esp + 4], 0x30
jne 0x98b97f
mov dword [0xb3df10], 0
mov dword [0xbd5754], 0
mov dword [0xbd4b1c], 0
pop esi
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00a78f21
add esp, 0x110
ret
push str.C:PROGRA2eScanMAILSCAN.INI
push 0x104
lea edx, [esp + 0xc]
push edx
push 0xaae0f8
push str.CheckForMailPhishing
push str.General
call esi
push str.C:PROGRA2eScanMAILSCAN.INI
xor eax, eax
cmp byte [esp + 8], 0x30
push 0x104
lea ecx, [esp + 0xc]
push ecx
setne al
push 0xaa1ac4
push str.ContentControlEnabled
push str.General
mov dword [0xb3df10], eax
call esi
xor edx, edx
cmp byte [esp + 4], 0x31
push 0x104
sete dl
lea eax, [esp + 8]
push eax
push 0xaae0f8
mov ecx, 0xaa1ad0
mov dword [0xbd5754], edx
mov edx, str.DisableAV
call fcn.00958d30
xor ecx, ecx
add esp, 0xc
cmp byte [esp + 4], 0x30
pop esi
sete cl
mov dword [0xbd4b1c], ecx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.00a78f21
add esp, 0x110
ret
Function at 0x98bfc0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push esi
xor esi, esi
push 0xae868c
push str.kernel32.dll
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x98c044
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x30]
push ecx
push edi
call eax
test eax, eax
je 0x98c08c
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push esi
push 0x400
push edx
push eax
call fcn.00a8a150
push esi
push 0x400
push edx
push eax
call fcn.00a8a150
mov dword [esp + 0x14], edx
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x98c08c
mov eax, dword [esp + 4]
imul eax, dword [esp + 8]
imul eax, dword [esp + 0xc]
push esi
xor ecx, ecx
push 0x400
push ecx
jmp 0x98c028
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x98ca90
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0xb0f0a8
push 0xa847a0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0xb196ec]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], 0x80
mov dword [ebp - 0x1c], 0x10
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], esi
mov eax, dword [ebp + 0xc]
cmp eax, esi
jne 0x98cb0a
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0xb196ec
call fcn.00a858f0
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [eax], 0
push 0x80
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x98cbb2
mov ecx, dword [ebp - 0x1c]
lea edx, [ecx + ecx]
push edx
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
mov dword [ebp - 0x20], esi
je 0x98cbb2
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push esi
lea edx, [ebp - 0x28]
push edx
push edi
mov eax, dword [ebp + 8]
push eax
xor eax, eax
push eax
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x98cba2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x98cbb2
mov ecx, dword [ebp - 0x28]
push ecx
push edi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x98cbb2
mov edx, dword [ebp - 0x1c]
lea eax, [edx + edx]
push eax
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
jmp 0x98cb41
mov ecx, dword [ebp + 0xc]
push ecx
push edi
call fcn.00988b10
add esp, 8
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.0098cbff
test esi, esi
je 0x98cbce
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
je 0x98cbde
push edi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x98d390
Capabilities:
Set file attributes

Disassembly:
test esi, esi
je 0x98d3c9
cmp byte [esi], 0
je 0x98d3c9
mov eax, esi
call fcn.0095a560
cmp eax, 0xffffffff
je 0x98d3c9
cmp dword [esp + 4], 1
jne 0x98d3b6
movzx eax, al
shr eax, 5
and eax, 1
ret
test al, 0x20
je 0x98d3c3
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, 1
ret
xor eax, eax
ret

Function at 0x98d3d0
Capabilities:
Set file attributes

Disassembly:
mov eax, esi
call fcn.0095a560
cmp eax, 0xffffffff
jne 0x98d3df
xor eax, eax
ret
test al, 7
je 0x98d3f3
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x98d3dc
mov eax, 1
ret
Function at 0x99a3e0
Capabilities:
Acquire debug privileges
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0xcf2c
call fcn.00a91950
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0xcf28], eax
push ebx
xor ebx, ebx
push 0xbda6a8
mov byte [esp + 0xc], bl
mov byte [esp + 0x40c], bl
mov dword [0xb2d7a4], 1
mov dword [0xbd9fac], ebx
mov dword [0xbda6a8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [0xbda6b8], 2
jne 0x99a5d0
mov ecx, str.SeCreateTokenPrivilege
mov dword [0xb52b48], 1
call fcn.0095fcc0
mov ecx, str.SeAssignPrimaryTokenPrivilege
call fcn.0095fcc0
mov ecx, str.SeLockMemoryPrivilege
call fcn.0095fcc0
mov ecx, str.SeIncreaseQuotaPrivilege
call fcn.0095fcc0
mov ecx, str.SeUnsolicitedInputPrivilege
call fcn.0095fcc0
mov ecx, str.SeMachineAccountPrivilege
call fcn.0095fcc0
mov ecx, str.SeTcbPrivilege
call fcn.0095fcc0
mov ecx, str.SeSecurityPrivilege
call fcn.0095fcc0
mov ecx, str.SeTakeOwnershipPrivilege
call fcn.0095fcc0
mov ecx, str.SeLoadDriverPrivilege
call fcn.0095fcc0
mov ecx, str.SeSystemProfilePrivilege
call fcn.0095fcc0
mov ecx, str.SeSystemtimePrivilege
call fcn.0095fcc0
mov ecx, str.SeProfileSingleProcessPrivilege
call fcn.0095fcc0
mov ecx, str.SeIncreaseBasePriorityPrivilege
call fcn.0095fcc0
mov ecx, str.SeCreatePagefilePrivilege
call fcn.0095fcc0
mov ecx, str.SeCreatePermanentPrivilege
call fcn.0095fcc0
mov ecx, str.SeBackupPrivilege
call fcn.0095fcc0
mov ecx, str.SeRestorePrivilege
call fcn.0095fcc0
mov ecx, str.SeShutdownPrivilege
call fcn.0095fcc0
mov ecx, str.SeDebugPrivilege
call fcn.0095fcc0
mov ecx, str.SeAuditPrivilege
call fcn.0095fcc0
mov ecx, str.SeSystemEnvironmentPrivilege
call fcn.0095fcc0
mov ecx, 0xaf13f0
call fcn.0095fcc0
mov ecx, str.SeRemoteShutdownPrivilege
call fcn.0095fcc0
push 0xcb20
lea eax, [esp + 0x40c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 8]
lea edx, [esp + 0x408]
call fcn.009597a0
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov edx, dword [str.trayico]
mov eax, dword [0xacce00]
mov dword [esp + 0x408], edx
mov dword [esp + 0x40c], eax
cmp esi, ebx
je 0x99a59d
cmp byte [esi], bl
je 0x99a59d
lea edx, [esp + 0x408]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x99a593
push ebx
lea ecx, [esp + 0x40c]
push ecx
call 0x999b90
xor eax, eax
cmp dword [0xbd9ea4], 1
jne 0x99a5bd
call fcn.0097aa80
xor eax, eax
mov ecx, dword [esp + 0xcf2c]
pop ebx
xor ecx, esp
call fcn.00a78f21
mov esp, ebp
pop ebp
ret
mov dword [0xb52b48], ebx
jmp 0x99a538
Function at 0x99a5e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
lea eax, [esp + 0xc]
push eax
xor edi, edi
push edi
push ebx
push edi
push str.DependOnService
push ebp
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
je 0x99a616
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret
mov ecx, dword [esp + 0x18]
mov esi, dword [ecx]
test esi, esi
jne 0x99a64a
mov edx, dword [esp + 0xc]
lea edi, [esi + 1]
add edx, 0x11
push edi
push edx
call fcn.00a7b9f8
mov esi, eax
add esp, 8
test esi, esi
jne 0x99a64a
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [edi + 0x79]
pop edi
pop esi
pop ebp
pop ecx
ret
lea eax, [esp + 0xc]
push eax
push esi
push ebx
push 0
push str.DependOnService
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test edi, edi
je 0x99a669
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x99a677
mov edx, dword [esp + 0xc]
mov dword [ecx], edx
pop edi
pop esi
pop ebp
pop ecx
ret