joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140044c40
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 0x140044de4
cmp dword [rdi + 0x530], 0
jne 0x140044d32
cmp dword [rdi + 0x668], 0
jne 0x140044d32
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 0x140044de4
cmp dword [rdi + 0x66c], 0
jne 0x140044de4
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 0x140044d91
cmp eax, dword [rdi + 0x678]
je 0x140044de4
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.140044a50
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140132620
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x140045290
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 0x14004533d
mov qword [rsp + 0x20], rbx
mov rbx, qword [rcx + 0x590]
test rbx, rbx
je 0x140045338
lea r8, str.vncClientUpdateThread::EnableUpdates_:_disable_update_thread_n
mov edx, 9
lea rcx, vtable.VNCLog.0
call fcn.140018c00
mov rcx, qword [rbx + 0xa0]
mov dword [rbx + 0xb4], 0
call fcn.140125690
mov rcx, qword [rbx + 0xa8]
mov edx, 0x1388
call fcn.140125560
test al, al
jne 0x140045317
lea r8, str.vncClientUpdateThread::EnableUpdates_:_wait_timeout_n
mov edx, 9
lea rcx, vtable.VNCLog.0
call fcn.140018c00
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.140018c00
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret

Function at 0x140045350
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 0x1400453ea
lea r8, str.vncClient::EnableProtocol_no_mutex_:_protocol_enabled_too_many_times__n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140018c00
mov rbx, qword [rbx + 0x3b0]
cmp qword [rbx + 0x10], 0xffffffffffffffff
je 0x1400453c3
lea r8, str.VSocket::Close_:_closing_socket_n
mov edx, 0xa
lea rcx, vtable.VNCLog.0
call fcn.140018c00
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 0x14004547d
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 0x14004547d
mov rbx, qword [rcx + 0x590]
test rbx, rbx
je 0x14004547d
lea r8, str.vncClientUpdateThread::EnableUpdates_:_enable_update_thread_n
mov edx, 9
lea rcx, vtable.VNCLog.0
call fcn.140018c00
mov rcx, qword [rbx + 0xa0]
mov dword [rbx + 0xb4], 1
call fcn.140125690
mov rcx, qword [rbx + 0xa8]
mov edx, 0x1388
call fcn.140125560
test al, al
jne 0x140045460
lea r8, str.vncClientUpdateThread::EnableUpdates_:_wait_timeout_n
mov edx, 9
lea rcx, vtable.VNCLog.0
call fcn.140018c00
lea r8, str.vncClientUpdateThread::EnableUpdates_:_enable_disable_synced_n
mov edx, 9
lea rcx, vtable.VNCLog.0
add rsp, 0x20
pop rbx
jmp fcn.140018c00
add rsp, 0x20
pop rbx
ret
Function at 0x140046e10
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.14013268c
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 0x140046e7d
test ebx, ebx
je 0x140046e81
mov bpl, 1
jmp 0x140046e81
test ebx, ebx
je 0x140046ea6
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 0x140046e50
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, rdi
call fcn.140132640
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 0x140046f70
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 0x1400470a3
cmp byte [rcx + 0x80c], 0
jne 0x14004707b
test edx, edx
jns 0x140046fb2
xor al, al
jmp 0x1400470a7
mov ebp, 0x2000
cmp edi, ebp
jg 0x1400470a3
cmp r14d, 2
jne 0x140046fe7
mov rcx, qword [rcx + 0x7f0]
lea r9d, [r14 - 1]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x140047071
jmp 0x140047097
mov rdx, qword [rcx + 0x7e0]
mov r8d, edi
mov rcx, qword [rcx + 0x3b0]
call fcn.140088930
cmp eax, 0xffffffff
sete sil
jne 0x140047082
mov rdx, qword [rbx + 0x7e0]
mov dword [rsp + 0x50], ebp
test r14d, r14d
jne 0x14004701a
xor al, al
jmp 0x140047048
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 0x140047071
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 0x140047091
mov byte [rbx + 0x80c], 1
mov rcx, rbx
call fcn.1400470c0
jmp 0x1400470a3
mov rcx, rbx
mov byte [rbx + 0x80c], 1
call fcn.1400470c0
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 0x1400478e0
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 0x140047a79
mov rcx, qword [0x1401fdf80]
imul eax, dword [rcx + 0x758], 0x3e8
mov rsi, qword [rbx + 0x3b0]
cmp byte [0x14023e518], 2
jb 0x14004799c
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 0x14004799c
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 0x1400479c4
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.140088470
mov rcx, qword [rbx + 0x810]
cmp rcx, 0xffffffffffffffff
je 0x1400479fc
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x810], 0xffffffffffffffff
mov rcx, qword [rbx + 0x7e0]
xor esi, esi
test rcx, rcx
je 0x140047a16
call fcn.140132640
mov qword [rbx + 0x7e0], rsi
mov rcx, qword [rbx + 0x7e8]
test rcx, rcx
je 0x140047a2e
call fcn.140132640
mov qword [rbx + 0x7e8], rsi
add rbx, 0x119
mov edx, 0x5c
mov rcx, rbx
call fcn.1401463b4
lea rcx, [rax + 1]
mov r8d, 9
lea rdx, str._UVNCDIR_
call fcn.140144b40
test eax, eax
jne 0x140047a79
lea edx, [rax + 0x2c]
mov rcx, rbx
call fcn.1401463b4
test rax, rax
je 0x140047a6f
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.140132620
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret

Function at 0x140047ab0
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 0x140047aec
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 0x140047b23
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 0x140048610
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 0x140048748
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.140135010
cmp esi, 0x142
ja 0x14004873f
mov r8d, esi
lea rdx, [rbx + 0x119]
mov rcx, qword [rbx + 0x3b0]
call fcn.140088930
test eax, eax
je 0x14004873f
mov rax, qword [0x1401fdf80]
cmp dword [rax + 0x790], 0
je 0x14004873f
test bpl, bpl
je 0x14004873f
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, [0x1400485c0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x260], rax
mov eax, 1
jmp 0x14004874a
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 0x140048da0
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 0x140048ddd
mov rcx, qword [rcx + 0x3c0]
test rcx, rcx
je 0x140048dc9
call fcn.140044140
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.140132648
mov rdi, rax
mov qword [rsp + 0x60], rax
mov r14, qword [0x1401fb868]
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 [0x1401f2b40]
test rbx, rbx
jne 0x140048e2a
lea ecx, [rsi + 0x58]
call fcn.140132648
mov rbx, rax
mov qword [rsp + 0x70], rax
mov qword [0x1401f2b40], rax
cmp qword [0x1401f2b38], rsi
jne 0x140048ecd
mov qword [0x1401f2b38], 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 [0x1401f2b40]
test rbx, rbx
jne 0x140048ee9
lea ecx, [rbx + 0x58]
call fcn.140132648
mov rbx, rax
mov qword [rsp + 0x70], rax
mov qword [0x1401f2b40], rax
mov ecx, 1
mov eax, ecx
cmp byte [rbx + rax + 0x48], sil
je 0x140048f07
inc ecx
inc rax
cmp rax, 7
jl 0x140048ef0
mov rax, rsi
jmp 0x140048f13
movsxd rax, ecx
mov byte [rax + rbx + 0x48], 1
mov rax, qword [rbx + rax*8]
mov qword [rdi + 0x18], rax
test rbx, rbx
jne 0x140048f33
lea ecx, [rbx + 0x58]
call fcn.140132648
mov rbx, rax
mov qword [rsp + 0x60], rax
mov qword [0x1401f2b40], 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, [0x140023c50]
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 0x14004fbc0
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 0x14004fca1
test r8d, r8d
jne 0x14004fcaa
mov rcx, qword [0x1401fdf80]
cmp dword [rcx + 0xe3c], eax
jne 0x14004fc88
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 [0x1401fb448]
test rax, rax
jne 0x14004fc54
lea ecx, [rax + 0x30]
call fcn.140132648
mov qword [rsp + 0x40], rax
mov rcx, rax
call fcn.14007c970
nop
mov qword [0x1401fb448], rax
mov rcx, rax
cmp byte [rax + 0xc], 0
jne 0x14004fd2e
test rax, rax
jne 0x14004fcc7
lea ecx, [rax + 0x30]
call fcn.140132648
mov qword [rsp + 0x40], rax
mov rcx, rax
call fcn.14007c970
nop
mov qword [0x1401fb448], rax
mov rcx, rax
jmp 0x14004fcca
mov dword [rbx + 0xe9e4], eax
mov dword [rbx + 0x8d0], eax
mov ecx, dword [rbx + 0xe9e8]
mov edx, eax
jmp 0x14004fc1a
test r8d, r8d
je 0x14004fbff
mov dword [rcx + 0xe9e4], eax
mov dword [rcx + 0x8d0], 1
mov ecx, dword [rcx + 0xe9e8]
mov edx, eax
jmp 0x14004fc1a
mov rax, rcx
cmp byte [rax + 0xb], 0
jne 0x14004fd2e
test rcx, rcx
jne 0x14004fcf9
mov ecx, gethostbyname
call fcn.140132648
mov qword [rsp + 0x40], rax
mov rcx, rax
call fcn.14007c970
nop
mov qword [0x1401fb448], rax
mov rcx, rax
jmp 0x14004fcfc
mov rax, rcx
cmp byte [rax + 0xa], 0
jne 0x14004fd2e
test rcx, rcx
jne 0x14004fd28
mov ecx, gethostbyname
call fcn.140132648
mov qword [rsp + 0x40], rax
mov rcx, rax
call fcn.14007c970
mov rcx, rax
mov qword [0x1401fb448], rax
cmp byte [rcx + 8], 0
je 0x14004fd38
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.140018c00
cmp dword [rbx + 0xe9f0], 0
je 0x14004fd7c
lea r8, str.vncDesktop::SethookMechanism_:_Hookdll_status_changed__r_n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140018c00
mov rax, qword [rbx + 0xe458]
cmp dword [rbx + 0x8d0], 0
je 0x14004fdcc
test rax, rax
je 0x14004fda2
cmp qword [rax + 0x20], 0
jne 0x14004fdc6
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.140018c00
add rsp, 0x30
pop rbx
ret
test rax, rax
je 0x14004fdc6
cmp qword [rax + 0x20], 0
jne 0x14004fda2
mov dword [rbx + 0xe9ec], 1
mov dword [rbx + 0xe9f0], 1
add rsp, 0x30
pop rbx
ret
Function at 0x140050950
Capabilities:
Print debug messages
Terminate thread
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0xea70], 0
mov rbx, rcx
mov byte [rcx + 0xea78], 1
mov edx, 9
lea rcx, vtable.VNCLog.0
mov dword [0x1401f2eb4], 0
je 0x140050a36
lea r8, str.vncDesktop::StopInitWindowthread_:_vncDesktop::Tell_initwindowthread_to_close__n
call fcn.140018c00
mov ecx, dword [rbx + 0xe410]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x12]
call qword [sym.imp.USER32.dll_PostThreadMessageA]
mov rcx, qword [rbx + 0xea70]
mov edx, 0x7d0
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor edx, edx
lea rcx, vtable.VNCLog.0
cmp eax, 0x102
jne 0x140050a0c
lea r8, str.vncDesktop::StopInitWindowthread_:_vncDesktop::ERROR:__messageloop_blocked__n
call fcn.140018c00
mov rcx, qword [rbx + 0xea70]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0xea70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0xe4b8], 0
mov qword [rbx + 0xea70], 0
add rsp, 0x20
pop rbx
ret
lea r8, str.vncDesktop::StopInitWindowthread_:_vncDesktop::_iniwindowthread_proper_closed__n
call fcn.140018c00
mov rcx, qword [rbx + 0xea70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0xea70], 0
add rsp, 0x20
pop rbx
ret
lea r8, str.vncDesktop::StopInitWindowthread_:_initwindowthread_already_closed__n
add rsp, 0x20
pop rbx
jmp fcn.140018c00
Function at 0x140050a50
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.140018c00
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 0x140050c21
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 0x140050c09
cmp rax, 8
jne 0x140050ae0
lea r8, str.vncDesktop::StartInitWindowthread_:_StartInitWindowthread_default_desk_n
lea edx, [rax + 1]
lea rcx, vtable.VNCLog.0
call fcn.140018c00
cmp qword [rdi + 0xea70], rbx
jne 0x140050be7
mov rcx, qword [rdi + 0xe408]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rax, qword [0x1401fdf80]
cmp dword [rax + 0x788], ebx
je 0x140050b3c
call fcn.1400300c0
lea rax, [rdi + 0xe410]
mov r9, rdi
mov qword [rsp + 0x28], rax
lea r8, [0x140050c50]
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 0x140050bd1
lea r8, str.vncDesktop::StartInitWindowthread_:_ERROR:_initwindowthread_failed_to_start__n
call fcn.140018c00
mov rcx, qword [rdi + 0xea70]
test rcx, rcx
je 0x140050bc7
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 0x140050c21
lea r8, str.vncDesktop::StartInitWindowthread_:_StartInitWindowthread_started_n
call fcn.140018c00
mov al, 1
mov byte [rdi + 0xea78], al
jmp 0x140050c21
lea r8, str.vncDesktop::StartInitWindowthread_:_StartInitWindowthread_reactivate_n
mov edx, 9
lea rcx, vtable.VNCLog.0
call fcn.140018c00
mov al, 1
mov byte [rdi + 0xea78], al
jmp 0x140050c21
lea r8, str.vncDesktop::StartInitWindowthread_:_StartInitWindowthread_no_default_desk_n
mov edx, 9
lea rcx, vtable.VNCLog.0
call fcn.140018c00
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140132620
mov rbx, qword [rsp + 0x168]
add rsp, 0x150
pop rdi
ret