joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401c2a80
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x2d0
mov rax, qword [0x14036f2b0]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
mov rbx, rcx
mov qword [rsp + 0x40], rcx
xor edx, edx
mov r8d, 0x20a
lea rcx, [rsp + 0xb0]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0xb0]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x104
ja 0x1401c2b2e
lea rcx, [rsp + 0xb0]
mov rax, 0xffffffffffffffff
nop
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x1401c2af0
cmp word [rsp + rax*2 + 0xae], 0x5c
jne 0x1401c2b24
lea rax, [rax*2 - 2]
cmp rax, 0x20a
jae 0x1401c2c73
xor ecx, ecx
mov word [rsp + rax + 0xb0], cx
lea rdx, [rsp + 0xb0]
jmp 0x1401c2b58
lea rdx, str.____Failed_to_get_temp_path
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.1401c3ce0
mov rcx, rax
lea rdx, [0x1401c3ef0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
lea rdx, [0x14034c758]
lea rcx, [rsp + 0x88]
call fcn.14000e0a0
nop
lea rcx, [rsp + 0x88]
call fcn.14005a7a0
test rax, rax
jne 0x1401c2b8c
lea rdx, [0x14034c758]
mov rcx, rbx
call fcn.14000e0a0
jmp 0x1401c2c35
lea rcx, [rsp + 0x68]
call fcn.1401c2940
mov rbp, rax
lea rcx, [rsp + 0x88]
call fcn.14005a7a0
mov rdi, rax
lea r14, [0x14034e1a0]
mov rcx, r14
call fcn.14000fa60
mov rcx, rax
call fcn.140005e70
mov rsi, rax
lea rcx, [rsp + 0x88]
call fcn.14000de50
sub rax, rdi
cmp rax, rsi
jb 0x1401c2c6d
lea rcx, [rsp + 0x88]
call fcn.1400721e0
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rdi
mov r9, rax
lea r8, [rsp + 0x88]
lea rcx, [rsp + 0x48]
call fcn.1401c5250
nop
mov r9, rbp
lea r8, [rsp + 0x48]
mov rcx, rbx
call fcn.1401c5040
nop
lea rcx, [rsp + 0x48]
call fcn.14000df90
nop
lea rcx, [rsp + 0x68]
call fcn.14000df90
nop
lea rcx, [rsp + 0x88]
call fcn.14000df90
mov rax, rbx
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.140253d60
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.140005ec0
nop
call fcn.140254534
int3
Function at 0x1401c3860
Capabilities:
Parse pe header

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x1f0
mov rax, qword [0x14036f2b0]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov qword [rsp + 0x20], r8
mov rbp, rdx
mov rbx, rcx
test rdx, rdx
je 0x1401c3b19
xorps xmm0, xmm0
lea rcx, [rsp + 0xb0]
xor edx, edx
mov r8d, 0x108
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
call sub.VCRUNTIME140.dll_memset
mov r9d, 0x40
lea rdx, [rsp + 0x70]
mov r8, rbp
mov rcx, rbx
call fcn.1401c32b0
test al, al
je 0x1401c3b19
mov eax, 0x5a4d
cmp word [rsp + 0x70], ax
jne 0x1401c3b19
movsxd r8, dword [rsp + 0xac]
lea rdx, [rsp + 0xb0]
add r8, rbp
mov r9d, 0x108
mov rcx, rbx
call fcn.1401c32b0
test al, al
je 0x1401c3b19
cmp dword [rsp + 0xb0], 0x4550
jne 0x1401c3b19
mov esi, dword [rsp + 0x138]
test esi, esi
je 0x1401c3b19
mov eax, dword [rsp + 0x13c]
test eax, eax
je 0x1401c3b19
mov qword [rsp + 0x228], rdi
mov r9d, 4
mov qword [rsp + 0x1d8], r14
mov r8d, 0x3000
mov edx, eax
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r9d, r14d
mov qword [rsp + 0x38], rsi
mov rdi, rax
mov rcx, rbx
lea rax, [rsi + rbp]
mov rdx, rdi
mov r8, rax
mov qword [rsp + 0x30], rax
call fcn.1401c32b0
test al, al
jne 0x1401c39b8
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x1401c3a74
mov eax, dword [rdi + 0x1c]
mov r14, rdi
sub r14, rsi
mov qword [rsp + 0x1e8], r12
mov r12d, dword [rdi + 0x20]
add rax, r14
mov qword [rsp + 0x1e0], r13
add r12, r14
mov r13d, dword [rdi + 0x24]
xor esi, esi
add r13, r14
mov qword [rsp + 0x1d0], r15
mov qword [rsp + 0x28], rax
cmp dword [rdi + 0x18], esi
jbe 0x1401c3a49
nop word [rax + rax]
mov edx, dword [r12 + rsi*4]
lea rcx, [rsp + 0x48]
add rdx, r14
call fcn.14000e370
mov rcx, qword [rsp + 0x20]
call fcn.1400561c0
lea rcx, [rsp + 0x48]
mov rbx, rax
call fcn.1400561c0
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x1401c3a9f
lea rcx, [rsp + 0x48]
call fcn.14000e260
inc esi
cmp esi, dword [rdi + 0x18]
jb 0x1401c3a00
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov r12, qword [rsp + 0x1e8]
mov r13, qword [rsp + 0x1e0]
mov r15, qword [rsp + 0x1d0]
mov rdi, qword [rsp + 0x228]
mov r14, qword [rsp + 0x1d8]
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140253d60
add rsp, 0x1f0
pop rsi
pop rbp
pop rbx
ret
movzx eax, word [r13 + rsi*2]
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx + rax*4]
cmp ecx, 0x1000
jbe 0x1401c3ae3
lea rbx, [rcx + rbp]
cmp rbx, qword [rsp + 0x30]
jb 0x1401c3af6
mov rax, qword [rsp + 0x38]
add rax, qword [rsp + 0x40]
add rax, rbp
cmp rbx, rax
ja 0x1401c3af6
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor ebx, ebx
lea rcx, [rsp + 0x48]
call fcn.14000e260
mov eax, ebx
jmp 0x1401c3a5c
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea rcx, [rsp + 0x48]
call fcn.14000e260
mov rax, rbx
jmp 0x1401c3a5c
xor eax, eax
jmp 0x1401c3a84
Function at 0x1401c66e0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x50
mov rax, qword [0x14036f2b0]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor esi, esi
lea r9, [rsp + 0x20]
mov r14, rcx
mov dword [rsp + 0x20], esi
xor r8d, r8d
xor edx, edx
mov ebx, esi
lea ecx, [rsi + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x1401c676e
nop dword [rax]
test rbx, rbx
je 0x1401c6736
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, listen
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x1401c6720
test eax, eax
jns 0x1401c678f
test rbx, rbx
je 0x1401c6794
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x1401c6827
test rbx, rbx
jne 0x1401c679b
xor eax, eax
jmp 0x1401c6827
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x80], rdi
cmp dword [rbx], esi
jbe 0x1401c6807
nop dword [rax]
mov ebp, esi
lea rcx, [rsp + 0x28]
imul rax, rbp, 0x128
movzx edx, word [rax + rbx + 0x2e]
add rax, 0x30
add rdx, rax
add rdx, rbx
call fcn.14000e370
mov rcx, r14
call fcn.1400561c0
lea rcx, [rsp + 0x28]
mov rdi, rax
call fcn.1400561c0
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x1401c683d
lea rcx, [rsp + 0x28]
call fcn.14000e260
inc esi
cmp esi, dword [rbx]
jb 0x1401c67b0
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rbp, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140253d60
add rsp, 0x50
pop r14
pop rsi
pop rbx
ret
imul rax, rbp, 0x128
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
mov rdi, qword [rax + rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea rcx, [rsp + 0x28]
call fcn.14000e260
mov rax, rdi
jmp 0x1401c681a
Function at 0x1401c6e60
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x14036f2b0]
xor rax, rsp
mov qword [rbp - 8], rax
mov r15, rdx
mov rdi, rcx
mov qword [rbp - 0x28], rcx
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x1401c704b
movsxd r14, dword [rdx + 0x3c]
cmp dword [r14 + rdx], 0x4550
jne 0x1401c704b
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x20], xmm1
xor esi, esi
mov qword [rbp - 0x10], rsi
lea rdx, [0x1402ae963]
lea rcx, [rbp - 0x20]
call fcn.140005e90
nop
mov eax, dword [r14 + r15 + 0xb0]
test eax, eax
jne 0x1401c6f43
mov qword [rdi], rsi
mov qword [rdi + 8], rsi
mov qword [rdi + 0x10], rsi
lea rdx, [0x1402ae963]
mov rcx, rdi
call fcn.140005e90
nop
lea rcx, [rbp - 0x20]
call fcn.140005e80
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x1401c7064
mov rdx, qword [rbp - 0x10]
sub rdx, rcx
movabs rax, 0x2aaaaaaaaaaaaaab
imul rdx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 3
call fcn.140011970
jmp 0x1401c7064
lea rbx, [r15 + rax]
mov r14d, dword [r14 + r15 + 0xb4]
add r14, rbx
mov rdx, qword [rbp - 0x18]
cmp rbx, r14
jae 0x1401c6fcd
nop dword [rax + rax]
mov ecx, dword [rbx + 4]
test ecx, ecx
je 0x1401c6fcd
mov eax, dword [rbx]
add rax, r15
mov qword [rbp - 0x40], rax
lea rax, [rbx + 8]
mov qword [rbp - 0x38], rax
lea rax, [rcx - 8]
shr rax, 1
mov dword [rbp - 0x30], eax
cmp rdx, qword [rbp - 0x10]
je 0x1401c6fb1
mov ecx, Ordinal_27
call fcn.140005a00
movups xmm0, xmmword [rbp - 0x40]
movups xmmword [rax], xmm0
movsd xmm1, qword [rbp - 0x30]
movsd qword [rax + 0x10], xmm1
mov rdx, qword [rbp - 0x18]
add rdx, 0x18
mov qword [rbp - 0x18], rdx
jmp 0x1401c6fc2
lea r8, [rbp - 0x40]
lea rcx, [rbp - 0x20]
call fcn.1401c7690
mov rdx, qword [rbp - 0x18]
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, r14
jb 0x1401c6f60
mov rcx, qword [rbp - 0x10]
mov qword [rbp - 0x10], rsi
mov qword [rbp - 0x18], rsi
mov rax, qword [rbp - 0x20]
mov qword [rbp - 0x20], rsi
mov qword [rdi], rax
mov qword [rdi + 8], rdx
mov qword [rdi + 0x10], rcx
lea rdx, [0x1402ae963]
mov rcx, rdi
call fcn.140005e90
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.140005e90
nop
lea rcx, [rbp - 0x20]
call fcn.140005e80
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x1401c7064
mov rdx, qword [rbp - 0x10]
sub rdx, rcx
movabs rax, 0x2aaaaaaaaaaaaaab
imul rdx
sar rdx, 2
mov r8, rdx
shr r8, 0x3f
add rdx, r8
lea rdx, [rdx + rdx*2]
shl rdx, 3
call fcn.140011970
jmp 0x1401c7064
xor esi, esi
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
mov qword [rcx + 0x10], rsi
lea rdx, [0x1402ae963]
call fcn.140005e90
mov rax, rdi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140253d60
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1401e81d0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
xor r10d, r10d
mov edi, r8d
mov rbx, rdx
mov r11d, 0x7fffffff
test ecx, ecx
jle 0x1401e8236
mov qword [rsp + 0x10], rsi
imul edi, r9d
mov r9, rdx
mov esi, ecx
nop word [rax + rax]
mov eax, dword [rbx + 4]
mov ecx, r11d
imul eax, dword [rbx]
lea rbx, [rbx + 0x10]
mov r8, r10
mov r10, r9
sub eax, edi
cdq
xor eax, edx
sub eax, edx
cmp eax, r11d
cmovl r11d, eax
cmp eax, ecx
cmovge r10, r8
add r9, 0x10
sub rsi, 1
jne 0x1401e8200
mov rsi, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x18]
mov rax, r10
pop rdi
ret

Function at 0x1401e8aa0
Capabilities:
Register raw input devices

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov qword [0x14037f030], rcx
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x1401e8af9
mov rcx, qword [rbx + 0x358]
lea rdx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_ScreenToClient]
movd xmm0, dword [rsp + 0x40]
movd xmm1, dword [rsp + 0x44]
cvtdq2pd xmm0, xmm0
cvtdq2pd xmm1, xmm1
movsd qword [0x14037f020], xmm0
movsd qword [0x14037f028], xmm1
mov eax, dword [rbx + 0x84]
cmp eax, 0x34001
je 0x1401e8b11
cmp eax, 0x34004
je 0x1401e8b11
xor ecx, ecx
jmp 0x1401e8b30
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x1401e8b20
mov rcx, qword [rcx + 8]
jmp 0x1401e8b30
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
mov rcx, rbx
call fcn.1401e4890
mov rcx, rbx
call fcn.1401e8150
cmp dword [rbx + 0x200], 0
je 0x1401e8b8d
mov rax, qword [rbx + 0x358]
lea rcx, [rsp + 0x20]
mov edx, 1
mov qword [rsp + 0x20], 0x20001
mov qword [rsp + 0x28], rax
lea r8d, [rdx + 0xf]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x1401e8b8d
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.1401eb950
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1401e8ba0
Capabilities:
Register raw input devices

Disassembly:
sub rsp, 0x38
mov edx, 1
mov dword [rsp + 0x20], 0x20001
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x24], edx
mov qword [rsp + 0x28], 0
lea r8d, [rdx + 0xf]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x1401e8be2
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.1401eb950
add rsp, 0x38
ret
Function at 0x1401e8bf0
Capabilities:
Register raw input devices

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x200], 0
mov rbx, rcx
je 0x1401e8c40
mov edx, 1
mov dword [rsp + 0x20], 0x20001
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x24], edx
mov qword [rsp + 0x28], 0
lea r8d, [rdx + 0xf]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x1401e8c40
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.1401eb950
xor ecx, ecx
mov qword [0x14037f030], 0
call qword [sym.imp.USER32.dll_ClipCursor]
cvttsd2si ecx, qword [0x14037f020]
mov qword [0x14037f038], 0
lea rdx, [rsp + 0x40]
cvttsd2si eax, qword [0x14037f028]
mov dword [rsp + 0x40], ecx
mov dword [rbx + 0x394], ecx
mov rcx, qword [rbx + 0x358]
mov dword [rsp + 0x44], eax
mov dword [rbx + 0x398], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov eax, dword [rbx + 0x84]
cmp eax, 0x34001
je 0x1401e8cc4
cmp eax, 0x34004
je 0x1401e8cc4
xor ecx, ecx
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x1401e8cdd
mov rcx, qword [rcx + 8]
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]

Function at 0x1401e8d00
Capabilities:
Register raw input devices

Disassembly:
sub rsp, 0x38
mov rax, qword [rcx + 0x358]
mov edx, 1
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], 0x20001
mov qword [rsp + 0x28], rax
lea r8d, [rdx + 0xf]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x1401e8d42
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.1401eb950
add rsp, 0x38
ret

Function at 0x1401e8df0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
mov ecx, reloc.WS2_32.dll_recvfrom
shr ebx, 0xf
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, ebx
mov esi, 0x8000
or edi, 2
mov ecx, reloc.WS2_32.dll_select
test si, ax
cmove edi, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
and ax, si
mov ecx, 0x5c
mov esi, edi
or esi, 4
test ax, ax
cmove esi, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x5b
movzx ebx, ax
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, esi
mov ecx, reloc.WS2_32.dll_sendto
or edi, 8
or bx, ax
cmovns edi, esi
call qword [sym.imp.USER32.dll_GetKeyState]
mov ebx, edi
mov ecx, 0x90
or ebx, 0x10
test al, 1
cmove ebx, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov rsi, qword [rsp + 0x38]
mov ecx, ebx
or ecx, 0x20
test al, 1
cmove ecx, ebx
mov rbx, qword [rsp + 0x30]
mov eax, ecx
add rsp, 0x20
pop rdi
ret
Function at 0x1401eab60
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx + 4], eax
cmp eax, 0xffffffff
jne 0x1401eab90
lea rdx, str.Win32:_Failed_to_allocate_TLS_index
mov ecx, 0x10008
call fcn.1401e3d00
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [rbx], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x1401ebce0
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x14036f2b0]
xor rax, rsp
mov qword [rbp + 0xa0], rax
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0x100
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [0x14037e94a]
mov r8d, 0x6d1
call sub.VCRUNTIME140.dll_memset
lea r14, [rsp + 0x40]
mov qword [rsp + 0x1e0], rdi
sub r14, 0x480
lea r15, [0x14037e6d0]
xor r13d, r13d
lea r12, [0x14037e9ea]
mov ebx, reloc.WLDAP32.dll_Ordinal_32
movsx esi, word [r15]
cmp esi, 0xffffffff
je 0x1401ebe85
cmp ebx, 0x140
jb 0x1401ebe00
cmp ebx, 0x14e
ja 0x1401ebe00
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x44], 0x61
mov dword [rsp + 0x48], 0x62
mov dword [rsp + 0x4c], 0x63
mov dword [rsp + 0x50], 0x64
mov dword [rsp + 0x54], 0x65
mov dword [rsp + 0x58], 0x66
mov dword [rsp + 0x5c], 0x67
mov dword [rsp + 0x60], WSAGetLastError
mov dword [rsp + 0x64], WSASetLastError
mov dword [rsp + 0x68], WSASetLastError
mov dword [rsp + 0x6c], reloc.WS2_32.dll_WSAGetLastError
mov dword [rsp + 0x70], WSASetLastError
mov dword [rsp + 0x74], WSASetLastError
mov dword [rsp + 0x78], WSASetLastError
mov edi, dword [r14]
jmp 0x1401ebe0f
mov edx, 1
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov edi, eax
mov dword [rsp + 0x28], r13d
lea r9, [rbp - 0x80]
lea r8, [rbp - 0x60]
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 0xffffffff
jne 0x1401ebe52
mov dword [rsp + 0x28], r13d
lea r9, [rbp - 0x80]
lea r8, [rbp - 0x60]
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 1
jl 0x1401ebe85
mov qword [rsp + 0x38], r13
lea r8, [rbp - 0x80]
mov qword [rsp + 0x30], r13
mov r9d, 1
mov dword [rsp + 0x28], 5
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
inc ebx
add r12, 5
add r14, 4
add r15, 2
cmp ebx, 0x15c
jle 0x1401ebd62
mov rdi, qword [rsp + 0x1e0]
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.140253d60
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1401f0030
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x48
mov rax, qword [0x14036f2b0]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x14037e1c8], 0
lea rax, str.libOSMesa.dll
lea rcx, str.OSMesa.dll
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 0
je 0x1401f0085
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140253d60
add rsp, 0x48
ret
mov qword [rsp + 0x40], rbx
xor ebx, ebx
nop dword [rax]
mov rcx, rax
call sub.KERNEL32.dll_LoadLibraryA
mov qword [0x14037e1c8], rax
test rax, rax
jne 0x1401f00c7
mov rax, qword [rsp + rbx*8 + 0x28]
inc rbx
test rax, rax
jne 0x1401f0090
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.1401e3d00
jmp 0x1401f01e4
lea rdx, str.OSMesaCreateContextExt
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14037e1c8]
lea rdx, str.OSMesaCreateContextAttribs
mov qword [0x14037e1d0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14037e1c8]
lea rdx, str.OSMesaDestroyContext
mov qword [0x14037e1d8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14037e1c8]
lea rdx, str.OSMesaMakeCurrent
mov qword [0x14037e1e0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14037e1c8]
lea rdx, str.OSMesaGetColorBuffer
mov qword [0x14037e1e8], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14037e1c8]
lea rdx, str.OSMesaGetDepthBuffer
mov qword [0x14037e1f0], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x14037e1c8]
lea rdx, str.OSMesaGetProcAddress
mov qword [0x14037e1f8], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x14037e1d0], 0
mov qword [0x14037e200], rax
je 0x1401f01b7
cmp qword [0x14037e1e0], 0
je 0x1401f01b7
cmp qword [0x14037e1e8], 0
je 0x1401f01b7
cmp qword [0x14037e1f0], 0
je 0x1401f01b7
cmp qword [0x14037e1f8], 0
je 0x1401f01b7
test rax, rax
je 0x1401f01b7
mov eax, 1
jmp 0x1401f01e6
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.1401e3d00
mov rcx, qword [0x14037e1c8]
test rcx, rcx
je 0x1401f01e4
call fcn.1401f0a80
mov qword [0x14037e1c8], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140253d60
add rsp, 0x48
ret
Function at 0x1401f2fd0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov r9, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor esi, esi
cmp byte [r8 + 7], sil
je 0x1401f3004
mov eax, esi
lea ecx, [rax - 0x11]
xor byte [r8 + rax], cl
inc rax
cmp rax, 6
jb 0x1401f2ff0
mov byte [r8 + 7], sil
lea rax, [r8 + 6]
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x20], sil
cmp r9, rax
je 0x1401f3039
mov r8d, 6
mov rdx, r9
lea rcx, [rsp + 0x20]
call fcn.14000f4e0
nop
mov r9, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x1401f3047
mov rbx, qword [rbx]
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.1401c0ef0
mov qword [rdi], rsi
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x1401f30be
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401f30b9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1401f30b9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1402542a4
mov rax, rdi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x1401f30d0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov r9, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x68], rcx
xor esi, esi
cmp byte [r8 + 9], sil
je 0x1401f3104
mov ecx, esi
lea eax, [rcx - 0x11]
xor byte [r8 + rcx], al
inc rcx
cmp rcx, 8
jb 0x1401f30f0
mov byte [r8 + 9], sil
lea rax, [r8 + 8]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x48], sil
cmp r9, rax
je 0x1401f3139
mov r8d, 8
mov rdx, r9
lea rcx, [rsp + 0x48]
call fcn.14000f4e0
nop
cmp byte [rbx + 9], 0
je 0x1401f3163
mov rcx, rsi
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx - 0x11]
xor byte [rcx + rbx], al
inc rcx
cmp rcx, 8
jb 0x1401f3150
mov byte [rbx + 9], 0
lea rax, [rbx + 8]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x28], 0
cmp rbx, rax
je 0x1401f3198
mov r8d, 8
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.14000f4e0
nop
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x28]
movzx edx, byte [rsp + 0x20]
mov rcx, rdi
call fcn.140059970
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x1401f31f1
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401f31eb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1401f31eb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1402542a4
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x1401f3231
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401f322c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1401f322c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1402542a4
mov rax, rdi
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret