joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140015910
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x14001596d
lea rbx, [0x140049870]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140015954
cmp r10, 2
jb 0x140015954
cmp byte [r9], r8b
jne 0x140015954
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140015930
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x1400159af
lea rbx, [0x140049870]
cmp r8b, 0x23
jne 0x140015993
cmp byte [r9], r8b
jne 0x140015993
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140015980
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140015af0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x140015b0a
mov qword [r8], 0
lea rdx, [0x14004e974]
call fcn.1400159c0
mov rbx, rax
test rax, rax
jne 0x140015b2a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x140015c03
xor edx, edx
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140015c03
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140015c03
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140015c03
cmp rdi, 0xffffffffffffffff
je 0x140015c03
mov rax, qword [0x1400f41a0]
test rax, rax
je 0x140015ba0
inc dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140015c03
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x140015bf0
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1400f41a0]
test rax, rax
je 0x140015be5
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140015c0c
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x140015bfe
mov qword [r14], rdi
mov rax, rsi
jmp 0x140015c0e
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140018010
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rax, qword [rcx + 0xd8]
lea r14, [0x140049870]
movsxd rcx, dword [rcx + 0xd0]
mov rbp, rdx
mov rdi, rdx
mov rbx, rdx
mov r11, rdx
shr rbx, 0x30
mov r10, rdx
shr r11, 0x28
mov esi, dword [rax + rcx*4 - 4]
mov r9, rdx
not esi
movzx eax, bpl
movzx ecx, sil
mov r8, rdx
xor rcx, rax
shr esi, 8
shr rdx, 8
movzx eax, dl
shr r8, 0x10
xor esi, dword [r14 + rcx*4]
movzx ecx, sil
xor rcx, rax
shr esi, 8
movzx eax, r8b
shr r9, 0x18
shr r10, 0x20
xor esi, dword [r14 + rcx*4]
movzx ecx, sil
xor rcx, rax
shr esi, 8
movzx eax, r9b
shr rdi, 0x38
xor esi, dword [r14 + rcx*4]
movzx ecx, sil
xor rcx, rax
shr esi, 8
movzx eax, r10b
xor esi, dword [r14 + rcx*4]
movzx ecx, sil
xor rcx, rax
shr esi, 8
movzx eax, r11b
xor esi, dword [r14 + rcx*4]
movzx ecx, sil
xor rcx, rax
shr esi, 8
movzx eax, bl
xor esi, dword [r14 + rcx*4]
movzx ecx, sil
xor rcx, rax
shr esi, 8
xor esi, dword [r14 + rcx*4]
movzx ecx, sil
xor rcx, rdi
shr esi, 8
xor esi, dword [r14 + rcx*4]
mov rcx, qword [0x1400f41a0]
not esi
cmp dword [rcx + 0x3ed4], esi
jne 0x140018118
mov r8, rbp
mov edx, 0xc
mov ecx, esi
call fcn.14002abc0
mov rbx, qword [rsp + 0x50]
mov eax, esi
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x140018130
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0xd8]
lea r8, [0x140049870]
movsxd rcx, dword [rcx + 0xd0]
mov r11d, edx
shr r11d, 0x18
mov r9d, edx
shr r9d, 8
mov r10d, edx
shr r10d, 0x10
mov ebx, dword [rax + rcx*4 - 4]
not ebx
movzx eax, dl
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r9b
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r10b
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, r11
shr ebx, 8
xor ebx, dword [r8 + rcx*4]
mov rcx, qword [0x1400f41a0]
not ebx
cmp dword [rcx + 0x3ed4], ebx
jne 0x1400181c5
movsxd r8, edx
mov ecx, ebx
mov edx, 4
call fcn.14002abc0
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x140018810
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov rax, rsp
sub rsp, 0x38
mov byte [rax - 0x18], 0x33
mov r9, rcx
mov byte [rax - 0x17], 0x36
xor r8d, r8d
mov byte [rax - 0x16], 0x5c
mov r11d, 0xf
mov byte [rax - 0x15], 0x7b
movabs r10, 0x9a98484daf77cb13
mov byte [rax - 0x14], 0x73
mov byte [rax - 0x13], 0x74
mov byte [rax - 0x12], 0x71
mov byte [rax - 0x11], 0x62
mov byte [rax - 0x10], 0x79
mov byte [rax - 0xf], 0x6d
mov byte [rax - 0xe], 0x7b
mov byte [rax - 0xd], 0x7e
mov byte [rax - 0xc], 0x17
movzx eax, byte [rax - 0x18]
nop word [rax + rax]
movzx eax, byte [rsp + r8 + 0x20]
mov rcx, r8
and ecx, r11d
mov rdx, r10
cmp rcx, r11
cmovae rcx, r11
shl cl, 2
shr rdx, cl
and dl, r11b
xor dl, al
lea eax, [r8 + 0x13]
xor dl, al
mov byte [rsp + r8 + 0x20], dl
inc r8
cmp r8, 0xd
jb 0x140018870
lea r8, [rsp + 0x20]
xor edx, edx
mov rcx, r9
call fcn.1400186d0
add rsp, 0x38
ret
Function at 0x1400188c0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
sub rsp, 0x38
mov byte [rax - 0x18], 0x33
mov r9, rcx
mov byte [rax - 0x17], 0x36
xor r8d, r8d
mov byte [rax - 0x16], 0x58
mov r11d, 0xf
mov byte [rax - 0x15], 0x75
movabs r10, 0x9a98484daf77cb13
mov byte [rax - 0x14], 0x62
mov byte [rax - 0x13], 0x7a
mov byte [rax - 0x12], 0x71
mov byte [rax - 0x11], 0x62
mov byte [rax - 0x10], 0x79
mov byte [rax - 0xf], 0x6d
mov byte [rax - 0xe], 0x7b
mov byte [rax - 0xd], 0x7e
mov byte [rax - 0xc], 0x17
movzx eax, byte [rax - 0x18]
nop word [rax + rax]
movzx eax, byte [rsp + r8 + 0x20]
mov rcx, r8
and ecx, r11d
mov rdx, r10
cmp rcx, r11
cmovae rcx, r11
shl cl, 2
shr rdx, cl
and dl, r11b
xor dl, al
lea eax, [r8 + 0x13]
xor dl, al
mov byte [rsp + r8 + 0x20], dl
inc r8
cmp r8, 0xd
jb 0x140018920
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, r9
call fcn.1400186d0
add rsp, 0x38
ret
Function at 0x140024e30
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140058040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x1400f41a0]
mov edi, ecx
cmp byte [rbx + 0x424d], 0
jne 0x140024e91
cmp byte [rbx + 0x424e], 0
jne 0x140024e91
movsx r9d, word [rbx + 0x5342]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.1400157d0
test dil, 1
je 0x140024fb8
jmp 0x140024f1c
movss xmm1, dword [rbx + 0x3898]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x5342]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x14004f48c]
mov edx, 0x10
mulss xmm1, dword [0x14004f478]
addss xmm0, dword [rbx + 0xdfc]
addss xmm1, dword [rbx + 0xe00]
mov qword [rbx + 0x3fb8], rax
mov dword [rbx + 0x3fa4], 1
movss dword [rbx + 0x3fb0], xmm0
movss dword [rbx + 0x3fb4], xmm1
movss xmm0, dword [rbx + 0x38f4]
mulss xmm0, dword [0x14004f370]
or dword [rbx + 0x3fa0], 0x41
movss dword [rbx + 0x4000], xmm0
call fcn.1400157d0
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x140024f70
lea r11, [0x140049870]
nop dword [rax]
cmp r9b, 0x23
jne 0x140024f53
cmp byte [r8], r9b
jne 0x140024f53
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x140024f40
not ecx
call fcn.14001de20
test rax, rax
je 0x140024fb8
cmp byte [rax + 0x96], 0
je 0x140024fb8
mov byte [rax + 0x9d], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xb8], 1
lea rcx, [rsp + 0x20]
inc word [rbx + 0x5342]
mov edx, 0x10
movsx r9d, word [rbx + 0x5342]
call fcn.1400157d0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.1400205a0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140043d30
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140029790
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x53f0], 0
lea rbx, [rcx + 0x53f8]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x140029837
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x1400297ea
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.14002b810
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140015f50
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x53f0]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5400]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x1400f40e6]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14002983f
mov rcx, rbx
call fcn.140015f50
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140029db0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x1400f41a0]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x140029e13
mov qword [rsp], rbx
lea rbx, [0x140049870]
nop dword [rax]
cmp r9b, 0x23
jne 0x140029df3
cmp byte [r8], r9b
jne 0x140029df3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x140029de0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x53a0]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x140029e47
mov r10, qword [r10 + 0x53a8]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x140029e4e
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x140029e34
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x140044c00
Capabilities:
Parse pe header

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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov r14, qword [rcx]
test r14, r14
je 0x140001b9f
mov rsi, rcx
lea rdi, [rsp + 0x20]
mov r15, qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov r12, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r13, qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rbp, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rbx, qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x140001b59
lea rcx, [0x140001bb0]
xor r8d, r8d
call r13
mov rcx, qword [r14 + 8]
mov edx, 0xffffffff
call rbp
mov r14, qword [rsi]
mov rax, qword [r14 + 0x18]
mov qword [rsi], rax
mov rcx, qword [r14 + 8]
call r12
mov rcx, r14
call fcn.14007d660
mov r14, qword [rsi]
test r14, r14
je 0x140001b9f
movdqu xmm0, xmmword [r14 + 8]
pshufd xmm0, xmm0, 0x4e
movdqa xmmword [rsp + 0x20], xmm0
mov ecx, 2
mov rdx, rdi
xor r8d, r8d
mov r9d, 0xffffffff
call r15
mov rcx, qword [r14 + 0x10]
call r12
mfence
mov eax, dword [0x140137560]
mov rdx, qword [r14 + 8]
test eax, eax
je 0x140001b20
mov rcx, rdx
xor edx, edx
call rbx
jmp 0x140001b38
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140001eb0
Capabilities:
Hash data using sha512

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r14, r9
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rsp + 0x70]
cmp r8, 0x40
jne 0x140002008
lea rdx, [0x1400f41e0]
mov r8d, 0xf8
mov rcx, rsi
call fcn.1400f08e0
test rbx, rbx
je 0x1400020a6
cmp rbx, 0x81
jb 0x140001fbd
mov qword [rsi + 0xe0], 0
lea rdx, [rsi + 0x60]
movups xmm0, xmmword [r14]
movups xmm1, xmmword [r14 + 0x10]
movups xmm2, xmmword [r14 + 0x20]
movups xmm3, xmmword [r14 + 0x30]
movups xmmword [rsi + 0x60], xmm0
movups xmmword [rsi + 0x70], xmm1
movups xmmword [rsi + 0x80], xmm2
movups xmmword [rsi + 0x90], xmm3
movups xmm0, xmmword [r14 + 0x40]
movups xmmword [rsi + 0xa0], xmm0
movups xmm0, xmmword [r14 + 0x50]
movups xmmword [rsi + 0xb0], xmm0
movups xmm0, xmmword [r14 + 0x60]
movups xmmword [rsi + 0xc0], xmm0
movups xmm0, xmmword [r14 + 0x70]
movups xmmword [rsi + 0xd0], xmm0
mov qword [rsi + 0x40], 0x80
mov qword [rsi + 0x48], 0
mov rcx, rsi
call fcn.1400024c0
sub r14, 0xffffffffffffff80
add rbx, 0xffffffffffffff80
cmp rbx, 0x81
jb 0x140001fbd
nop
mov rax, qword [rsi + 0x40]
sub rax, 0xffffffffffffff80
mov qword [rsi + 0x40], rax
sbb qword [rsi + 0x48], 0xffffffffffffffff
mov rcx, rsi
mov rdx, r14
call fcn.1400024c0
sub r14, 0xffffffffffffff80
add rbx, 0xffffffffffffff80
cmp rbx, 0x80
ja 0x140001f90
mov rax, qword [rsi + 0xe0]
lea rcx, [rsi + rax]
add rcx, 0x60
mov rdx, r14
mov r8, rbx
call fcn.1400f08e0
add rbx, qword [rsi + 0xe0]
mov qword [rsi + 0xe0], rbx
add qword [rsi + 0x40], rbx
adc qword [rsi + 0x48], 0
cmp byte [rsi + 0xf0], 0
je 0x1400020af
mov qword [rsi + 0x58], 0xffffffffffffffff
jmp 0x1400020af
mov r15, r8
lea rdx, [0x1400f42e0]
mov r8d, 0xf8
mov rcx, rsi
call fcn.1400f08e0
movzx eax, r15b
movabs rcx, 0x6a09e667f2bdc908
xor rcx, rax
mov qword [rsi], rcx
movabs rcx, 0xbb67ae8584caa73b
mov qword [rsi + 8], rcx
movabs rcx, 0x3c6ef372fe94f82b
mov qword [rsi + 0x10], rcx
movabs rcx, 0xa54ff53a5f1d36f1
mov qword [rsi + 0x18], rcx
movabs rcx, 0x510e527fade682d1
mov qword [rsi + 0x20], rcx
movabs rcx, 0x9b05688c2b3e6c1f
mov qword [rsi + 0x28], rcx
movabs rcx, 0x1f83d9abfb41bd6b
mov qword [rsi + 0x30], rcx
movabs rcx, 0x5be0cd19137e2179
mov qword [rsi + 0x38], rcx
mov qword [rsi + 0xe8], rax
test rbx, rbx
jne 0x140001ef1
xorps xmm0, xmm0
movups xmmword [rsi + 0x40], xmm0
xor ebx, ebx
mov qword [rsi + 0x50], 0xffffffffffffffff
lea r14, [rsi + 0x60]
lea rcx, [rsi + rbx]
add rcx, 0x60
mov r8d, 0x80
sub r8, rbx
xor edx, edx
call fcn.1400f0f80
mov rcx, rsi
mov rdx, r14
call fcn.1400024c0
mov r8, qword [rsi + 0xe8]
mov rcx, rdi
mov rdx, rsi
call fcn.1400f08e0
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140004290
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x118
mov r14, qword [rsp + 0x180]
mov ebp, 0xc8
sub rbp, r8
sub rbp, r8
xorps xmm0, xmm0
movaps xmmword [rsp + 0x100], xmm0
movaps xmmword [rsp + 0xf0], xmm0
movaps xmmword [rsp + 0xe0], xmm0
movaps xmmword [rsp + 0xd0], xmm0
movaps xmmword [rsp + 0xc0], xmm0
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x110], 0
mov r13, rbp
shr r13, 3
cmp rbp, r14
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rdx
jbe 0x140004390
mov r12, r9
lea r15, [rsp + 0x50]
mov rcx, r15
mov rdx, r12
mov r8, r14
call fcn.1400f08e0
and r14, 0xfffffffffffffff8
xor byte [rsp + r14 + 0x50], 1
xor byte [rsp + r13*8 + 0x4f], 0x80
mov rdx, r15
call fcn.1400046d0
mov rcx, qword [rsp + 0x20]
mov rdx, r15
mov r8, qword [rsp + 0x28]
call fcn.1400f08e0
mov rax, qword [rsp + 0x30]
add rsp, 0x118
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, 0x1ffffffffffffffc
and rbx, rsi
lea rax, [rbx*8]
mov qword [rsp + 0x38], rax
lea r15, [rsp + 0x50]
jmp 0x14000440a
mov r12, r9
mov rdx, r15
call fcn.1400046d0
sub r14, rbp
mov r9, r12
cmp r14, rbp
jb 0x14000433a
cmp rbp, 8
jb 0x1400043f0
cmp rbp, 0x50
setb al
or al, dil
jne 0x140004430
mov rax, qword [rsp + 0x48]
add rax, r9
cmp r15, rax
jae 0x140004458
cmp r9, qword [rsp + 0x40]
jae 0x140004458
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 0x140004440
jmp 0x1400043f3
mov rax, qword [rsp + 0x38]
lea r12, [r9 + rax]
xor eax, eax
nop word cs:[rax + rax]
movups xmm0, xmmword [r9 + rax*8]
movups xmm1, xmmword [r9 + rax*8 + 0x10]
xorps xmm0, xmmword [rsp + rax*8 + 0x50]
xorps xmm1, xmmword [rsp + rax*8 + 0x60]
movaps xmmword [rsp + rax*8 + 0x50], xmm0
movaps xmmword [rsp + rax*8 + 0x60], xmm1
add rax, 4
cmp rbx, rax
jne 0x140004470
mov rax, rbx
mov ecx, ebx
cmp rsi, rbx
je 0x1400043f3
jmp 0x140004437
Function at 0x14003af40
Capabilities:
Terminate thread

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x50
lea rbp, [rsp + 0x50]
movaps xmmword [rbp - 0x10], xmm6
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov rsi, rcx
lea rax, [0x1400f9880]
mov qword [rcx], rax
cmp qword [rcx + 0xa8], 0
je 0x14003b019
mov rcx, rsi
call fcn.14003a620
mov rdi, qword [rsi + 0xa8]
movdqu xmm0, xmmword [rdi + 8]
pshufd xmm0, xmm0, 0x4e
movdqa 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 [0x140137560]
mov rdx, qword [rdi + 8]
test eax, eax
je 0x14003afd1
mov rcx, rdx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x14003aff0
lea rcx, [0x140001bb0]
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 0x14003b00e
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.14007d660
mov qword [rsi + 0xa8], 0
mov rdx, qword [rsi + 0x90]
test rdx, rdx
je 0x14003b079
xorps xmm6, xmm6
lea rdi, [rbp - 0x30]
nop dword [rax]
mov rax, qword [rdx + 0x20]
mov qword [rsi + 0x90], rax
test rax, rax
jne 0x14003b04b
mov qword [rsi + 0x98], 0
mov qword [rdx + 0x20], 0
mov rax, qword [rdx + 0x28]
movaps 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 0x14003b030
lea rcx, [rsi + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [rsi + 0x50]
test rcx, rcx
je 0x14003b092
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsi + 0x48]
test rdi, rdi
je 0x14003b0ad
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.14007d660
mov rcx, qword [rsi + 0x28]
test rcx, rcx
je 0x14003b0bc
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movaps xmm6, xmmword [rbp - 0x10]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005dd50
Capabilities:
Send data
Send data on socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, qword [rsp + 0x90]
mov r10d, dword [rsp + 0x80]
movzx eax, byte [rsp + 0x88]
mov r11, qword [rcx + 8]
lock inc dword [r11 + 0x30]
test al, al
je 0x14005dd9e
mov rbx, qword [rcx + 8]
mov dword [rsi + 0x30], 1
lea rax, [0x140134e30]
mov qword [rsi], rax
mov qword [rsi + 0x10], 0
jmp 0x14005de4a
mov rax, qword [rdx]
cmp rax, 0xffffffffffffffff
je 0x14005de2d
mov dword [rsp + 0x3c], 0
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], r10d
mov qword [rsp + 0x30], 0
lea r10, [rsp + 0x3c]
mov rbx, rcx
mov rcx, rax
mov rdx, r8
mov r8d, r9d
mov r9, r10
call qword [sym.imp.WS2_32.dll_WSASend]
mov edi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmovne ecx, eax
mov rbx, qword [rbx + 8]
test edi, edi
je 0x14005deb8
cmp ecx, 0x3e5
je 0x14005deb8
mov eax, dword [rsp + 0x3c]
mov dword [rsi + 0x30], 1
lea rdx, [0x140134e30]
mov qword [rsi], rdx
mov dword [rsi + 0x10], ecx
mov dword [rsi + 0x14], eax
jmp 0x14005dec9
mov rbx, qword [rcx + 8]
mov dword [rsi + 0x30], 1
lea rax, [0x140134e30]
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 0x14005df2b
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, 0x40
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, 1
xor eax, eax
lock cmpxchg dword [rsi + 0x30], ecx
cmp eax, 1
jne 0x14005df2b
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 0x14005df2b
lea rdi, [rbx + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov qword [rsi + 0x20], 0
lea rax, [rbx + 0x90]
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
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret