joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408b10
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x48ea40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [0x490300], esi
mov dword [0x4902fc], esi
call fcn.00408a60
cmp eax, 1
jne 0x408b58
mov al, al
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045c20d
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4902fc]
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push 2
push ecx
mov byte [ebp - 0xc], 0
mov byte [ebp - 0xb], 0
mov byte [ebp - 0xa], 0
mov byte [ebp - 9], 0
mov byte [ebp - 8], 0
mov byte [ebp - 7], 5
call ebx
test eax, eax
je 0x408ba1
xor al, al
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045c20d
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x408b8b
mov edi, dword [ebp - 0x18]
mov eax, edi
call fcn.0045d980
mov esi, esp
test esi, esi
je 0x408b8b
mov eax, dword [0x4902fc]
lea edx, [ebp - 0x18]
push edx
push edi
push esi
push 2
push eax
call ebx
test eax, eax
je 0x408b8b
xor edi, edi
lea ecx, [ebp - 0x10]
push ecx
push edi
push edi
push edi
push edi
push edi
push edi
push 0x220
push 0x20
push 2
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x408b8b
cmp dword [esi], edi
mov dword [ebp - 0x14], edi
jbe 0x408c24
lea ebx, [esi + 4]
lea ecx, [ecx]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebx]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x408c1d
add edi, 1
add ebx, 8
cmp edi, dword [esi]
jb 0x408c00
jmp 0x408c24
mov dword [ebp - 0x14], 1
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [0x490300]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x408c40
push eax
call esi
mov eax, dword [0x4902fc]
test eax, eax
je 0x408c4c
push eax
call esi
xor eax, eax
cmp dword [ebp - 0x14], eax
setne al
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045c20d
mov esp, ebp
pop ebp
ret
Function at 0x408c70
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x470d8b
mov eax, dword fs:[0]
push eax
sub esp, 0x3a8
mov eax, dword [0x48ea40]
xor eax, esp
mov dword [esp + 0x3a4], eax
push esi
push edi
mov eax, dword [0x48ea40]
xor eax, esp
push eax
lea eax, [esp + 0x3b4]
mov dword fs:[0], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x20]
sub eax, 2
mov byte [0x490430], 0
jne 0x408ce0
cmp dword [esp + 0x14], 5
jne 0x408ce0
cmp dword [esp + 0x18], eax
jne 0x408ce0
mov byte [0x490430], 1
push 0x104
lea ecx, [esp + 0x1ac]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor eax, eax
jmp 0x408d00
mov cl, byte [esp + eax + 0x1a8]
mov byte [eax + 0x490308], cl
add eax, 1
test cl, cl
jne 0x408d00
mov edi, 0x490308
add edi, 0xffffffff
lea esp, [esp]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x408d20
mov dx, word [0x476008]
mov eax, 0x490558
mov word [edi], dx
mov ecx, eax
jmp 0x408d40
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x408d40
mov edi, 0x490308
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x408d55
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov eax, 0x490308
rep movsb byte es:[edi], byte [esi]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x408d75
mov ecx, dword [0x476000]
mov dl, byte [0x476004]
mov dword [eax], ecx
lea ecx, [esp + 0xa4]
mov byte [eax + 4], dl
call fcn.00405790
mov eax, dword [0x49042c]
push eax
push str.kickrdp
push str.admin
lea ecx, [esp + 0xb0]
mov dword [esp + 0x3c8], 0
call fcn.00405d70
push pe_nt_image_headers32
lea ecx, [esp + 0x2b0]
push ecx
push str.service_commandline
push str.admin
lea ecx, [esp + 0xb4]
mov dword [0x49042c], eax
call fcn.00405d90
lea eax, [esp + 0x2ac]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x408df5
sub eax, edx
je 0x408eb4
xor eax, eax
jmp 0x408e10
mov cl, byte [esp + eax + 0x1a8]
mov byte [eax + 0x490308], cl
add eax, 1
test cl, cl
jne 0x408e10
mov edi, 0x490308
add edi, 0xffffffff
lea esp, [esp]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x408e30
mov dx, word [0x476008]
lea eax, [esp + 0x2ac]
mov word [edi], dx
mov ecx, eax
lea ecx, [ecx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x408e50
mov edi, 0x490308
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x408e65
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov eax, 0x490308
rep movsb byte es:[edi], byte [esi]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x408e85
mov ecx, dword [str.__service_run]
mov edx, dword [0x475fd8]
mov dword [eax], ecx
mov ecx, dword [0x475fdc]
mov dword [eax + 4], edx
mov dx, word [0x475fe0]
mov dword [eax + 8], ecx
mov word [eax + 0xc], dx
lea ecx, [esp + 0xa4]
mov dword [esp + 0x3bc], 0xffffffff
call fcn.00437380
xor eax, eax
mov ecx, dword [esp + 0x3b4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x3a4]
xor ecx, esp
call fcn.0045c20d
add esp, 0x3b4
ret
Function at 0x408fc0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x12c
mov eax, dword [0x48ea40]
xor eax, esp
mov dword [esp + 0x128], eax
push esi
push edi
xor edi, edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x409005
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x409020
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.0045c20d
add esp, 0x12c
ret
lea ecx, [esp + 0x2c]
push str.winlogon.exe
push ecx
call fcn.0045dab4
add esp, 8
test eax, eax
jne 0x40903a
mov edi, dword [esp + 0x10]
lea edx, [esp + 8]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x409020
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x130]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0045c20d
add esp, 0x12c
ret

Function at 0x409070
Capabilities:
Enumerate processes on remote desktop session host

Disassembly:
sub esp, 8
push ebp
push esi
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
xor esi, esi
push 1
push esi
push esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
or ebp, 0xffffffff
call sub.WTSAPI32.dll_WTSEnumerateProcessesA
test eax, eax
je 0x4090fa
mov eax, dword [esp + 8]
push ebx
push edi
xor edi, edi
cmp dword [esp + 0x14], esi
jbe 0x4090f2
mov ebx, dword [esp + 0x1c]
jmp 0x4090b0
mov edx, dword [esi + eax + 8]
push str.winlogon.exe
push edx
call fcn.0045dab4
add esp, 8
test eax, eax
mov eax, dword [esp + 0x10]
jne 0x4090cf
cmp ebx, dword [esi + eax]
je 0x4090eb
add edi, 1
add esi, 0x10
cmp edi, dword [esp + 0x14]
jb 0x4090b0
push eax
call sub.WTSAPI32.dll_WTSFreeMemory
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
shl edi, 4
mov ebp, dword [edi + eax + 4]
push eax
call sub.WTSAPI32.dll_WTSFreeMemory
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
Function at 0x4096e0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x408
mov eax, dword [0x48ea40]
xor eax, esp
mov dword [esp + 0x404], eax
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.winsta.dll
call esi
push str.user32.dll
mov edi, eax
call esi
mov ebx, eax
mov dword [esp + 0x10], ebx
xor esi, esi
xor ebp, ebp
call fcn.00409640
test al, al
jne 0x4097bf
test edi, edi
je 0x409737
push str.WinStationConnectW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test ebx, ebx
je 0x409749
push str.LockWorkStation
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
test esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
je 0x4097a0
mov ecx, dword [0x490420]
xor eax, eax
test ecx, ecx
je 0x409761
call ecx
push 0
push 0x47602c
push eax
push 0
push 0
call esi
push 0xbb8
call ebx
call ebp
test eax, eax
jne 0x4097a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x18]
push str.LockWorkstation_failed_with_error_0x_0X
push eax
call fcn.0045c58a
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0xbb8
call ebx
test edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
je 0x4097b4
push edi
call esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4097bf
push eax
call esi
mov ecx, dword [esp + 0x414]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045c20d
add esp, 0x408
ret

Function at 0x4097e0
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x48ea40]
xor eax, esp
mov dword [esp + 0x94], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x10], 2
jne 0x409832
cmp dword [esp + 4], 5
jne 0x409832
cmp dword [esp + 8], 0
jne 0x409832
mov al, 1
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0045c20d
add esp, 0x98
ret
mov ecx, dword [esp + 0x94]
xor ecx, esp
xor al, al
call fcn.0045c20d
add esp, 0x98
ret
Function at 0x409850
Capabilities:
Modify service

Disassembly:
push ecx
push ebx
push esi
push 0xf003f
push 0
push 0
mov ebx, 1
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x409871
pop esi
pop ebx
pop ecx
ret
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov ebp, eax
test ebp, ebp
jne 0x40988d
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebp
pop esi
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x14]
push edi
push 2
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x4098b8
push ebp
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
pop ecx
ret
push 0
push 0
push 0
xor ecx, ecx
cmp dword [esp + 0x28], ecx
push 0
push 0
push 0
setne cl
push 0
push 0xffffffffffffffff
lea ecx, [ecx + ecx + 2]
push ecx
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
jne 0x4098e5
xor ebx, ebx
mov eax, dword [esp + 0x20]
test eax, eax
je 0x409905
lea edx, [esp + 0x10]
push edx
push 1
push edi
mov dword [esp + 0x1c], eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
test eax, eax
jne 0x409905
xor ebx, ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
pop edi
pop ebp
pop esi
mov eax, ebx
pop ebx
pop ecx
ret

Function at 0x409920
Capabilities:
Create process on windows

Disassembly:
push 0
push 0
push str.Schedule
call fcn.00409850
add esp, 0xc
push 0
push str.net_start_Schedule
call dword [sym.imp.KERNEL32.dll_WinExec]
ret

Function at 0x409940
Capabilities:
Set registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x48ea40]
xor eax, esp
mov dword [esp + 0x10c], eax
push str.AnyPC
push str.Software_s
lea eax, [esp + 0x14]
push pe_nt_image_headers32
push eax
mov word [esp + 0x10], 0x31
call fcn.0045cd9d
add esp, 0x10
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 8]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
lea eax, [esp + 0x28]
push eax
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [esp]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4099a4
sub eax, edx
mov edx, dword [esp + 4]
add eax, 1
push eax
lea ecx, [esp + 4]
push ecx
push 1
push 0
push str.StopFlag
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0045c20d
add esp, 0x110
ret
Function at 0x4099f0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x48ea40]
xor eax, esp
mov dword [esp + 0x10c], eax
push str.AnyPC
push str.Software_s
lea eax, [esp + 0x14]
push pe_nt_image_headers32
push eax
mov word [esp + 0x10], 0x30
call fcn.0045cd9d
add esp, 0x10
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 8]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
lea eax, [esp + 0x28]
push eax
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [esp]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x409a54
sub eax, edx
mov edx, dword [esp + 4]
add eax, 1
push eax
lea ecx, [esp + 4]
push ecx
push 1
push 0
push str.StopFlag
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0045c20d
add esp, 0x110
ret

Function at 0x409aa0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
lea eax, [esp]
push eax
push 0xf003f
push 0
push str.SoftwareAnyPC
push reloc.WSOCK32.dll_bind
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x409ae6
mov eax, dword [esp]
test eax, eax
je 0x409ae0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 0x10
ret
push esi
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push str.StopFlag
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 4]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x409b20
xor eax, eax
pop esi
add esp, 0x10
ret
push edi
xor eax, eax
mov edi, 0x47617c
lea esi, [esp + 0x10]
mov ecx, 2
repe cmpsb byte [esi], byte es:[edi]
pop edi
sete al
pop esi
add esp, 0x10
ret

Function at 0x409be0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x12c
mov eax, dword [0x48ea40]
xor eax, esp
mov dword [esp + 0x128], eax
push esi
push edi
mov ecx, 7
mov esi, str.Provides_real_media_sharing.
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
push str.RealSvc
push str.SYSTEMCurrentControlSetServices_s
lea eax, [esp + 0x38]
push pe_nt_image_headers32
push eax
movsb byte es:[edi], byte [esi]
call fcn.0045cd9d
add esp, 0x10
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
lea eax, [esp + 0x4c]
push eax
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [esp + 0x10]
pop edi
lea edx, [eax + 1]
pop esi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x409c53
sub eax, edx
mov edx, dword [esp]
add eax, 1
push eax
lea ecx, [esp + 0xc]
push ecx
push 1
push 0
push str.Description
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.0045c20d
add esp, 0x12c
ret
Function at 0x409ca0
Capabilities:
Delete service
Query service status

Disassembly:
sub esp, 0x1c
push esi
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x409cbe
lea eax, [esi + 1]
pop esi
add esp, 0x1c
ret
push edi
push 0x10004
push str.RealSvc
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x409cec
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [edi + 1]
pop edi
pop esi
add esp, 0x1c
ret
lea eax, [esp + 8]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
push edi
jne 0x409d13
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
pop edi
mov eax, 1
pop esi
add esp, 0x1c
ret
cmp dword [esp + 0x10], 1
je 0x409d40
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
push 0x9c4
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00409ca0
pop edi
mov eax, 1
pop esi
add esp, 0x1c
ret
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x409d03
call edi
push esi
call edi
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret

Function at 0x409d60
Capabilities:
Set current directory

Disassembly:
sub esp, 0x20c
mov eax, dword [0x48ea40]
xor eax, esp
mov dword [esp + 0x208], eax
push 0x104
lea eax, [esp + 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor eax, eax
jmp 0x409d90
mov cl, byte [esp + eax + 0x104]
mov byte [esp + eax], cl
add eax, 1
test cl, cl
jne 0x409d90
lea ecx, [esp]
push 0x5c
push ecx
call fcn.0045c1e0
add esp, 8
test eax, eax
je 0x409db7
mov byte [eax + 1], 0
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x409ddf
mov eax, 1
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0045c20d
add esp, 0x20c
ret
lea eax, [esp + 0x104]
mov word [0x490438], 0x22
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x409df1
push esi
push edi
mov edi, 0x490438
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x409e08
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, 0x490438
pop edi
add eax, 0xffffffff
pop esi
lea ebx, [ebx]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x409e30
mov ecx, dword [str.___service]
mov edx, dword [0x4761dc]
mov dword [eax], ecx
mov cx, word [0x4761e0]
mov dword [eax + 4], edx
mov dl, byte [0x4761e2]
mov word [eax + 8], cx
mov ecx, dword [esp + 0x208]
mov byte [eax + 0xa], dl
xor ecx, esp
xor eax, eax
call fcn.0045c20d
add esp, 0x20c
ret
Function at 0x409ff0
Capabilities:
Create service
Persist via windows service

Disassembly:
push esi
call fcn.00409d60
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x40a00d
lea eax, [esi + 1]
pop esi
ret
push edi
push 0
push 0
push 0
push 0
push 0
push 0x490438
push 1
push 2
push 0x110
push 0xf01ff
push str.RealSvc
push str.RealSvc
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edi, eax
test edi, edi
jne 0x40a055
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [edi + 1]
pop edi
pop esi
ret
call fcn.00409be0
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
pop edi
xor eax, eax
pop esi
ret

Function at 0x40a070
Capabilities:
Get hostname

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push 0x4000
mov dword [esi], vtable.TextChat.0
mov dword [esi + 0xc], ebx
mov dword [esi + 4], eax
mov byte [esi + 0x10], bl
mov byte [esi + 0x30], bl
call fcn.0045cd98
push 0x4000
push ebx
push eax
mov dword [esi + 0x14], eax
call fcn.0045c220
push 0x4000
call fcn.0045cd98
push 0x4000
push ebx
push eax
mov dword [esi + 0x18], eax
call fcn.0045c220
push 0x4000
call fcn.0045cd98
push 0x4000
push ebx
push eax
mov dword [esi + 0x1c], eax
call fcn.0045c220
push 0x80
call fcn.0045cd98
push 0x80
push ebx
push eax
mov dword [esi + 0x20], eax
call fcn.0045c220
add esp, 0x40
push 0x80
call fcn.0045cd98
push 0x80
push ebx
push eax
mov dword [esi + 0x24], eax
call fcn.0045c220
push 0x4000
call fcn.0045cd98
push 0x4000
push ebx
push eax
mov dword [esi + 0x28], eax
call fcn.0045c220
mov edx, dword [esi + 0x24]
add esp, 0x20
lea ecx, [esp + 0xc]
push ecx
push edx
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x40a167
cmp dword [esp + 0xc], 0x80
jb 0x40a167
mov ecx, dword [esi + 0x24]
mov al, 0x2e
mov byte [ecx + 0x7c], al
mov edx, dword [esi + 0x24]
mov byte [edx + 0x7d], al
mov ecx, dword [esi + 0x24]
mov byte [ecx + 0x7e], al
mov edx, dword [esi + 0x24]
mov byte [edx + 0x7f], bl
push str.RICHED32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 0x2c], eax
mov eax, esi
pop esi
pop ebx
ret 4

Function at 0x40b250
Capabilities:
Create thread
Resume thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
push ecx
push 0x40b140
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop ecx
ret
Function at 0x40cc80
Capabilities:
Get file size
Read file via mapping

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push 0xc0000000
push str.c:_video0.dat
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
call edi
push ebx
push ebx
push 3
push ebx
push 3
push 0xc0000000
push str.c:_video1.dat
mov esi, eax
call edi
cmp esi, ebx
mov edi, eax
je 0x40ccda
cmp esi, 0xffffffff
je 0x40ccda
cmp edi, ebx
je 0x40ccd6
cmp edi, 0xffffffff
jne 0x40ccda
mov dword [esp + 0xc], esi
cmp edi, ebx
je 0x40ccf0
cmp edi, 0xffffffff
je 0x40ccf0
cmp esi, ebx
je 0x40ccec
cmp esi, 0xffffffff
jne 0x40ccf0
mov dword [esp + 0xc], edi
cmp esi, ebx
je 0x40cd2c
cmp esi, 0xffffffff
je 0x40cd2c
cmp edi, ebx
je 0x40cd2c
cmp edi, 0xffffffff
je 0x40cd2c
push ebp
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
call ebx
push 0
push edi
mov ebp, eax
call ebx
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 0x18]
cmp ebp, ecx
pop ebp
jne 0x40cd24
mov dword [esp + 0xc], esi
cmp eax, ecx
jne 0x40cd2c
mov dword [esp + 0xc], edi
mov ebx, dword [esp + 0xc]
test ebx, ebx
je 0x40cd7f
cmp ebx, 0xffffffff
je 0x40cd7f
push 0
push 0
push 0
push 4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
test esi, esi
je 0x40cd71
cmp esi, 0xffffffff
je 0x40cd71
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push esi
mov dword [esp + 0x14], eax
call edi
push ebx
call edi
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
add esp, 0xc
ret
push str.._videodriver.cpp_:_Error_video.dat__n
push 0
push 0x490660
call fcn.00401810
mov eax, dword [esp + 0x1c]
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x40cda0
Capabilities:
Check os version
Get system information on windows

Disassembly:
sub esp, 0xc4
mov eax, dword [0x48ea40]
xor eax, esp
mov dword [esp + 0xc0], eax
xor eax, eax
push esi
push 0x9c
push eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 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
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x30]
push eax
call fcn.0045c220
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], 0x9c
call esi
test eax, eax
jne 0x40ce30
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], 0x94
call esi
test eax, eax
jne 0x40ce30
pop esi
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.0045c20d
add esp, 0xc4
ret
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ce54
lea ecx, [esp + 4]
push ecx
call eax
jmp 0x40ce5f
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x38]
sub eax, 2
jne 0x40cef6
mov eax, dword [esp + 0x2c]
cmp eax, 6
jne 0x40ce92
cmp dword [esp + 0x30], 0
jne 0x40cef6
pop esi
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.0045c20d
add esp, 0xc4
ret
cmp eax, 5
jne 0x40cef6
mov eax, dword [esp + 0x30]
cmp eax, 2
jne 0x40cee8
cmp byte [esp + 0xc2], 1
jne 0x40cecd
cmp word [esp + 4], 9
jne 0x40cecd
mov eax, 7
pop esi
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.0045c20d
add esp, 0xc4
ret
mov eax, 5
pop esi
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.0045c20d
add esp, 0xc4
ret
cmp eax, 1
je 0x40cecd
test eax, eax
mov eax, 5
je 0x40cefb
mov eax, 4
mov ecx, dword [esp + 0xc4]
pop esi
xor ecx, esp
call fcn.0045c20d
add esp, 0xc4
ret