joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800d5dc0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov r11, rcx
movzx eax, byte [rdx + 2]
movzx r9d, byte [rdx + 3]
mov r10, rdx
shl r9d, 8
lea rdx, [rdx + 0x10]
or r9d, eax
movzx eax, byte [rdx - 0xf]
shl r9d, 8
or r9d, eax
movzx eax, byte [rdx - 0x10]
shl r9d, 8
or r9d, eax
mov dword [rcx + 0x10], r9d
lea r9, str.expand_32_byte_kexpand_16_byte_k
movzx eax, byte [rdx - 0xa]
movzx ecx, byte [rdx - 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx - 0xb]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx - 0xc]
shl ecx, 8
or ecx, eax
mov dword [r11 + 0x14], ecx
movzx eax, byte [rdx - 6]
movzx ecx, byte [rdx - 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx - 7]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx - 8]
shl ecx, 8
or ecx, eax
mov dword [r11 + 0x18], ecx
movzx eax, byte [rdx - 2]
movzx ecx, byte [rdx - 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx - 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx - 4]
shl ecx, 8
or ecx, eax
lea rax, [0x180140bf0]
mov dword [r11 + 0x1c], ecx
cmp r8d, 0x100
cmovne rdx, r10
cmovne r9, rax
movzx eax, byte [rdx + 2]
movzx ecx, byte [rdx + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx]
shl ecx, 8
or ecx, eax
mov dword [r11 + 0x20], ecx
movzx eax, byte [rdx + 6]
movzx ecx, byte [rdx + 7]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 4]
shl ecx, 8
or ecx, eax
mov dword [r11 + 0x24], ecx
movzx eax, byte [rdx + 0xa]
movzx ecx, byte [rdx + 0xb]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 8]
shl ecx, 8
or ecx, eax
mov dword [r11 + 0x28], ecx
movzx eax, byte [rdx + 0xe]
movzx ecx, byte [rdx + 0xf]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0xc]
shl ecx, 8
or ecx, eax
mov dword [r11 + 0x2c], ecx
movsx eax, byte [r9 + 2]
movsx ecx, byte [r9 + 3]
shl ecx, 8
or ecx, eax
movsx eax, byte [r9 + 1]
shl ecx, 8
or ecx, eax
movsx eax, byte [r9]
shl ecx, 8
or ecx, eax
mov dword [r11], ecx
movsx eax, byte [r9 + 6]
movsx ecx, byte [r9 + 7]
shl ecx, 8
or ecx, eax
movsx eax, byte [r9 + 5]
shl ecx, 8
or ecx, eax
movsx eax, byte [r9 + 4]
shl ecx, 8
or ecx, eax
mov dword [r11 + 4], ecx
movsx eax, byte [r9 + 0xa]
movsx ecx, byte [r9 + 0xb]
shl ecx, 8
or ecx, eax
movsx eax, byte [r9 + 9]
shl ecx, 8
or ecx, eax
movsx eax, byte [r9 + 8]
shl ecx, 8
or ecx, eax
mov dword [r11 + 8], ecx
movsx eax, byte [r9 + 0xe]
movsx ecx, byte [r9 + 0xf]
shl ecx, 8
or ecx, eax
movsx eax, byte [r9 + 0xd]
shl ecx, 8
or ecx, eax
movsx eax, byte [r9 + 0xc]
shl ecx, 8
or ecx, eax
mov dword [r11 + 0xc], ecx
ret
Function at 0x1800d5fe0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rdi, rcx
cmp rdx, 0x100
ja 0x1800d603c
mov r9d, 1
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
lea rcx, [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1800d603c
mov rcx, qword [rsp + 0x48]
mov r8, rdi
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x48]
xor edx, edx
test eax, eax
jne 0x1800d6057
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call fcn.1800d92ec
mov dword [rax], 5
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x1800d6070
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
mov r10, r8
mov r11, rdx
mov r9d, eax
test r8, r8
je 0x1800d60a8
sub r11, rcx
nop dword [rax]
nop word [rax + rax]
movzx r8d, byte [r11 + rcx]
movzx edx, byte [rcx]
lea rcx, [rcx + 1]
xor r8d, edx
or r9d, r8d
sub r10, 1
jne 0x1800d6090
test r9d, r9d
setne al
ret

Function at 0x1800d853c
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x1800d8413
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800d8413
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1800d8413
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1800d8413
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1800d8413
cmp dword [rcx + 0x84], 0xe
jbe 0x1800d8413
cmp dword [rcx + 0xf8], 0
je 0x1800d8413
mov ecx, ebx
call fcn.1800d84b4
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.1800d82a4
cmp dword [rbp + 0x20], 0
je 0x1800d8460
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800d8468
int3
xor r8d, r8d
xor edx, edx
jmp 0x1800d83ac

Function at 0x1800ebb30
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x1800ebb0d
call fcn.1800d92ec
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1800e7b98
or eax, 0xffffffff
jmp 0x1800ebb2a
sub dword [rcx + 0x10], 1
jns 0x1800ebb1c
add rsp, 0x28
jmp fcn.1800e7f00
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x1800ebaec
Function at 0x140001530
Capabilities:
Connect pipe

Disassembly:
mov rdx, qword [rcx + 0x20]
mov rcx, qword [rcx + 0x18]
jmp qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]

Function at 0x140001590
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov rbp, r8
mov edi, edx
mov rsi, rcx
mov ebx, 0x200
xor edx, edx
add rcx, 0x2c
mov r8d, ebx
call fcn.1400fa4e0
cmp dword [rsi + 8], 1
jne 0x1400015f0
test rbp, rbp
je 0x1400015f0
cmp edi, ebx
ja 0x1400015d6
mov ebx, edi
mov r9, qword [rsi + 0x20]
mov rcx, qword [rsi + 0x18]
lea rdx, [rsi + 0x2c]
mov r8d, ebx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x30
pop r14
ret

Function at 0x140001620
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
test rdx, rdx
jne 0x140001630
xor eax, eax
add rsp, 0x38
ret
mov rcx, qword [rcx + 0x18]
mov qword [rsp + 0x30], rbx
xor ebx, ebx
lea r9, [rsp + 0x48]
mov dword [rsp + 0x48], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [rsp + 0x48]
test eax, eax
cmove ecx, ebx
mov rbx, qword [rsp + 0x30]
mov eax, ecx
add rsp, 0x38
ret
Function at 0x1400016a0
Capabilities:
Create pipe

Disassembly:
push rbp
push rsi
sub rsp, 0x68
mov ebp, edx
mov rsi, rcx
test rcx, rcx
jne 0x1400016ba
xor eax, eax
add rsp, 0x68
pop rsi
pop rbp
ret
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x90], r14
mov qword [rsp + 0x60], r15
lea r15d, [rdi + 3]
mov ebx, edi
cmp edx, 1
jne 0x14000175d
xor r9d, r9d
xor ecx, ecx
mov r8d, edx
mov r15d, 0x40000003
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x14000171c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Failed_to_create_event:__d_n
mov edx, eax
call fcn.1400fa41c
xor eax, eax
jmp 0x140001812
mov ecx, 0x28
call fcn.1400fa320
mov rbx, rax
test rax, rax
je 0x140001745
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
mov qword [rbx + 0x20], rax
jmp 0x140001748
mov rbx, rdi
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x20], rax
mov qword [rbx + 0x18], r14
xor r9d, r9d
lea r8, [rsp + 0x48]
lea rcx, str.D:_A_OICI_GA___BG__D_OICI_GA___AN__A_OICI_GRGWGX___AU__A_OICI_GA___BA_S:_ML__NW___ME_
lea edx, [r9 + 1]
mov dword [rsp + 0x40], 0x18
mov dword [rsp + 0x50], edi
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
xor ecx, ecx
call fcn.1400f1590
lea rcx, [rsp + 0x40]
mov r9d, 0xff
cmp eax, 8
mov edx, r15d
cmovle rcx, rdi
xor r8d, r8d
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], 0x1388
mov rcx, rsi
mov dword [rsp + 0x28], 0x200
mov dword [rsp + 0x20], 0x200
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1400017e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CreateNamedPipe_failed_with__d._n
mov edx, eax
call fcn.1400fa41c
xor eax, eax
jmp 0x140001812
mov ecx, 0x448
call fcn.1400fa320
test rax, rax
je 0x14000180f
mov r9d, ebp
mov r8, rsi
mov rdx, r14
mov rcx, rax
mov qword [rsp + 0x20], rbx
call fcn.140001a00
mov rdi, rax
mov rax, rdi
mov r14, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x80]
mov r15, qword [rsp + 0x60]
add rsp, 0x68
pop rsi
pop rbp
ret

Function at 0x140001c80
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [rcx + 0x24], 0
mov edi, r8d
mov rsi, rdx
mov rbx, rcx
jne 0x140001cfd
cmp dword [rcx + 0x20], 0
je 0x140001ca9
call fcn.140001ec0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140001cbc
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rcx, qword [rbx + 8]
mov edx, 1
call fcn.140001840
mov qword [rbx + 0x10], rax
test rax, rax
je 0x140001ce5
mov rcx, rbx
mov qword [rax + 0x438], rbx
call fcn.140001e50
mov dword [rbx + 0x24], eax
cmp dword [rbx + 0x24], 0
jne 0x140001cfd
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rbx + 0x10]
mov r8d, edi
mov rdx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140001620
Function at 0x140001e50
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x10], 0
mov rdi, rcx
je 0x140001ea8
cmp dword [rcx + 0x20], 0
jne 0x140001ea8
mov r9, rcx
mov qword [rsp + 0x40], rbx
xor ebx, ebx
lea r8, [0x140001f70]
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
cmp rax, 0xffffffffffffffff
mov qword [rdi + 0x18], rax
mov eax, 1
setne bl
mov dword [rdi + 0x20], ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x140002940
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rcx + 0x20]
mov r11, qword [rcx + 0x28]
mov edi, r9d
mov rsi, r8
cmp rax, r11
je 0x140002974
mov r10, qword [rax]
cmp rdx, qword [r10 + 0x18]
je 0x140002986
add rax, 8
cmp rax, r11
jne 0x140002962
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, r10
test r10, r10
je 0x140002974
mov rdx, rbx
call fcn.1400039e0
test eax, eax
je 0x140002974
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140001620

Function at 0x1400029c0
Capabilities:
Create thread

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov edi, edx
mov rbp, rcx
mov eax, 0x3d
cmp edx, eax
cmovg edi, eax
lea ecx, [rax + 0x6b]
call fcn.1400fa320
mov qword [rsp + 0x70], rax
xor esi, esi
test rax, rax
je 0x140002a06
mov rcx, rax
call fcn.140002130
mov rbx, rax
jmp 0x140002a09
mov rbx, rsi
mov rcx, rbx
call fcn.1400022f0
test eax, eax
je 0x140002a7e
test edi, edi
jle 0x140002a3d
nop dword [rax]
mov edx, 1
mov rcx, rbp
call fcn.1400016a0
mov rdx, rax
mov rcx, rbx
call fcn.140002410
dec rdi
jne 0x140002a20
cmp dword [rbx + 8], 0
je 0x140002a7e
cmp dword [rbx + 0xc], 0
jne 0x140002a7e
mov dword [rsp + 0x68], esi
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
mov r9, rbx
lea r8, [0x140003140]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x78], rax
cmp rax, 0xffffffffffffffff
setne sil
mov dword [rbx + 0xc], esi
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret

Function at 0x140005ae0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
lea rdi, [0x14019f848]
mov ecx, dword [rdi]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x140005b18
inc ebx
add rdi, 4
cmp ebx, 7
jb 0x140005af3
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000b040
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, str.SynECR.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbx], rax
test rax, rax
jne 0x14000b071
mov dword [rbx + 8], eax
mov rcx, rbx
call fcn.14000b130
xor eax, eax
add rsp, 0x20
pop rbx
ret
lea rdx, str.SynCR_Init
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.SynCR_SetParam
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.SynCR_GetParam
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.SynCR_Recog
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.SynCR_CleanUp
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x30], rax
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x14000b0e3
call rax
mov dword [rbx + 8], eax
cmp qword [rbx + 0x10], 0
je 0x14000b061
cmp qword [rbx + 0x18], 0
je 0x14000b061
cmp qword [rbx + 0x20], 0
je 0x14000b061
cmp qword [rbx + 0x28], 0
je 0x14000b061
cmp qword [rbx + 0x30], 0
je 0x14000b061
cmp dword [rbx + 8], 0
je 0x14000b061
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x14000d220
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x10020
call fcn.1400fbbd0
sub rsp, rax
mov rsi, rdx
mov rdi, r8
lea rdx, [rsp + 0x20]
mov r8d, 0x7fff
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
cmp eax, 0x7fff
jbe 0x14000d25c
xor eax, eax
jmp 0x14000d275
test eax, eax
je 0x14000d258
lea r8, [rsp + 0x20]
mov r9, rdi
mov rdx, rdi
mov rcx, rsi
call fcn.1400fb7f0
mov eax, ebx
lea r11, [rsp + 0x10020]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x14000fea0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x14000fed3
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14000ff19
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x14000ff14
nop
cmp rbx, rcx
jae 0x14000ff19
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
dec edi
jne 0x14000ff00
cmp rbx, rcx
jb 0x14000ff1d
xor eax, eax
jmp 0x14000ff29
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140012630
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rdi, rcx
cmp qword [rcx + 0x78], 0
je 0x140012828
cmp byte [rcx + 0x81], 0
je 0x140012828
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
jne 0x14001267e
xor al, al
jmp 0x14001282a
mov edx, 0xf
mov qword [rbp - 0x10], rdx
mov byte [rbp - 0x28], 0
xor ecx, ecx
mov qword [rbp - 0x28], rcx
mov qword [rbp - 0x18], 8
lea rax, [rbp - 0x28]
cmp rdx, 0x10
cmovae rax, rcx
mov byte [rax + 8], cl
xor r14d, r14d
mov r9, qword [rbp - 0x10]
nop
lea rdx, [rbp - 0x28]
cmp r9, 0x10
cmovae rdx, qword [rbp - 0x28]
lea r8, [rbp - 0x28]
cmovae r8, qword [rbp - 0x28]
mov rcx, qword [rdi + 0x78]
mov r10, qword [rcx]
mov r9, qword [rbp - 0x18]
add r9, rdx
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x84]
call qword [r10 + 0x40]
test eax, eax
je 0x1400126f6
dec eax
jne 0x1400127eb
jmp 0x1400126fd
mov byte [rdi + 0x81], r14b
lea rax, [rbp - 0x28]
mov r10, qword [rbp - 0x28]
mov r9, qword [rbp - 0x10]
cmp r9, 0x10
cmovae rax, r10
mov rbx, qword [rbp + 0x20]
sub rbx, rax
je 0x140012747
lea rcx, [rbp - 0x28]
cmp r9, 0x10
cmovae rcx, r10
mov r9, qword [rdi + 0x90]
mov r8, rbx
mov edx, 1
call fcn.1400fca5c
mov r9, qword [rbp - 0x10]
cmp rbx, rax
jne 0x1400127f4
cmp byte [rdi + 0x81], r14b
je 0x140012812
test rbx, rbx
jne 0x1400126b0
or rax, 0xffffffffffffffff
mov r8, qword [rbp - 0x18]
sub rax, r8
cmp rax, 8
jbe 0x140012805
lea rbx, [r8 + 8]
cmp rbx, 0xfffffffffffffffe
ja 0x1400127f8
cmp r9, rbx
jae 0x140012793
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.14000ff40
mov r9, qword [rbp - 0x10]
jmp 0x1400127b1
test rbx, rbx
jne 0x1400127ba
mov qword [rbp - 0x18], r14
lea rax, [rbp - 0x28]
cmp r9, 0x10
cmovae rax, qword [rbp - 0x28]
mov byte [rax], r14b
jmp 0x1400126ab
test rbx, rbx
je 0x1400126b0
lea rcx, [rbp - 0x28]
cmp r9, 0x10
cmovae rcx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x18]
xor edx, edx
mov qword [rax + rcx], rdx
mov qword [rbp - 0x18], rbx
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae rax, qword [rbp - 0x28]
mov byte [rbx + rax], dl
jmp 0x1400126ab
mov r9, qword [rbp - 0x10]
sub eax, 2
je 0x140012812
xor bl, bl
jmp 0x140012814
lea rcx, str.string_too_long
call fcn.1400f93c8
int3
lea rcx, str.string_too_long
call fcn.1400f93c8
int3
mov bl, 1
cmp r9, 0x10
jb 0x140012823
mov rcx, qword [rbp - 0x28]
call fcn.1400fa318
movzx eax, bl
jmp 0x14001282a
mov al, 1
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400277c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rcx, qword [rcx + 0x788]
test rcx, rcx
jne fcn.140081020
ret
Function at 0x14002d320
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp dword [0x140296060], 0
mov edi, r8d
mov esi, edx
mov rbx, rcx
je 0x14002d35d
mov ecx, 0x30
call qword [sym.imp.USER32.dll_MessageBeep]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ecx, 0x18
call fcn.1400fa320
mov r9, rax
test rax, rax
je 0x14002d37e
xor eax, eax
mov qword [r9], rax
mov qword [r9 + 8], rax
mov qword [r9 + 0x10], rax
jmp 0x14002d381
xor r9d, r9d
mov rax, qword [0x140296058]
xor ecx, ecx
mov qword [r9], rcx
mov qword [r9 + 8], rax
mov dword [r9], esi
mov dword [r9 + 4], edi
mov qword [r9 + 0x10], rbx
cmp qword [rbx + 0x90], rcx
jne 0x14002d3d1
cmp dword [0x140296060], ecx
jne 0x14002d3d1
lea rax, [rsp + 0x58]
lea r8, [0x14002d3f0]
xor edx, edx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x90], rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x140032e50
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rcx
lea rax, vtable.CManagedPointingDeviceList.0
mov qword [rcx], rax
mov rcx, qword [rcx + 0x68]
test rcx, rcx
je 0x140032e81
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rdx, qword [rbx + 0x50]
test rdx, rdx
je 0x140032e92
mov rcx, rbx
call fcn.1400351a0
mov rdx, qword [rbx + 0x58]
test rdx, rdx
je 0x140032ea3
mov rcx, rbx
call fcn.1400351a0
mov rdx, qword [rbx + 0x60]
test rdx, rdx
je 0x140032eb4
mov rcx, rbx
call fcn.1400351a0
mov rdx, qword [rbx + 0x70]
test rdx, rdx
je 0x140032ec5
mov rcx, rbx
call fcn.1400351a0
mov rcx, rbx
call fcn.1400341a0
nop
lea rax, vtable.CSynList_class_CManagedPointingDevice_.0
mov qword [rbx], rax
mov rax, qword [rbx + 8]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140032f05
nop word [rax + rax]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.1400392e0
cmp qword [rsp + 0x40], 0
jne 0x140032ef0
lea rcx, [rbx + 0x20]
add rsp, 0x30
pop rbx
jmp qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
Function at 0x140037860
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x80
xor eax, eax
mov rsi, rdx
mov rdi, rcx
mov qword [rcx], rax
mov qword [rsp + 0x90], rax
or rbx, 0xffffffffffffffff
call fcn.14003a220
cmp word [rax], 0
je 0x1400378f0
xor eax, eax
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x40], 0x38
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
call fcn.14003a220
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_CreateActCtxW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400378f0
lea rdx, [rsp + 0x90]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov eax, dword [0x1402952cc]
test al, 1
jne 0x140037911
or eax, 1
mov dword [0x1402952cc], eax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1402952c8], eax
jmp 0x140037917
mov eax, dword [0x1402952c8]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x14003793d
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov ecx, dword [0x1402952c8]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.ole32.dll_CLSIDFromProgID]
xor edx, edx
lea r9, [0x140146740]
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 0x15]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov rdx, qword [rsp + 0x90]
test rdx, rdx
je 0x14003797d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
cmp rbx, 0xffffffffffffffff
je 0x14003798c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
lea r11, [rsp + 0x80]
mov rax, rdi
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret