joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002f620
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], r9
push rdi
push r14
push r15
sub rsp, 0x20
mov edi, r8d
movzx esi, dl
movzx ebp, cl
mov rax, qword [0x1401fc428]
test rax, rax
jne 0x14002f66f
lea ecx, [rax + 0x30]
call fcn.140131f18
mov qword [rsp + 0x58], rax
mov rcx, rax
call fcn.14007c180
nop
mov qword [0x1401fc428], rax
cmp byte [rax + 0xa], 0
je 0x14002f80c
cmp dword [0x1401f3e94], 0
jne 0x14002f80c
cmp dword [0x1401f3e98], 0
je 0x14002f80c
mov dword [0x1401f3e9c], 0
mov dword [0x1401f3e94], 2
mov ecx, 0xa4
call qword [sym.imp.USER32.dll_GetKeyState]
movzx r14d, ax
shr r14, 8
mov ecx, 0xa2
call qword [sym.imp.USER32.dll_GetKeyState]
movzx r15d, ax
shr r15, 8
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
shr rax, 8
mov rbx, qword [0x1401f3ea8]
test rbx, rbx
je 0x14002f7ec
test r14b, r14b
jne 0x14002f6fe
test r15b, r15b
jne 0x14002f6fe
test al, al
je 0x14002f7ec
mov byte [rsp + 0x58], bpl
mov byte [rsp + 0x59], sil
mov dword [rsp + 0x5c], edi
cmp byte [rbx + 0x23c], 0
je 0x14002f800
lea rcx, [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movsxd r8, dword [rbx + 0x230]
lea rdx, [rsp + 0x58]
mov rcx, qword [rbx + 0x38]
call fcn.140134230
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14002f747
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14002f756
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14002f765
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, 0x3e8
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14002f793
inc dword [rbx + 0x238]
cmp dword [rbx + 0x238], 3
jle 0x14002f79d
mov byte [rbx + 0x23c], 0
jmp 0x14002f7c7
mov dword [rbx + 0x238], 0
cmp byte [rbx + 0x23c], 0
je 0x14002f7c7
mov edx, 0x3e8
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
movsxd r8, dword [rbx + 0x234]
mov rdx, qword [rbx + 0x40]
xor ecx, ecx
call fcn.140134230
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14002f7d6
call qword [sym.imp.KERNEL32.dll_SetEvent]
lea rcx, [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [0x1401f3e94], 0
jmp 0x14002f820
xor r9d, r9d
mov r8d, edi
movzx edx, sil
movzx ecx, bpl
call qword [sym.imp.USER32.dll_keybd_event]
mov dword [0x1401f3e94], 0
jmp 0x14002f820
xor r9d, r9d
mov r8d, edi
movzx edx, sil
movzx ecx, bpl
call qword [sym.imp.USER32.dll_keybd_event]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x140030670
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
xor esi, esi
mov r15, rcx
mov qword [rsp + 0x30], rsi
lea rcx, str.c:_video0.dat
mov dword [rsp + 0x28], esi
xor r9d, r9d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
lea r8d, [rsi + 3]
mov ebp, esi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x30], rsi
lea r8d, [rsi + 3]
mov dword [rsp + 0x28], esi
lea rcx, str.c:_video1.dat
xor r9d, r9d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
lea rax, [rdi - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400306fa
lea rax, [rbx + 1]
test rax, 0xfffffffffffffffe
jne 0x1400306ff
mov rbp, rdi
test rbx, rbx
je 0x140030714
cmp rbx, 0xffffffffffffffff
je 0x140030714
lea rax, [rdi + 1]
test rax, 0xfffffffffffffffe
jne 0x14003071d
mov rbp, rbx
test rdi, rdi
je 0x1400307bd
cmp rdi, 0xffffffffffffffff
je 0x1400307bd
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400307bd
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor edx, edx
mov rcx, rbx
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [r15 + 0x30]
cmp r14d, ecx
cmove rbp, rdi
cmp eax, ecx
jne 0x1400307bd
cmp r14d, ecx
jne 0x1400307cb
lea r9, [rsp + 0xa0]
mov rcx, rdi
lea r8, [rsp + 0xa8]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileTime]
lea r9, [rsp + 0x98]
mov rcx, rdi
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileTime]
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 1
cmova rdi, rbx
mov rbx, rdi
jmp 0x1400307cb
mov rbx, rbp
test rbp, rbp
je 0x140030821
cmp rbx, 0xffffffffffffffff
je 0x140030821
xor r9d, r9d
mov qword [rsp + 0x28], rsi
xor edx, edx
mov dword [rsp + 0x20], esi
mov rcx, rbx
lea r8d, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdi, rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140030816
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov rcx, rdi
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140030836
lea r8, str.VideoDriver::videoMemory_GetSharedMemory_:_Error_video.dat__n
xor edx, edx
lea rcx, vtable.VNCLog.0
call fcn.140017a50
mov rbx, qword [rsp + 0x90]
mov rax, rsi
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400349e0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov ebx, edx
mov rdi, rcx
mov edx, 1
mov rcx, r8
mov r14, r8
call fcn.140018750
lea ecx, [rbx - 8]
test ecx, ecx
jle 0x140034a8a
mov qword [rsp + 0x30], rbp
lea ebp, [rcx - 1]
mov qword [rsp + 0x38], rsi
movsxd rsi, ecx
add rsi, rdi
shr ebp, 3
inc ebp
lea rbx, [rsi + 1]
nop dword [rax + rax]
mov rdx, rsi
mov rcx, rsi
call fcn.1400194c0
movzx eax, byte [rbx - 9]
sub rsi, 8
xor byte [rbx - 1], al
movzx eax, byte [rbx - 8]
xor byte [rbx], al
movzx eax, byte [rbx - 7]
xor byte [rbx + 1], al
movzx eax, byte [rbx - 6]
xor byte [rbx + 2], al
movzx eax, byte [rbx - 5]
xor byte [rbx + 3], al
movzx eax, byte [rbx - 4]
xor byte [rbx + 4], al
movzx eax, byte [rbx - 3]
xor byte [rbx + 5], al
movzx eax, byte [rbx - 2]
xor byte [rbx + 6], al
lea rbx, [rbx - 8]
sub rbp, 1
jne 0x140034a30
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rdx, rdi
mov rcx, rdi
call fcn.1400194c0
movzx eax, byte [r14]
xor byte [rdi], al
movzx eax, byte [r14 + 1]
xor byte [rdi + 1], al
movzx eax, byte [r14 + 2]
xor byte [rdi + 2], al
movzx eax, byte [r14 + 3]
xor byte [rdi + 3], al
movzx eax, byte [r14 + 4]
xor byte [rdi + 4], al
movzx eax, byte [r14 + 5]
xor byte [rdi + 5], al
movzx eax, byte [r14 + 6]
xor byte [rdi + 6], al
movzx eax, byte [r14 + 7]
xor byte [rdi + 7], al
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140038b80
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x180
mov rax, qword [0x1401f0010]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x105
call fcn.1401348e0
mov r9d, 0x104
lea rcx, [rsp + 0x60]
mov r8, rbx
lea edx, [r9 + 1]
call fcn.14014bfcc
mov rax, 0xffffffffffffffff
nop
inc rax
cmp byte [rbx + rax], 0
jne 0x140038bd0
inc rax
cmp rax, 0x105
jae 0x140038c47
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.140131ef0
add rsp, 0x180
pop rbx
ret
call fcn.1401322e8
int3
Function at 0x14003a9d0
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 [0x1401f0010]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rbp, rcx
lea r15, str._unavailable_
xor r12d, r12d
cmp dword [rcx + 0x2d0], r12d
je 0x14003aa16
mov ebx, r12d
jmp 0x14003aa67
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.140021210
test eax, eax
je 0x14003ac02
cmp byte [rsp + 0x60], r12b
jne 0x14003aa90
mov rcx, qword [0x1401fef68]
cmp dword [rcx + 0x748], r12d
je 0x14003aade
cmp ebx, 1
jne 0x14003aade
call fcn.140021370
test eax, eax
je 0x14003aaf1
mov rax, qword [0x1401fef68]
cmp dword [rax + 0x748], r12d
jne 0x14003aaf1
mov rcx, qword [rbp + 0x2c0]
mov rax, qword [rcx]
call qword [rax + 0x200]
test eax, eax
je 0x14003aae7
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 0x14003ac02
mov eax, 1
jmp 0x14003ac04
mov ecx, 0x40
call fcn.140131f18
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 [0x1401fef68]
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 [0x1401fef68]
mov edx, dword [rax + 0x750]
lea rax, vtable.vncAcceptDialog.0
mov qword [r14], rax
mov dword [r14 + 0xc], edx
mov rcx, r15
call fcn.14014a9a0
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, [0x1400343b0]
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 0x14003aae7
xor eax, eax
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140131ef0
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 0x14003d730
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x130
mov rax, qword [0x1401f0010]
xor rax, rsp
mov qword [rsp + 0x120], rax
movzx ebx, cl
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x100
call fcn.1401348e0
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetKeyboardState]
test byte [rsp + rbx + 0x20], 1
je 0x14003d78e
xor edx, edx
movzx ecx, bl
lea r8d, [rdx + 1]
call fcn.14002f620
xor edx, edx
movzx ecx, bl
lea r8d, [rdx + 3]
call fcn.14002f620
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140131ef0
add rsp, 0x130
pop rbx
ret

Function at 0x14003d7b0
Capabilities:
Get hostname
Resolve dns

Disassembly:
push rbx
sub rsp, 0x160
mov rax, qword [0x1401f0010]
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 0x14003d7ff
mov r9d, 0x100
lea r8, str.Host_name_unavailable
mov edx, r9d
mov rcx, rbx
call fcn.14014a54c
jmp 0x14003d981
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x180], rsi
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rsi, rax
test rax, rax
jne 0x14003d837
mov r9d, 0x100
lea r8, str.IP_address_unavailable
mov edx, r9d
mov rcx, rbx
call fcn.14014a54c
jmp 0x14003d979
mov byte [rbx], 0
mov rax, qword [rax + 0x18]
cmp qword [rax], 0
je 0x14003d979
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 0x14003d8e6
nop dword [rax]
mov rax, qword [rsi + 0x18]
lea rdx, [0x1401ca108]
mov rcx, qword [rax + r14]
movzx r8d, byte [rcx + rdi]
lea rcx, [rsp + 0x20]
call fcn.140048a90
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], r12b
jne 0x14003d8b5
mov r9d, 0xff
lea r8, [rsp + 0x20]
sub r9, rax
mov edx, 0x100
mov rcx, rbx
call fcn.1401385c8
movsx eax, word [rsi + 0x12]
inc ebp
inc rdi
cmp ebp, eax
jl 0x14003d890
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp byte [rbx + rax + 1], r12b
lea rax, [rax + 1]
jne 0x14003d8f0
mov byte [rax + rbx - 1], r12b
mov rax, qword [rsi + 0x18]
cmp qword [rax + r14 + 8], r12
je 0x14003d93c
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], r12b
jne 0x14003d912
mov r9d, 0xff
lea r8, [0x1401ca10c]
sub r9, rax
mov edx, 0x100
mov rcx, rbx
call fcn.1401385c8
mov rax, qword [rsi + 0x18]
inc r15
lea r14, [r15*8]
cmp qword [r14 + rax], r12
jne 0x14003d880
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.140131ef0
add rsp, 0x160
pop rbx
ret
Function at 0x140044460
Capabilities:
Check for unmoving mouse cursor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1401f0010]
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 0x140044604
cmp dword [rdi + 0x530], 0
jne 0x140044552
cmp dword [rdi + 0x668], 0
jne 0x140044552
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 0x140044604
cmp dword [rdi + 0x66c], 0
jne 0x140044604
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 0x1400445b1
cmp eax, dword [rdi + 0x678]
je 0x140044604
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.140044270
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140131ef0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x140044ab0
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 0x140044b5d
mov qword [rsp + 0x20], rbx
mov rbx, qword [rcx + 0x590]
test rbx, rbx
je 0x140044b58
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.140124e90
mov rcx, qword [rbx + 0xb8]
mov edx, 0x1388
call fcn.140124d60
test al, al
jne 0x140044b37
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 0x140044b70
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 0x140044c0a
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 0x140044be3
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 0x140044c9d
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 0x140044c9d
mov rbx, qword [rcx + 0x590]
test rbx, rbx
je 0x140044c9d
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.140124e90
mov rcx, qword [rbx + 0xb8]
mov edx, 0x1388
call fcn.140124d60
test al, al
jne 0x140044c80
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 0x140046630
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.140131f5c
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 0x14004669d
test ebx, ebx
je 0x1400466a1
mov bpl, 1
jmp 0x1400466a1
test ebx, ebx
je 0x1400466c6
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 0x140046670
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, rdi
call fcn.140131f10
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 0x140046790
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 0x1400468c3
cmp byte [rcx + 0x80c], 0
jne 0x14004689b
test edx, edx
jns 0x1400467d2
xor al, al
jmp 0x1400468c7
mov ebp, 0x2000
cmp edi, ebp
jg 0x1400468c3
cmp r14d, 2
jne 0x140046807
mov rcx, qword [rcx + 0x7f0]
lea r9d, [r14 - 1]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x140046891
jmp 0x1400468b7
mov rdx, qword [rcx + 0x7e0]
mov r8d, edi
mov rcx, qword [rcx + 0x3b0]
call fcn.140087d80
cmp eax, 0xffffffff
sete sil
jne 0x1400468a2
mov rdx, qword [rbx + 0x7e0]
mov dword [rsp + 0x50], ebp
test r14d, r14d
jne 0x14004683a
xor al, al
jmp 0x140046868
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 0x140046891
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 0x1400468b1
mov byte [rbx + 0x80c], 1
mov rcx, rbx
call fcn.1400468e0
jmp 0x1400468c3
mov rcx, rbx
mov byte [rbx + 0x80c], 1
call fcn.1400468e0
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 0x140047100
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 [0x1401f0010]
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 0x140047299
mov rcx, qword [0x1401fef68]
imul eax, dword [rcx + 0x758], 0x3e8
mov rsi, qword [rbx + 0x3b0]
cmp byte [0x14023f4fc], 2
jb 0x1400471bc
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 0x1400471bc
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 0x1400471e4
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.1400878c0
mov rcx, qword [rbx + 0x810]
cmp rcx, 0xffffffffffffffff
je 0x14004721c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x810], 0xffffffffffffffff
mov rcx, qword [rbx + 0x7e0]
xor esi, esi
test rcx, rcx
je 0x140047236
call fcn.140131f10
mov qword [rbx + 0x7e0], rsi
mov rcx, qword [rbx + 0x7e8]
test rcx, rcx
je 0x14004724e
call fcn.140131f10
mov qword [rbx + 0x7e8], rsi
add rbx, 0x119
mov edx, 0x5c
mov rcx, rbx
call fcn.14014b204
lea rcx, [rax + 1]
mov r8d, 9
lea rdx, str._UVNCDIR_
call fcn.140144410
test eax, eax
jne 0x140047299
lea edx, [rax + 0x2c]
mov rcx, rbx
call fcn.14014b204
test rax, rax
je 0x14004728f
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.140131ef0
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret

Function at 0x1400472d0
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 0x14004730c
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 0x140047343
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