joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400445c0
Capabilities:
Check for unmoving mouse cursor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1401ef010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, rcx
mov r9, qword [rcx + 0x4b0]
mov r8d, dword [rcx + 0x38c]
mov edx, dword [rcx + 0x384]
mov rax, qword [r9 + 0x90]
mov ecx, dword [rax + 0x8dc]
add ecx, edx
add ecx, r8d
mov dword [rsp + 0x44], ecx
mov rax, qword [r9 + 0x90]
mov ecx, dword [rax + 0x8e4]
add ecx, edx
add ecx, r8d
mov dword [rsp + 0x4c], ecx
mov r8d, dword [rdi + 0x388]
mov edx, dword [rdi + 0x380]
mov rax, qword [r9 + 0x90]
mov ecx, dword [rax + 0x8d8]
add ecx, edx
add ecx, r8d
mov dword [rsp + 0x40], ecx
mov rax, qword [r9 + 0x90]
mov ecx, dword [rax + 0x8e0]
add ecx, edx
add ecx, r8d
mov dword [rsp + 0x48], ecx
lea rcx, [rsp + 0x28]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x140044764
cmp dword [rdi + 0x530], 0
jne 0x1400446b2
cmp dword [rdi + 0x668], 0
jne 0x1400446b2
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x50]
mov rbx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [rdi + 0x530], 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [rdi + 0x670], 0
je 0x140044764
cmp dword [rdi + 0x66c], 0
jne 0x140044764
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [rdi + 0x388]
add eax, dword [rdi + 0x380]
mov ecx, dword [rsp + 0x20]
sub ecx, eax
mov dword [rsp + 0x20], ecx
mov eax, dword [rsp + 0x24]
sub eax, dword [rdi + 0x38c]
sub eax, dword [rdi + 0x384]
mov dword [rsp + 0x24], eax
cmp ecx, dword [rdi + 0x674]
jne 0x140044711
cmp eax, dword [rdi + 0x678]
je 0x140044764
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x50]
mov rbx, rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], 0x5e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov edx, dword [rsp + 0x20]
mov dword [rdi + 0x674], edx
mov edx, dword [rsp + 0x24]
mov dword [rdi + 0x678], edx
mov dword [rdi + 0x66c], 1
mov rcx, rdi
call fcn.1400443d0
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401312e0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x140044c10
Capabilities:
Print debug messages
Write file on windows

Disassembly:
sub rsp, 0x28
mov edx, dword [rcx + 0x51c]
lea eax, [rdx + 1]
mov dword [rcx + 0x51c], eax
test edx, edx
jne 0x140044cbd
mov qword [rsp + 0x20], rbx
mov rbx, qword [rcx + 0x590]
test rbx, rbx
je 0x140044cb8
lea r8, str.vncClientUpdateThread::EnableUpdates_:_disable_update_thread_n
mov edx, 9
lea rcx, vtable.VNCLog.0
call fcn.140017a50
mov rcx, qword [rbx + 0xb0]
mov dword [rbx + 0xc4], 0
call fcn.140124280
mov rcx, qword [rbx + 0xb8]
mov edx, 0x1388
call fcn.140124150
test al, al
jne 0x140044c97
lea r8, str.vncClientUpdateThread::EnableUpdates_:_wait_timeout_n
mov edx, 9
lea rcx, vtable.VNCLog.0
call fcn.140017a50
lea r8, str.vncClientUpdateThread::EnableUpdates_:_enable_disable_synced_n
mov edx, 9
lea rcx, vtable.VNCLog.0
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
jmp fcn.140017a50
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret

Function at 0x140044cd0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x51c]
mov rbx, rcx
test eax, eax
jne 0x140044d6a
lea r8, str.vncClient::EnableProtocol_no_mutex_:_protocol_enabled_too_many_times__n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140017a50
mov rbx, qword [rbx + 0x3b0]
cmp qword [rbx + 0x10], 0xffffffffffffffff
je 0x140044d43
lea r8, str.VSocket::Close_:_closing_socket_n
mov edx, 0xa
lea rcx, vtable.VNCLog.0
call fcn.140017a50
mov rcx, qword [rbx + 0x10]
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rbx + 0x10], 0xffffffffffffffff
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x140044dfd
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
xor eax, eax
mov qword [rbx + 0x28], rax
mov qword [rbx + 8], rax
add rsp, 0x20
pop rbx
ret
sub eax, 1
mov dword [rcx + 0x51c], eax
jne 0x140044dfd
mov rbx, qword [rcx + 0x590]
test rbx, rbx
je 0x140044dfd
lea r8, str.vncClientUpdateThread::EnableUpdates_:_enable_update_thread_n
mov edx, 9
lea rcx, vtable.VNCLog.0
call fcn.140017a50
mov rcx, qword [rbx + 0xb0]
mov dword [rbx + 0xc4], 1
call fcn.140124280
mov rcx, qword [rbx + 0xb8]
mov edx, 0x1388
call fcn.140124150
test al, al
jne 0x140044de0
lea r8, str.vncClientUpdateThread::EnableUpdates_:_wait_timeout_n
mov edx, 9
lea rcx, vtable.VNCLog.0
call fcn.140017a50
lea r8, str.vncClientUpdateThread::EnableUpdates_:_enable_disable_synced_n
mov edx, 9
lea rcx, vtable.VNCLog.0
add rsp, 0x20
pop rbx
jmp fcn.140017a50
add rsp, 0x20
pop rbx
ret
Function at 0x140046790
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov dword [rsp + 0x20], r9d
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
xor r12d, r12d
xor bpl, bpl
mov ecx, 0x2000
mov dword [rsp + 0x78], r12d
mov esi, r12d
mov r14, r8
mov r15, rdx
call fcn.14013134c
mov rdi, rax
nop dword [rax]
lea r9, [rsp + 0x78]
mov qword [rsp + 0x20], r12
mov r8d, 0x2000
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [rsp + 0x78]
test eax, eax
jne 0x1400467fd
test ebx, ebx
je 0x140046801
mov bpl, 1
jmp 0x140046801
test ebx, ebx
je 0x140046826
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call sym.winvnc.exe_adler32_z
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call sym.winvnc.exe_adler32_z
add esi, 4
mov dword [r14], eax
add r14, 4
jmp 0x1400467d0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, rdi
call fcn.140131300
mov rbx, qword [rsp + 0x60]
test bpl, bpl
mov rbp, qword [rsp + 0x68]
mov eax, 0xffffffff
cmovne esi, eax
mov eax, esi
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x1400468f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
cmp byte [rcx + 0x80d], 0
mov r14d, r8d
mov edi, edx
mov rbx, rcx
mov sil, 1
je 0x140046a23
cmp byte [rcx + 0x80c], 0
jne 0x1400469fb
test edx, edx
jns 0x140046932
xor al, al
jmp 0x140046a27
mov ebp, 0x2000
cmp edi, ebp
jg 0x140046a23
cmp r14d, 2
jne 0x140046967
mov rcx, qword [rcx + 0x7f0]
lea r9d, [r14 - 1]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1400469f1
jmp 0x140046a17
mov rdx, qword [rcx + 0x7e0]
mov r8d, edi
mov rcx, qword [rcx + 0x3b0]
call fcn.140087ee0
cmp eax, 0xffffffff
sete sil
jne 0x140046a02
mov rdx, qword [rbx + 0x7e0]
mov dword [rsp + 0x50], ebp
test r14d, r14d
jne 0x14004699a
xor al, al
jmp 0x1400469c8
mov rcx, qword [rbx + 0x7e8]
lea r9, [rsp + 0x68]
mov r8, rdx
mov dword [rsp + 0x68], edi
lea rdx, [rsp + 0x50]
call sym.winvnc.exe_uncompress2
test eax, eax
jne 0x1400469f1
mov rdx, qword [rbx + 0x7e8]
mov al, 1
mov ebp, dword [rsp + 0x50]
mov rcx, qword [rbx + 0x7f0]
lea r9, [rbx + 0x804]
test al, al
mov qword [rsp + 0x20], 0
cmovne edi, ebp
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140046a11
mov byte [rbx + 0x80c], 1
mov rcx, rbx
call fcn.140046a40
jmp 0x140046a23
mov rcx, rbx
mov byte [rbx + 0x80c], 1
call fcn.140046a40
mov edi, dword [rbx + 0x804]
add dword [rbx + 0x808], edi
inc dword [rbx + 0x800]
movzx eax, sil
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140047260
Capabilities:
Delete file
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1401ef010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rcx
mov rax, qword [rcx]
call qword [rax + 0x50]
mov rdi, rax
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x40], reloc.dwmapi.dll_Ordinal_102
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
cmp byte [rbx + 0x82a], 0
je 0x1400473f9
mov rcx, qword [0x1401fdf60]
imul eax, dword [rcx + 0x758], 0x3e8
mov rsi, qword [rbx + 0x3b0]
cmp byte [0x14023e4f4], 2
jb 0x14004731c
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov r8d, 0x1006
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14004731c
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov r8d, 0x1005
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov byte [rbx + 0x82a], 0
xor eax, eax
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], eax
cmp byte [rbx + 0x829], al
mov word [rsp + 0x48], 0x607
je 0x140047344
mov word [rsp + 0x48], 0x707
mov r9b, 7
mov r8d, reloc.WS2_32.dll_inet_ntoa
lea rdx, [rsp + 0x48]
mov rcx, qword [rbx + 0x3b0]
call fcn.140087a20
mov rcx, qword [rbx + 0x810]
cmp rcx, 0xffffffffffffffff
je 0x14004737c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x810], 0xffffffffffffffff
mov rcx, qword [rbx + 0x7e0]
xor esi, esi
test rcx, rcx
je 0x140047396
call fcn.140131300
mov qword [rbx + 0x7e0], rsi
mov rcx, qword [rbx + 0x7e8]
test rcx, rcx
je 0x1400473ae
call fcn.140131300
mov qword [rbx + 0x7e8], rsi
add rbx, 0x119
mov edx, 0x5c
mov rcx, rbx
call fcn.14014a5f4
lea rcx, [rax + 1]
mov r8d, 9
lea rdx, str._UVNCDIR_
call fcn.140143800
test eax, eax
jne 0x1400473f9
lea edx, [rax + 0x2c]
mov rcx, rbx
call fcn.14014a5f4
test rax, rax
je 0x1400473ef
mov byte [rax], sil
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401312e0
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret

Function at 0x140047430
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
lea rcx, [rsp + 0x48]
mov rsi, r8
mov edi, edx
xor bl, bl
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jns 0x14004746c
xor al, al
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
lea r8, [rsp + 0x30]
mov edx, edi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x1400474a3
mov rcx, qword [rsp + 0x30]
mov rdx, rsi
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov rcx, qword [rsp + 0x48]
test eax, eax
mov rdx, qword [rsp + 0x30]
setne bl
mov r8, qword [rcx]
call qword [r8 + 0x28]
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_recv]
mov rsi, qword [rsp + 0x40]
movzx eax, bl
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140047f90
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
movzx ebp, r8b
mov rsi, rdx
mov rbx, rcx
cmp qword [rcx + 0x260], 0
jne 0x1400480c8
mov rax, qword [rcx]
call qword [rax + 0x50]
mov rdi, rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], 0x5a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov edx, dword [rsi + 4]
mov r8d, edx
shl r8d, 0x10
mov ecx, edx
and ecx, 0xff00
or r8d, ecx
shl r8d, 8
mov eax, edx
and eax, 0xff0000
shr edx, 0x10
or eax, edx
shr eax, 8
or r8d, eax
cmp r8d, 1
sete al
mov byte [rbx + 0x828], al
mov ecx, dword [rsi + 8]
mov esi, ecx
shl esi, 0x10
mov eax, ecx
and eax, 0xff00
or esi, eax
shl esi, 8
mov eax, ecx
and eax, 0xff0000
shr ecx, 0x10
or eax, ecx
shr eax, 8
or esi, eax
xor edx, edx
mov r8d, 0x144
lea rcx, [rbx + 0x119]
call fcn.140133cd0
cmp esi, 0x142
ja 0x1400480bf
mov r8d, esi
lea rdx, [rbx + 0x119]
mov rcx, qword [rbx + 0x3b0]
call fcn.140087ee0
test eax, eax
je 0x1400480bf
mov rax, qword [0x1401fdf60]
cmp dword [rax + 0x790], 0
je 0x1400480bf
test bpl, bpl
je 0x1400480bf
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x140047f40]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x260], rax
mov eax, 1
jmp 0x1400480ca
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140048720
Capabilities:
Create thread

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rbp, rcx
mov byte [rcx + 0x3b8], dl
test dl, dl
je 0x14004875d
mov rcx, qword [rcx + 0x3c0]
test rcx, rcx
je 0x140048749
call fcn.140043b80
xor esi, esi
mov qword [rbp + 0x3c0], rsi
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov ecx, gethostname
call fcn.140131308
mov rdi, rax
mov qword [rsp + 0x60], rax
mov r14, qword [0x1401fb848]
mov byte [rax], 0
xor esi, esi
mov qword [rax + 4], rsi
mov qword [rax + 0xc], rsi
mov qword [rax + 0x30], r14
mov rbx, qword [0x1401f2b20]
test rbx, rbx
jne 0x1400487aa
lea ecx, [rsi + 0x58]
call fcn.140131308
mov rbx, rax
mov qword [rsp + 0x70], rax
mov qword [0x1401f2b20], rax
cmp qword [0x1401f2b18], rsi
jne 0x14004884d
mov qword [0x1401f2b18], r14
mov edx, 0x85
mov rcx, r14
call qword [sym.imp.USER32.dll_LoadCursorA]
mov qword [rbx], rax
mov edx, 0x81
mov rcx, r14
call qword [sym.imp.USER32.dll_LoadCursorA]
mov qword [rbx + 8], rax
mov edx, 0x82
mov rcx, r14
call qword [sym.imp.USER32.dll_LoadCursorA]
mov qword [rbx + 0x10], rax
mov edx, 0x42e
mov rcx, r14
call qword [sym.imp.USER32.dll_LoadCursorA]
mov qword [rbx + 0x18], rax
mov edx, 0x84
mov rcx, r14
call qword [sym.imp.USER32.dll_LoadCursorA]
mov qword [rbx + 0x20], rax
mov edx, 0x86
mov rcx, r14
call qword [sym.imp.USER32.dll_LoadCursorA]
mov qword [rbx + 0x28], rax
mov edx, 0x87
mov rcx, r14
call qword [sym.imp.USER32.dll_LoadCursorA]
mov qword [rbx + 0x30], rax
mov dword [rbx + 0x48], esi
mov word [rbx + 0x4c], si
mov byte [rbx + 0x4e], sil
mov rbx, qword [0x1401f2b20]
test rbx, rbx
jne 0x140048869
lea ecx, [rbx + 0x58]
call fcn.140131308
mov rbx, rax
mov qword [rsp + 0x70], rax
mov qword [0x1401f2b20], rax
mov ecx, 1
mov eax, ecx
cmp byte [rbx + rax + 0x48], sil
je 0x140048887
inc ecx
inc rax
cmp rax, 7
jl 0x140048870
mov rax, rsi
jmp 0x140048893
movsxd rax, ecx
mov byte [rax + rbx + 0x48], 1
mov rax, qword [rbx + rax*8]
mov qword [rdi + 0x18], rax
test rbx, rbx
jne 0x1400488b3
lea ecx, [rbx + 0x58]
call fcn.140131308
mov rbx, rax
mov qword [rsp + 0x60], rax
mov qword [0x1401f2b20], rax
mov rax, qword [rbx]
mov qword [rdi + 0x20], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
mov r9, rdi
lea r8, [0x140023640]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
mov qword [rbp + 0x3c0], rdi
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14004f540
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
xor eax, eax
mov dword [rcx + 0xe9ec], eax
test edx, edx
jne 0x14004f621
test r8d, r8d
jne 0x14004f62a
mov rcx, qword [0x1401fdf60]
cmp dword [rcx + 0xe3c], eax
jne 0x14004f608
mov dword [rcx + 0xe3c], 1
mov dword [rbx + 0xe9e4], 1
mov dword [rbx + 0x8d0], eax
mov ecx, dword [rbx + 0xe9e8]
mov edx, 1
mov dword [rbx + 0xe9e8], edx
cmp ecx, edx
setne al
mov dword [rbx + 0xe9f0], eax
mov rax, qword [0x1401fb428]
test rax, rax
jne 0x14004f5d4
lea ecx, [rax + 0x30]
call fcn.140131308
mov qword [rsp + 0x40], rax
mov rcx, rax
call fcn.14007c2e0
nop
mov qword [0x1401fb428], rax
mov rcx, rax
cmp byte [rax + 0xc], 0
jne 0x14004f6ae
test rax, rax
jne 0x14004f647
lea ecx, [rax + 0x30]
call fcn.140131308
mov qword [rsp + 0x40], rax
mov rcx, rax
call fcn.14007c2e0
nop
mov qword [0x1401fb428], rax
mov rcx, rax
jmp 0x14004f64a
mov dword [rbx + 0xe9e4], eax
mov dword [rbx + 0x8d0], eax
mov ecx, dword [rbx + 0xe9e8]
mov edx, eax
jmp 0x14004f59a
test r8d, r8d
je 0x14004f57f
mov dword [rcx + 0xe9e4], eax
mov dword [rcx + 0x8d0], 1
mov ecx, dword [rcx + 0xe9e8]
mov edx, eax
jmp 0x14004f59a
mov rax, rcx
cmp byte [rax + 0xb], 0
jne 0x14004f6ae
test rcx, rcx
jne 0x14004f679
mov ecx, gethostbyname
call fcn.140131308
mov qword [rsp + 0x40], rax
mov rcx, rax
call fcn.14007c2e0
nop
mov qword [0x1401fb428], rax
mov rcx, rax
jmp 0x14004f67c
mov rax, rcx
cmp byte [rax + 0xa], 0
jne 0x14004f6ae
test rcx, rcx
jne 0x14004f6a8
mov ecx, gethostbyname
call fcn.140131308
mov qword [rsp + 0x40], rax
mov rcx, rax
call fcn.14007c2e0
mov rcx, rax
mov qword [0x1401fb428], rax
cmp byte [rcx + 8], 0
je 0x14004f6b8
mov dword [rbx + 0xe9f0], 1
mov eax, dword [rbx + 0x8d0]
mov dword [rsp + 0x20], eax
mov r9d, dword [rbx + 0xe9e4]
lea r8, str.vncDesktop::SethookMechanism_:_Sethook_restart_wanted_hook_d_driver_d__r_n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140017a50
cmp dword [rbx + 0xe9f0], 0
je 0x14004f6fc
lea r8, str.vncDesktop::SethookMechanism_:_Hookdll_status_changed__r_n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140017a50
mov rax, qword [rbx + 0xe458]
cmp dword [rbx + 0x8d0], 0
je 0x14004f74c
test rax, rax
je 0x14004f722
cmp qword [rax + 0x20], 0
jne 0x14004f746
mov dword [rbx + 0xe9f0], 1
mov dword [rbx + 0xe9ec], 1
lea r8, str.vncDesktop::SethookMechanism_:_Driver_Status_changed_r_n
xor edx, edx
lea rcx, vtable.VNCLog.0
add rsp, 0x30
pop rbx
jmp fcn.140017a50
add rsp, 0x30
pop rbx
ret
test rax, rax
je 0x14004f746
cmp qword [rax + 0x20], 0
jne 0x14004f722
mov dword [rbx + 0xe9ec], 1
mov dword [rbx + 0xe9f0], 1
add rsp, 0x30
pop rbx
ret
Function at 0x1400503d0
Capabilities:
Create thread
Terminate thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x150
mov rax, qword [0x1401ef010]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
call qword [sym.imp.USER32.dll_GetThreadDesktop]
lea r8, str.vncDesktop::StartInitWindowthread_:_StartInitWindowthread__n
mov byte [rdi + 0xea78], 0
mov edx, 9
lea rcx, vtable.VNCLog.0
mov rbx, rax
call fcn.140017a50
lea rax, [rsp + 0x30]
mov r9d, 0x100
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 2
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetUserObjectInformationA]
test eax, eax
je 0x1400505a1
xor ebx, ebx
lea rdx, [rsp + 0x40]
mov eax, ebx
lea r8, str.Default
nop dword [rax]
movzx ecx, byte [rdx + rax]
inc rax
cmp cl, byte [r8 + rax - 1]
jne 0x140050589
cmp rax, 8
jne 0x140050460
lea r8, str.vncDesktop::StartInitWindowthread_:_StartInitWindowthread_default_desk_n
lea edx, [rax + 1]
lea rcx, vtable.VNCLog.0
call fcn.140017a50
cmp qword [rdi + 0xea70], rbx
jne 0x140050567
mov rcx, qword [rdi + 0xe408]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rax, qword [0x1401fdf60]
cmp dword [rax + 0x788], ebx
je 0x1400504bc
call fcn.14002fab0
lea rax, [rdi + 0xe410]
mov r9, rdi
mov qword [rsp + 0x28], rax
lea r8, [0x1400505d0]
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [rdi + 0xe408]
mov edx, 0x2710
mov qword [rdi + 0xea70], rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, 9
lea rcx, vtable.VNCLog.0
cmp eax, 0x102
jne 0x140050551
lea r8, str.vncDesktop::StartInitWindowthread_:_ERROR:_initwindowthread_failed_to_start__n
call fcn.140017a50
mov rcx, qword [rdi + 0xea70]
test rcx, rcx
je 0x140050547
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rdi + 0xea70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0xe4b8], rbx
mov qword [rdi + 0xea70], rbx
xor al, al
mov byte [rdi + 0xea78], al
jmp 0x1400505a1
lea r8, str.vncDesktop::StartInitWindowthread_:_StartInitWindowthread_started_n
call fcn.140017a50
mov al, 1
mov byte [rdi + 0xea78], al
jmp 0x1400505a1
lea r8, str.vncDesktop::StartInitWindowthread_:_StartInitWindowthread_reactivate_n
mov edx, 9
lea rcx, vtable.VNCLog.0
call fcn.140017a50
mov al, 1
mov byte [rdi + 0xea78], al
jmp 0x1400505a1
lea r8, str.vncDesktop::StartInitWindowthread_:_StartInitWindowthread_no_default_desk_n
mov edx, 9
lea rcx, vtable.VNCLog.0
call fcn.140017a50
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1401312e0
mov rbx, qword [rsp + 0x168]
add rsp, 0x150
pop rdi
ret
Function at 0x1400588d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push rbx
push rdi
sub rsp, 0x48
mov rax, qword [0x1401ef010]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, rdx
lea r8, str.vncEncoder::GetRemotePalette_:_remote_palette_data_requested_n
mov rdi, rcx
mov edx, 9
lea rcx, vtable.VNCLog.0
call fcn.140017a50
cmp word [rdi + 0x48], 0
je 0x140058a99
cmp word [rdi + 0x44], 0
je 0x140058a99
cmp word [rdi + 0x46], 0
je 0x140058a99
cmp byte [rdi + 0x23], 0
jne 0x14005893b
mov rcx, rdi
call fcn.140058b10
test eax, eax
je 0x140058a99
cmp byte [rdi + 0x33], 0
jne 0x140058a99
cmp byte [rdi + 0x23], 0
lea rcx, vtable.VNCLog.0
mov qword [rsp + 0x70], rsi
mov edx, 9
mov qword [rsp + 0x40], r14
je 0x140058a2f
lea r8, str.vncEncoder::GetRemotePalette_:_generating_BGR233_palette_data_n
call fcn.140017a50
movzx ecx, byte [rdi + 0x40]
mov esi, 1
shl esi, cl
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x14005898a
call fcn.140137f30
movsxd rsi, esi
lea rcx, [rsi*4]
call fcn.140139fe8
mov qword [rdi + 0x18], rax
test rax, rax
je 0x140058a71
xor r9d, r9d
test rsi, rsi
jle 0x140058a71
lea r10, [rax + 1]
nop word [rax + rax]
movzx r8d, word [rdi + 0x48]
lea r10, [r10 + 4]
movzx ecx, byte [rdi + 0x4c]
xor edx, edx
mov eax, r9d
sar eax, cl
and eax, r8d
imul eax, eax, 0xff
div r8d
xor edx, edx
mov byte [r10 - 5], al
mov eax, r9d
movzx r8d, word [rdi + 0x44]
movzx ecx, byte [rdi + 0x4a]
sar eax, cl
and eax, r8d
imul eax, eax, 0xff
div r8d
xor edx, edx
mov byte [r10 - 3], al
mov eax, r9d
movzx r8d, word [rdi + 0x46]
inc r9d
movzx ecx, byte [rdi + 0x4b]
sar eax, cl
and eax, r8d
imul eax, eax, 0xff
div r8d
mov byte [r10 - 4], al
sub rsi, 1
jne 0x1400589c0
jmp 0x140058a71
lea r8, str.vncEncoder::GetRemotePalette_:_generating_8_bit_palette_data_n
call fcn.140017a50
lea rdx, [rdi + 0x20]
mov dword [rsp + 0x22], 0xff0100
lea r8, [rsp + 0x20]
mov word [rsp + 0x20], 0x1820
lea rcx, [rdi + 0x18]
mov dword [rsp + 0x26], 0xff00ff
mov word [rsp + 0x2a], 0x810
mov byte [rsp + 0x2c], 0
call qword [0x140195e18]
mov rax, qword [rdi + 0x18]
mov r14, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x70]
test rax, rax
jne 0x140058aaf
lea r8, str.vncEncoder::GetRemotePalette_:_failed_to_obtain_colour_map_data__n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140017a50
xor eax, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401312e0
add rsp, 0x48
pop rdi
pop rbx
ret
mov ecx, 8
lea rbx, [rbx + 0x80]
movups xmm0, xmmword [rax]
lea rax, [rax + 0x80]
movups xmmword [rbx - 0x80], xmm0
movups xmm1, xmmword [rax - 0x70]
movups xmmword [rbx - 0x70], xmm1
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rbx - 0x60], xmm0
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rbx - 0x50], xmm1
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rbx - 0x40], xmm0
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rbx - 0x30], xmm1
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rbx - 0x20], xmm0
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rbx - 0x10], xmm1
sub rcx, 1
jne 0x140058ab4
lea eax, [rcx + 1]
jmp 0x140058a9b