joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000e9a0
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, vtable.boost::asio::detail::win_iocp_io_context.0
mov qword [rcx], rax
cmp qword [rcx + 0xa8], 0
je 0x14000ea79
mov rcx, rsi
call fcn.14000e090
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 [0x140164a88]
mov rdx, qword [rdi + 8]
test eax, eax
je 0x14000ea31
mov rcx, rdx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x14000ea50
lea rcx, [0x14000eb70]
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 0x14000ea6e
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.1400551fc
mov qword [rsi + 0xa8], 0
mov rdx, qword [rsi + 0x90]
test rdx, rdx
je 0x14000ead9
xorps xmm6, xmm6
lea rdi, [rbp - 0x30]
nop dword [rax]
mov rax, qword [rdx + 0x20]
mov qword [rsi + 0x90], rax
test rax, rax
jne 0x14000eaab
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 0x14000ea90
lea rcx, [rsi + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [rsi + 0x50]
test rcx, rcx
je 0x14000eaf2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsi + 0x48]
test rdi, rdi
je 0x14000eb0d
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.1400551fc
mov rcx, qword [rsi + 0x28]
test rcx, rcx
je 0x14000eb1c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movaps xmm6, xmmword [rbp - 0x10]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x140013030
Capabilities:
Terminate thread

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov rax, qword [0x140162800]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rcx, qword [rcx + 0x30]
test rcx, rcx
je 0x140013124
lock dec dword [rcx + 0x30]
jne 0x140013060
call fcn.14000e090
mov rcx, qword [rsi + 0x30]
call fcn.14000e090
mov rdi, qword [rsi + 0x38]
test rdi, rdi
je 0x140013109
movdqu xmm0, xmmword [rdi + 8]
pshufd xmm0, xmm0, 0x4e
movdqa xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
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 [0x140164a88]
mov rdx, qword [rdi + 8]
test eax, eax
je 0x1400130c7
mov rcx, rdx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x1400130e6
lea rcx, [0x14000eb70]
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 + 0x38]
test rdi, rdi
je 0x140013101
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.1400551fc
mov qword [rsi + 0x38], 0
mov rcx, qword [rsi + 0x30]
test rcx, rcx
je 0x14001311c
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rsi + 0x30], 0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140055270
nop
add rsp, 0x38
pop rdi
pop rsi
ret

Function at 0x140013140
Capabilities:
Terminate thread

Disassembly:
add rcx, 0x28
jmp 0x140013140
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov rax, qword [0x140162800]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp qword [rcx + 0x38], 0
je 0x1400131c5
test edx, edx
jne 0x140013216
mov rcx, qword [rsi + 0x30]
call fcn.14000e090
mov rdi, qword [rsi + 0x38]
movdqu xmm0, xmmword [rdi + 8]
pshufd xmm0, xmm0, 0x4e
movdqa xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
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 [0x140164a88]
mov rdx, qword [rdi + 8]
test eax, eax
je 0x1400131d4
mov rcx, rdx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x1400131f3
test edx, edx
je 0x140013216
mov rax, qword [rsi + 0x30]
xor ecx, ecx
xchg dword [rax + 0x34], ecx
jmp 0x140013216
lea rcx, [0x14000eb70]
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 + 0x38]
test rdi, rdi
je 0x14001320e
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.1400551fc
mov qword [rsi + 0x38], 0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140055270
nop
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x140019cf0
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rsi
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov qword [rbp - 0x20], rdx
mov rax, qword [rcx]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x28], rcx
mov rax, qword [rcx + 8]
mov rax, qword [rax]
mov rsi, qword [rax + 0x30]
test rsi, rsi
je 0x140019d47
cmp byte [rsi + 0x10], 0
je 0x140019d47
mov rdx, qword [rsi]
mov rcx, qword [rdx + 0x58]
lea r8, [rsi + 0x18]
add rdx, 0x28
mov r9, 0xffffffffffffffff
call fcn.140012040
mov byte [rsi + 0x10], 0
mov rsi, qword [rbp - 0x28]
add rsi, 8
mov rax, qword [rsi]
mov rax, qword [rax]
mov rcx, qword [rax + 0x10]
lea rdx, [rbp - 8]
call fcn.140018db0
cmp qword [rbp - 8], 0
je 0x140019e48
mov rdx, qword [rbp - 0x20]
mov rax, qword [rdx + 0x10]
test al, 1
je 0x140019d8c
cmp rax, 1
jne 0x140019e1a
cmp dword [rdx], 0
jne 0x140019e1a
mov dword [rbp - 0xc], 1
mov rax, qword [rsi]
mov rax, qword [rax]
mov rax, qword [rax + 0x20]
mov rcx, qword [rax + 8]
cmp rcx, 0xffffffffffffffff
je 0x140019dda
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0xc]
mov edx, 6
mov r8d, 1
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x140019e0c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [0x14015f250]
shr rcx, 1
jmp 0x140019de9
mov rcx, qword [0x14015f250]
shr rcx, 1
mov eax, 0x2719
movabs rdx, 0x595588bd12bf6fe8
cmp rcx, rdx
je 0x140019e0c
mov r8, qword [0x14015f248]
lea rcx, [0x14015f248]
mov edx, eax
call qword [r8 + 0x30]
mov rcx, qword [rbp - 0x18]
mov rdx, rsi
call fcn.140012aa0
jmp 0x140019e2c
mov rax, qword [rsi]
mov rcx, qword [rax + 0x60]
test rcx, rcx
je 0x140019e50
mov rax, qword [rcx]
call qword [rax + select]
mov rsi, qword [rbp - 8]
test rsi, rsi
je 0x140019e48
mov rcx, qword [rsi]
call fcn.140018f40
lock dec dword [rax]
mov rcx, rsi
call fcn.1400551fc
nop
add rsp, 0x58
pop rsi
pop rbp
ret
call fcn.140057a08
int3
Function at 0x14001b550
Capabilities:
Set socket configuration

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
mov r8, qword [rdx + 0x10]
mov r9d, dword [rdx]
mov eax, r9d
cmp r8, 1
jne 0x14001b5a1
mov rcx, qword [rsi + 8]
movabs rdx, 0x4800144005b3
mov rax, rcx
mul rdx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0x14
imul eax, eax, 0x1ffff7
sub ecx, eax
imul eax, ecx, 0x3e8
add eax, r9d
cmp eax, 0x4ce
jg 0x14001b603
cmp eax, 0x79
je 0x14001b660
cmp eax, 0x4c9
jne 0x14001b720
mov rax, qword [0x14015f250]
shr rax, 1
movabs rcx, 0x595588bd12bf6fe8
cmp rax, rcx
je 0x14001b5f3
mov rax, qword [0x14015f248]
lea rcx, [0x14015f248]
mov edx, 0x274d
call qword [rax + 0x30]
test al, al
je 0x14001b6d6
mov r8d, 3
mov eax, 0x274d
jmp 0x14001b708
cmp eax, 0x4cf
je 0x14001b69b
cmp eax, 0x4d0
jne 0x14001b720
mov rax, qword [0x14015f250]
shr rax, 1
movabs rcx, 0x595588bd12bf6fe8
cmp rax, rcx
je 0x14001b650
mov rax, qword [0x14015f248]
lea rcx, [0x14015f248]
mov edx, 0x2751
call qword [rax + 0x30]
test al, al
je 0x14001b6e3
mov r8d, 3
mov eax, 0x2751
jmp 0x14001b708
mov rax, qword [0x14015f250]
shr rax, 1
movabs rcx, 0x595588bd12bf6fe8
cmp rax, rcx
je 0x14001b693
mov rax, qword [0x14015f248]
lea rcx, [0x14015f248]
mov edx, 0x274c
call qword [rax + 0x30]
test al, al
je 0x14001b6f0
mov r8d, 3
jmp 0x14001b6f6
mov rax, qword [0x14015f250]
shr rax, 1
movabs rcx, 0x595588bd12bf6fe8
cmp rax, rcx
je 0x14001b6ce
mov rax, qword [0x14015f248]
lea rcx, [0x14015f248]
mov edx, 0x2743
call qword [rax + 0x30]
test al, al
je 0x14001b6fd
mov r8d, 3
jmp 0x14001b703
mov r8d, 2
mov eax, 0x274d
jmp 0x14001b708
mov r8d, 2
mov eax, 0x2751
jmp 0x14001b708
mov r8d, 2
mov eax, 0x274c
jmp 0x14001b708
mov r8d, 2
mov eax, 0x2743
mov qword [rsi], rax
lea rax, [0x14015f248]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], r8
mov r9d, 0x274c
test r8b, 1
je 0x14001b739
cmp r8, 1
jne 0x14001b821
test r9d, r9d
jne 0x14001b821
cmp rdi, 0xffffffffffffffff
je 0x14001b78a
mov dword [rsp + 0x20], 0
mov rcx, rdi
mov edx, 0xffff
mov r8d, 0x7010
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x14001b7df
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov rax, qword [0x14015f250]
shr rax, 1
movabs rcx, 0x595588bd12bf6fe8
cmp rax, rcx
jne 0x14001b7ef
test edi, edi
setne al
jmp 0x14001b802
mov rax, qword [0x14015f250]
shr rax, 1
movabs rcx, 0x595588bd12bf6fe8
cmp rax, rcx
je 0x14001b7c2
mov rax, qword [0x14015f248]
lea rcx, [0x14015f248]
mov edx, 0x2719
call qword [rax + 0x30]
mov ecx, 2
test al, al
je 0x14001b7c7
mov ecx, 3
mov qword [rsi], 0x2719
lea rax, [0x14015f248]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rcx
jmp 0x14001b821
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
jmp 0x14001b821
mov rax, qword [0x14015f248]
lea rcx, [0x14015f248]
mov edx, edi
call qword [rax + 0x30]
movzx eax, al
or rax, 2
mov dword [rsi], edi
mov dword [rsi + 4], 0
lea rcx, [0x14015f248]
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x14001c150
Capabilities:
Get socket status

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x450
mov rsi, rdx
mov rbx, rcx
mov qword [rsp + 0x250], rcx
mov dword [rsp + 0x248], 1
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x38], 0
inc ecx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x248]
lea r9, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
mov edi, eax
test eax, eax
je 0x14001c2ea
mov dword [rsp + 0x30], 0
cmp rbx, 0xffffffffffffffff
je 0x14001c220
mov dword [rsp + 0x34], 4
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov rcx, rbx
mov edx, 0xffff
mov r8d, 0x1007
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
je 0x14001c266
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov rax, qword [0x14015f250]
shr rax, 1
movabs rcx, 0x595588bd12bf6fe8
cmp rax, rcx
jne 0x14001c2b8
test ebx, ebx
setne al
jmp 0x14001c2cb
mov rax, qword [0x14015f250]
shr rax, 1
movabs rcx, 0x595588bd12bf6fe8
cmp rax, rcx
je 0x14001c258
mov rax, qword [0x14015f248]
lea rcx, [0x14015f248]
mov edx, 0x2719
call qword [rax + 0x30]
mov ecx, 2
test al, al
je 0x14001c25d
mov ecx, 3
mov qword [rsi], 0x2719
jmp 0x14001c2db
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
mov ebx, dword [rsp + 0x30]
test ebx, ebx
je 0x14001c2ea
mov rax, qword [0x14015f250]
shr rax, 1
movabs rcx, 0x595588bd12bf6fe8
cmp rax, rcx
je 0x14001c2b1
mov rax, qword [0x14015f248]
lea rcx, [0x14015f248]
mov edx, ebx
call qword [rax + 0x30]
mov ecx, 2
test al, al
je 0x14001c2d2
mov ecx, 3
jmp 0x14001c2d2
mov rax, qword [0x14015f248]
lea rcx, [0x14015f248]
mov edx, ebx
call qword [rax + 0x30]
movzx ecx, al
or rcx, 2
mov dword [rsi], ebx
mov dword [rsi + 4], 0
lea rax, [0x14015f248]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rcx
test edi, edi
setne al
add rsp, 0x450
pop rbx
pop rdi
pop rsi
ret
Function at 0x14001c8a0
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp], 0xfffffffffffffffe
mov rbx, r8
mov r14d, edx
mov rdi, rcx
mov rsi, qword [rbp + 0x60]
lea r15, [rcx + 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [rdi + 0x1e8], 0
je 0x14001c953
mov rbx, qword [rdi + 0x28]
lock inc dword [rbx + 0x30]
mov dword [rsi + 0x30], 1
mov rcx, qword [rbx + 0x28]
xor edx, edx
xor r8d, r8d
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x14001ca43
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
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x14001ca43
mov qword [rbp - 0x10], r15
movsxd rax, r14d
imul rax, rax, 0x38
lea rcx, [rdi + rax]
add rcx, 0x68
mov rdx, rbx
mov r8, rsi
call fcn.14001ca90
mov rcx, qword [rdi + 0x28]
lock inc dword [rcx + 0x30]
test al, al
mov r15, qword [rbp - 0x10]
je 0x14001ca43
mov byte [rbp - 1], 0
lea rax, [rbp - 1]
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x20], 1
mov rcx, qword [rdi + 0x60]
mov dword [rbp - 8], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x20], 0
lea rdx, [rbp - 0x20]
lea r9, [rbp - 8]
mov r8d, 1
call qword [sym.imp.WS2_32.dll_WSASend]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov rax, qword [0x14015f250]
shr rax, 1
movabs rdi, 0x595588bd12bf6fe8
cmp rax, rdi
je 0x14001c9fb
mov rax, qword [0x14015f248]
lea rcx, [0x14015f248]
mov edx, esi
call qword [rax + 0x30]
cmp esi, 0x4d2
je 0x14001ca1e
cmp esi, 0x40
jne 0x14001ca43
mov rax, qword [0x14015f250]
shr rax, 1
mov edx, 0x2746
cmp rax, rdi
jne 0x14001ca32
jmp 0x14001ca43
mov rax, qword [0x14015f250]
shr rax, 1
mov edx, 0x274d
cmp rax, rdi
je 0x14001ca43
mov rax, qword [0x14015f248]
lea rcx, [0x14015f248]
call qword [rax + 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
Function at 0x1400220b0
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 0x140022102
mov rbx, qword [rdi + 8]
mov dword [rsi + 0x30], 1
lea rax, [0x14015f248]
mov qword [rsi], rax
mov qword [rsi + 0x10], 0
jmp 0x1400221a3
mov rcx, qword [rdx]
cmp rcx, 0xffffffffffffffff
je 0x140022186
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 0x140022213
cmp ecx, 0x3e5
je 0x140022213
mov eax, dword [rsp + 0x44]
mov dword [rsi + 0x30], 1
lea rdx, [0x14015f248]
mov qword [rsi], rdx
mov dword [rsi + 0x10], ecx
mov dword [rsi + 0x14], eax
jmp 0x140022224
mov rbx, qword [rdi + 8]
mov dword [rsi + 0x30], 1
lea rax, [0x14015f248]
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 0x140022287
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 0x140022287
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 0x140022287
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 0x140024620
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 0x140024672
mov rbx, qword [rdi + 8]
mov dword [rsi + 0x30], 1
lea rax, [0x14015f248]
mov qword [rsi], rax
mov qword [rsi + 0x10], 0
jmp 0x14002472b
mov rcx, qword [rdx]
cmp rcx, 0xffffffffffffffff
je 0x14002470e
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 0x14002479b
cmp eax, 0x3e5
je 0x14002479b
mov ecx, dword [rsp + 0x40]
mov dword [rsi + 0x30], 1
lea rdx, [0x14015f248]
mov qword [rsi], rdx
mov dword [rsi + 0x10], eax
mov dword [rsi + 0x14], ecx
jmp 0x1400247ac
mov rbx, qword [rdi + 8]
mov dword [rsi + 0x30], 1
lea rax, [0x14015f248]
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 0x14002480f
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 0x14002480f
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 0x14002480f
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 0x140026360
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, r8
mov rbx, rcx
mov r15, qword [r8 + 0x10]
cmp qword [r8 + 0x18], 0x10
mov r13, r8
jb 0x140026387
mov r13, qword [rdi]
test r15, r15
mov qword [rsp + 0x20], rdx
je 0x1400263db
xor ebp, ebp
lea r14, [rsp + 0x2c]
mov esi, 0x9e3779b9
xor r12d, r12d
movsx ecx, byte [r13 + rbp]
call fcn.1400e5d90
mov dword [rsp + 0x2c], eax
mov rcx, r14
call fcn.140028a10
mov rcx, r12
shl rcx, 6
mov rdx, r12
shr rdx, 2
add rdx, rcx
add rdx, rax
add rdx, rsi
xor r12, rdx
inc rbp
cmp r15, rbp
jne 0x1400263a0
jmp 0x1400263de
xor r12d, r12d
and r12, qword [rbx + 0x30]
mov rdx, qword [rbx + 8]
mov rax, qword [rbx + 0x18]
mov rcx, r12
shl rcx, 4
mov r14, qword [rax + rcx]
cmp r14, rdx
je 0x140026495
add r12, r12
shl r12, 3
or r12, 8
cmp qword [rdi + 0x18], 0x10
mov r13, rdi
jb 0x140026416
mov r13, qword [rdi]
mov qword [rsp + 0x30], rdx
mov r12, qword [rax + r12]
mov rbp, qword [rdi + 0x10]
cmp qword [r14 + 0x20], rbp
jne 0x140026480
cmp qword [r14 + 0x28], 0x10
jb 0x140026440
mov rsi, qword [r14 + 0x10]
jmp 0x140026444
lea rsi, [r14 + 0x10]
test rbp, rbp
je 0x140026495
xor r15d, r15d
nop dword [rax]
movsx edi, byte [r13 + r15]
movsx ecx, byte [rsi + r15]
call fcn.1400e5d90
mov ebx, eax
mov ecx, edi
call fcn.1400e5d90
cmp ebx, eax
jne 0x140026480
inc r15
cmp rbp, r15
jne 0x140026450
jmp 0x140026495
cmp r14, r12
je 0x140026490
mov r14, qword [r14]
cmp qword [r14 + 0x20], rbp
je 0x140026429
jmp 0x140026480
mov r14, qword [rsp + 0x30]
mov rax, qword [rsp + 0x20]
mov qword [rax], r14
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140028a10
Capabilities:
Hash data using fnv

Disassembly:
mov rdx, rcx
movabs rcx, 0xcbf29ce484222325
jmp 0x140028a30
movzx eax, byte [rdx]
xor rax, rcx
movabs rcx, 0x100000001b3
imul rax, rcx
movzx r8d, byte [rdx + 1]
xor r8, rax
imul r8, rcx
movzx r9d, byte [rdx + 2]
xor r9, r8
imul r9, rcx
movzx eax, byte [rdx + 3]
xor rax, r9
imul rax, rcx
ret
Function at 0x140033570
Capabilities:
Hash data using fnv

Disassembly:
mov rdx, rcx
movabs rcx, 0xcbf29ce484222325
jmp 0x140033590
movzx eax, byte [rdx]
xor rax, rcx
movabs rcx, 0x100000001b3
imul rax, rcx
movzx r8d, byte [rdx + 1]
xor r8, rax
imul r8, rcx
movzx eax, byte [rdx + 2]
xor rax, r8
imul rax, rcx
movzx r8d, byte [rdx + 3]
xor r8, rax
imul r8, rcx
movzx eax, byte [rdx + 4]
xor rax, r8
imul rax, rcx
movzx r8d, byte [rdx + 5]
xor r8, rax
imul r8, rcx
movzx r9d, byte [rdx + 6]
xor r9, r8
imul r9, rcx
movzx eax, byte [rdx + 7]
xor rax, r9
imul rax, rcx
ret

Function at 0x14003c180
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, r8
mov rbx, rcx
mov r15, qword [r8 + 0x10]
cmp qword [r8 + 0x18], 0x10
mov r13, r8
jb 0x14003c1a7
mov r13, qword [rdi]
test r15, r15
mov qword [rsp + 0x20], rdx
je 0x14003c1fb
xor ebp, ebp
lea r14, [rsp + 0x2c]
mov esi, 0x9e3779b9
xor r12d, r12d
movsx ecx, byte [r13 + rbp]
call fcn.1400e5d90
mov dword [rsp + 0x2c], eax
mov rcx, r14
call fcn.140028a10
mov rcx, r12
shl rcx, 6
mov rdx, r12
shr rdx, 2
add rdx, rcx
add rdx, rax
add rdx, rsi
xor r12, rdx
inc rbp
cmp r15, rbp
jne 0x14003c1c0
jmp 0x14003c1fe
xor r12d, r12d
and r12, qword [rbx + 0x30]
mov rdx, qword [rbx + 8]
mov rax, qword [rbx + 0x18]
mov rcx, r12
shl rcx, 4
mov r14, qword [rax + rcx]
cmp r14, rdx
je 0x14003c2b5
add r12, r12
shl r12, 3
or r12, 8
cmp qword [rdi + 0x18], 0x10
mov r13, rdi
jb 0x14003c236
mov r13, qword [rdi]
mov qword [rsp + 0x30], rdx
mov r12, qword [rax + r12]
mov rbp, qword [rdi + 0x10]
cmp qword [r14 + 0x20], rbp
jne 0x14003c2a0
cmp qword [r14 + 0x28], 0x10
jb 0x14003c260
mov rsi, qword [r14 + 0x10]
jmp 0x14003c264
lea rsi, [r14 + 0x10]
test rbp, rbp
je 0x14003c2b5
xor r15d, r15d
nop dword [rax]
movsx edi, byte [r13 + r15]
movsx ecx, byte [rsi + r15]
call fcn.1400e5d90
mov ebx, eax
mov ecx, edi
call fcn.1400e5d90
cmp ebx, eax
jne 0x14003c2a0
inc r15
cmp rbp, r15
jne 0x14003c270
jmp 0x14003c2b5
cmp r14, r12
je 0x14003c2b0
mov r14, qword [r14]
cmp qword [r14 + 0x20], rbp
je 0x14003c249
jmp 0x14003c2a0
mov r14, qword [rsp + 0x30]
mov rax, qword [rsp + 0x20]
mov qword [rax], r14
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret