joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000bc80
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rax, qword [0x140012c90]
mov rdi, qword [0x140012d10]
mov qword [rdi], rax
call fcn.14000b190
mov rbp, qword [0x140013050]
mov rbx, rax
cmp qword [rbp], 0
jne 0x14000bcb6
call fcn.14000b130
mov rsi, qword [rbp]
lea rdx, [0x1400114e3]
mov rcx, rsi
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x14000bd86
mov rcx, rsi
lea rdx, [0x1400114e5]
call sub.msvcrt.dll_fopen
mov rsi, rax
test rax, rax
jne 0x14000bcfd
mov rax, qword [0x140012cc0]
cmp byte [rax], 0
je 0x14000bd86
call fcn.14000abe0
xor edx, edx
mov r8d, 2
mov rcx, rax
call sub.msvcrt.dll_fseek
test eax, eax
jne 0x14000bcf8
mov rcx, rsi
call sub.msvcrt.dll_ftell
mov ebx, eax
cmp eax, 0xffffffff
je 0x14000bcf8
movsxd r12, eax
mov rcx, r12
call fcn.14000eab0
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov qword [rdi], rax
call sub.msvcrt.dll_fseek
test eax, eax
jne 0x14000bcf8
mov rcx, qword [rdi]
mov r9, rsi
mov r8, r12
mov edx, 1
call sub.msvcrt.dll_fread
cmp ebx, eax
jne 0x14000bcf8
mov rcx, rsi
call sub.msvcrt.dll_fclose
mov rax, qword [0x140012ce0]
cmp byte [rax], 0
jne 0x14000bd86
mov rax, qword [rdi]
mov r9, qword [rbp]
lea rcx, str.Read_KMS_data_file_version__u._u__s_n
movzx edx, word [rax + 6]
movzx r8d, word [rax + 4]
call fcn.14000c290
mov rax, qword [rdi]
movsxd rsi, ebx
xor edx, edx
cmp byte [rax + rsi - 1], 0
lea r8, [rax + rsi]
je 0x14000bd9e
call fcn.14000abb0
mov rcx, qword [rax + rdx + 0x20]
add rcx, rax
mov qword [rax + rdx + 0x20], rcx
cmp r8, rcx
jb 0x14000bd99
add rdx, 8
cmp rdx, 0x28
jne 0x14000bd9e
movzx r10d, byte [rax + 8]
lea rdx, [rax + 0x48]
xor ecx, ecx
cmp ecx, r10d
jae 0x14000bde1
mov r9, qword [rdx]
add rdx, 0x20
add r9, rax
mov qword [rdx - 0x20], r9
cmp r8, r9
jb 0x14000bd99
inc ecx
jmp 0x14000bdc5
xor edx, edx
mov rbx, qword [rdi]
cmp edx, dword [rbx + 0x18]
jae 0x14000be0a
mov eax, edx
shl rax, 5
add rax, qword [rbx + 0x38]
add rbx, qword [rax]
mov qword [rax], rbx
mov rax, qword [rdi]
add rax, rsi
cmp rax, rbx
jb 0x14000bd99
inc edx
jmp 0x14000bde3
mov eax, dword [rbx + 0x10]
mov r8d, 4
add eax, dword [rbx + 0xc]
mov rcx, rbx
add eax, dword [rbx + 0x14]
lea rdx, [0x14001150d]
mov edi, eax
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x14000bd99
cmp word [rbx + 6], 2
jne 0x14000bd99
mov eax, edi
xor edx, edx
lea r8, [rbx + rsi]
shl rax, 5
add rax, 0x68
cmp rax, rsi
jae 0x14000bd99
cmp edx, edi
jae 0x14000be9f
mov rax, rdx
shl rax, 5
add rax, qword [rbx + 0x20]
mov rcx, qword [rax + 0x10]
add rcx, rbx
mov qword [rax + 0x10], rcx
cmp rcx, r8
jae 0x14000bd99
mov ecx, dword [rbx + 0xc]
test ecx, ecx
je 0x14000be8e
movzx r9d, byte [rax + 0x18]
cmp ecx, r9d
jle 0x14000bd99
movzx eax, byte [rax + 0x19]
inc rdx
cmp eax, dword [rbx + 0x10]
jl 0x14000be56
jmp 0x14000bd99
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x14000c2c0
Capabilities:
Get socket status

Disassembly:
push r12
xor edx, edx
xor r8d, r8d
xor ecx, ecx
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x240
mov rdi, qword [0x1400130e0]
mov rsi, qword [0x140012dd0]
mov dword [rsp + 0x38], edx
lea rbp, [rsp + 0x38]
mov ebx, dword [rdi]
mov r11, qword [rsi]
cmp ebx, r8d
jle 0x14000c335
mov edx, dword [rsp + 0x38]
mov r10, qword [r11 + r8*8]
xor eax, eax
cmp eax, edx
jae 0x14000c30f
inc rax
cmp qword [rbp + rax*8], r10
jne 0x14000c2ff
jmp 0x14000c325
cmp edx, eax
jne 0x14000c325
cmp edx, 0x40
je 0x14000c325
mov eax, eax
inc edx
mov qword [rsp + rax*8 + 0x40], r10
mov dword [rsp + 0x38], edx
mov rax, qword [r11 + r8*8]
cmp rcx, rax
cmovb rcx, rax
inc r8
jmp 0x14000c2f0
xor eax, eax
lea rbp, [rsp + 0x38]
inc ecx
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rbp
xor ebx, ebx
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jns 0x14000c37c
or rax, 0xffffffffffffffff
jmp 0x14000c39a
mov rax, qword [rsi]
mov rdx, rbp
lea r12, [rbx*8]
mov rcx, qword [rax + rbx*8]
inc rbx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x14000c382
cmp dword [rdi], ebx
jg 0x14000c35e
jmp 0x14000c358
mov rax, qword [rsi]
mov rcx, qword [rax + r12]
cmp rcx, 0xffffffffffffffff
je 0x14000c358
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_accept]
add rsp, 0x240
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x14000dd60
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
push rdi
mov rdi, rcx
push rsi
mov rsi, rdx
push rbx
mov ebx, r8d
sub rsp, 0x28
mov rbp, qword [sym.imp.WS2_32.dll_recv]
test r9b, r9b
je 0x14000dd84
mov rbp, qword [sym.imp.WS2_32.dll_send]
xor r9d, r9d
mov r8d, ebx
mov rdx, rsi
mov rcx, rdi
call rbp
test eax, eax
jns 0x14000dda5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x14000ddb3
jmp 0x14000dd84
je 0x14000ddb3
movsxd rdx, eax
sub ebx, eax
add rsi, rdx
test ebx, ebx
jg 0x14000dd84
test ebx, ebx
sete al
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x14000ddd0
Capabilities:
Set socket configuration

Disassembly:
push r14
mov r8d, 0x1006
push r13
push r12
mov r12d, edx
mov edx, 0xffff
push rbp
push rdi
push rsi
push rbx
mov rbx, rcx
sub rsp, 0x110
mov rax, qword [0x140012db0]
mov rsi, qword [sym.imp.WS2_32.dll_setsockopt]
lea r9, [rsp + 0x48]
lea rbp, [rsp + 0x90]
imul eax, dword [rax], 0x3e8
mov qword [rsp + 0x38], r9
mov dword [rsp + 0x20], 4
mov dword [rsp + 0x48], eax
call rsi
mov r9, qword [rsp + 0x38]
mov r8d, 0x1005
mov rcx, rbx
mov edx, 0xffff
mov dword [rsp + 0x20], 4
call rsi
mov dword [rsp + 0x4c], pe_nt_image_headers64
mov rdx, rbp
mov rcx, rbx
lea r8, [rsp + 0x4c]
call qword [sym.imp.WS2_32.dll_getpeername]
mov r13, qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
jne 0x14000df10
lea rsi, [rsp + 0x50]
mov r9d, dword [rsp + 0x4c]
mov r8, rbp
mov edx, 0x40
mov rcx, rsi
call fcn.14000bac0
test al, al
je 0x14000df10
cmp word [rsp + 0x90], 0x17
mov rax, qword [0x140013030]
je 0x14000dea6
mov rax, qword [0x140013020]
mov rdi, qword [rax]
lea r14, str._s_connection__s:__s._n
mov r9, rsi
lea r8, str.accepted
mov rcx, r14
mov rdx, rdi
call fcn.14000c290
mov rax, qword [0x140012d90]
test byte [rax], 2
jne 0x14000dee1
mov r8, rsi
mov edx, r12d
mov rcx, rbx
call fcn.14000dad0
jmp 0x14000defb
xor edx, edx
mov rcx, rbp
call fcn.14000bb60
test al, al
jne 0x14000ded1
lea rcx, str.Client_with_public_IP_address_rejected_n
call fcn.14000c290
mov r9, rsi
lea r8, str.closed
mov rdx, rdi
mov rcx, r14
call fcn.14000c290
mov rcx, rbx
call r13
add rsp, 0x110
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x14000df30
Capabilities:
Create thread

Disassembly:
push rdi
mov rdi, rcx
mov ecx, 0x10
push rsi
mov esi, edx
push rbx
sub rsp, 0x30
call fcn.14000eab0
mov qword [rax], rdi
mov rbx, rax
mov dword [rax + 8], esi
mov rax, qword [0x140012ce0]
cmp byte [rax], 0
jne 0x14000df7d
mov rax, qword [0x140012d70]
cmp dword [rax], 0x7fffffff
je 0x14000df7d
mov rax, qword [0x140012d60]
or edx, 0xffffffff
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
xor edx, edx
xor ecx, ecx
mov r9, rbx
mov dword [rsp + 0x20], edx
lea r8, [0x14000dfe0]
xor edx, edx
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
test rax, rax
jne 0x14000dfc9
mov rcx, qword [rbx]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, rbx
call sub.msvcrt.dll_free
call fcn.14000cd90
add rsp, 0x30
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x30
xor eax, eax
pop rbx
pop rsi
pop rdi
ret
Function at 0x14000ec40
Capabilities:
Initialize winsock library

Disassembly:
push rsi
mov esi, ecx
push rbx
mov rbx, rdx
sub rsp, 0x28
call fcn.1400015a0
mov rax, qword [0x140013080]
mov rcx, qword [0x140012d80]
mov dword [rax], esi
mov rax, qword [0x140013090]
mov qword [rax], rbx
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
mov edx, eax
xor eax, eax
test edx, edx
jne 0x14000ec9a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x427
jne 0x14000ec9a
mov rax, qword [0x140012d00]
mov byte [rax], 0
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14000c3b0
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x140001540
Capabilities:
Connect pipe

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

Function at 0x1400015a0
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.14011fa60
cmp dword [rsi + 8], 1
jne 0x140001600
test rbp, rbp
je 0x140001600
cmp edi, ebx
ja 0x1400015e6
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 0x140001630
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
test rdx, rdx
jne 0x140001640
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 0x1400016b0
Capabilities:
Create pipe

Disassembly:
push rbp
push rsi
sub rsp, 0x68
mov ebp, edx
mov rsi, rcx
test rcx, rcx
jne 0x1400016ca
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 0x14000176d
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 0x14000172c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Failed_to_create_event:__d_n
mov edx, eax
call fcn.14011f99c
xor eax, eax
jmp 0x140001822
mov ecx, 0x28
call fcn.14011f8a0
mov rbx, rax
test rax, rax
je 0x140001755
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 0x140001758
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.140116270
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 0x1400017f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CreateNamedPipe_failed_with__d._n
mov edx, eax
call fcn.14011f99c
xor eax, eax
jmp 0x140001822
mov ecx, 0x448
call fcn.14011f8a0
test rax, rax
je 0x14000181f
mov r9d, ebp
mov r8, rsi
mov rdx, r14
mov rcx, rax
mov qword [rsp + 0x20], rbx
call fcn.140001a10
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 0x140001c90
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 0x140001d0d
cmp dword [rcx + 0x20], 0
je 0x140001cb9
call fcn.140001ed0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140001ccc
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rcx, qword [rbx + 8]
mov edx, 1
call fcn.140001850
mov qword [rbx + 0x10], rax
test rax, rax
je 0x140001cf5
mov rcx, rbx
mov qword [rax + 0x438], rbx
call fcn.140001e60
mov dword [rbx + 0x24], eax
cmp dword [rbx + 0x24], 0
jne 0x140001d0d
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.140001630
Function at 0x140001e60
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x10], 0
mov rdi, rcx
je 0x140001eb8
cmp dword [rcx + 0x20], 0
jne 0x140001eb8
mov r9, rcx
mov qword [rsp + 0x40], rbx
xor ebx, ebx
lea r8, [0x140001f80]
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 0x140002950
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 0x140002984
mov r10, qword [rax]
cmp rdx, qword [r10 + 0x18]
je 0x140002996
add rax, 8
cmp rax, r11
jne 0x140002972
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 0x140002984
mov rdx, rbx
call fcn.1400039f0
test eax, eax
je 0x140002984
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.140001630

Function at 0x1400029d0
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.14011f8a0
mov qword [rsp + 0x70], rax
xor esi, esi
test rax, rax
je 0x140002a16
mov rcx, rax
call fcn.140002140
mov rbx, rax
jmp 0x140002a19
mov rbx, rsi
mov rcx, rbx
call fcn.140002300
test eax, eax
je 0x140002a8e
test edi, edi
jle 0x140002a4d
nop dword [rax]
mov edx, 1
mov rcx, rbp
call fcn.1400016b0
mov rdx, rax
mov rcx, rbx
call fcn.140002420
dec rdi
jne 0x140002a30
cmp dword [rbx + 8], 0
je 0x140002a8e
cmp dword [rbx + 0xc], 0
jne 0x140002a8e
mov dword [rsp + 0x68], esi
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
mov r9, rbx
lea r8, [0x140003150]
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 0x140005da0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
lea rdi, [0x1401e6848]
mov ecx, dword [rdi]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x140005dd8
inc ebx
add rdi, 4
cmp ebx, 7
jb 0x140005db3
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 0x14000ca20
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 0x14000ca51
mov dword [rbx + 8], eax
mov rcx, rbx
call fcn.14000cb20
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 0x14000cac3
call rax
mov dword [rbx + 8], eax
cmp qword [rbx + 0x10], 0
je 0x14000ca41
cmp qword [rbx + 0x18], 0
je 0x14000ca41
cmp qword [rbx + 0x20], 0
je 0x14000ca41
cmp qword [rbx + 0x28], 0
je 0x14000ca41
cmp qword [rbx + 0x30], 0
je 0x14000ca41
cmp dword [rbx + 8], 0
je 0x14000ca41
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x14000ed50
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x10020
call fcn.140121190
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 0x14000ed8c
xor eax, eax
jmp 0x14000eda5
test eax, eax
je 0x14000ed88
lea r8, [rsp + 0x20]
mov r9, rdi
mov rdx, rdi
mov rcx, rsi
call fcn.140120d78
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 0x140011a10
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 0x140011a43
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 0x140011a89
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140011a84
nop
cmp rbx, rcx
jae 0x140011a89
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
dec edi
jne 0x140011a70
cmp rbx, rcx
jb 0x140011a8d
xor eax, eax
jmp 0x140011a99
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 0x140014360
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 0x140014558
cmp byte [rcx + 0x81], 0
je 0x140014558
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
jne 0x1400143ae
xor al, al
jmp 0x14001455a
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 0x140014426
dec eax
jne 0x14001451b
jmp 0x14001442d
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 0x140014477
lea rcx, [rbp - 0x28]
cmp r9, 0x10
cmovae rcx, r10
mov r9, qword [rdi + 0x90]
mov r8, rbx
mov edx, 1
call fcn.14012201c
mov r9, qword [rbp - 0x10]
cmp rbx, rax
jne 0x140014524
cmp byte [rdi + 0x81], r14b
je 0x140014542
test rbx, rbx
jne 0x1400143e0
or rax, 0xffffffffffffffff
mov r8, qword [rbp - 0x18]
sub rax, r8
cmp rax, 8
jbe 0x140014535
lea rbx, [r8 + 8]
cmp rbx, 0xfffffffffffffffe
ja 0x140014528
cmp r9, rbx
jae 0x1400144c3
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.140011ab0
mov r9, qword [rbp - 0x10]
jmp 0x1400144e1
test rbx, rbx
jne 0x1400144ea
mov qword [rbp - 0x18], r14
lea rax, [rbp - 0x28]
cmp r9, 0x10
cmovae rax, qword [rbp - 0x28]
mov byte [rax], r14b
jmp 0x1400143db
test rbx, rbx
je 0x1400143e0
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 0x1400143db
mov r9, qword [rbp - 0x10]
sub eax, 2
je 0x140014542
xor bl, bl
jmp 0x140014544
lea rcx, str.string_too_long
call fcn.14011e934
int3
lea rcx, str.string_too_long
call fcn.14011e934
int3
mov bl, 1
cmp r9, 0x10
jb 0x140014553
mov rcx, qword [rbp - 0x28]
call fcn.14011f898
movzx eax, bl
jmp 0x14001455a
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 0x140029d50
Capabilities:
Resolve function by parsing pe exports

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp dword [0x1402dd278], 0
mov edi, r8d
mov esi, edx
mov rbx, rcx
je 0x14003043d
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.14011f8a0
mov r9, rax
test rax, rax
je 0x14003045e
xor eax, eax
mov qword [r9], rax
mov qword [r9 + 8], rax
mov qword [r9 + 0x10], rax
jmp 0x140030461
xor r9d, r9d
mov rax, qword [0x1402dd270]
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 0x1400304d5
cmp dword [0x1402dd278], ecx
jne 0x1400304d5
lea rax, [rsp + 0x58]
lea r8, [0x1400304f0]
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
test byte [0x1402d741c], 8
je 0x1400304d5
lea r8, str.LaunchNewProfileDlgThread_handle_is__x_n
lea rcx, str.CManagedPointingDevice::LaunchNewProfileDlgThread
mov r9, rax
mov edx, 4
call fcn.14011a490
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x140035040
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor r9d, r9d
mov rsi, r8
mov rdi, rdx
mov dword [rdx], r9d
mov dword [r8], r9d
mov eax, dword [rcx + 0xc30]
mov r10, rcx
test eax, eax
jle 0x14003514f
cmp eax, 3
jge 0x1400350b4
cmp dword [rcx + 0xc34], 1
jne 0x1400350b4
mov eax, dword [rcx + 0x888]
sub eax, dword [rcx + 0x880]
cdq
xor eax, edx
sub eax, edx
cdq
sub eax, edx
sar eax, 1
mov dword [rdi], eax
mov eax, dword [rcx + 0x88c]
sub eax, dword [rcx + 0x884]
cdq
xor eax, edx
sub eax, edx
cdq
sub eax, edx
sar eax, 1
mov dword [r8], eax
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 0xc34], 1
mov qword [rsp + 0x40], rbx
mov r11d, r9d
lea ebx, [rax - 2]
je 0x1400350cb
lea ebx, [rax - 1]
movsxd r8, ebx
test ebx, ebx
jle 0x140035106
add rcx, 0x880
lea rcx, [rcx + r8*8]
nop dword [rax]
mov eax, dword [rcx]
dec r8
lea rcx, [rcx - 8]
sub eax, dword [rcx]
cdq
xor eax, edx
sub eax, edx
add r9d, eax
mov eax, dword [rcx + 0xc]
sub eax, dword [rcx + 4]
cdq
xor eax, edx
sub eax, edx
add r11d, eax
test r8, r8
jg 0x1400350e0
xor edx, edx
mov eax, r9d
div ebx
xor edx, edx
mov dword [rdi], eax
mov eax, r11d
div ebx
mov rbx, qword [rsp + 0x40]
mov dword [rsi], eax
test byte [0x1402d741c], 4
je 0x14003514f
mov r9d, dword [r10 + 0xc30]
mov dword [rsp + 0x28], eax
mov eax, dword [rdi]
lea r8, str.m_iSecondaryFingerPosIndex_d__avrDX_d__avgDY_d_n
lea rcx, str.CManagedPointingDevice::GetAverageDistanceInSecondaryFingerPosBuffer
mov edx, 3
mov dword [rsp + 0x20], eax
call fcn.14011a490
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret