joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140054590
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14008e040]
xor rax, rsp
mov qword [rsp + 0x50], rax
movsx ebx, cl
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov ecx, 0x409
cmp ax, cx
je 0x1400545d7
mov edx, 0x100
lea rcx, str.0409
call qword [sym.imp.USER32.dll_LoadKeyboardLayoutW]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ActivateKeyboardLayout]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x28], xmm0
movzx ecx, bx
mov dword [rsp + 0x28], 1
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], rax
call qword [sym.imp.USER32.dll_VkKeyScanW]
movzx ecx, al
xor edx, edx
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov r8d, 0x28
lea rdx, [rsp + 0x28]
mov word [rsp + 0x32], ax
lea ecx, [r8 - 0x27]
call qword [sym.imp.USER32.dll_SendInput]
movsxd rbx, dword [0x14008e104]
lea rcx, [rsp + 0x20]
call fcn.1400428f0
mov rdx, qword [rsp + 0x20]
mov qword [rsp + 0x20], rdx
test rbx, rbx
jle 0x14005466d
imul rcx, rbx, 0x3b9aca00
movabs r8, 0x7fffffffffffffff
mov rax, r8
sub rax, rcx
cmp rdx, rax
jge 0x140054668
lea rax, [rcx + rdx]
mov qword [rsp + 0x20], rax
jmp 0x14005466d
mov qword [rsp + 0x20], r8
lea rcx, [rsp + 0x20]
call fcn.14006e000
mov r8d, 0x28
mov dword [rsp + 0x34], 0xa
lea rdx, [rsp + 0x28]
lea ecx, [r8 - 0x27]
call qword [sym.imp.USER32.dll_SendInput]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400707f0
add rsp, 0x60
pop rbx
ret
Function at 0x140058c50
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14008e040]
xor rax, rsp
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.1400428f0
lea rcx, [rsp + 0x30]
call fcn.1400428f0
mov rcx, qword [rsp + 0x30]
movabs rsi, 0x112e0be826d694b3
sub rcx, qword [rsp + 0x40]
mov rax, rsi
imul rcx
sar rdx, 0x1a
mov rax, rdx
shr rax, 0x3f
add rdx, rax
movzx eax, byte [0x14008f737]
test al, al
jne 0x140058d3d
movabs rdi, 0x7ffffffffd050f7f
movabs rbx, 0x7fffffffffffffff
nop dword [rax]
cmp rdx, 5
jge 0x140058dc5
lea rcx, [rsp + 0x48]
call fcn.1400428f0
mov rax, qword [rsp + 0x48]
cmp rax, rdi
jge 0x140058cfb
add rax, 0x2faf080
mov qword [rsp + 0x38], rax
jmp 0x140058d00
mov qword [rsp + 0x38], rbx
lea rcx, [rsp + 0x38]
call fcn.14006e000
lea rcx, [rsp + 0x30]
call fcn.1400428f0
mov rcx, qword [rsp + 0x30]
mov rax, rsi
sub rcx, qword [rsp + 0x40]
imul rcx
sar rdx, 0x1a
mov rax, rdx
shr rax, 0x3f
add rdx, rax
movzx eax, byte [0x14008f737]
test al, al
je 0x140058cd0
xor ebx, ebx
mov eax, ebx
xchg byte [0x14008f737], al
mov edx, dword [0x14008f710]
mov ecx, dword [0x14008f794]
call qword [sym.imp.USER32.dll_SetCursorPos]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x50]
sub rax, qword [rsp + 0x58]
imul rax, rax, 0x3e8
cqo
idiv qword [rsp + 0x60]
cmp rax, 0x5a
jl 0x140058d70
xor edx, edx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 2]
call qword [sym.imp.USER32.dll_mouse_event]
xor edx, edx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 4]
call qword [sym.imp.USER32.dll_mouse_event]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400707f0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140069a30
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140069a58
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140069a7e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140069a80
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140069ad9
test ecx, ecx
jle 0x140069ab9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140069ad9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140069ad9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140069b00
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140069b22
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140069b38
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140069b54
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140069b56
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140069b92
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140069c2e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140069bcd
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140069c0e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140069c2e
cmp rbx, rax
ja 0x140069be0
test rbx, rbx
je 0x140069c2e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x14006a090
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14008e040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14006a0bd
xor eax, eax
jmp 0x14006a229
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14006a0f7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14006a0f7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x14006a229
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14006a21c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14006a13a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14006a165
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14006a221
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14006a1d4
sub eax, 1
je 0x14006a1d4
cmp eax, 2
jne 0x14006a21c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14006a221
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14006a202
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14006a21c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14006a221
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400707f0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14006b780
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14008e040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14006b853
cmp byte [rcx + 0x71], 0
je 0x14006b853
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14006b84f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14006b814
sub eax, 1
je 0x14006b818
cmp eax, 2
jne 0x14006b84f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400707f0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14006b846
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14006b84f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14006b7fc
xor al, al
jmp 0x14006b7fc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400707f0
add rsp, 0x60
pop rbx
ret
Function at 0x14006e940
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x138
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x14006e9a7
lea r8, [r10 + 0x10]
movabs r11, 0xb5026f5aa96619e9
mov rdx, qword [r8]
xor rdx, qword [r8 - 8]
lea r8, [r8 + 8]
and rdx, 0xffffffff80000000
xor rdx, qword [r8 - 8]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r8 + 0x4d0]
xor rcx, rdx
mov qword [r8 + 0x9b0], rcx
sub r9, 1
jne 0x14006e962
mov ecx, dword [r10]
jmp 0x14006eac8
cmp ecx, 0x270
jb 0x14006eac8
mov qword [rsp + 0x10], rbx
movabs r11, 0xb5026f5aa96619e9
lea rbx, [r10 + 0x9c8]
mov qword [rsp], rdi
mov rax, qword [rbx]
mov edi, 0x9c
nop word [rax + rax]
mov r9, qword [rbx + 8]
mov r8, rbx
add rbx, 8
mov rdx, r9
xor rdx, rax
and rdx, 0xffffffff80000000
xor rdx, r9
movzx eax, dl
and al, 1
neg al
mov rax, r9
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r8 + 0x4e0]
xor rcx, rdx
mov qword [r8 - 0x9c0], rcx
sub rdi, 1
jne 0x14006e9e0
lea rbx, [r10 + 0xea8]
mov edi, 0x9b
mov r9, qword [rbx]
nop dword [rax]
nop dword [rax + rax]
mov r8, qword [rbx + 8]
mov rdx, rbx
xor r9, r8
add rbx, 8
and r9, 0xffffffff80000000
xor r9, r8
movzx eax, r9b
and al, 1
neg al
sbb rcx, rcx
shr r9, 1
and rcx, r11
xor rcx, qword [rdx - 0xea0]
xor rcx, r9
mov r9, r8
mov qword [rdx - 0x9c0], rcx
sub rdi, 1
jne 0x14006ea40
mov rdx, qword [r10 + 8]
xor rdx, qword [r10 + 0x1380]
mov rdi, qword [rsp]
and rdx, 0xffffffff80000000
xor rdx, qword [r10 + 8]
mov rbx, qword [rsp + 0x10]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r10 + 0x4e0]
xor rcx, rdx
mov qword [r10 + 0x9c0], rcx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov rdx, qword [r10 + rax*8 + 8]
lea eax, [rcx + 1]
mov dword [r10], eax
mov rcx, rdx
mov rax, qword [r10 + 0x1388]
shr rcx, 0x1d
and rax, rcx
movabs rcx, 0x38eb3ffff6d3
xor rdx, rax
mov rax, rdx
and rax, rcx
shl rax, 0x11
xor rdx, rax
mov rax, rdx
and rax, 0xffffffffffffbf77
shl rax, 0x25
xor rdx, rax
mov rax, rdx
shr rax, 0x2b
xor rax, rdx
add rsp, 8
ret

Function at 0x1400713c4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14007140e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14007140e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14007140e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14007140e
cmp dword [rcx + 0x84], 0xe
jbe 0x14007140e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140071410
xor al, al
add rsp, 0x28
ret
Function at 0x140004700
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x128
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x30], rcx
mov r14, qword [rsp + 0x190]
mov rax, qword [0x1400c3780]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov qword [rsp + 0x28], r8
mov ebp, 0xc8
sub rbp, r8
sub rbp, r8
vxorps xmm0, xmm0, xmm0
vmovups ymmword [rsp + 0xf0], ymm0
vmovups ymmword [rsp + 0xd0], ymm0
vmovups ymmword [rsp + 0xb0], ymm0
vmovups ymmword [rsp + 0x90], ymm0
vmovups ymmword [rsp + 0x70], ymm0
vmovups ymmword [rsp + 0x50], ymm0
mov qword [rsp + 0x110], 0
mov r13, rbp
shr r13, 3
cmp rbp, r14
jbe 0x1400047ff
mov r12, r9
lea r15, [rsp + 0x50]
mov rcx, r15
mov rdx, r12
mov r8, r14
vzeroupper
call fcn.14008af60
and r14, 0xfffffffffffffff8
xor byte [rsp + r14 + 0x50], 1
xor byte [rsp + r13*8 + 0x4f], 0x80
mov rdx, r15
call fcn.140004960
mov rcx, qword [rsp + 0x20]
mov rdx, r15
mov r8, qword [rsp + 0x28]
call fcn.14008af60
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.14006e470
mov rax, qword [rsp + 0x30]
add rsp, 0x128
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp r13, 1
mov rsi, r13
adc rsi, 0
lea rax, [rsi - 1]
lea rcx, [rsi*8]
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + rsi*8]
add rcx, 0x50
mov qword [rsp + 0x40], rcx
cmp eax, 0xffffffff
sete cl
shr rax, 0x20
setne dil
or dil, cl
movabs rbx, 0x1ffffffffffffff0
and rbx, rsi
lea rax, [rbx*8]
mov qword [rsp + 0x38], rax
lea r15, [rsp + 0x50]
jmp 0x14000487d
mov r12, r9
mov rdx, r15
vzeroupper
call fcn.140004960
sub r14, rbp
mov r9, r12
cmp r14, rbp
jb 0x140004796
cmp rbp, 8
jb 0x140004860
cmp rsi, 0x10
setb al
or al, dil
jne 0x1400048a3
mov rax, qword [rsp + 0x48]
add rax, r9
cmp r15, rax
jae 0x1400048c8
cmp r9, qword [rsp + 0x40]
jae 0x1400048c8
xor eax, eax
mov r12, r9
xor ecx, ecx
inc ecx
nop dword [rax]
mov rdx, qword [r12]
xor qword [rsp + rax*8 + 0x50], rdx
add r12, 8
mov eax, ecx
inc ecx
cmp r13, rax
ja 0x1400048b0
jmp 0x140004863
mov rax, qword [rsp + 0x38]
lea r12, [r9 + rax]
xor eax, eax
nop word cs:[rax + rax]
vmovups ymm0, ymmword [rsp + rax*8 + 0x50]
vmovups ymm1, ymmword [rsp + rax*8 + 0x70]
vmovups ymm2, ymmword [rsp + rax*8 + 0x90]
vmovups ymm3, ymmword [rsp + rax*8 + 0xb0]
vxorps ymm0, ymm0, ymmword [r9 + rax*8]
vxorps ymm1, ymm1, ymmword [r9 + rax*8 + 0x20]
vxorps ymm2, ymm2, ymmword [r9 + rax*8 + 0x40]
vxorps ymm3, ymm3, ymmword [r9 + rax*8 + 0x60]
vmovups ymmword [rsp + rax*8 + 0x50], ymm0
vmovups ymmword [rsp + rax*8 + 0x70], ymm1
vmovups ymmword [rsp + rax*8 + 0x90], ymm2
vmovups ymmword [rsp + rax*8 + 0xb0], ymm3
add rax, 0x10
cmp rbx, rax
jne 0x1400048e0
mov rax, rbx
mov ecx, ebx
cmp rsi, rbx
je 0x140004863
jmp 0x1400048aa
Function at 0x140031720
Capabilities:
Terminate thread

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x50
lea rbp, [rsp + 0x50]
vmovaps xmmword [rbp - 0x10], xmm6
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov rsi, rcx
lea rax, vtable.boost::asio::detail::win_iocp_io_context.0
mov qword [rcx], rax
cmp qword [rcx + 0xa8], 0
je 0x1400317f7
mov rcx, rsi
call fcn.140030e00
mov rdi, qword [rsi + 0xa8]
vpermilps xmm0, xmmword [rdi + 8], 0x4e
vmovaps xmmword [rbp - 0x30], xmm0
lea rdx, [rbp - 0x30]
mov ecx, 2
xor r8d, r8d
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mfence
mov eax, dword [0x1400c668c]
mov rdx, qword [rdi + 8]
test eax, eax
je 0x1400317af
mov rcx, rdx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x1400317ce
lea rcx, [fcn.140001010]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rdi + 8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rdi, qword [rsi + 0xa8]
test rdi, rdi
je 0x1400317ec
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.14006e290
mov qword [rsi + 0xa8], 0
mov rdx, qword [rsi + 0x90]
test rdx, rdx
je 0x14003185a
vxorps xmm6, xmm6, xmm6
lea rdi, [rbp - 0x30]
nop dword [rax + rax]
mov rax, qword [rdx + 0x20]
mov qword [rsi + 0x90], rax
test rax, rax
jne 0x14003182b
mov qword [rsi + 0x98], 0
mov qword [rdx + 0x20], 0
mov rax, qword [rdx + 0x28]
vmovaps xmmword [rbp - 0x30], xmm6
mov qword [rbp - 0x20], 0
xor ecx, ecx
mov r8, rdi
xor r9d, r9d
call rax
mov rdx, qword [rsi + 0x90]
test rdx, rdx
jne 0x140031810
lea rcx, [rsi + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [rsi + 0x50]
test rcx, rcx
je 0x140031873
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsi + 0x48]
test rdi, rdi
je 0x14003188e
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.14006e290
mov rcx, qword [rsi + 0x28]
test rcx, rcx
je 0x14003189d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
vmovaps xmm6, xmmword [rbp - 0x10]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x140050e30
Capabilities:
Send data
Send data on socket

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rdi, rcx
mov rsi, qword [rsp + 0xa0]
mov eax, dword [rsp + 0x90]
movzx ecx, byte [rsp + 0x98]
mov r10, qword [rdi + 8]
lock inc dword [r10 + 0x30]
test cl, cl
je 0x140050e82
mov rbx, qword [rdi + 8]
mov dword [rsi + 0x30], 1
lea rax, [0x1400c1350]
mov qword [rsi], rax
mov qword [rsi + 0x10], 0
jmp 0x140050f23
mov rcx, qword [rdx]
cmp rcx, 0xffffffffffffffff
je 0x140050f06
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x44]
mov rdx, r8
mov r8d, r9d
mov r9, rax
call qword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmovne ecx, eax
mov r14, qword [rdi + 8]
test ebx, ebx
je 0x140050f93
cmp ecx, 0x3e5
je 0x140050f93
mov eax, dword [rsp + 0x44]
mov dword [rsi + 0x30], 1
lea rdx, [0x1400c1350]
mov qword [rsi], rdx
mov dword [rsi + 0x10], ecx
mov dword [rsi + 0x14], eax
jmp 0x140050fa4
mov rbx, qword [rdi + 8]
mov dword [rsi + 0x30], 1
lea rax, [0x1400c1350]
mov qword [rsi], rax
mov qword [rsi + 0x10], 0x2719
mov rcx, qword [rbx + 0x28]
mov r8d, 2
xor edx, edx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x140051007
lea rdi, [rbx + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rax, [rbx + 0x90]
mov qword [rsi + 0x20], 0
mov rcx, qword [rbx + 0x98]
lea rdx, [rcx + 0x20]
test rcx, rcx
cmove rdx, rax
mov qword [rdx], rsi
mov qword [rbx + 0x98], rsi
mov eax, 1
xchg dword [rbx + 0x58], eax
mov rcx, rdi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, 1
xor eax, eax
lock cmpxchg dword [rsi + 0x30], ecx
cmp eax, 1
jne 0x140051007
mov rcx, qword [r14 + 0x28]
mov r8d, 2
xor edx, edx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x140051007
lea rdi, [r14 + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov qword [rsi + 0x20], 0
lea rax, [r14 + 0x90]
mov rcx, qword [r14 + 0x98]
lea rdx, [rcx + 0x20]
test rcx, rcx
cmove rdx, rax
mov qword [rdx], rsi
mov qword [r14 + 0x98], rsi
mov eax, 1
xchg dword [r14 + 0x58], eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400552a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rdi, rcx
mov rsi, qword [rsp + 0xa0]
mov eax, dword [rsp + 0x90]
movzx ecx, byte [rsp + 0x98]
mov r10, qword [rdi + 8]
lock inc dword [r10 + 0x30]
test cl, cl
je 0x1400552f2
mov rbx, qword [rdi + 8]
mov dword [rsi + 0x30], 1
lea rax, [0x1400c1350]
mov qword [rsi], rax
mov qword [rsi + 0x10], 0
jmp 0x1400553ab
mov rcx, qword [rdx]
cmp rcx, 0xffffffffffffffff
je 0x14005538e
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x40]
mov rdx, r8
mov r8d, r9d
mov r9, rax
call qword [sym.imp.WS2_32.dll_WSARecv]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmovne ecx, eax
cmp eax, 0x40
mov eax, 0x2746
cmovne eax, ecx
mov r14, qword [rdi + 8]
test ebx, ebx
je 0x14005541b
cmp eax, 0x3e5
je 0x14005541b
mov ecx, dword [rsp + 0x40]
mov dword [rsi + 0x30], 1
lea rdx, [0x1400c1350]
mov qword [rsi], rdx
mov dword [rsi + 0x10], eax
mov dword [rsi + 0x14], ecx
jmp 0x14005542c
mov rbx, qword [rdi + 8]
mov dword [rsi + 0x30], 1
lea rax, [0x1400c1350]
mov qword [rsi], rax
mov qword [rsi + 0x10], 0x2719
mov rcx, qword [rbx + 0x28]
mov r8d, 2
xor edx, edx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x14005548f
lea rdi, [rbx + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rax, [rbx + 0x90]
mov qword [rsi + 0x20], 0
mov rcx, qword [rbx + 0x98]
lea rdx, [rcx + 0x20]
test rcx, rcx
cmove rdx, rax
mov qword [rdx], rsi
mov qword [rbx + 0x98], rsi
mov eax, 1
xchg dword [rbx + 0x58], eax
mov rcx, rdi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, 1
xor eax, eax
lock cmpxchg dword [rsi + 0x30], ecx
cmp eax, 1
jne 0x14005548f
mov rcx, qword [r14 + 0x28]
mov r8d, 2
xor edx, edx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x14005548f
lea rdi, [r14 + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov qword [rsi + 0x20], 0
lea rax, [r14 + 0x90]
mov rcx, qword [r14 + 0x98]
lea rdx, [rcx + 0x20]
test rcx, rcx
cmove rdx, rax
mov qword [rdx], rsi
mov qword [r14 + 0x98], rsi
mov eax, 1
xchg dword [r14 + 0x58], eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret