joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ac70
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 0x49a928
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4ba700]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x20], esi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x28]
lea ebx, [edi + 0x18]
mov dword [esp + 0x18], eax
cmp dword [ebx + 0xc], eax
jbe 0x40acb9
call fcn.0047d091
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx]
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], ecx
cmp ecx, dword [ebx + 0x10]
jbe 0x40acd4
call fcn.0047d091
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [ebx]
push edx
mov edx, dword [esp + 0x28]
push edx
push ecx
push eax
lea eax, [esp + 0x34]
push eax
call fcn.00409bf0
mov eax, dword [edi + 0x48]
lea ebx, [edi + 0x38]
mov dword [esp + 0x14], eax
cmp dword [ebx + 0xc], eax
jbe 0x40ad00
call fcn.0047d091
mov ecx, dword [ebx]
mov dword [esp + 0x24], ecx
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x18], ecx
cmp ecx, dword [ebx + 0x10]
jbe 0x40ad1b
call fcn.0047d091
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [ebx]
push edx
mov edx, dword [esp + 0x28]
push edx
push ecx
push eax
lea eax, [esp + 0x34]
push eax
call fcn.00409bf0
mov ebx, dword [edi + 0x10]
cmp dword [edi + 0xc], ebx
jbe 0x40ad40
call fcn.0047d091
mov ecx, dword [edi]
mov dword [esp + 0x24], ecx
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x18], ecx
cmp ecx, dword [edi + 0x10]
jbe 0x40ad5b
call fcn.0047d091
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov eax, dword [edi]
push ebx
push edx
push ecx
push eax
lea eax, [esp + 0x34]
push eax
mov ebx, edi
call fcn.00409bf0
mov ecx, dword [esi + 0x1c]
lea ebx, [esi + 4]
mov dword [edi + 0x30], ecx
mov edx, dword [esi + 0x20]
push ebx
add esi, 0x14
push esi
lea esi, [esp + 0x20]
mov dword [edi + 0x34], edx
call fcn.004096d0
mov esi, dword [esp + 0x20]
mov dword [esp + 0x38], 0
cmp dword [esi + 0x20], 0
setle al
cmp dword [esi + 0x1c], 0
movzx ecx, al
setle dl
movzx eax, dl
push ecx
push eax
lea eax, [edi + 0x18]
push eax
lea eax, [esp + 0x24]
call fcn.00409740
push 1
push 1
lea eax, [edi + 0x38]
push eax
mov eax, ebx
call fcn.00409740
push 1
push 1
push edi
lea eax, [esi + 0xc]
call fcn.00409740
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [esp + 0x1c]
push edx
call fcn.0047d643
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40ae90
Capabilities:
Find taskbar

Disassembly:
push ecx
mov eax, dword [0x4bb5d4]
cmp eax, 4
je 0x40af28
cmp eax, 5
je 0x40af28
cmp dword [0x4f3794], 0
jne 0x40aecd
push esi
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 0x40aee2
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 0x40aede
push eax
push 0
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edx, dword [esp + 8]
mov dword [edx], eax
test eax, eax
je 0x40aede
push esi
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 0x40af30
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4ba700]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x10]
push eax
lea esi, [ebp - 0x14]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
call fcn.0040ae90
add esp, 4
cmp eax, 1
jne 0x40af7c
mov al, al
lea esp, [ebp - 0x40]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047c3ff
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x10]
mov ecx, edi
lea esi, [ebp - 0x34]
call fcn.0040b110
mov edx, dword [ebp - 0x14]
mov ecx, edi
lea esi, [ebp - 0x28]
call fcn.0040b110
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
push ecx
push ebx
push ebx
push 2
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push edx
mov byte [ebp - 7], 5
call ebx
test eax, eax
je 0x40aff2
lea eax, [ebp - 0x28]
push eax
call fcn.0040b120
lea ecx, [ebp - 0x34]
push ecx
call fcn.0040b120
add esp, 8
xor al, al
lea esp, [ebp - 0x40]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047c3ff
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x40b028
lea edx, [ebp - 0x28]
push edx
call fcn.0040b120
lea eax, [ebp - 0x34]
push eax
call fcn.0040b120
add esp, 8
xor al, al
lea esp, [ebp - 0x40]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047c3ff
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x1c]
mov eax, edi
call fcn.0048d0e0
mov esi, esp
test esi, esi
jne 0x40b063
lea ecx, [ebp - 0x28]
push ecx
call fcn.0040b120
lea edx, [ebp - 0x34]
push edx
call fcn.0040b120
add esp, 8
xor al, al
lea esp, [ebp - 0x40]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047c3ff
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push eax
push edi
push esi
push 2
push ecx
call ebx
test eax, eax
je 0x40affd
xor edi, edi
lea ecx, [ebp - 0x18]
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 0x40afc7
mov dword [ebp - 0x10], edi
cmp dword [esi], edi
jbe 0x40b0c8
lea ebx, [esi + 4]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x40b0c1
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x40b0a6
jmp 0x40b0c8
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
lea edx, [ebp - 0x28]
push edx
call fcn.0040b120
lea eax, [ebp - 0x34]
push eax
call fcn.0040b120
add esp, 8
cmp dword [ebp - 0x10], 0
setne al
lea esp, [ebp - 0x40]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047c3ff
mov esp, ebp
pop ebp
ret
Function at 0x40b6c0
Capabilities:
Check os version
Read .ini file

Disassembly:
sub esp, 0x3a8
mov eax, dword [0x4ba700]
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 [0x4f373a], 0
jne 0x40b70b
cmp dword [esp + 8], 5
jne 0x40b70b
cmp dword [esp + 0xc], eax
jne 0x40b70b
mov byte [0x4f373a], 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 + 0x4d9a10], cl
inc eax
test cl, cl
jne 0x40b722
push esi
push edi
mov edi, 0x4d9a10
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40b740
mov dx, word [0x4a9b9c]
mov eax, 0x4d9c48
mov word [edi], dx
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40b760
mov edi, 0x4d9a10
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40b771
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov eax, 0x4d9a10
rep movsb byte es:[edi], byte [esi]
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40b790
mov ecx, dword [str._run]
mov dl, byte [0x4a9ba4]
mov dword [eax], ecx
mov byte [eax + 4], dl
lea eax, [esp + 0xa0]
push eax
call fcn.00407a90
mov edx, dword [0x4f3748]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ecx, [esp + 0xa0]
push ecx
push edx
push str.kickrdp
push str.admin
call esi
mov ecx, dword [0x4f374c]
mov dword [0x4f3748], eax
lea eax, [esp + 0xa0]
push eax
push ecx
push str.clearconsole
push str.admin
call esi
lea edx, [esp + 0xa0]
push edx
push 0x100
mov dword [0x4f374c], eax
lea eax, [esp + 0x2b0]
push eax
push 0x4a3fbe
push str.service_commandline
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x2a8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b830
sub eax, edx
je 0x40b8dd
xor eax, eax
mov cl, byte [esp + eax + 0x1a4]
mov byte [eax + 0x4d9a10], cl
inc eax
test cl, cl
jne 0x40b841
mov edi, 0x4d9a10
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40b860
mov cx, word [0x4a9b9c]
lea eax, [esp + 0x2a8]
mov word [edi], cx
mov ecx, eax
jmp 0x40b880
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40b880
mov edi, 0x4d9a10
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40b891
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov eax, 0x4d9a10
rep movsb byte es:[edi], byte [esi]
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40b8b0
mov edx, dword [str.__service_run]
mov ecx, dword [0x4a9bc0]
mov dword [eax], edx
mov edx, dword [0x4a9bc4]
mov dword [eax + 4], ecx
mov cx, word [0x4a9bc8]
mov dword [eax + 8], edx
mov word [eax + 0xc], cx
mov ecx, dword [esp + 0x3ac]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0047c3ff
add esp, 0x3a8
ret
Function at 0x40b9c0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x134
mov eax, dword [0x4ba700]
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 0x40ba05
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x40ba20
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.0047c3ff
add esp, 0x134
ret
lea ecx, [esp + 0x2c]
push str.winlogon.exe
push ecx
call fcn.0047d85e
add esp, 8
test eax, eax
jne 0x40ba3a
mov edi, dword [esp + 0x10]
lea edx, [esp + 8]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40ba20
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.0047c3ff
add esp, 0x134
ret
Function at 0x40c320
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x414
mov eax, dword [0x4ba700]
xor eax, esp
mov dword [esp + 0x40c], 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 ebx, eax
call esi
mov ebp, eax
mov dword [esp + 0x14], ebp
xor esi, esi
xor edi, edi
call fcn.0040c1d0
test al, al
jne 0x40c403
test ebx, ebx
je 0x40c377
push str.WinStationConnectW
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test ebp, ebp
je 0x40c389
push str.LockWorkStation
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
je 0x40c3e4
test edi, edi
je 0x40c3e4
mov ecx, dword [0x4f37c0]
xor eax, eax
test ecx, ecx
je 0x40c3a5
call ecx
push 0
push 0x4a9b10
push eax
push 0
push 0
call esi
push 0xbb8
call ebp
call edi
test eax, eax
jne 0x40c3e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x1c]
push str.LockWorkstation_failed_with_error_0x_0X
push eax
call fcn.0047c59e
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0xbb8
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x40c3f8
push ebx
call esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40c403
push eax
call esi
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0047c3ff
add esp, 0x414
ret

Function at 0x40c420
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x4ba700]
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 0x40c472
cmp dword [esp + 4], 5
jne 0x40c472
cmp dword [esp + 8], 0
jne 0x40c472
mov al, 1
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0047c3ff
add esp, 0x98
ret
mov ecx, dword [esp + 0x94]
xor ecx, esp
xor al, al
call fcn.0047c3ff
add esp, 0x98
ret

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

Disassembly:
sub esp, 0x134
mov eax, dword [0x4ba700]
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.0047cd5d
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 0x40c815
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.0047c3ff
add esp, 0x134
ret
Function at 0x40c860
Capabilities:
Create service
Persist via windows service

Disassembly:
push esi
call fcn.0040caa0
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x40c890
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 0x4d9b40
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 0x40c91c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40c8f2
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 0x40c90d
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.0040c7a0
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 0x40c940
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 0x40c971
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 0x40c9e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40c9b7
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 0x40c9d2
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 0x40ca1e
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 0x40ca4c
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.0040c940
pop edi
mov eax, 1
pop esi
add esp, 0x1c
ret
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x40ca80
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 0x40caa0
Capabilities:
Set current directory

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4ba700]
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 0x40cad0
mov cl, byte [esp + eax + 0x104]
mov byte [esp + eax], cl
inc eax
test cl, cl
jne 0x40cad0
lea ecx, [esp]
push 0x5c
push ecx
call fcn.0047c410
add esp, 8
test eax, eax
je 0x40caf5
mov byte [eax + 1], 0
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x40cb1d
mov eax, 1
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0047c3ff
add esp, 0x20c
ret
mov eax, 0x22
mov word [0x4d9b40], ax
lea eax, [esp + 0x104]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40cb31
push esi
push edi
mov edi, 0x4d9b40
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40cb44
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, 0x4d9b40
pop edi
dec eax
pop esi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40cb62
mov ecx, dword [str.___service]
mov edx, dword [0x4a9e24]
mov dword [eax], ecx
mov cx, word [0x4a9e28]
mov dword [eax + 4], edx
mov dl, byte [0x4a9e2a]
mov word [eax + 8], cx
mov ecx, dword [esp + 0x208]
mov byte [eax + 0xa], dl
xor ecx, esp
xor eax, eax
call fcn.0047c3ff
add esp, 0x20c
ret

Function at 0x40cc70
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.0047cc97
push 0x4000
push ebx
push eax
mov dword [esi + 0x14], eax
call fcn.004858b0
push 0x4000
call fcn.0047cc97
push 0x4000
push ebx
push eax
mov dword [esi + 0x18], eax
call fcn.004858b0
push 0x4000
call fcn.0047cc97
push 0x4000
push ebx
push eax
mov dword [esi + 0x1c], eax
call fcn.004858b0
push 0x80
call fcn.0047cc97
push 0x80
push ebx
push eax
mov dword [esi + 0x20], eax
call fcn.004858b0
add esp, 0x40
push 0x80
call fcn.0047cc97
push 0x80
push ebx
push eax
mov dword [esi + 0x24], eax
call fcn.004858b0
push 0x4000
call fcn.0047cc97
push 0x4000
push ebx
push eax
mov dword [esi + 0x28], eax
call fcn.004858b0
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 0x40cd61
cmp dword [esp + 4], 0x80
jb 0x40cd61
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 0x40cd86
push 0x30
push 0x4f27f8
push 0x4f2d28
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, esi
mov dword [esi + 0x34], 0xffffffff
pop ebx
pop ecx
ret
Function at 0x40cf00
Capabilities:
Create thread
Hide graphical window
Resume thread

Disassembly:
sub esp, 0xc
push ebx
mov ebx, ecx
mov edx, dword [ebx + 4]
mov edx, dword [edx + 0xec]
mov ecx, 8
sub ecx, eax
push esi
lea eax, [esp + eax + 0xc]
push eax
call fcn.00453b00
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 0x40cf84
call fcn.0040cbb0
cmp byte [ebx + 0x10], 0
jne 0x40d03c
lea eax, [esp + 8]
push eax
push 0
push ebx
push 0x40d490
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
mov dword [ebx + 0x34], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop ebx
add esp, 0xc
ret
cmp esi, 0xfffffffe
jne 0x40cfac
cmp byte [ebx + 0x10], 0
je 0x40d03c
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 0x40d03c
cmp esi, 0x4000
jg 0x40d03c
test esi, esi
jne 0x40cfed
mov edx, dword [ebx + 0xc]
push 0x4a3fbe
push 0x475
push edx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov eax, dword [ebx + 0x1c]
push 0x4000
push esi
push eax
call fcn.004858b0
add esp, 0xc
pop esi
pop ebx
add esp, 0xc
ret
mov ecx, dword [ebx + 0x1c]
push 0x4000
push 0
push ecx
call fcn.004858b0
mov edx, dword [ebx + 0x1c]
mov eax, dword [ebx + 4]
add esp, 0xc
push edx
mov edx, dword [eax + 0xec]
mov ecx, esi
call fcn.00453b00
mov ecx, dword [ebx + 0xc]
push 9
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebx + 0xc]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x1c]
push 0xff
push eax
push ecx
call fcn.0040d0d0
pop esi
pop ebx
add esp, 0xc
ret