joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c58e0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140277500], 0
jne 0x1400c5725
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140277500], 1
mov dword [0x140277504], eax
mov rcx, qword [0x140275ee0]
xor edx, edx
mov r8d, 0x90
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x140277504]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, eax
mov ecx, ebx
add rsp, 0x20
pop rbx
jmp 0x1400c58e0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [0x140277500], 0
mov ebx, ecx
jne 0x1400c5904
call fcn.1400c5700
mov ecx, dword [0x140277504]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x1400c592c
call fcn.1400c5700
mov ecx, dword [0x140277504]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
lea rdx, [rdi + 8]
mov r8d, send
nop word [rax + rax]
imul eax, ebx, 0x53a9b4fb
mov ecx, 1
mov ebx, 1
sub ecx, eax
lea rdx, [rdx + 4]
mov dword [rdx + 0x40], ecx
imul eax, ecx, 0x53a9b4fb
sub ebx, eax
mov dword [rdx - 4], ebx
dec r8
jne 0x1400c5940
lea esi, [r8 + 0x1f]
mov dword [rdi], r8d
mov dword [rdi + 4], 0xa
lea ebp, [rsi - 0xf]
nop word [rax + rax]
movsxd r11, dword [rdi]
movsxd rbx, dword [rdi + 4]
mov r10d, dword [rdi + rbx*4 + 8]
mov r9d, dword [rdi + r11*4 + 8]
mov eax, dword [rdi + r11*4 + 0x4c]
ror r9d, 5
lea rcx, [rdi + r11*4]
lea r8, [rdi + r11*4]
ror eax, 0xd
add r9d, r10d
add eax, dword [rdi + rbx*4 + 0x4c]
dec r11d
mov dword [r8 + 0x4c], r9d
cmovs r11d, ebp
dec ebx
mov dword [rcx + 8], eax
cmovs ebx, ebp
mov dword [rdi], r11d
mov dword [rdi + 4], ebx
dec rsi
jne 0x1400c5980
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400c59e0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140277500], 0
mov rbx, rcx
jne 0x1400c59f7
call fcn.1400c5700
mov ecx, dword [0x140277504]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, rax
test rax, rax
jne 0x1400c5a1f
call fcn.1400c5700
mov ecx, dword [0x140277504]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r9, rax
movsxd r8, dword [r9]
movsxd rdx, dword [r9 + 4]
mov eax, reloc.WS2_32.dll_recv
mov r10d, dword [r9 + r8*4 + 0x4c]
mov r11d, dword [r9 + r8*4 + 8]
ror r10d, 0xd
add r10d, dword [r9 + rdx*4 + 0x4c]
ror r11d, 5
add r11d, dword [r9 + rdx*4 + 8]
mov dword [r9 + r8*4 + 8], r10d
mov dword [r9 + r8*4 + 0x4c], r11d
dec r8d
mov ecx, r11d
cmovs r8d, eax
dec edx
cmovs edx, eax
mov dword [r9], r8d
mov dword [r9 + 4], edx
inc rbx
je 0x1400c5a98
mov edx, r10d
mov r8, rbx
mov eax, ebx
shr r8, 0x20
imul rax, rdx
shr rax, 0x20
imul rcx, r8
imul rdx, r8
shr rcx, 0x20
add rax, rcx
add rax, rdx
add rsp, 0x20
pop rbx
ret
mov eax, r10d
shl rax, 0x20
and rax, rcx
add rsp, 0x20
pop rbx
ret
Function at 0x1400c8718
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov r8, qword [rcx + 0x18]
mov rbx, rcx
test r8, r8
jle 0x1400c8737
mov rdx, qword [rcx + 0x10]
mov rcx, qword [rcx + 8]
call sub.msvcrt.dll_memmove
mov rdx, qword [rbx + 8]
mov rcx, qword [rbx]
and qword [rsp + 0x20], 0
add rdx, qword [rbx + 0x18]
mov r8d, 0x1000
lea r9, [rsp + 0x40]
sub r8d, dword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rcx, dword [rsp + 0x40]
test ecx, ecx
jne 0x1400c876d
mov dword [rbx + 0x20], 1
mov rax, qword [rbx + 8]
add qword [rbx + 0x18], rcx
mov qword [rbx + 0x10], rax
add rsp, 0x30
pop rbx
ret

Function at 0x1400c8918
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, dword [rcx + 0x10]
mov rdx, qword [rcx + 8]
mov rsi, rcx
mov rcx, qword [rcx]
lea r9, [rax + 8]
xor edi, edi
mov r8d, ebx
mov qword [rax - 0x18], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsp + 0x40], ebx
mov rbx, qword [rsp + 0x48]
mov dword [rsi + 0x10], edi
mov rsi, qword [rsp + 0x50]
sete dil
mov eax, edi
add rsp, 0x30
pop rdi
ret

Function at 0x1400ca644
Capabilities:
Reference http user-agent string

Disassembly:
lea r8, str.Mozilla_5.0_Gecko_41.0_Firefox_41.0
xor edx, edx
jmp 0x1400ca660

Function at 0x1400ca654
Capabilities:
Reference http user-agent string

Disassembly:
lea r8, str.Mozilla_5.0_Gecko_41.0_Firefox_41.0
jmp 0x1400ca660
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov rbp, rcx
mov rcx, qword [0x14027af80]
mov r12, r8
mov r14d, edx
xor ebx, ebx
call fcn.1400f8c70
mov r15, rax
test rbp, rbp
je 0x1400ca744
mov rcx, qword [0x140275ee0]
lea edx, [rbx + 8]
mov r8d, 0x98
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea esi, [rbx + 1]
mov rcx, rbp
or dword [rax + 4], 0xffffffff
mov dword [rax], esi
mov rdi, rax
call sub.msvcrt.dll__wcsdup
mov rcx, r12
mov qword [rdi + 8], rax
call sub.msvcrt.dll__wcsdup
mov dword [rdi + 0x40], r14d
mov qword [rdi + 0x60], rax
mov eax, dword [r15]
mov dword [rdi + 0x44], eax
mov eax, dword [r15 + 4]
mov dword [rdi + 0x90], esi
mov dword [rdi + 0x48], eax
test sil, r14b
je 0x1400ca731
lea rax, [rsp + 0x60]
lea r8, [0x1400ca934]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov edx, 0x10000
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1400ca724
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400ca728
mov esi, dword [rsp + 0x60]
test esi, esi
je 0x1400ca73c
mov rbx, rdi
jmp 0x1400ca744
mov rcx, rdi
call fcn.1400ca760
mov rbx, rax
mov rcx, rdi
call fcn.1400caa1c
mov rbp, qword [rsp + 0x70]
mov rax, rbx
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400ca660
Capabilities:
Create thread

Disassembly:
lea r8, str.Mozilla_5.0_Gecko_41.0_Firefox_41.0
jmp 0x1400ca660
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov rbp, rcx
mov rcx, qword [0x14027af80]
mov r12, r8
mov r14d, edx
xor ebx, ebx
call fcn.1400f8c70
mov r15, rax
test rbp, rbp
je 0x1400ca744
mov rcx, qword [0x140275ee0]
lea edx, [rbx + 8]
mov r8d, 0x98
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea esi, [rbx + 1]
mov rcx, rbp
or dword [rax + 4], 0xffffffff
mov dword [rax], esi
mov rdi, rax
call sub.msvcrt.dll__wcsdup
mov rcx, r12
mov qword [rdi + 8], rax
call sub.msvcrt.dll__wcsdup
mov dword [rdi + 0x40], r14d
mov qword [rdi + 0x60], rax
mov eax, dword [r15]
mov dword [rdi + 0x44], eax
mov eax, dword [r15 + 4]
mov dword [rdi + 0x90], esi
mov dword [rdi + 0x48], eax
test sil, r14b
je 0x1400ca731
lea rax, [rsp + 0x60]
lea r8, [0x1400ca934]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov edx, 0x10000
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1400ca724
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400ca728
mov esi, dword [rsp + 0x60]
test esi, esi
je 0x1400ca73c
mov rbx, rdi
jmp 0x1400ca744
mov rcx, rdi
call fcn.1400ca760
mov rbx, rax
mov rcx, rdi
call fcn.1400caa1c
mov rbp, qword [rsp + 0x70]
mov rax, rbx
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x1400cb7dc
Capabilities:
Reference http user-agent string

Disassembly:
lea r9, str.Mozilla_5.0_Gecko_41.0_Firefox_41.0
xor r8d, r8d
jmp 0x1400cb7f8
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov rbp, rcx
mov rcx, qword [0x14027af80]
mov r12, r9
mov r14d, r8d
mov rsi, rdx
xor ebx, ebx
call fcn.1400f8c70
mov r15, rax
test rbp, rbp
je 0x1400cb8e2
test rsi, rsi
je 0x1400cb8e2
mov rcx, qword [0x140275ee0]
lea edx, [rbx + 8]
mov r8d, 0x98
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, rbp
or dword [rax + 4], 0xffffffff
mov dword [rax], ebx
mov rdi, rax
call sub.msvcrt.dll__wcsdup
mov rcx, rsi
mov qword [rdi + 8], rax
call sub.msvcrt.dll__wcsdup
mov rcx, r12
mov qword [rdi + 0x10], rax
call sub.msvcrt.dll__wcsdup
mov qword [rdi + 0x60], rax
mov eax, dword [r15]
mov dword [rdi + 0x44], eax
mov eax, dword [r15 + 4]
mov dword [rdi + 0x40], r14d
mov dword [rdi + 0x48], eax
test r14b, 1
je 0x1400cb8cf
lea rax, [rsp + 0x60]
lea r8, [0x1400cbae8]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov edx, 0x10000
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1400cb8da
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, rdi
jmp 0x1400cb8e2
mov rcx, rdi
call fcn.1400cb8fc
movsxd rbx, eax
mov rcx, rdi
call fcn.1400caa1c
mov rbp, qword [rsp + 0x70]
mov rax, rbx
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x1400cb7ec
Capabilities:
Reference http user-agent string

Disassembly:
lea r9, str.Mozilla_5.0_Gecko_41.0_Firefox_41.0
jmp 0x1400cb7f8
Function at 0x1400cb7f8
Capabilities:
Create thread

Disassembly:
lea r9, str.Mozilla_5.0_Gecko_41.0_Firefox_41.0
xor r8d, r8d
jmp 0x1400cb7f8
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov rbp, rcx
mov rcx, qword [0x14027af80]
mov r12, r9
mov r14d, r8d
mov rsi, rdx
xor ebx, ebx
call fcn.1400f8c70
mov r15, rax
test rbp, rbp
je 0x1400cb8e2
test rsi, rsi
je 0x1400cb8e2
mov rcx, qword [0x140275ee0]
lea edx, [rbx + 8]
mov r8d, 0x98
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, rbp
or dword [rax + 4], 0xffffffff
mov dword [rax], ebx
mov rdi, rax
call sub.msvcrt.dll__wcsdup
mov rcx, rsi
mov qword [rdi + 8], rax
call sub.msvcrt.dll__wcsdup
mov rcx, r12
mov qword [rdi + 0x10], rax
call sub.msvcrt.dll__wcsdup
mov qword [rdi + 0x60], rax
mov eax, dword [r15]
mov dword [rdi + 0x44], eax
mov eax, dword [r15 + 4]
mov dword [rdi + 0x40], r14d
mov dword [rdi + 0x48], eax
test r14b, 1
je 0x1400cb8cf
lea rax, [rsp + 0x60]
lea r8, [0x1400cbae8]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov edx, 0x10000
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1400cb8da
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, rdi
jmp 0x1400cb8e2
mov rcx, rdi
call fcn.1400cb8fc
movsxd rbx, eax
mov rcx, rdi
call fcn.1400caa1c
mov rbp, qword [rsp + 0x70]
mov rax, rbx
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400cb8fc
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r15, qword [rcx + 0x10]
mov rdi, rcx
mov rcx, qword [rcx + 8]
xor ebx, ebx
mov esi, ebx
call fcn.1401ce060
mov rcx, qword [rdi + 0x60]
mov r12, rax
call fcn.1401ce060
mov r13, rax
call fcn.140192660
mov rbp, rax
test rax, rax
je 0x1400cbaaa
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 1]
xor r9d, r9d
mov edx, 0xc0000000
mov rcx, r15
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x1400cba90
test byte [rdi + 0x40], 2
mov qword [rdi + 0x18], rax
jne 0x1400cb99c
lea edx, [rbx + 0x34]
lea r8d, [rbx + 1]
mov rcx, rbp
call fcn.1401951d0
mov r8, qword [0x140277538]
test r8, r8
je 0x1400cb9b5
mov edx, 0x2714
mov rcx, rbp
call fcn.1401951d0
mov r8, qword [0x140277540]
test r8, r8
je 0x1400cb9eb
cmp qword [0x140277548], rbx
je 0x1400cb9eb
mov edx, 0x27bf
mov rcx, rbp
call fcn.1401951d0
mov r8, qword [0x140277548]
mov edx, 0x27c0
mov rcx, rbp
call fcn.1401951d0
mov r8, r12
mov edx, 0x2712
mov rcx, rbp
call fcn.1401951d0
mov r8, r13
mov edx, 0x2722
mov rcx, rbp
call fcn.1401951d0
lea r8, [0x1400cbaf8]
mov edx, 0x4e2b
mov rcx, rbp
call fcn.1401951d0
mov r8, rdi
mov edx, 0x2711
mov rcx, rbp
call fcn.1401951d0
mov r8d, dword [rdi + 0x44]
mov edx, 0x9c
mov rcx, rbp
call fcn.1401951d0
mov r8d, dword [rdi + 0x48]
mov edx, 0x9b
mov rcx, rbp
call fcn.1401951d0
mov edx, 0x63
mov rcx, rbp
lea r8d, [rdx - 0x62]
call fcn.1401951d0
mov rcx, rbp
call fcn.140192890
test eax, eax
jne 0x1400cba7a
cmp dword [rdi + 4], 0xfffffffb
mov eax, 1
cmovne esi, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x1400cba90
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, rbp
call fcn.1401923f0
mov eax, 1
cmp esi, eax
jne 0x1400cbaaa
mov dword [rdi + 4], 0xfffffffe
jmp 0x1400cbab7
cmp dword [rdi + 4], 0xfffffffb
setne bl
add ebx, 0xfffffffc
mov dword [rdi + 4], ebx
mov rcx, r12
call fcn.1401ce050
mov rcx, r13
call fcn.1401ce050
lea r11, [rsp + 0x40]
mov eax, esi
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400cc590
Capabilities:
Create thread
Reference http user-agent string

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r13d, ecx
mov rcx, qword [0x14027af80]
mov rsi, r9
mov r14, r8
mov r15, rdx
xor ebx, ebx
call fcn.1400f8c70
mov r12, rax
test r15, r15
je 0x1400cc6d2
mov rcx, qword [0x140275ee0]
lea edx, [rbx + 8]
mov r8d, 0x98
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea ebp, [rbx + 1]
mov rcx, r15
or dword [rax + 4], 0xffffffff
mov dword [rax], ebp
mov rdi, rax
call sub.msvcrt.dll__wcsdup
lea rcx, str.Mozilla_5.0_Gecko_41.0_Firefox_41.0
mov qword [rdi + 8], rax
call sub.msvcrt.dll__wcsdup
mov ecx, dword [rsp + 0x80]
mov qword [rdi + 0x60], rax
mov dword [rdi + 0x40], ecx
mov eax, dword [r12]
mov dword [rdi + 0x44], eax
mov eax, dword [r12 + 4]
mov dword [rdi + 0x80], r13d
mov dword [rdi + 0x48], eax
mov rax, qword [rsp + 0x88]
mov qword [rdi + 0x88], rsi
mov qword [rdi + 0x78], rax
test bpl, cl
je 0x1400cc6c3
test rsi, rsi
je 0x1400cc67c
mov rcx, qword [0x140275ee0]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rdi + 0x70], rax
test rax, rax
je 0x1400cc676
mov r8, rsi
mov rdx, r14
mov rcx, rax
call sub.msvcrt.dll_memcpy
cmp qword [rdi + 0x70], rbx
je 0x1400cc6b9
lea rax, [rsp + 0x68]
lea r8, [0x1400cc6f4]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov edx, 0x10000
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1400cc6b1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400cc6b5
mov ebp, dword [rsp + 0x68]
test ebp, ebp
jne 0x1400cc6cf
mov rcx, rdi
call fcn.1400caa1c
jmp 0x1400cc6d2
mov rcx, rdi
mov qword [rdi + 0x70], r14
call fcn.1400cc0b8
mov rbx, rdi
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400cc908
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1c0
mov ebx, reloc.WS2_32.dll_recv
lea r8, [0x1400cc81c]
lea ecx, [rbx + 0x28]
mov edx, ebx
call fcn.1400f95a8
xor r8d, r8d
xor edx, edx
mov ecx, ebx
mov qword [0x140277778], rax
call fcn.1400f8d08
xor ebx, ebx
cmp word [0x140277770], bx
mov qword [0x14027afc0], rax
jne 0x1400cca2b
lea rdx, [rsp + 0x20]
mov ecx, 0x101
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edi, [rbx + 1]
mov word [0x140277770], di
test eax, eax
je 0x1400cc979
mov word [0x140277770], bx
lea rcx, str.ws2_32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x1402777a0], rax
test rax, rax
je 0x1400cca2b
lea rdx, [0x1401fb818]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1402777a0]
lea rdx, [0x1401fb828]
mov qword [0x140277780], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1402777a0]
lea rdx, str.getnameinfo
mov qword [0x140277788], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1402777a0]
lea rdx, str.WSAStringToAddressA
mov qword [0x140277790], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x140277780], rbx
mov qword [0x140277798], rax
je 0x1400cca2b
cmp qword [0x140277788], rbx
je 0x1400cca2b
cmp qword [0x140277790], rbx
je 0x1400cca2b
mov ecx, dword [0x140277774]
test rax, rax
cmovne ecx, edi
mov dword [0x140277774], ecx
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1c0
pop rdi
ret

Function at 0x1400cce88
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdx, rcx
mov rcx, qword [0x14027b080]
call fcn.1400f9480
xor ebp, ebp
mov rsi, rax
test rax, rax
je 0x1400ccf08
mov rcx, qword [rax + 8]
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x1400ccecd
mov edx, ebx
mov rcx, rsi
call rax
jmp 0x1400ccf08
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edx, ebx
mov ecx, eax
mov edi, eax
call fcn.1400f9f10
lea r8d, [rdi + 1]
mov word [rax], bp
mov rcx, qword [rsi]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, rbx
call sub.msvcrt.dll_wcslen
sub edi, eax
mov ecx, edi
call fcn.1400fa090
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400d53dc
Capabilities:
Get graphical window text

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov rcx, qword [rcx]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x147
call qword [sym.imp.USER32.dll_SendMessageW]
or rbp, 0xffffffffffffffff
mov rsi, rax
cmp rax, rbp
je 0x1400d5490
mov rcx, qword [r14]
lea edx, [rbp - 0xf]
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
test al, 1
jne 0x1400d5490
mov rcx, qword [r14]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov rcx, qword [0x140275ee0]
xor edx, edx
movsxd rbx, eax
lea r8, [rbx*2 + 2]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea r8d, [rbx + 1]
mov rdi, rax
xor eax, eax
mov word [rdi], ax
mov rcx, qword [r14]
mov rdx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [r14]
mov r9, rdi
mov r8, rbp
mov edx, 0x158
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [0x140275ee0]
mov r8, rdi
cmp rax, rbp
cmove rsi, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
mov rax, rsi
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x1400d753c
Capabilities:
Hide graphical window

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rbp, rcx
mov rcx, qword [0x14027b020]
call fcn.1400f8c70
cmp qword [0x140278ed0], 0
mov r14, rax
jne 0x1400d760d
mov ebx, 0x140
lea rcx, [0x140278ee0]
xor edx, edx
mov r8d, ebx
call sub.msvcrt.dll_memset
lea rax, [0x1400d6fb0]
mov edx, 0x7f89
mov qword [0x140278ee8], rax
lea rax, [0x1400db1d8]
xor ecx, ecx
mov qword [0x140278fc8], rax
lea rax, [0x1400db1bc]
mov dword [0x140278ee0], 0xa
mov qword [0x140278fd0], rax
lea rax, [0x1400d6fcc]
mov dword [0x140278ee4], ebx
mov qword [0x140278ef0], rax
lea rax, [0x1400d6ff4]
mov qword [0x140278ff8], rax
call qword [sym.imp.USER32.dll_LoadCursorW]
mov qword [0x140278ed0], rax
test rax, rax
jne 0x1400d760d
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov qword [0x140278ed0], rax
lea r9, [rsp + 0xb0]
lea r8, [rsp + 0xa8]
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x98]
call fcn.1400e1cb4
and qword [rsp + 0x58], 0
mov rax, qword [0x140275ee8]
mov r8, qword [rsp + 0xb8]
mov qword [rsp + 0x50], rax
mov rax, qword [r14]
or rbx, 0xffffffffffffffff
lea rdx, str.STATIC
mov r9d, 0x40000000
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0xb0]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0xa8]
xor ecx, ecx
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rsi, rax
test rax, rax
je 0x1400d7747
mov rcx, qword [0x14027b080]
mov rdx, rbp
call fcn.1400f94e0
lea ecx, [rbx + 9]
mov qword [rax + 0x20], rbx
mov rdi, rax
call qword [sym.imp.USER32.dll_GetSysColor]
mov ecx, eax
lea r8d, [rbx + 0x21]
xor edx, edx
mov qword [rdi + 0x28], rcx
mov rcx, qword [0x140275ee0]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [r14 + 0x10]
lea r9, [0x140278ee0]
mov qword [rax], rcx
mov ecx, dword [rsp + 0xc8]
mov byte [rax + 0x1c], 0
mov dword [rax + 8], ecx
mov ecx, dword [rsp + 0xc0]
mov r8, rsi
mov dword [rax + 0x18], ecx
mov rdx, rdi
mov rcx, rbp
mov rbx, rax
mov qword [rdi + 0x38], rax
call fcn.1400db0e4
mov rcx, qword [rdi]
lea r8, [0x1400d7124]
mov edx, 0xfffffffc
mov rsi, rax
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov edx, 1
mov qword [rbx + 0x10], rax
mov rcx, qword [rdi]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rax, rsi
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400d7d50
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
lea edi, [rbx + 1]
mov ecx, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov esi, 0x8000
lea ecx, [rdi + 1]
test si, ax
cmovne ebx, edi
call qword [sym.imp.USER32.dll_GetKeyState]
test si, ax
je 0x1400d7d88
or ebx, 2
mov ecx, 4
call qword [sym.imp.USER32.dll_GetKeyState]
test si, ax
je 0x1400d7d9b
or ebx, 4
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret