joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407de0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x471448
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x489348]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x28]
lea ebx, [esi + 0x18]
mov dword [esp + 0x18], eax
cmp dword [ebx + 0xc], eax
jbe 0x407e25
call fcn.0045d131
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ecx
cmp ecx, dword [ebx + 0x10]
jbe 0x407e40
call fcn.0045d131
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [ebx]
push edx
mov edx, dword [esp + 0x20]
push edx
push ecx
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00407fd0
mov eax, dword [esi + 0x48]
lea ebx, [esi + 0x38]
mov dword [esp + 0x14], eax
cmp dword [ebx + 0xc], eax
jbe 0x407e6c
call fcn.0045d131
mov ecx, dword [ebx]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x18], ecx
cmp ecx, dword [ebx + 0x10]
jbe 0x407e87
call fcn.0045d131
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [ebx]
push edx
mov edx, dword [esp + 0x20]
push edx
push ecx
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00407fd0
mov ebx, dword [esi + 0x10]
cmp dword [esi + 0xc], ebx
jbe 0x407eac
call fcn.0045d131
mov ecx, dword [esi]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x18], ecx
cmp ecx, dword [esi + 0x10]
jbe 0x407ec7
call fcn.0045d131
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esi]
push ebx
push edx
push ecx
push eax
lea eax, [esp + 0x2c]
push eax
mov ebx, esi
call fcn.00407fd0
mov ecx, dword [edi + 0x10]
lea ebx, [edi + 4]
push ebx
mov dword [esi + 0x30], ecx
mov edx, dword [edi + 0x14]
lea eax, [esp + 0x14]
push eax
lea ecx, [edi + 0xc]
push ecx
mov dword [esi + 0x34], edx
call fcn.00406270
mov dword [esp + 0x30], 0
cmp dword [edi + 0x14], 0
setle cl
cmp dword [edi + 0x10], 0
setle dl
movzx eax, dl
push eax
lea eax, [esi + 0x18]
push eax
lea eax, [esp + 0x18]
call fcn.00406300
push 1
lea eax, [esi + 0x38]
push eax
mov cl, 1
mov eax, ebx
call fcn.00406300
push 1
push esi
lea eax, [edi + 8]
mov cl, 1
call fcn.00406300
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 8]
push ecx
mov esi, eax
call fcn.0045d511
add esp, 4
push esi
call fcn.0045d511
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x408080
Capabilities:
Find taskbar

Disassembly:
push ecx
mov eax, dword [0x48a140]
cmp eax, 4
je 0x40811f
cmp eax, 5
je 0x40811f
cmp dword [0x4a6728], 0
jne 0x4080c1
push 0x48cc00
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
neg eax
sbb eax, eax
and eax, 2
pop ecx
ret
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
jne 0x4080d6
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push ecx
push eax
mov dword [esp + 8], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp]
test eax, eax
je 0x4080d2
push eax
push 0
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [0x48cc04], eax
test eax, eax
je 0x4080d2
push 0x48cc00
push 0x2000000
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov eax, 2
pop ecx
ret
mov eax, 1
pop ecx
ret

Function at 0x408130
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x489348]
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 [0x48cc04], esi
mov dword [0x48cc00], esi
call fcn.00408080
cmp eax, 1
jne 0x408178
mov al, al
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045c77f
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x48cc00]
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 0x4081c1
xor al, al
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045c77f
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4081ab
mov edi, dword [ebp - 0x18]
mov eax, edi
call fcn.004642d0
mov esi, esp
test esi, esi
je 0x4081ab
mov eax, dword [0x48cc00]
lea edx, [ebp - 0x18]
push edx
push edi
push esi
push 2
push eax
call ebx
test eax, eax
je 0x4081ab
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 0x4081ab
mov dword [ebp - 0x14], edi
cmp dword [esi], edi
jbe 0x408242
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 0x40823b
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x408220
jmp 0x408242
mov dword [ebp - 0x14], 1
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [0x48cc04]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40825e
push eax
call esi
mov eax, dword [0x48cc00]
test eax, eax
je 0x40826a
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.0045c77f
mov esp, ebp
pop ebp
ret
Function at 0x408290
Capabilities:
Check os version
Read .ini file

Disassembly:
sub esp, 0x3a8
mov eax, dword [0x489348]
xor eax, esp
mov dword [esp + 0x3a4], eax
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x14]
sub eax, 2
mov byte [0x4a66d2], 0
jne 0x4082db
cmp dword [esp + 8], 5
jne 0x4082db
cmp dword [esp + 0xc], eax
jne 0x4082db
mov byte [0x4a66d2], 1
push 0x104
lea ecx, [esp + 0x1a0]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor eax, eax
mov cl, byte [esp + eax + 0x19c]
mov byte [eax + 0x48cc08], cl
inc eax
test cl, cl
jne 0x4082f2
push esi
push edi
mov edi, 0x48cc08
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408310
mov dx, word [0x47a4c4]
mov eax, 0x48ce40
mov word [edi], dx
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408330
mov edi, 0x48cc08
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408341
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov eax, 0x48cc08
rep movsb byte es:[edi], byte [esi]
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x408360
mov ecx, dword [str._run]
mov dl, byte [0x47a4cc]
mov dword [eax], ecx
mov byte [eax + 4], dl
lea eax, [esp + 0xa0]
push eax
call fcn.004043b0
mov edx, dword [0x4a66e8]
lea ecx, [esp + 0xa0]
push ecx
push edx
push str.kickrdp
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x4a66e8], eax
lea eax, [esp + 0xa0]
push eax
push 0x100
lea ecx, [esp + 0x2b0]
push ecx
push 0x47a387
push str.service_commandline
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x2a8]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4083e0
sub eax, edx
je 0x40848d
xor eax, eax
mov cl, byte [esp + eax + 0x1a4]
mov byte [eax + 0x48cc08], cl
inc eax
test cl, cl
jne 0x4083f1
mov edi, 0x48cc08
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408410
mov dx, word [0x47a4c4]
lea eax, [esp + 0x2a8]
mov word [edi], dx
mov ecx, eax
jmp 0x408430
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408430
mov edi, 0x48cc08
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408441
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov eax, 0x48cc08
rep movsb byte es:[edi], byte [esi]
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x408460
mov ecx, dword [str.__service_run]
mov edx, dword [0x47a4f0]
mov dword [eax], ecx
mov ecx, dword [0x47a4f4]
mov dword [eax + 4], edx
mov dx, word [0x47a4f8]
mov dword [eax + 8], ecx
mov word [eax + 0xc], dx
mov ecx, dword [esp + 0x3ac]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0045c77f
add esp, 0x3a8
ret
Function at 0x408570
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x134
mov eax, dword [0x489348]
xor eax, esp
mov dword [esp + 0x12c], eax
push esi
push edi
xor edi, edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4085b5
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x4085d0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.0045c77f
add esp, 0x134
ret
lea ecx, [esp + 0x2c]
push str.winlogon.exe
push ecx
call fcn.0045d37d
add esp, 8
test eax, eax
jne 0x4085ea
mov edi, dword [esp + 0x10]
lea edx, [esp + 8]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4085d0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x134]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0045c77f
add esp, 0x134
ret

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

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
xor esi, esi
push 1
push esi
push esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
or ebx, 0xffffffff
call sub.WTSAPI32.dll_WTSEnumerateProcessesA
test eax, eax
je 0x4086a7
mov eax, dword [esp + 0xc]
push edi
xor edi, edi
cmp dword [esp + 0x14], esi
jbe 0x4086a0
jmp 0x408660
mov edx, dword [esi + eax + 8]
push str.winlogon.exe
push edx
call fcn.0045d37d
add esp, 8
test eax, eax
mov eax, dword [esp + 0x10]
jne 0x40867f
cmp ebp, dword [esi + eax]
je 0x408699
inc edi
add esi, 0x10
cmp edi, dword [esp + 0x14]
jb 0x408660
push eax
call sub.WTSAPI32.dll_WTSFreeMemory
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 8
ret
shl edi, 4
mov ebx, dword [edi + eax + 4]
push eax
call sub.WTSAPI32.dll_WTSFreeMemory
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 8
ret
Function at 0x408c50
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x408
mov eax, dword [0x489348]
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.00408bb0
test al, al
jne 0x408d2f
test edi, edi
je 0x408ca7
push str.WinStationConnectW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test ebx, ebx
je 0x408cb9
push str.LockWorkStation
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
je 0x408d10
mov ecx, dword [0x4a66dc]
xor eax, eax
test ecx, ecx
je 0x408cd1
call ecx
push 0
push 0x47a56c
push eax
push 0
push 0
call esi
push 0xbb8
call ebx
call ebp
test eax, eax
jne 0x408d10
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.0045c8ef
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0xbb8
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x408d24
push edi
call esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x408d2f
push eax
call esi
mov ecx, dword [esp + 0x414]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045c77f
add esp, 0x408
ret

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

Disassembly:
sub esp, 0x134
mov eax, dword [0x489348]
xor eax, esp
mov dword [esp + 0x130], eax
push esi
push edi
mov ecx, 9
mov esi, str.Provides_secure_remote_desktop_sharing
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
push str.uvnc_service
movsw word es:[edi], word [esi]
push str.SYSTEMCurrentControlSetServices_s
lea eax, [esp + 0x40]
push 0x100
push eax
movsb byte es:[edi], byte [esi]
call fcn.0045d3cf
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 + 0x54]
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]
inc eax
test cl, cl
jne 0x408fa5
sub eax, edx
mov edx, dword [esp]
inc eax
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 + 0x130]
xor ecx, esp
call fcn.0045c77f
add esp, 0x134
ret
Function at 0x408ff0
Capabilities:
Create service
Persist via windows service

Disassembly:
push esi
call fcn.00409230
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x409020
push 0x10
push str.UltraVNC
push str.Failed_to_open_service_control_manager
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [esi + 1]
pop esi
ret
push edi
push 0
push 0
push 0
push 0
push 0
push 0x48cd38
push 1
push 2
push 0x110
push 0xf01ff
push str.uvnc_service
push str.uvnc_service
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edi, eax
test edi, edi
jne 0x4090ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x409082
push 0x10
push str.UltraVNC
push str.Failed:_Permission_denied
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, 1
pop esi
ret
cmp eax, 0x431
je 0x40909d
push 0x10
push str.UltraVNC
push str.Failed_to_create_a_new_service
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, 1
pop esi
ret
call fcn.00408f30
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 0x4090d0
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 0x409101
push 0x10
push str.UltraVNC
push str.Failed_to_open_service_control_manager
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [esi + 1]
pop esi
add esp, 0x1c
ret
push edi
push 0x10004
push str.uvnc_service
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x409174
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x409147
push 0x10
push str.UltraVNC
push str.Failed:_Permission_denied
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [edi + 1]
pop edi
pop esi
add esp, 0x1c
ret
cmp eax, 0x424
je 0x409162
push 0x10
push str.UltraVNC
push str.Failed_to_open_the_service
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, 1
pop esi
add esp, 0x1c
ret
lea eax, [esp + 8]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4091ae
push 0x10
push str.UltraVNC
push str.Failed_to_query_service_status
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
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 + 0xc], 1
push edi
je 0x4091dc
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.004090d0
pop edi
mov eax, 1
pop esi
add esp, 0x1c
ret
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x409210
push 0x10
push str.UltraVNC
push str.Failed_to_delete_the_service
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
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
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret
Function at 0x409230
Capabilities:
Set current directory

Disassembly:
sub esp, 0x20c
mov eax, dword [0x489348]
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 0x409260
mov cl, byte [esp + eax + 0x104]
mov byte [esp + eax], cl
inc eax
test cl, cl
jne 0x409260
lea ecx, [esp]
push 0x5c
push ecx
call fcn.0045cab0
add esp, 8
test eax, eax
je 0x409285
mov byte [eax + 1], 0
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x4092ad
mov eax, 1
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0045c77f
add esp, 0x20c
ret
mov eax, 0x22
mov word [0x48cd38], ax
lea eax, [esp + 0x104]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4092c1
push esi
push edi
mov edi, 0x48cd38
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4092d4
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, 0x48cd38
pop edi
dec eax
pop esi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4092f2
mov ecx, dword [str.___service]
mov edx, dword [0x47a730]
mov dword [eax], ecx
mov cx, word [0x47a734]
mov dword [eax + 4], edx
mov dl, byte [0x47a736]
mov word [eax + 8], cx
mov ecx, dword [esp + 0x208]
mov byte [eax + 0xa], dl
xor ecx, esp
xor eax, eax
call fcn.0045c77f
add esp, 0x20c
ret

Function at 0x409340
Capabilities:
Get hostname

Disassembly:
push ecx
push ebx
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.0045cadd
push 0x4000
push ebx
push eax
mov dword [esi + 0x14], eax
call fcn.00462100
push 0x4000
call fcn.0045cadd
push 0x4000
push ebx
push eax
mov dword [esi + 0x18], eax
call fcn.00462100
push 0x4000
call fcn.0045cadd
push 0x4000
push ebx
push eax
mov dword [esi + 0x1c], eax
call fcn.00462100
push 0x80
call fcn.0045cadd
push 0x80
push ebx
push eax
mov dword [esi + 0x20], eax
call fcn.00462100
add esp, 0x40
push 0x80
call fcn.0045cadd
push 0x80
push ebx
push eax
mov dword [esi + 0x24], eax
call fcn.00462100
push 0x4000
call fcn.0045cadd
push 0x4000
push ebx
push eax
mov dword [esi + 0x28], eax
call fcn.00462100
mov edx, dword [esi + 0x24]
add esp, 0x20
lea ecx, [esp + 4]
push ecx
push edx
mov dword [esp + 0xc], 0x80
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x409431
cmp dword [esp + 4], 0x80
jb 0x409431
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
cmp eax, ebx
jne 0x409456
push 0x30
push 0x4a57f8
push 0x4a5d28
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, esi
pop ebx
pop ecx
ret
Function at 0x4095c0
Capabilities:
Create thread
Hide graphical window
Resume thread

Disassembly:
sub esp, 0xc
push ebx
mov ebx, ecx
mov edx, dword [ebx + 4]
mov ecx, 8
sub ecx, eax
push esi
lea eax, [esp + eax + 0xc]
push eax
mov eax, dword [edx + 0xec]
push eax
call fcn.0044a3e0
mov eax, dword [esp + 0x10]
mov esi, eax
and esi, 0xff0000
mov ecx, eax
mov edx, eax
and edx, 0xff00
shr ecx, 0x10
shl eax, 0x10
or esi, ecx
or edx, eax
shr esi, 8
shl edx, 8
or esi, edx
cmp esi, 0xffffffff
jne 0x40963d
cmp byte [ebx + 0x10], 0
jne 0x4096fa
lea eax, [esp + 8]
push eax
push 0
push ebx
push 0x409b40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop ebx
add esp, 0xc
ret
cmp esi, 0xfffffffe
jne 0x409665
cmp byte [ebx + 0x10], 0
je 0x4096fa
mov ecx, dword [ebx + 0xc]
push 0
push 1
push 0x111
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
pop esi
pop ebx
add esp, 0xc
ret
cmp esi, 0xfffffffd
je 0x4096fa
cmp esi, 0x4000
jg 0x4096fa
test esi, esi
jne 0x4096aa
mov edx, dword [ebx + 0xc]
push 0x47a387
push 0x475
push edx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov eax, dword [ebx + 0x1c]
push 0x4000
push esi
push eax
call fcn.00462100
add esp, 0xc
pop esi
pop ebx
add esp, 0xc
ret
mov ecx, dword [ebx + 0x1c]
push 0x4000
push 0
push ecx
call fcn.00462100
mov edx, dword [ebx + 0x1c]
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0xec]
add esp, 0xc
push edx
push ecx
mov ecx, esi
call fcn.0044a3e0
mov edx, dword [ebx + 0xc]
push 9
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebx + 0xc]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, dword [ebx + 0x20]
mov edx, dword [ebx + 0x1c]
push 0xff
push ecx
push edx
call fcn.00409780
pop esi
pop ebx
add esp, 0xc
ret

Function at 0x40bfd0
Capabilities:
Read file via mapping

Disassembly:
push ecx
push ebx
push ebp
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
call edi
mov esi, eax
test esi, esi
je 0x40bffb
cmp esi, 0xffffffff
jne 0x40c013
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push str.c:_video1.dat
call edi
mov esi, eax
test esi, esi
je 0x40c05d
cmp esi, 0xffffffff
je 0x40c05d
push 0
push 0
push 0
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
test edi, edi
je 0x40c052
cmp edi, 0xffffffff
je 0x40c052
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push edi
mov ebx, eax
call ebp
push esi
call ebp
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push str.._videodriver.cpp_:_Error_video.dat__n
xor ecx, ecx
mov eax, 0x48b3f0
call fcn.00401000
add esp, 4
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret