joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4912e0
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x584fab
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x5f4760]
xor eax, esp
mov dword [esp + 0x240], eax
push ebp
push esi
mov eax, dword [0x5f4760]
xor eax, esp
push eax
lea eax, [esp + 0x250]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x260]
push 0
push 2
mov dword [esp + 0x14], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x258], 0
cmp esi, 0xffffffff
jne 0x491391
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._FEUS__CreateToolhelp32Snapshot_err_u
call fcn.004916b0
add esp, 8
mov dword [esp + 0x258], esi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x250]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.004a314d
add esp, 0x250
ret
lea eax, [esp + 0x1c]
push eax
push esi
mov dword [esp + 0x24], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x491442
lea esp, [esp]
lea ecx, [esp + 0x40]
push str.explorer.exe
push ecx
call fcn.004aa763
add esp, 8
test eax, eax
jne 0x49142d
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x18], 0xffffffff
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x491419
mov eax, dword [esp + 0x10]
cmp eax, edi
jne 0x4913fa
push edi
mov dword [esp + 0x10], 1
push str._FEUS__find_explorer_of_session__u
jmp 0x491425
cmp dword [ebx], 0
jne 0x49142d
push edi
push eax
mov dword [ebx], 1
push str._FEUS___sid_explorer__dwSession__u__u
mov dword [ebp], eax
call fcn.004916b0
add esp, 0xc
jmp 0x49142d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._FEUS___ProcessIdToSessionId__u
call fcn.004916b0
add esp, 8
lea ecx, [esp + 0x1c]
push ecx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4913b0
jmp 0x491456
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._FEUS___Process32First__u
call fcn.004916b0
add esp, 8
mov dword [esp + 0x258], 0xffffffff
test esi, esi
je 0x49146c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0xc], 0
je 0x491369
mov eax, 1
jmp 0x49136b
Function at 0x491730
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x24
push esi
push edi
lea eax, [esp + 0xc]
push eax
xor edi, edi
push 0xf01ff
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x491772
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SD_OP__u
call fcn.004916b0
add esp, 8
xor eax, eax
pop edi
pop esi
add esp, 0x24
ret
lea ecx, [esp + 0x10]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x49179e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SD_LP__u
call fcn.004916b0
add esp, 8
jmp 0x491816
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push 0
push 0
push 0x10
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x1c]
push 0
push edx
mov dword [esp + 0x30], 1
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x4917f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SD_AD__u
call fcn.004916b0
add esp, 8
jmp 0x491816
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x514
jne 0x491811
call esi
push eax
push str.SD_NAL__u
call fcn.004916b0
add esp, 8
jmp 0x491816
mov edi, 1
mov eax, dword [esp + 0xc]
test eax, eax
je 0x491825
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x24
ret

Function at 0x491a30
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x5f4760]
xor eax, esp
mov dword [esp + 0x208], eax
mov eax, dword [0x604c48]
test eax, eax
jne 0x491aa9
push 0x208
push eax
lea eax, [esp + 8]
push eax
call fcn.004add60
add esp, 0xc
push 0x104
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x491ac9
push str.Wtsapi32.dll
lea edx, [esp + 4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x491ac9
lea eax, [esp]
push eax
call fcn.004939b0
add esp, 4
push str.WTSQueryUserToken
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x604c48], eax
test eax, eax
je 0x491ad7
mov ecx, dword [esp + 0x210]
push esi
push ecx
call eax
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004a314d
add esp, 0x20c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.NUD_no_wts__u
jmp 0x491ae3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.NUD_no_wts2__u
call fcn.004916b0
mov ecx, dword [esp + 0x210]
add esp, 8
xor ecx, esp
xor eax, eax
call fcn.004a314d
add esp, 0x20c
ret
Function at 0x492be0
Capabilities:
Check os version

Disassembly:
sub esp, 0x564
mov eax, dword [0x5f4760]
xor eax, esp
mov dword [esp + 0x560], eax
push ebp
mov ebp, dword [esp + 0x56c]
push 0x11c
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.004add60
push 0x11c
push 0
push ebx
mov dword [esp + 0x50], 0x11c
call fcn.004add60
add esp, 0x18
push ebx
mov dword [ebx], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebx + 4], 5
jne 0x492c4d
call fcn.00492ad0
test eax, eax
je 0x492c4d
mov dword [ebp + 4], 0
jmp 0x492d16
push str.RtlGetVersion
push str.ntdll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x492c6f
lea ecx, [esp + 0x38]
push ecx
call eax
mov eax, dword [ebx + 4]
lea edx, [eax + eax*4]
mov eax, dword [ebx + 8]
push esi
push edi
lea edi, [eax + edx*2]
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*2]
cmp eax, edi
jle 0x492c9e
mov ecx, 0x47
lea esi, [esp + 0x40]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, eax
xor eax, eax
push 0x40e
push eax
lea ecx, [esp + 0x166]
push ecx
mov word [esp + 0x168], ax
call fcn.004add60
add esp, 0xc
lea esi, [esp + 0x15c]
call fcn.00492b20
test eax, eax
jl 0x492d0d
lea edx, [esp + 0xc]
push edx
mov eax, esi
call fcn.00492d40
test eax, eax
je 0x492d0d
mov ecx, dword [esp + 0x1c]
mov eax, ecx
shr eax, 0x10
movzx ecx, cx
lea edx, [eax + eax*4]
lea edx, [ecx + edx*2]
cmp edi, edx
jge 0x492d0d
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x20]
shr eax, 0x10
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], eax
mov dword [ebp + 4], 1
jmp 0x492d14
mov dword [ebp + 4], 0
pop edi
pop esi
mov ecx, dword [esp + 0x564]
pop ebp
xor ecx, esp
mov eax, 1
call fcn.004a314d
add esp, 0x564
ret 4
Function at 0x492d40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 8
push ebx
push esi
push edi
push 2
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x492dbe
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x492db7
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x492db6
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x10], eax
test eax, eax
je 0x492daf
push ebp
call fcn.004a52bf
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x492daf
mov ecx, dword [esp + 0x10]
push ebp
push ecx
push ebx
call fcn.004ad550
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebp
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
cmp ebx, esi
je 0x492e02
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push eax
push 0x5dee88
push ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x492df9
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x18]
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
mov esi, 1
push ebx
call fcn.004a4132
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 8
ret 4

Function at 0x492fc0
Capabilities:
Link many functions at runtime

Disassembly:
push 0x604e14
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jg 0x493096
mov eax, dword [esp + 4]
push edi
xor edi, edi
push eax
mov dword [0x604e18], edi
mov dword [0x604e1c], edi
mov dword [0x604e20], edi
mov dword [0x604e24], edi
mov dword [0x604e28], edi
mov dword [0x604e2c], edi
mov dword [0x604e30], edi
call fcn.004939b0
add esp, 4
mov dword [0x604e10], eax
cmp eax, edi
je 0x493095
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Init
push eax
call esi
mov ecx, dword [0x604e10]
push str.Uninit
push ecx
mov dword [0x604e18], eax
call esi
mov edx, dword [0x604e10]
push str.CreateLog
push edx
mov dword [0x604e1c], eax
call esi
mov dword [0x604e20], eax
mov eax, dword [0x604e10]
push str.AddLog
push eax
call esi
mov ecx, dword [0x604e10]
push str.RemoveLog
push ecx
mov dword [0x604e24], eax
call esi
mov edx, dword [0x604e10]
push str.SetLogCacheMaxLen
push edx
mov dword [0x604e2c], eax
call esi
mov dword [0x604e30], eax
mov eax, dword [0x604e18]
pop esi
cmp eax, edi
je 0x493095
call eax
pop edi
ret 4
Function at 0x493bb0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push esi
lea eax, [esp + 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.software360safe360scan
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x493c20
mov eax, dword [esp + 4]
cmp eax, esi
je 0x493c20
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push ecx
push esi
push edx
push eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x493c15
mov esi, dword [esp + 8]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10
ret
Function at 0x4954d0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x58d004
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f4760]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
call fcn.00469460
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x4955fe
mov eax, dword [esp + 0x48]
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x495532
mov eax, esi
call fcn.00469570
jmp 0x4955fe
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], ebx
call fcn.00495010
neg eax
sbb eax, eax
xor ecx, ecx
inc eax
cmp dword [esp + 0x4c], ebx
push eax
push ebx
push ebx
sete cl
push ebx
lea edx, [esp + 0x30]
lea eax, [esp + 0x24]
push ecx
push edx
push 0x495480
push eax
push 0xa4cb80
push 0x7530
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push ecx
mov ecx, str.Mozilla_4.0__compatible__MSIE_8.0__Windows_NT_6.1_
call fcn.00402fe0
mov dword [esp + 0x68], ebx
push ecx
mov ecx, dword [esp + 0x74]
mov edx, esp
mov dword [esp + 0x4c], esp
push edx
call fcn.00402fe0
mov byte [esp + 0x6c], 1
mov dword [esp + 0x6c], 0xffffffff
call fcn.004951e0
add esp, 0x30
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
call fcn.00469570
mov eax, dword [esp + 0x14]
add eax, 0xffffff38
cmp eax, 0x63
ja 0x4955f3
cmp ebp, ebx
je 0x4955f3
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov ecx, dword [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x496d10
Capabilities:
Stop service

Disassembly:
sub esp, 0x1c
push ebp
mov ecx, str.StopService:_enter
call fcn.004930a0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test ebp, ebp
jne 0x496d4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.StopService:_KSRV__OSM__u
call fcn.004916b0
add esp, 8
xor eax, eax
pop ebp
add esp, 0x1c
ret
push ebx
push esi
push edi
push 0xf003f
push str.360EntPublishSrv
push ebp
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call ebx
test esi, esi
je 0x496dbf
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x10]
push eax
push 1
push esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, eax
call ebx
mov ebx, eax
push ebx
push edi
push str.StopService:_ctrl_bRet_d_err_u
call fcn.004916b0
add esp, 0xc
test edi, edi
jne 0x496de5
push ebx
push str.StopService:__KSRV__ccSv__u
jmp 0x496ddd
cmp eax, 0x424
jne 0x496dd7
mov ecx, str.StopService:_NOT_EXIST
call fcn.004930a0
mov edi, 1
jmp 0x496de5
push eax
push str.StopService:_KSRV__OSv__u
call fcn.004916b0
add esp, 8
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call ebx
test esi, esi
je 0x496df5
push esi
call ebx
push edi
push str.StopService:_final_ret_d
call fcn.004916b0
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x1c
ret

Function at 0x496e10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x58457a
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5f4760]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
lea eax, [esi + 0x34]
push eax
call fcn.004030f0
xor edi, edi
mov dword [esp + 0x14], edi
lea ecx, [esi + 0x38]
push ecx
call fcn.004030f0
mov byte [esp + 0x14], 1
or eax, 0xffffffff
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], eax
mov dword [esp + 0x14], eax
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x496eb0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5865f6
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
push ebx
push edi
mov eax, dword [0x5f4760]
xor eax, esp
push eax
lea eax, [esp + 0x118]
mov dword fs:[0], eax
mov edi, dword [esp + 0x128]
xor ebx, ebx
mov dword [esp + 0x120], ebx
push edi
mov dword [esp + 0x10], ebx
call fcn.004030f0
mov dword [esp + 0x120], ebx
mov eax, dword [esi + 0x38]
push 3
lea ecx, [esp + 0x9c]
push eax
lea eax, [esp + 0x9c]
mov dword [esp + 0x14], 1
mov dword [esp + 0x9c], ecx
call fcn.00420020
mov dword [esp + 0x120], 1
mov eax, dword [esi + 0x34]
push 3
lea edx, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], edx
call fcn.00420020
mov byte [esp + 0x120], 2
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
mov edx, dword [esi + 0x44]
push eax
mov eax, dword [esi + 0x40]
push ecx
mov ecx, dword [esi + 0x3c]
push edx
mov edx, dword [esp + 0xa0]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esi + 0x28]
push edx
mov edx, dword [esi + 0x24]
push eax
mov eax, dword [esi + 0x20]
push ecx
mov ecx, dword [esi + 0x1c]
push edx
mov edx, dword [esi + 0x18]
push eax
mov eax, dword [esi + 0x2c]
push ecx
mov ecx, dword [esi + 0x14]
push edx
mov edx, dword [esi + 0x30]
push eax
mov eax, dword [esi + 0x10]
push ecx
mov ecx, dword [esi + 0xc]
push edx
mov edx, dword [esi + 8]
push eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esi]
push edx
push eax
push ecx
push str.GMF_d__H3S_d__CMD_d__OSM_d__OSV_d__OSVEr_d__QST_d___r_nQSTER_d__ST_d__NSELF_d__REC_d__RECERR_d__FIN_d___r_nselfPP_s___r_nsrvPP_s___r_nnChange_d__nDel_d__nTryCreate_d__nTryOpen_d__fNH_d_
call fcn.00402e20
add esp, 0x54
mov byte [esp + 0x120], 1
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
cmp eax, edx
je 0x496fcc
push eax
call fcn.004a4132
add esp, 4
mov byte [esp + 0x120], bl
mov eax, dword [esp + 0x94]
lea ecx, [esp + 0x98]
cmp eax, ecx
je 0x496fee
push eax
call fcn.004a4132
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x118
ret 4
Function at 0x497430
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x584e64
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x5f4760]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov dword [esp + 0x1c], 0
lea eax, [esp + 8]
push eax
push str.SYSTEMCurrentControlSetServices360EntPublishSrv
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov eax, dword [esp + 8]
test eax, eax
je 0x49752d
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push 0
push str.Type
push eax
mov dword [esp + 0x24], 0x10
call esi
mov eax, dword [esp + 8]
push 4
lea edx, [esp + 0x10]
push edx
push 4
push 0
push str.Start
push eax
mov dword [esp + 0x24], 2
call esi
mov eax, dword [esp + 0x24]
mov ecx, dword [eax - 0xc]
mov edx, dword [esp + 8]
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 1
push 0
push str.ImagePath
push edx
call esi
lea eax, [esp + 0x10]
push eax
mov ecx, str.LocalSystem
call fcn.00408390
mov byte [esp + 0x1c], 1
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 0xc]
mov edx, dword [esp + 8]
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 1
push 0
push str.ObjectName
push edx
call esi
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x1c], 0
lea ecx, [esp + 0x10]
push ecx
call fcn.00403090
mov dword [esp + 0x1c], 0xffffffff
lea edx, [esp + 0x24]
push edx
call fcn.00403090
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x18
ret
Function at 0x498ca0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x68
mov eax, dword [0x5f4760]
xor eax, esp
mov dword [esp + 0x64], eax
mov eax, dword [str.IoNothing]
movzx edx, word [0x5e03d8]
mov dword [esp], eax
xor eax, eax
mov dword [esp + 0xa], eax
mov word [esp + 0xe], ax
mov eax, dword [str.IoRead]
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0x17], eax
mov dword [esp + 0x1b], eax
mov byte [esp + 0x1f], al
mov eax, dword [str.IoWrite]
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [0x5e03f0]
push esi
mov esi, ecx
mov ecx, dword [0x5e03d4]
mov dword [esp + 8], ecx
movzx ecx, word [0x5e03e0]
mov dword [esp + 0x38], eax
xor eax, eax
mov word [esp + 0xc], dx
mov dl, byte [0x5e03e2]
mov dword [esp + 0x3e], eax
mov word [esp + 0x42], ax
mov eax, dword [0x5e03fc]
mov word [esp + 0x18], cx
mov ecx, dword [0x5e03e8]
mov byte [esp + 0x1a], dl
mov edx, dword [str.IoConnect]
mov dword [esp + 0x48], eax
xor eax, eax
mov dword [esp + 0x28], ecx
movzx ecx, word [0x5e03f4]
mov dword [esp + 0x34], edx
mov edx, dword [str.IoClean]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov al, byte [0x5e0406]
mov dword [esp + 0x44], edx
movzx edx, word [0x5e0404]
mov word [esp + 0x3c], cx
mov ecx, dword [str.IoKeep]
mov byte [esp + 0x5a], al
xor eax, eax
cmp dword [esi + 0x815c], 5
mov dword [esp + 0x54], ecx
mov word [esp + 0x58], dx
mov dword [esp + 0x5b], eax
mov dword [esp + 0x5f], eax
mov byte [esp + 0x63], al
jle 0x498dd9
mov ecx, dword [esi + 0x8174]
mov edx, dword [esi + 0x8170]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x8154]
push eax
mov eax, dword [esi + 0x815c]
push eax
mov eax, dword [0x601e54]
push ecx
mov ecx, dword [esi + 4]
lea edx, [esi + 0x2c]
push edx
push eax
push ecx
push str.__d__tcp_count:__d__IP:_s__Proxy:__d__OP:__d__current:_u__last:_u__nWaitIOCPCount:_d
jmp 0x498e17
mov edx, dword [esi + 0x8174]
mov eax, dword [esi + 0x8170]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x815c]
push eax
mov eax, dword [esi + 0x8154]
shl ecx, 4
lea edx, [esp + ecx + 0x10]
push edx
mov edx, dword [0x601e54]
push eax
mov eax, dword [esi + 4]
lea ecx, [esi + 0x2c]
push ecx
push edx
push eax
push str.__d__tcp_count:__d__IP:_s__Proxy:__d__OP:__s__current:_u__last:_u__nWaitIOCPCount:_d
mov esi, 0x602250
call fcn.00409e30
mov ecx, dword [esp + 0x8c]
add esp, 0x24
pop esi
xor ecx, esp
call fcn.004a314d
add esp, 0x68
ret
Function at 0x499730
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x240
mov eax, dword [0x5f4760]
xor eax, esp
mov dword [esp + 0x23c], eax
cmp dword [esp + 0x244], 0xffffffff
push ebx
push ebp
je 0x499850
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x499777
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov dword [edi], 6
jmp 0x49985e
push 0x228
lea eax, [esp + 0x18]
push 0
push eax
call fcn.004add60
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push ebx
mov dword [esp + 0x18], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x4997b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov dword [edi], 7
jmp 0x49985e
mov ebp, dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
jmp 0x4997c0
lea edx, [esp + 0x34]
push str.explorer.exe
push edx
call fcn.004aa763
add esp, 8
test eax, eax
jne 0x499808
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push ecx
call ebp
test eax, eax
je 0x499808
mov edx, dword [esp + 0x24c]
cmp dword [esp + 0xc], edx
jne 0x499808
mov eax, dword [esp + 0x18]
push eax
call fcn.00499660
add esp, 4
test eax, eax
jne 0x49982e
lea ecx, [esp + 0x10]
push ecx
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4997c0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov dword [edi], 8
jmp 0x49985e
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
pop ebp
pop ebx
mov ecx, dword [esp + 0x23c]
xor ecx, esp
call fcn.004a314d
add esp, 0x240
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov dword [edi], 5
mov ecx, dword [esp + 0x244]
pop ebp
pop ebx
xor ecx, esp
or eax, 0xffffffff
call fcn.004a314d
add esp, 0x240
ret