joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401604e0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rdx
mov rdx, rcx
mov qword [rsp + 0x28], rbx
xor r8d, r8d
cmp byte [rcx + 5], r8b
je 0x140160513
mov ecx, r8d
nop dword [rax]
lea eax, [rcx - 0x68]
xor byte [rcx + rdx], al
inc rcx
cmp rcx, 4
jb 0x140160500
mov byte [rdx + 5], r8b
lea rcx, [rdx + 4]
mov qword [rbx], r8
mov qword [rbx + 0x10], r8
mov qword [rbx + 0x18], r8
cmp rdx, rcx
jne 0x14016053f
mov qword [rbx + 0x10], r8
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov rax, rbx
add rsp, 0x30
pop rbx
ret
mov r8d, 4
mov rcx, rbx
call fcn.14013c200
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x140160560
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rdx
mov rdx, rcx
mov qword [rsp + 0x28], rbx
xor r8d, r8d
cmp byte [rcx + 9], r8b
je 0x140160593
mov ecx, r8d
nop dword [rax]
lea eax, [rcx - 0x68]
xor byte [rcx + rdx], al
inc rcx
cmp rcx, 8
jb 0x140160580
mov byte [rdx + 9], r8b
lea rcx, [rdx + 8]
mov qword [rbx], r8
mov qword [rbx + 0x10], r8
mov qword [rbx + 0x18], r8
cmp rdx, rcx
jne 0x1401605bf
mov qword [rbx + 0x10], r8
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov rax, rbx
add rsp, 0x30
pop rbx
ret
mov r8d, 8
mov rcx, rbx
call fcn.14013c200
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x1401605e0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rdx
mov rdx, rcx
mov qword [rsp + 0x28], rbx
xor r8d, r8d
cmp byte [rcx + 0x21], r8b
je 0x140160613
mov ecx, r8d
nop dword [rax]
lea eax, [rcx - 0x68]
xor byte [rcx + rdx], al
inc rcx
cmp rcx, 0x20
jb 0x140160600
mov byte [rdx + 0x21], r8b
lea rcx, [rdx + 0x20]
mov qword [rbx], r8
mov qword [rbx + 0x10], r8
mov qword [rbx + 0x18], r8
cmp rdx, rcx
jne 0x14016063f
mov qword [rbx + 0x10], r8
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov rax, rbx
add rsp, 0x30
pop rbx
ret
mov r8d, 0x20
mov rcx, rbx
call fcn.14013c200
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x140160660
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rdx
mov rdx, rcx
mov qword [rsp + 0x28], rbx
xor r8d, r8d
cmp byte [rcx + 0x75], r8b
je 0x140160693
mov ecx, r8d
nop dword [rax]
lea eax, [rcx - 0x68]
xor byte [rcx + rdx], al
inc rcx
cmp rcx, 0x74
jb 0x140160680
mov byte [rdx + 0x75], r8b
lea rcx, [rdx + 0x74]
mov qword [rbx], r8
mov qword [rbx + 0x10], r8
mov qword [rbx + 0x18], r8
cmp rdx, rcx
jne 0x1401606bf
mov qword [rbx + 0x10], r8
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov rax, rbx
add rsp, 0x30
pop rbx
ret
mov r8d, reloc.WS2_32.dll_WSACleanup
mov rcx, rbx
call fcn.14013c200
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x140163ae0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x1f0
mov rbx, r8
mov rbp, rdx
mov rdi, rcx
xor r15d, r15d
mov dword [rcx + 0x48], r9d
mov rsi, qword [rdx + 0x10]
cmp r9d, 1
je 0x140163c6b
lea r14, [rcx + 0x10]
mov rdx, rbx
mov rcx, r14
call fcn.140173b60
mov rcx, rsi
and ecx, 1
je 0x140163b34
cmp rsi, 1
jne 0x140163b39
cmp dword [rbp], r15d
jne 0x140163b39
test rbx, rbx
je 0x140163b72
lea rbx, [rdi + 0x30]
mov rax, qword [rdi + 0x28]
cmp qword [rbx], rax
jae 0x140163b76
test rcx, rcx
je 0x140163b67
cmp rsi, 1
jne 0x140163b76
mov r8, r15
cmp dword [rbp], r15d
sete r8b
test r8, r8
jne 0x140163c8d
jmp 0x140163b76
mov r8d, 1
jmp 0x140163c8d
lea rbx, [rdi + 0x30]
mov rbx, qword [rbx]
mov rax, qword [rdi + 0x60]
mov qword [rsp + 0x50], rax
lea rdx, [rdi + 0x68]
lea rcx, [rsp + 0x58]
call fcn.140157610
movups xmm0, xmmword [rbp]
movaps xmmword [rsp + 0xb0], xmm0
movsd xmm1, qword [rbp + 0x10]
movsd qword [rsp + 0xc0], xmm1
mov qword [rsp + 0xc8], rbx
mov rsi, qword [rdi + 0x50]
mov rbx, qword [rdi + 0x58]
mov ecx, dword [0x1404dc78c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140163bde
nop dword [rax + rax]
cmp qword [rax], rbx
je 0x140163c50
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140163bd0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x50]
mov ecx, 0xc0
call fcn.14016eda0
mov rbx, rax
mov qword [rax + 0x20], r15
lea rax, [0x140176bb0]
mov qword [rbx + 0x28], rax
mov qword [rbx], r15
mov qword [rbx + 8], r15
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], r15
mov dword [rbx + 0x30], r15d
lea rcx, [rbx + 0x38]
lea rdx, [rsp + 0x50]
call fcn.140154fb0
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
mov r8, rbx
lea rdx, [rdi + 0x58]
mov rcx, rsi
call fcn.14017e120
nop
lea rcx, [rsp + 0x58]
call fcn.14015da70
jmp 0x140163cc9
cmp qword [rax + 8], 0
je 0x140163bde
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.14013e2a0
nop
nop
jmp 0x140163c44
test sil, 1
je 0x140163c83
mov r8, r15
cmp rsi, 1
jne 0x140163c89
cmp dword [rdx], r15d
sete r8b
jmp 0x140163c89
mov r8d, 1
lea r14, [rcx + 0x10]
mov rbx, qword [rdi + 8]
shl r8, 0x10
lea rdx, [rsp + 0xd0]
mov rcx, r14
call fcn.140196f50
lea r8, [rbx + 0x68]
lea rdx, [rbx + 8]
mov rcx, qword [rbx]
add rcx, 0x28
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8, rax
call fcn.1401404e0
mov rbx, qword [rsp + 0x238]
add rsp, 0x1f0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140166640
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xa0
mov ecx, 8
call fcn.140382738
mov qword [rsp + 0xb0], rax
test rax, rax
je 0x140166678
xor ecx, ecx
mov qword [rax], rcx
mov rcx, rax
call fcn.1401318e0
mov rdi, rax
xor ebx, ebx
jmp 0x14016667c
xor ebx, ebx
mov edi, ebx
mov dword [rsp + 0xb0], 0xded7e1a8
mov word [rsp + 0xb4], 0x100
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0xb0]
call fcn.1401604e0
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140130a40
mov r8, rax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1401319d0
mov rdx, rax
lea rdi, [0x1404dbbd8]
mov rcx, rdi
call fcn.14015f3c0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x14016670f
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14016670a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140166869
call fcn.140382774
movdqa xmm0, xmmword [0x1403ca6a0]
movdqu xmmword [rsp + 0x70], xmm0
movdqa xmm1, xmmword [0x1403ca630]
movdqu xmmword [rsp + 0x80], xmm1
mov word [rsp + 0x90], 0x100
mov rcx, rbx
nop dword [rax + rax]
lea eax, [rcx - 0x68]
xor byte [rsp + rcx + 0x70], al
inc rcx
cmp rcx, 0x20
jb 0x140166740
mov byte [rsp + 0x91], 0
lea rcx, [rsp + 0x70]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x140166764
cmp qword [0x1404dbbf0], 0x10
cmovae rdi, qword [0x1404dbbd8]
mov r8, qword [0x1404dbbe8]
cmp r8, rax
jne 0x1401667f4
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.1403854f0
test eax, eax
jne 0x1401667f4
mov dword [rsp + 0x20], 0xd6baf0d0
mov dword [rsp + 0x24], 0xc8d1bdc5
mov dword [rsp + 0x28], 0xf0e4ee
mov byte [rsp + 0x2c], 1
nop word [rax + rax]
lea eax, [rbx - 0x68]
xor byte [rsp + rbx + 0x20], al
inc rbx
cmp rbx, 0xb
jb 0x1401667c0
mov byte [rsp + 0x2c], 0
lea rdx, [rsp + 0x20]
lea rcx, [0x1404de8b0]
call fcn.1401399d0
lea rcx, [0x1404de8b0]
call fcn.14014bd30
jmp 0x140166858
mov dword [rsp + 0x20], 0xd6baf0d0
mov dword [rsp + 0x24], 0xd6dcbdc5
mov dword [rsp + 0x28], 0xeae2f4
mov byte [rsp + 0x2c], 1
nop dword [rax]
nop word [rax + rax]
lea eax, [rbx - 0x68]
xor byte [rsp + rbx + 0x20], al
inc rbx
cmp rbx, 0xb
jb 0x140166820
mov byte [rsp + 0x2c], 0
lea rdx, [rsp + 0x20]
lea rcx, [0x1404de8b0]
call fcn.1401399d0
lea rcx, [0x1404de8b0]
call fcn.14014bd30
call fcn.14012fe60
nop
mov rbx, qword [rsp + 0xb8]
add rsp, 0xa0
pop rdi
ret
call fcn.140389824
nop
int3
Function at 0x14016eda0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x30
mov rbx, rcx
mov ecx, dword [0x1404dc774]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14016edce
mov rdx, qword [rax + 8]
jmp 0x14016edd0
xor edx, edx
movzx ecx, byte [rsp + 0x20]
mov r9d, 1
mov r8, rbx
add rsp, 0x30
pop rbx
jmp fcn.14013e0d0

Function at 0x14016edf0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
sub rsp, 0x28
mov rbx, rcx
mov rdi, rdx
mov ecx, dword [0x1404dc774]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor r8d, r8d
test rax, rax
je 0x14016ee20
mov r9, qword [rax + 8]
jmp 0x14016ee23
mov r9, r8
cmp rdi, 0x3fc
ja 0x14016ee47
test r9, r9
je 0x14016ee47
mov rax, r8
cmp qword [r9 + rax*8], 0
je 0x14016ee55
inc r8d
inc rax
cmp rax, 2
jl 0x14016ee34
mov rcx, rbx
add rsp, 0x28
pop rdi
pop rbx
jmp fcn.1403831a0
movzx eax, byte [rbx + rdi]
mov byte [rbx], al
movsxd rax, r8d
mov qword [r9 + rax*8], rbx
add rsp, 0x28
pop rdi
pop rbx
ret

Function at 0x1401708f0
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rax, qword [rdx + 8]
mov rbx, r9
mov rdi, r8
mov rsi, rcx
test rax, rax
je 0x140170970
cmp dword [rax + 8], 0
je 0x140170970
test r8, r8
je 0x140170922
cmp byte [r8], 0
jne 0x140170924
xor edi, edi
test rbx, rbx
je 0x14017092f
cmp byte [r9], 0
jne 0x140170931
xor ebx, ebx
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov r9, qword [rsp + 0x78]
mov rdx, rbx
mov r8, qword [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov edx, eax
lea rcx, [rsp + 0x20]
call fcn.1401a8cb0
mov rcx, qword [rsp + 0x80]
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movsd xmm1, qword [rax + 0x10]
jmp 0x1401709db
movabs rcx, 0x4d54ee85da812030
mov dword [rsp + 0x24], 0
add rcx, qword [0x1404bb158]
lea rbx, [0x1404bb150]
cmp rcx, 1
jbe 0x1401709aa
mov rax, qword [0x1404bb150]
mov edx, 0x3e3
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x1401709ac
mov al, 1
mov rcx, qword [rsp + 0x80]
movzx eax, al
mov dword [rsp + 0x20], 0x3e3
add rax, 2
mov qword [rsp + 0x28], rbx
movups xmm0, xmmword [rsp + 0x20]
mov qword [rsp + 0x30], rax
movsd xmm1, qword [rsp + 0x30]
movups xmmword [rcx], xmm0
mov rbx, qword [rsp + 0x50]
mov rax, rsi
movsd qword [rcx + 0x10], xmm1
movq xmm1, xmm1
movups xmm0, xmmword [rcx]
movups xmmword [rsi], xmm0
movsd qword [rsi + 0x10], xmm1
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140170e20
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 5], 0
je 0x140170e43
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x68]
xor byte [rax + rcx], dl
inc rax
cmp rax, 4
jb 0x140170e30
mov byte [rcx + 5], 0
mov rax, rcx
ret

Function at 0x140170e50
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x23], 0
je 0x140170e73
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x68]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x22
jb 0x140170e60
mov byte [rcx + 0x23], 0
mov rax, rcx
ret
Function at 0x140171910
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x1404c39e8]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor eax, eax
lea rbx, [rcx + 0x28]
test rcx, rcx
mov ecx, dword [0x1404dc774]
cmove rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140171a77
nop word [rax + rax]
cmp qword [rax], rbx
je 0x140171963
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140171950
jmp 0x140171a77
mov rbx, qword [rax + 8]
test rbx, rbx
je 0x140171a77
mov ecx, dword [rbx + 0x50]
test ecx, ecx
je 0x140171a3c
cmp ecx, 1
jne 0x140171a77
lea rdx, [rbx + 0x58]
mov dword [rbx + 0x50], 2
lea rcx, [rsp + 0x20]
call fcn.14038116c
xorps xmm0, xmm0
lea rax, vtable.boost::asio::multiple_exceptions.0
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x58]
movups xmmword [rsp + 0x48], xmm0
call fcn.14038116c
lea rcx, [rsp + 0x20]
call fcn.14038124c
xorps xmm0, xmm0
lea rcx, [rsp + 0x68]
movups xmmword [rsp + 0x68], xmm0
call fcn.1403811c0
lea r8, [0x1404b8f48]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x68]
call fcn.140381194
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x30]
call fcn.14038116c
lea rcx, [rsp + 0x68]
call fcn.14038124c
lea rcx, [rsp + 0x58]
call fcn.14038124c
lea rax, vtable.std::exception.0
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x40], rax
call fcn.140383bd8
lea rdx, [rsp + 0x30]
lea rcx, [rbx + 0x58]
call fcn.140381164
lea rcx, [rsp + 0x30]
jmp 0x140171a72
xorps xmm0, xmm0
mov dword [rbx + 0x50], 1
lea rcx, [rsp + 0x68]
movups xmmword [rsp + 0x68], xmm0
call fcn.1403811c0
lea rcx, [rsp + 0x68]
call fcn.1403811cc
lea rcx, [rbx + 0x58]
lea rdx, [rsp + 0x68]
call fcn.140381164
lea rcx, [rsp + 0x68]
call fcn.14038124c
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140382da0
add rsp, 0x80
pop rbx
ret
Function at 0x140172f60
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1404c39e8]
xor rax, rsp
mov qword [rbp - 0x18], rax
xor r12d, r12d
mov r15, r9
mov r14, rdx
mov rdi, rcx
cmp rcx, 0xffffffffffffffff
je 0x14017314d
mov qword [rsp + 0xc0], rbx
test r8b, r8b
je 0x140172fde
movzx eax, byte [rdx]
test al, 8
je 0x140172fde
or al, 8
mov dword [rbp - 0x20], r12d
mov byte [rdx], al
lea r9, [rbp - 0x20]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x80
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
lea rcx, [rbp - 0x38]
setne dl
call fcn.140181890
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
mov rcx, r15
mov ebx, eax
setne dl
call fcn.140181890
test ebx, ebx
je 0x140173149
mov qword [rsp + 0x78], rsi
movabs rcx, 0x4d54ee85da812030
mov rsi, qword [0x1404bb158]
add rcx, rsi
mov qword [rsp + 0x70], r13
mov dword [rbp - 0x4c], r12d
lea r13, [0x1404bb150]
cmp rcx, 1
jbe 0x140173048
mov rax, qword [0x1404bb150]
mov edx, 0x2733
mov rcx, r13
call qword [rax + 0x30]
mov rsi, qword [0x1404bb158]
jmp 0x14017304a
mov al, 1
movzx eax, al
lea rdx, [rbp - 0x38]
add rax, 2
mov dword [rbp - 0x50], 0x2733
mov qword [rbp - 0x40], rax
mov rcx, r15
movsd xmm1, qword [rbp - 0x40]
mov qword [rbp - 0x48], r13
movups xmm0, xmmword [rbp - 0x50]
movsd qword [rbp - 0x28], xmm1
movups xmmword [rbp - 0x38], xmm0
call fcn.14015fbb0
test al, al
jne 0x1401730e7
movabs rax, 0x4d54ee85da812030
mov dword [rbp - 0x4c], r12d
add rax, rsi
cmp rax, 1
jbe 0x1401730ad
mov rax, qword [0x1404bb150]
mov edx, 0x4d5
mov rcx, r13
call qword [rax + 0x30]
jmp 0x1401730af
mov al, 1
movzx eax, al
lea rdx, [rbp - 0x38]
add rax, 2
mov dword [rbp - 0x50], 0x4d5
mov qword [rbp - 0x40], rax
mov rcx, r15
movsd xmm1, qword [rbp - 0x40]
mov qword [rbp - 0x48], r13
movups xmm0, xmmword [rbp - 0x50]
movsd qword [rbp - 0x28], xmm1
movups xmmword [rbp - 0x38], xmm0
call fcn.14015fbb0
test al, al
je 0x140173119
lea r8, [rbp - 0x20]
mov dword [rbp - 0x20], r12d
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [r14], 0xfc
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
mov rcx, r15
mov ebx, eax
setne dl
call fcn.140181890
mov rsi, qword [rsp + 0x78]
mov eax, ebx
mov r13, qword [rsp + 0x70]
mov rbx, qword [rsp + 0xc0]
mov rcx, qword [rbp - 0x18]
xor rcx, rsp
call fcn.140382da0
add rsp, 0x80
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov eax, ebx
jmp 0x140173125
mov eax, r12d
jmp 0x14017312d
Function at 0x1401732b0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
cmp qword [rdx + 0x10], 1
mov rbx, rdx
mov rdi, rcx
je 0x1401732dc
mov edx, dword [rdx]
jmp 0x14017330f
mov rcx, qword [rdx + 8]
movabs rax, 0x4800144005b3
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0x14
imul rax, rax, 0x1ffff7
sub rcx, rax
imul edx, ecx, 0x3e8
add edx, dword [rbx]
xor r14d, r14d
lea rsi, [0x1404bb150]
movabs r15, 0x4d54ee85da812030
sub edx, 0x79
je 0x1401733fa
sub edx, 0x450
je 0x1401733c0
sub edx, 6
je 0x140173386
cmp edx, 1
jne 0x14017344b
mov rcx, qword [0x1404bb158]
add rcx, r15
mov dword [rbp - 0x1c], r14d
cmp rcx, 1
jbe 0x140173378
mov rax, qword [0x1404bb150]
mov edx, 0x2751
mov rcx, rsi
call qword [rax + 0x30]
mov dword [rbp - 0x20], 0x2751
jmp 0x14017342b
mov al, 1
mov dword [rbp - 0x20], 0x2751
jmp 0x14017342b
mov rcx, qword [0x1404bb158]
add rcx, r15
mov dword [rbp - 0x1c], r14d
cmp rcx, 1
jbe 0x1401733b5
mov rax, qword [0x1404bb150]
mov edx, 0x2743
mov rcx, rsi
call qword [rax + 0x30]
mov dword [rbp - 0x20], 0x2743
jmp 0x14017342b
mov al, 1
mov dword [rbp - 0x20], 0x2743
jmp 0x14017342b
mov rcx, qword [0x1404bb158]
add rcx, r15
mov dword [rbp - 0x1c], r14d
cmp rcx, 1
jbe 0x1401733ef
mov rax, qword [0x1404bb150]
mov edx, 0x274d
mov rcx, rsi
call qword [rax + 0x30]
mov dword [rbp - 0x20], 0x274d
jmp 0x14017342b
mov al, 1
mov dword [rbp - 0x20], 0x274d
jmp 0x14017342b
mov rcx, qword [0x1404bb158]
add rcx, r15
mov dword [rbp - 0x1c], r14d
cmp rcx, 1
jbe 0x140173422
mov rax, qword [0x1404bb150]
mov edx, 0x274c
mov rcx, rsi
call qword [rax + 0x30]
jmp 0x140173424
mov al, 1
mov dword [rbp - 0x20], 0x274c
movzx eax, al
mov qword [rbp - 0x18], rsi
add rax, 2
movups xmm0, xmmword [rbp - 0x20]
mov qword [rbp - 0x10], rax
movsd xmm1, qword [rbp - 0x10]
movups xmmword [rbx], xmm0
movsd qword [rbx + 0x10], xmm1
mov rax, qword [rbx + 0x10]
test al, 1
je 0x140173466
cmp rax, 1
jne 0x1401734e8
cmp dword [rbx], r14d
jne 0x1401734e8
cmp rdi, 0xffffffffffffffff
jne 0x1401734bf
mov rcx, qword [0x1404bb158]
add rcx, r15
mov dword [rbp - 0x1c], r14d
cmp rcx, 1
jbe 0x140173494
mov rax, qword [0x1404bb150]
mov edx, 0x2719
mov rcx, rsi
call qword [rax + 0x30]
jmp 0x140173496
mov al, 1
movzx eax, al
mov dword [rbp - 0x20], 0x2719
add rax, 2
mov qword [rbp - 0x18], rsi
movups xmm0, xmmword [rbp - 0x20]
mov qword [rbp - 0x10], rax
movsd xmm1, qword [rbp - 0x10]
movups xmmword [rbx], xmm0
movsd qword [rbx + 0x10], xmm1
jmp 0x1401734e8
xor r9d, r9d
mov dword [rsp + 0x20], r14d
mov edx, 0xffff
mov r8d, 0x7010
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
mov rcx, rbx
setne dl
call fcn.140181890
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rbp
ret
Function at 0x140173ab0
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, r9
cmp rcx, 0xffffffffffffffff
jne 0x140173b3b
movabs rcx, 0x4d54ee85da812030
mov dword [rsp + 0x24], 0
add rcx, qword [0x1404bb158]
lea rbx, [0x1404bb150]
cmp rcx, 1
jbe 0x140173afd
mov rax, qword [0x1404bb150]
mov edx, 0x2719
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x140173aff
mov al, 1
movzx eax, al
add rax, 2
mov dword [rsp + 0x20], 0x2719
mov qword [rsp + 0x30], rax
mov eax, 0xffffffff
movsd xmm1, qword [rsp + 0x30]
mov qword [rsp + 0x28], rbx
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
movsd qword [rdi + 0x10], xmm1
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
mov rcx, rdi
mov ebx, eax
setne dl
call fcn.140181890
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140176340
Capabilities:
Get thread local storage value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0xc0
mov rdi, r8
mov rsi, rdx
mov qword [rsp + 0x28], r8
mov rbp, qword [rcx + 0x158]
mov rbx, qword [rcx + 0x160]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r14d, r14d
mov qword [rsp + 0x68], r14
mov rcx, qword [r8 + 0x38]
test rcx, rcx
je 0x140176391
mov rax, qword [rcx]
lea rdx, [rsp + 0x30]
call qword [rax]
mov qword [rsp + 0x68], rax
movups xmm0, xmmword [rbx]
movaps xmmword [rsp + 0x70], xmm0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x80]
call fcn.1401543d0
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1401763cb
mov rax, qword [rcx]
lea rdx, [rsp + 0x30]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rsp + 0x68], r14
mov ecx, dword [0x1404dc78c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
lea rdx, [rsp + 0x80]
mov ecx, 0x90
call fcn.14016eda0
mov rbx, rax
mov qword [rax + 0x20], r14
lea rax, [0x140179550]
mov qword [rbx + 0x28], rax
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r14
mov dword [rbx + 0x30], r14d
movaps xmm0, xmmword [rsp + 0x70]
movups xmmword [rbx + 0x38], xmm0
lea rcx, [rbx + 0x48]
lea rdx, [rsp + 0x80]
call fcn.1401543d0
mov rcx, qword [rbp + 0x10]
lock inc dword [rcx + 0x30]
mov rdx, rbx
call fcn.140196480
nop
mov rcx, qword [rsp + 0xb8]
test rcx, rcx
je 0x14017645a
mov rax, qword [rcx]
lea rdx, [rsp + 0x80]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov dword [rsi], r14d
lea rax, [0x1404bb338]
mov qword [rsi + 8], rax
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x140176482
mov r8, qword [rcx]
cmp rcx, rdi
setne dl
call qword [r8 + 0x20]
mov qword [rdi + 0x38], r14
mov rax, rsi
add rsp, 0xc0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14018d960
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1404c39e8]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword [rcx + 0x10]
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rax, qword [rcx + 8]
mov rbx, rcx
mov r9d, 0xffffffff
mov qword [rsp + 0x28], rax
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lock xadd dword [0x1404dc778], eax
mov rcx, qword [rbx + 8]
test eax, eax
je 0x14018d9d9
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140382da0
add rsp, 0x40
pop rbx
ret
mov rdx, rcx
xor r8d, r8d
lea rcx, [fcn.1401361f0]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rbx + 8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140382da0
add rsp, 0x40
pop rbx
ret

Function at 0x140192a00
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x18
mov rax, qword [0x1404c39e8]
xor rax, rsp
mov qword [rsp + 8], rax
cmp qword [r8 + 0x18], 0x10
mov r10, r8
mov dword [rsp], r9d
jb 0x140192a24
mov r10, qword [r8]
cmp qword [rdx + 0x18], 0x10
mov rax, qword [rdx + 0x10]
jb 0x140192a37
add rax, qword [rdx]
mov rdx, qword [rdx]
jmp 0x140192a3a
add rax, rdx
xor r8d, r8d
cmp rdx, rax
je 0x140192a6a
sub r10, rdx
nop word [rax + rax]
movzx ecx, byte [rsp + r8]
xor cl, byte [rdx]
inc r8
mov byte [r10 + rdx], cl
and r8d, 3
inc rdx
cmp rdx, rax
jne 0x140192a50
mov rcx, qword [rsp + 8]
xor rcx, rsp
call fcn.140382da0
add rsp, 0x18
ret