joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140038930
Capabilities:
Get disk information

Disassembly:
push rbx
push r14
sub rsp, 0x258
mov rax, qword [0x1401043b8]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov r14, rdx
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov ecx, 0xff
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x140038a59
mov qword [rsp + 0x248], rdi
mov qword [rsp + 0x238], r13
mov qword [rsp + 0x230], r15
xor r15d, r15d
mov edi, r15d
mov r13, r15
cmp word [rsp + 0x20], di
je 0x140038a37
mov qword [rsp + 0x280], rbp
mov qword [rsp + 0x250], rsi
mov qword [rsp + 0x240], r12
lea r12, [rsp + 0x20]
mov rbp, rbx
mov rcx, r12
call fcn.14007aba4
mov edx, 0x5c
mov rcx, rax
mov rsi, rax
call fcn.14007ac18
test rax, rax
je 0x1400389d8
mov word [rax], r15w
test rbx, rbx
je 0x1400389f0
mov rax, qword [rbp]
mov ecx, edi
mov rdx, rsi
imul rcx, rcx, 0x38
add rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, rsi
call fcn.14007945c
lea rdx, [0x1400d1ac8]
mov rcx, r12
call fcn.14007ac44
inc edi
add rbp, 0x38
lea r13, [r13 + rax + 1]
cmp word [rsp + r13*2 + 0x20], r15w
lea r12, [rsp + r13*2 + 0x20]
jne 0x1400389b7
mov r12, qword [rsp + 0x240]
mov rsi, qword [rsp + 0x250]
mov rbp, qword [rsp + 0x280]
mov r15, qword [rsp + 0x230]
mov r13, qword [rsp + 0x238]
test rbx, rbx
jne 0x140038a4f
mov dword [r14], edi
mov rdi, qword [rsp + 0x248]
mov al, 1
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.140078e40
add rsp, 0x258
pop r14
pop rbx
ret
Function at 0x140038bd0
Capabilities:
Move file

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
sub rsp, 0x70
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rbx, rdx
mov rsi, rcx
lea r13, vtable.StringStorage.0
mov qword [rax - 0x60], r13
mov ecx, 8
call fcn.1400797fc
xor r12d, r12d
test rax, rax
je 0x140038c1e
lea rcx, [rsp + 0x30]
mov qword [rax], rcx
jmp 0x140038c21
mov rax, r12
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x1400d1b20]
repne scasw ax, word [rdi]
not rcx
mov rdx, rcx
xor r8d, r8d
lea rcx, [rsp + 0x30]
call fcn.14002bfc0
mov rdx, qword [rsp + 0x50]
mov rbp, rdx
mov rdi, qword [rsp + 0x48]
sub rbp, rdi
sar rbp, 1
add rbp, rbp
cmp rdi, rdx
jbe 0x140038c78
call fcn.1400796a8
mov rax, qword [rsp + 0x30]
test rax, rax
jne 0x140038c8c
call fcn.1400796a8
mov rdx, r12
jmp 0x140038c8f
mov rdx, qword [rax]
cmp rdi, qword [rdx + 0x20]
jb 0x140038c9a
call fcn.1400796a8
mov r8, rbp
lea rdx, [0x1400d1b20]
mov rcx, rdi
call fcn.14007ad70
nop
mov rdi, qword [rbx + 0x20]
cmp rdi, qword [rbx + 0x28]
jbe 0x140038cbc
call fcn.1400796a8
mov rdx, qword [rbx + 8]
test rdx, rdx
jne 0x140038ccf
call fcn.1400796a8
mov rdx, r12
jmp 0x140038cd2
mov rdx, qword [rdx]
cmp rdi, qword [rdx + 0x20]
jb 0x140038cdd
call fcn.1400796a8
mov rdx, rdi
lea rcx, [rsp + 0x28]
mov rax, qword [rsp + 0x28]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rbx, qword [rsp + 0x48]
cmp rbx, qword [rsp + 0x50]
jbe 0x140038cfe
call fcn.1400796a8
mov rax, qword [rsp + 0x30]
test rax, rax
jne 0x140038d12
call fcn.1400796a8
mov rdx, r12
jmp 0x140038d15
mov rdx, qword [rax]
cmp rbx, qword [rdx + 0x20]
jb 0x140038d20
call fcn.1400796a8
mov rdi, qword [rsi + 0x20]
cmp rdi, qword [rsi + 0x28]
jbe 0x140038d2f
call fcn.1400796a8
mov r11, qword [rsi + 8]
test r11, r11
jne 0x140038d42
call fcn.1400796a8
mov r11, r12
jmp 0x140038d45
mov r11, qword [r11]
cmp rdi, qword [r11 + 0x20]
jb 0x140038d50
call fcn.1400796a8
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x140038d91
mov qword [rsp + 0x28], r13
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140038d74
call fcn.140078e60
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
mov rcx, qword [rsp + 0x30]
call fcn.140078e60
xor al, al
jmp 0x140038dc0
mov qword [rsp + 0x28], r13
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140038da5
call fcn.140078e60
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
mov rcx, qword [rsp + 0x30]
call fcn.140078e60
mov al, 1
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x14003a930
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movzx esi, r8b
mov ebx, edx
mov rdi, rcx
cmp edx, 0xffe9
je 0x14003a958
cmp edx, 0xffea
jne 0x14003a989
mov ecx, 0x91
call qword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je 0x14003a989
cmp ebx, 0xffe9
jne 0x14003a97d
mov ebx, 0xffe7
mov byte [rdi + 0x210], sil
jmp 0x14003a989
mov ebx, 0xffe8
mov byte [rdi + 0x211], sil
mov rax, qword [rdi]
movzx r8d, sil
mov edx, ebx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [rax + reloc.WS2_32.dll_recv]
Function at 0x14003cf30
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x1a0
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rbx, rcx
mov rcx, qword [rcx + 0x78]
xor esi, esi
test rcx, rcx
je 0x14003cf67
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x78], rsi
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x14003cf80
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x80], rsi
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rsp + 0xb0]
call fcn.140081300
mov dword [rsp + 0xb0], WSAGetLastError
mov rax, qword [rbx + 0xa0]
mov qword [rsp + 0x110], rax
mov rdx, qword [rbx + 0x90]
mov qword [rsp + 0x100], rdx
mov rcx, qword [rbx + 0x98]
mov qword [rsp + 0x108], rcx
test rax, rax
jne 0x14003cfda
test rdx, rdx
jne 0x14003cfda
test rcx, rcx
je 0x14003cfe3
bts dword [rsp + 0xec], 8
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.14003d210
nop
mov rdi, qword [rsp + 0x70]
cmp rdi, qword [rsp + 0x78]
jbe 0x14003d002
call fcn.1400796a8
mov rax, qword [rsp + 0x58]
test rax, rax
jne 0x14003d016
call fcn.1400796a8
mov r11, rsi
jmp 0x14003d019
mov r11, qword [rax]
cmp rdi, qword [r11 + 0x20]
jb 0x14003d024
call fcn.1400796a8
movzx eax, byte [rbx + 0xa8]
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0xb0]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x14003d0fa
lea rax, vtable.Exception.0
mov qword [rsp + 0x120], rax
lea rcx, [rsp + 0x128]
call fcn.14002e130
nop
lea rdx, [0x1400d1b20]
lea rcx, [rsp + 0x128]
mov rax, qword [rsp + 0x128]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rax, vtable.SystemException.0
mov qword [rsp + 0x120], rax
lea rcx, [rsp + 0x160]
call fcn.14002e130
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x198], eax
mov r8d, eax
xor edx, edx
lea rcx, [rsp + 0x120]
call fcn.140041da0
nop
lea rdx, [0x140101da8]
lea rcx, [rsp + 0x120]
call fcn.14007c4b0
int3
mov rax, qword [rsp + 0x98]
mov qword [rbx + 0x80], rax
mov rax, qword [rsp + 0x90]
mov qword [rbx + 0x78], rax
lea rax, vtable.StringStorage.0
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14003d130
call fcn.140078e60
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x80], rsi
mov rcx, qword [rsp + 0x58]
call fcn.140078e60
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14003d170
Capabilities:
Terminate process

Disassembly:
sub rsp, 0xb8
mov qword [rsp + 0x20], 0xfffffffffffffffe
xor edx, edx
mov rcx, qword [rcx + 0x78]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x14003d202
lea rax, vtable.Exception.0
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x30]
call fcn.14002e130
nop
lea rdx, [0x1400d1b20]
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rax, vtable.SystemException.0
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x68]
call fcn.14002e130
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0xa0], eax
mov r8d, eax
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.140041da0
nop
lea rdx, [0x140101da8]
lea rcx, [rsp + 0x28]
call fcn.14007c4b0
int3
add rsp, 0xb8
ret

Function at 0x14003d4a0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0xa0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rsi, rdx
mov rdi, rcx
mov dword [rax + 0x18], reloc.WS2_32.dll_listen
mov edx, 4
lea rcx, [rax + 0x18]
call qword [sym.imp.USER32.dll_GetPriorityClipboardFormat]
mov ebx, eax
test eax, eax
je 0x14003d5d8
cmp eax, 0xffffffff
je 0x14003d5d8
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x14003d5d4
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rbx, rax
test rax, rax
je 0x14003d5ca
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14002e1a0
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_CloseClipboard]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.14003da70
nop
mov rdx, rax
mov rcx, rsi
call fcn.14002ed50
nop
lea rdi, vtable.StringStorage.0
mov qword [rsp + 0x60], rdi
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x14003d574
call fcn.140078e60
xor ebx, ebx
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x90], rbx
mov rcx, qword [rsp + 0x68]
call fcn.140078e60
nop
mov qword [rsp + 0x20], rdi
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14003d5ad
call fcn.140078e60
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbx
mov rcx, qword [rsp + 0x28]
call fcn.140078e60
mov al, 1
jmp 0x14003d5da
call qword [sym.imp.USER32.dll_CloseClipboard]
xor al, al
jmp 0x14003d5da
xor al, al
jmp 0x14003d5da
xor al, al
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14003d5f0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x60
mov r8, rdx
lea rdx, [rsp + 0x20]
mov rdi, rcx
call fcn.14003d770
mov rbx, qword [rsp + 0x48]
mov rcx, qword [rdi + 0x10]
sub rbx, qword [rsp + 0x40]
sar rbx, 1
add ebx, ebx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x14003d71b
cmp qword [rdi + 8], 0
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x78], rsi
je 0x14003d64c
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
movsxd rbp, ebx
mov ecx, 2
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rsi, qword [rsp + 0x40]
mov qword [rdi + 8], rax
cmp rsi, qword [rsp + 0x48]
jbe 0x14003d672
call fcn.1400796a8
mov rax, qword [rsp + 0x28]
xor ebx, ebx
test rax, rax
jne 0x14003d688
call fcn.1400796a8
mov r11, rbx
jmp 0x14003d68b
mov r11, qword [rax]
cmp rsi, qword [r11 + 0x20]
jb 0x14003d696
call fcn.1400796a8
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r8, rbp
mov rdx, rsi
mov rcx, rax
call fcn.14007ad70
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, qword [rdi + 8]
mov ecx, reloc.WS2_32.dll_listen
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rcx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x70]
lea r11, vtable.StringStorage.0
mov qword [rsp + 0x20], r11
test rcx, rcx
je 0x14003d6f2
call fcn.140078e60
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbx
call fcn.140078e60
mov al, 1
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
mov rcx, qword [rsp + 0x40]
lea r11, vtable.StringStorage.0
mov qword [rsp + 0x20], r11
test rcx, rcx
je 0x14003d736
call fcn.140078e60
mov rcx, qword [rsp + 0x28]
xor ebx, ebx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbx
call fcn.140078e60
mov rbx, qword [rsp + 0x80]
xor al, al
add rsp, 0x60
pop rdi
ret
Function at 0x140040650
Capabilities:
Log keystrokes via application hook

Disassembly:
push rbx
sub rsp, 0xb0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rcx
mov rcx, qword [0x14010ad18]
test rcx, rcx
je 0x140040677
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov qword [0x14010ad18], 0
mov qword [0x14010ad20], rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor r9d, r9d
mov r8, rax
lea rdx, [0x1400405d0]
lea ecx, [r9 + 0xd]
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [0x14010ad18], rax
test rax, rax
jne 0x14004072b
lea rax, vtable.Exception.0
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x30]
call fcn.14002e130
nop
lea rdx, [0x1400d1b20]
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rax, vtable.SystemException.0
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x68]
call fcn.14002e130
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0xa0], eax
mov r8d, eax
lea rdx, str.Unnable_to_set_hooks
lea rcx, [rsp + 0x28]
call fcn.140041da0
nop
lea rdx, [0x140101da8]
lea rcx, [rsp + 0x28]
call fcn.14007c4b0
int3
add rsp, 0xb0
pop rbx
ret

Function at 0x140040770
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x220
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x1401043b8]
xor rax, rsp
mov qword [rsp + 0x210], rax
mov rbx, rcx
lea rax, vtable.WsaStartup.0
mov qword [rcx], rax
mov ecx, 0x102
lea rdx, [rsp + 0x70]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400407f3
lea rax, vtable.Exception.0
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x30]
call fcn.14002e130
nop
lea rdx, str.Failed_to_initialize_WsaStartup.
lea rcx, [rsp + 0x30]
mov rax, qword [rsp + 0x30]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rdx, [0x140101ad0]
lea rcx, [rsp + 0x28]
call fcn.14007c4b0
int3
mov rax, rbx
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.140078e40
add rsp, 0x220
pop rbx
ret
Function at 0x140040c80
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x70
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
mov rcx, qword [rcx + 8]
test rcx, rcx
jne 0x140040cb5
xor al, al
jmp 0x140040e63
mov dword [rsp + 0x30], 1
mov dword [rsp + 0xa8], 8
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x28], rax
xor r12d, r12d
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x30]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140040cf6
xor al, al
jmp 0x140040e63
mov ebp, dword [rsp + 0xa8]
inc ebp
mov ecx, 8
call fcn.1400797fc
test rax, rax
je 0x140040d18
lea rcx, [rsp + 0x40]
mov qword [rax], rcx
jmp 0x140040d1b
mov rax, r12
mov qword [rsp + 0x40], rax
mov word [rsp + 0x90], r12w
lea r8, [rsp + 0x90]
mov rdx, rbp
lea rcx, [rsp + 0x40]
call fcn.14002ef40
nop
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
sub rax, rcx
sar rax, 1
jne 0x140040d5b
call fcn.1400796a8
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140040db5
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140040d95
call fcn.140078e60
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r12
mov rcx, qword [rsp + 0x40]
call fcn.140078e60
xor al, al
jmp 0x140040e63
mov r8d, dword [rsp + 0xa8]
mov rbx, r8
mov rcx, qword [rsp + 0x60]
mov rax, rcx
mov rdx, qword [rsp + 0x58]
sub rax, rdx
sar rax, 1
cmp r8, rax
jb 0x140040def
call fcn.1400796a8
mov r8d, dword [rsp + 0xa8]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
cmp word [rdx + rbx*2], 0
je 0x140040e1d
mov ebx, r8d
sub rcx, rdx
sar rcx, 1
cmp rbx, rcx
jb 0x140040e0e
call fcn.1400796a8
mov rdx, qword [rsp + 0x58]
mov word [rdx + rbx*2], r12w
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
sub rcx, rdx
sar rcx, 1
jne 0x140040e2f
call fcn.1400796a8
mov rdx, qword [rsp + 0x58]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140040e48
call fcn.140078e60
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], r12
mov rcx, qword [rsp + 0x40]
call fcn.140078e60
mov al, 1
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x1400411b0
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
sub rsp, 0x60
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rsi, r8
mov ebp, edx
mov r12, rcx
mov ebx, 0x400
mov ecx, 8
call fcn.1400797fc
xor r13d, r13d
test rax, rax
je 0x1400411fa
lea rcx, [rsp + 0x28]
mov qword [rax], rcx
jmp 0x1400411fd
mov rax, r13
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], r13
nop word [rax + rax]
xor r8d, r8d
lea edx, [rbx + 1]
lea rcx, [rsp + 0x28]
call fcn.14002bfc0
mov r11, qword [rsp + 0x48]
mov r8, qword [rsp + 0x40]
sub r11, r8
sar r11, 1
jne 0x14004124c
call fcn.1400796a8
mov r8, qword [rsp + 0x40]
mov r9d, ebx
mov edx, ebp
mov rcx, qword [r12 + 8]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, eax
test eax, eax
je 0x140041271
cmp eax, 0xea
jne 0x140041297
add ebx, 0x400
jmp 0x140041220
mov rax, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
sub rax, rdx
sar rax, 1
jne 0x14004128d
call fcn.1400796a8
mov rdx, qword [rsp + 0x40]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400412a6
call fcn.140078e60
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], r13
mov rcx, qword [rsp + 0x28]
call fcn.140078e60
mov eax, edi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x140043c80
Capabilities:
Resume thread

Disassembly:
mov rax, rsp
push r12
sub rsp, 0x80
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
movzx r12d, r8b
mov rsi, rdx
mov rbx, rcx
lea rdx, str.Starting_remote_viewer_core...
add rcx, 0x20
call fcn.14006b260
test rsi, rsi
jne 0x140043d02
lea rax, vtable.Exception.0
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x40]
call fcn.14002e130
nop
lea rdx, str.Remote_viewer_core_is_not_started:_adapter_is_0
lea rcx, [rsp + 0x40]
mov rax, qword [rsp + 0x40]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rdx, [0x140101ad0]
lea rcx, [rsp + 0x38]
call fcn.14007c4b0
int3
lea rax, vtable.AutoLock.0
mov qword [rsp + 0x28], rax
lea rdi, [rbx + 0x8a0]
mov qword [rsp + 0x30], rdi
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
nop
cmp byte [rbx + 0x8d0], 0
je 0x140043d6b
lea rax, vtable.Exception.0
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x40]
call fcn.14002e130
nop
lea rdx, str.Remote_viewer_core_is_already_started
lea rcx, [rsp + 0x40]
mov rax, qword [rsp + 0x40]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rdx, [0x140101ad0]
lea rcx, [rsp + 0x38]
call fcn.14007c4b0
int3
mov byte [rbx + 0x8d0], 1
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_recv]
mov byte [rbx + 0xa99], r12b
mov qword [rbx + 0xf0], rsi
mov rax, qword [rbx + 0x280]
lea rcx, [rbx + 0x280]
call qword [rax + reloc.WS2_32.dll_htonl]
mov qword [rbx + 0x278], rsi
mov rcx, qword [rbx + 0x2b8]
test rcx, rcx
je 0x140043db3
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rax, qword [rbx + 0x280]
lea rcx, [rbx + 0x280]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
setne al
mov byte [rbx + 0x1c], al
lea rdx, str.Remote_viewer_core_is_started
lea rcx, [rbx + 0x20]
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
jmp fcn.14006b2b0
Function at 0x14004e8f0
Capabilities:
Create thread
Resume thread

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x78], rsi
mov rsi, r9
mov rbx, r8
mov rdi, rdx
mov rbp, rcx
lea rax, vtable.Thread.0
mov qword [rcx], rax
mov byte [rcx + 0x14], 0
mov byte [rcx + 0x15], 0
lea rax, [rcx + 0x10]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
mov r9, rcx
lea r8, [0x140039100]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 8], rax
lea rax, vtable.FbUpdateNotifier.0
mov qword [rbp], rax
mov qword [rbp + 0x18], rbx
mov qword [rbp + 0x20], rdi
mov r8, rsi
mov rdx, rdi
lea rcx, [rbp + 0x28]
call fcn.14005aee0
nop
xor edi, edi
mov qword [rbp + 0x130], rdi
lea rax, vtable.LocalMutex.0
mov qword [rbp + 0x138], rax
lea rcx, [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
lea rcx, [rbp + 0x168]
xor edx, edx
call fcn.140043020
nop
mov qword [rbp + 0x178], rsi
lea rax, vtable.Region.0
mov qword [rbp + 0x180], rax
mov rax, qword [0x14010ad58]
mov qword [rbp + 0x188], rax
lea rax, [0x14010ad60]
mov qword [rbp + 0x190], rax
lea rax, vtable.Rect.0
mov qword [rbp + 0x198], rax
mov dword [rbp + 0x1a0], edi
mov dword [rbp + 0x1a4], edi
mov dword [rbp + 0x1a8], edi
mov dword [rbp + 0x1ac], edi
mov byte [rbp + 0x1b0], dil
mov byte [rbp + 0x1b1], dil
lea rdx, [rsp + 0x38]
lea rcx, [rbp + 0x28]
call fcn.14005b2e0
mov ecx, dword [rax + 8]
mov dword [rbp + 0x1a0], ecx
mov ecx, dword [rax + 0xc]
mov dword [rbp + 0x1a4], ecx
mov ecx, dword [rax + 0x10]
mov dword [rbp + 0x1a8], ecx
mov eax, dword [rax + 0x14]
mov dword [rbp + 0x1ac], eax
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
setne al
mov byte [rbp + 0x14], al
mov rax, rbp
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret