joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140038be0
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x180
mov rax, qword [0x1401ef010]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x105
call fcn.140133cb0
mov r9d, 0x104
lea rcx, [rsp + 0x60]
mov r8, rbx
lea edx, [r9 + 1]
call fcn.14014b39c
mov rax, 0xffffffffffffffff
nop
inc rax
cmp byte [rbx + rax], 0
jne 0x140038c30
inc rax
cmp rax, 0x105
jae 0x140038ca7
mov byte [rsp + rax + 0x60], 0
lea rcx, [rsp + 0x20]
xor eax, eax
xorps xmm0, xmm0
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x60]
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x30], rax
mov eax, 0x614
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x28], 3
movups xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x40], ax
call qword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
sete al
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1401312c0
add rsp, 0x180
pop rbx
ret
call fcn.1401316b8
int3
Function at 0x14003aa30
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x180
mov rax, qword [0x1401ef010]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rbp, rcx
lea r15, str._unavailable_
xor r12d, r12d
cmp dword [rcx + 0x2d0], r12d
je 0x14003aa76
mov ebx, r12d
jmp 0x14003aac7
mov rcx, qword [rcx + 0x2b8]
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.WS2_32.dll_getpeername]
mov ecx, dword [rsp + 0x3c]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rdx, r15
test rax, rax
cmovne rdx, rax
mov rcx, qword [rbp + 0x2c0]
mov rax, qword [rcx]
call qword [rax + 0x1d8]
mov ebx, eax
lea rcx, [rsp + 0x60]
call fcn.140021270
test eax, eax
je 0x14003ac62
cmp byte [rsp + 0x60], r12b
jne 0x14003aaf0
mov rcx, qword [0x1401fdf60]
cmp dword [rcx + 0x748], r12d
je 0x14003ab3e
cmp ebx, 1
jne 0x14003ab3e
call fcn.1400213d0
test eax, eax
je 0x14003ab51
mov rax, qword [0x1401fdf60]
cmp dword [rax + 0x748], r12d
jne 0x14003ab51
mov rcx, qword [rbp + 0x2c0]
mov rax, qword [rcx]
call qword [rax + 0x200]
test eax, eax
je 0x14003ab47
mov rcx, qword [rbp + 0x2c0]
mov rax, qword [rcx]
call qword [rax + 0x1f0]
mov ebx, 2
cmp eax, 1
cmove ebx, r12d
cmp ebx, 2
je 0x14003ac62
mov eax, 1
jmp 0x14003ac64
mov ecx, 0x40
call fcn.1401312e8
mov r14, rax
mov qword [rsp + 0x38], rax
mov rcx, qword [rbp + 0x2b8]
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x48]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.WS2_32.dll_getpeername]
mov ecx, dword [rsp + 0x4c]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
test rax, rax
cmovne r15, rax
mov rax, qword [0x1401fdf60]
cmp dword [rax + 0xa44], 0
setne sil
mov rdi, qword [rbp + 0x2c8]
add rdi, 0x268
mov rcx, qword [rbp + 0x2c0]
mov rax, qword [rcx]
call qword [rax + 0x1f0]
mov ebx, r12d
cmp eax, 1
sete bl
mov rax, qword [0x1401fdf60]
mov edx, dword [rax + 0x750]
lea rax, vtable.vncAcceptDialog.0
mov qword [r14], rax
mov dword [r14 + 0xc], edx
mov rcx, r15
call fcn.140149d70
mov qword [r14 + 0x20], rax
mov dword [r14 + 0x14], r12d
mov dword [r14 + 8], ebx
mov qword [r14 + 0x28], r12
mov qword [r14 + 0x30], rdi
mov byte [r14 + 0x38], sil
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r12d
mov r9, r14
lea r8, [0x140034410]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [r14 + 0x28], rax
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x30]
mov rcx, qword [r14 + 0x28]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [rsp + 0x30], 1
je 0x14003ab47
xor eax, eax
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1401312c0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14003d880
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x130
mov rax, qword [0x1401ef010]
xor rax, rsp
mov qword [rsp + 0x120], rax
movzx ebx, cl
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x100
call fcn.140133cb0
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetKeyboardState]
test byte [rsp + rbx + 0x20], 1
je 0x14003d8de
xor edx, edx
movzx ecx, bl
lea r8d, [rdx + 1]
call fcn.14002f680
xor edx, edx
movzx ecx, bl
lea r8d, [rdx + 3]
call fcn.14002f680
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1401312c0
add rsp, 0x130
pop rbx
ret

Function at 0x14003d900
Capabilities:
Get hostname
Resolve dns

Disassembly:
push rbx
sub rsp, 0x160
mov rax, qword [0x1401ef010]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rbx, rcx
mov edx, 0x100
lea rcx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x14003d94f
mov r9d, 0x100
lea r8, str.Host_name_unavailable
mov edx, r9d
mov rcx, rbx
call fcn.14014991c
jmp 0x14003dad1
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x180], rsi
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rsi, rax
test rax, rax
jne 0x14003d987
mov r9d, 0x100
lea r8, str.IP_address_unavailable
mov edx, r9d
mov rcx, rbx
call fcn.14014991c
jmp 0x14003dac9
mov byte [rbx], 0
mov rax, qword [rax + 0x18]
cmp qword [rax], 0
je 0x14003dac9
mov qword [rsp + 0x178], rbp
mov qword [rsp + 0x158], rdi
mov qword [rsp + 0x150], r12
xor r12d, r12d
mov qword [rsp + 0x148], r14
mov r14d, r12d
mov qword [rsp + 0x140], r15
mov r15d, r12d
nop dword [rax]
mov ebp, r12d
mov rdi, r12
cmp r12w, word [rsi + 0x12]
jge 0x14003da36
nop dword [rax]
mov rax, qword [rsi + 0x18]
lea rdx, [0x1401c9888]
mov rcx, qword [rax + r14]
movzx r8d, byte [rcx + rdi]
lea rcx, [rsp + 0x20]
call fcn.140048bf0
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], r12b
jne 0x14003da05
mov r9d, 0xff
lea r8, [rsp + 0x20]
sub r9, rax
mov edx, 0x100
mov rcx, rbx
call fcn.140137998
movsx eax, word [rsi + 0x12]
inc ebp
inc rdi
cmp ebp, eax
jl 0x14003d9e0
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp byte [rbx + rax + 1], r12b
lea rax, [rax + 1]
jne 0x14003da40
mov byte [rax + rbx - 1], r12b
mov rax, qword [rsi + 0x18]
cmp qword [rax + r14 + 8], r12
je 0x14003da8c
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], r12b
jne 0x14003da62
mov r9d, 0xff
lea r8, [0x1401c988c]
sub r9, rax
mov edx, 0x100
mov rcx, rbx
call fcn.140137998
mov rax, qword [rsi + 0x18]
inc r15
lea r14, [r15*8]
cmp qword [r14 + rax], r12
jne 0x14003d9d0
mov r15, qword [rsp + 0x140]
mov r14, qword [rsp + 0x148]
mov r12, qword [rsp + 0x150]
mov rdi, qword [rsp + 0x158]
mov rbp, qword [rsp + 0x178]
mov rsi, qword [rsp + 0x180]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1401312c0
add rsp, 0x160
pop rbx
ret
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.1401312c0
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.140124260
mov rcx, qword [rbx + 0xb8]
mov edx, 0x1388
call fcn.140124130
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.140124260
mov rcx, qword [rbx + 0xb8]
mov edx, 0x1388
call fcn.140124130
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.14013132c
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.1401312e0
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.1401312e0
mov qword [rbx + 0x7e0], rsi
mov rcx, qword [rbx + 0x7e8]
test rcx, rcx
je 0x1400473ae
call fcn.1401312e0
mov qword [rbx + 0x7e8], rsi
add rbx, 0x119
mov edx, 0x5c
mov rcx, rbx
call fcn.14014a5d4
lea rcx, [rax + 1]
mov r8d, 9
lea rdx, str._UVNCDIR_
call fcn.1401437e0
test eax, eax
jne 0x1400473f9
lea edx, [rax + 0x2c]
mov rcx, rbx
call fcn.14014a5d4
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.1401312c0
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.140133cb0
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.140043ac0
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.1401312e8
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.1401312e8
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.1401312e8
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.1401312e8
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.1401312e8
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.1401312e8
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.1401312e8
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.1401312e8
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