joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400152d0
Capabilities:
Encrypt data using curve25519

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x170
mov rax, qword [0x1402e0068]
xor rax, rsp
mov qword [rsp + 0x168], rax
mov rax, qword [rdx]
mov qword [rsp + 0x70], rcx
lea rcx, [r11 - 0x60]
mov qword [rcx], rax
mov rax, qword [rdx + 8]
mov qword [rcx + 8], rax
mov rax, qword [rdx + 0x10]
mov qword [rcx + 0x10], rax
mov rax, qword [rdx + 0x18]
lea rdx, [r11 - 0x60]
mov qword [rcx + 0x18], rax
mov rax, qword [r11 - 0x48]
and byte [r11 - 0x60], 0xf8
shr rax, 0x38
lea rcx, [r11 - 0x128]
and al, 0x3f
or al, 0x40
mov byte [r11 - 0x41], al
call fcn.140014260
mov ecx, dword [rsp + 0xd0]
mov r14d, dword [rsp + 0xb0]
mov r12d, dword [rsp + 0xb4]
mov eax, dword [rsp + 0xa8]
mov r15d, dword [rsp + 0xe0]
mov esi, dword [rsp + 0xb8]
mov r13d, dword [rsp + 0xe4]
mov ebx, dword [rsp + 0xbc]
mov ebp, dword [rsp + 0xe8]
mov r10d, dword [rsp + 0xc0]
mov edi, dword [rsp + 0xec]
mov r11d, dword [rsp + 0xf0]
mov r8d, dword [rsp + 0xc8]
mov r9d, dword [rsp + 0xf4]
mov edx, dword [rsp + 0xcc]
add eax, ecx
mov ecx, dword [rsp + 0xd4]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0xac]
add eax, ecx
mov ecx, dword [rsp + 0xc4]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0xd8]
add eax, r14d
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0xdc]
add eax, r12d
mov dword [rsp + 0x2c], eax
lea eax, [r15 + rsi]
sub r15d, esi
mov dword [rsp + 0x30], eax
lea eax, [r13 + rbx]
sub r13d, ebx
mov dword [rsp + 0x34], eax
lea eax, [rbp + r10]
sub ebp, r10d
mov dword [rsp + 0x38], eax
lea eax, [rdi + rcx]
sub edi, ecx
mov dword [rsp + 0x3c], eax
lea eax, [r11 + r8]
mov dword [rsp + 0x58], r15d
mov dword [rsp + 0x40], eax
lea eax, [r9 + rdx]
mov dword [rsp + 0x5c], r13d
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0xd0]
mov dword [rsp + 0x60], ebp
sub eax, dword [rsp + 0xa8]
mov dword [rsp + 0x64], edi
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0xd4]
sub eax, dword [rsp + 0xac]
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0xd8]
sub eax, r14d
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0xdc]
sub eax, r12d
sub r11d, r8d
mov dword [rsp + 0x68], r11d
mov dword [rsp + 0x54], eax
sub r9d, edx
lea rcx, [rsp + 0x120]
lea rdx, [rsp + 0x48]
mov dword [rsp + 0x6c], r9d
call fcn.140012f40
lea r8, [rsp + 0x120]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x20]
call fcn.140012040
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x20]
call fcn.140011da0
lea rcx, [rsp + 0x148]
mov edx, 0x20
call fcn.14013ab40
mov rcx, qword [rsp + 0x168]
xor rcx, rsp
call fcn.1401e6720
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140015a90
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rdi
push r12
push r13
sub rsp, 0x20
mov r13, qword [rcx + 0x160]
xor r12d, r12d
mov rbp, r8
mov rdi, rdx
mov rbx, rcx
mov qword [rcx + 0x30], r12
mov qword [rcx + 0x38], r12
mov dword [rcx + 0x174], r12d
mov dword [rcx + 0x170], r12d
cmp r8, 0xc
jne 0x140015af0
mov rax, qword [rdx]
lea edi, [r8 - 0xb]
mov qword [rcx], rax
mov eax, dword [rdx + 8]
mov byte [rcx + 0xc], r12b
mov byte [rcx + 0xd], r12b
mov byte [rcx + 0xe], r12b
mov byte [rcx + 0xf], 1
mov dword [rcx + 8], eax
jmp 0x140015bdf
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x68], r15
mov qword [rcx + 0x40], r12
mov r15, r8
mov qword [rcx + 0x48], r12
cmp r8, 0x10
jb 0x140015b74
mov r12, r8
mov qword [rsp + 0x60], r14
shr r12, 4
mov rax, r12
imul rax, rax, 0xfffffffffffffff0
add rbp, rax
lea rcx, [rbx + 0x41]
lea rdx, [rdi + 1]
mov r8d, 4
nop
movzx eax, byte [rdx - 1]
add rcx, 4
add rdx, 4
xor byte [rcx - 5], al
movzx eax, byte [rdx - 4]
xor byte [rcx - 4], al
movzx eax, byte [rdx - 3]
xor byte [rcx - 3], al
movzx eax, byte [rdx - 2]
xor byte [rcx - 2], al
sub r8, 1
jne 0x140015b30
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x40]
call r13
add rdi, 0x10
sub r12, 1
jne 0x140015b21
mov r14, qword [rsp + 0x60]
test rbp, rbp
je 0x140015bab
mov rcx, r12
test rbp, rbp
je 0x140015ba0
nop word [rax + rax]
movzx eax, byte [rcx + rdi]
inc rcx
xor byte [rbx + rcx + 0x3f], al
cmp rcx, rbp
jb 0x140015b90
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x40]
call r13
shl r15, 3
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x40]
bswap r15
xor qword [rbx + 0x48], r15
call r13
mov rax, qword [rbx + 0x40]
mov edi, dword [rbx + 0x4c]
mov r15, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x58]
mov qword [rbx], rax
mov rax, qword [rbx + 0x48]
bswap edi
mov qword [rbx + 8], rax
mov r8, qword [rbx + 0x180]
lea rdx, [rbx + 0x20]
mov rcx, rbx
mov qword [rbx + 0x40], r12
mov qword [rbx + 0x48], r12
call qword [rbx + 0x178]
inc edi
bswap edi
mov dword [rbx + 0xc], edi
add rsp, 0x20
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret
Function at 0x140015c10
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r13
sub rsp, 0x20
cmp qword [rcx + 0x38], 0
mov r13, qword [rcx + 0x168]
mov rdi, r8
mov r8, qword [rcx + 0x160]
mov rbp, rdx
mov rbx, rcx
je 0x140015c4e
mov eax, 0xfffffffe
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop rdi
pop rbp
ret
mov rax, qword [rcx + 0x30]
lea rcx, [rdi + rax]
movabs rax, 0x2000000000000000
cmp rcx, rax
ja 0x140015d1b
cmp rcx, rdi
jb 0x140015d1b
mov qword [rsp + 0x40], rsi
mov esi, dword [rbx + 0x174]
mov qword [rbx + 0x30], rcx
test esi, esi
je 0x140015cb2
test rdi, rdi
je 0x140015ca3
movzx eax, byte [rbp]
mov ecx, esi
inc rbp
xor byte [rcx + rbx + 0x40], al
dec rdi
inc esi
and esi, 0xf
jne 0x140015c85
jmp 0x140015ca7
test esi, esi
jne 0x140015d00
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x40]
call r8
mov qword [rsp + 0x48], r12
mov r12, rdi
and r12, 0xfffffffffffffff0
je 0x140015cd7
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x40]
mov r9, r12
mov r8, rbp
call r13
add rbp, r12
sub rdi, r12
mov r12, qword [rsp + 0x48]
test rdi, rdi
je 0x140015d00
xor ecx, ecx
mov esi, edi
test rdi, rdi
je 0x140015d00
nop word [rax + rax]
movzx eax, byte [rcx + rbp]
inc rcx
xor byte [rbx + rcx + 0x3f], al
cmp rcx, rdi
jb 0x140015cf0
mov dword [rbx + 0x174], esi
mov rsi, qword [rsp + 0x40]
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop rdi
pop rbp
ret
or eax, 0xffffffff
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop rdi
pop rbp
ret
Function at 0x14001a6a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rsi
mov rbx, rcx
xor edi, edi
mov dword [rcx + 0x1038], edi
mov dword [rcx + 0x1c], edi
mov dword [rcx + 0x18], 0xffffffff
mov dword [rcx + 0x1034], edi
mov dword [rcx + 0x1030], edi
mov qword [rcx + 0x20], 0xffffffffffffffff
cmp dword [reloc.WS2_32.dll_accept], 1
jg 0x14001a711
mov eax, dword [rcx + 8]
mov dword [rsp + 0x20], eax
lea r9, str.CHttpProvider::HttpProviderData::OnConnectRelease_status_d
lea r8d, [rdi + 0x37]
lea rdx, str.....mttpHttpProvider.cpp
lea ecx, [rdi + 1]
call fcn.1400045f0
cmp dword [rbx + 8], 7
je 0x14001a73e
mov rcx, qword [rbx + 0x28]
mov rax, qword [rcx]
call qword [rax + 0x80]
cmp dword [rbx + 8], edi
je 0x14001a898
mov dword [rbx + 8], edi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0x10], eax
jmp 0x14001a898
mov rcx, qword [rbx + 0x28]
mov rax, qword [rcx]
lea rdx, str.Connection
call qword [rax + 0x18]
test rax, rax
je 0x14001a825
lea rdx, str.Keep_Alive
mov rcx, rax
call fcn.1401e63ec
test eax, eax
jne 0x14001a801
cmp dword [rbx + 8], 1
je 0x14001a785
mov dword [rbx + 8], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0x10], eax
mov rcx, qword [rbx + 0x28]
mov rax, qword [rcx]
lea rdx, str.Keep_Alive
call qword [rax + 0x18]
test rax, rax
je 0x14001a7ee
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.14001bee0
nop
mov eax, dword [rsp + 0x40]
mov dword [rbx + 0xc], eax
mov r8d, dword [rsp + 0x44]
mov dword [rbx + 0x14], r8d
cmp dword [reloc.WS2_32.dll_accept], 1
jg 0x14001a7e9
mov dword [rsp + 0x28], r8d
mov dword [rsp + 0x20], eax
lea r9, str.Keep_Alive_____timeout_d__max_d
mov r8d, 0x4c
lea rdx, str.....mttpHttpProvider.cpp
lea ecx, [r8 - 0x4b]
call fcn.1400045f0
nop
jmp 0x14001a898
mov dword [rbx + 0xc], 0x1e
mov dword [rbx + 0x14], 0xa
jmp 0x14001a898
mov rcx, qword [rbx + 0x28]
mov rax, qword [rcx]
call qword [rax + 0x80]
cmp dword [rbx + 8], edi
je 0x14001a898
mov dword [rbx + 8], edi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0x10], eax
jmp 0x14001a898
mov rbp, qword [rbx + 0x28]
cmp qword [rbp + 0x68], rdi
jbe 0x14001a898
nop
mov rax, qword [rbp + 0x58]
mov rsi, qword [rax + rdi*8]
test rsi, rsi
je 0x14001a850
mov rdx, qword [rsi]
lea rcx, str.Connection
call fcn.1401e63ec
test eax, eax
je 0x14001a85b
inc rdi
cmp rdi, qword [rbp + 0x68]
jae 0x14001a898
jmp 0x14001a830
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x14001a898
lea rdx, str.Keep_Alive
call fcn.1401e63ec
test eax, eax
jne 0x14001a898
cmp dword [rbx + 8], 1
je 0x14001a88a
mov dword [rbx + 8], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0x10], eax
mov dword [rbx + 0xc], reloc.WS2_32.dll_sendto
mov dword [rbx + 0x14], 0x64
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x14001aa60
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [rdx + 0x78]
movsxd rsi, r9d
mov rbp, r8
mov r9d, dword [rbx + 8]
mov rdi, rdx
sub r9d, 3
je 0x14001ab57
sub r9d, 1
je 0x14001ab64
sub r9d, 2
je 0x14001aab4
cmp r9d, 1
je 0x14001aaeb
mov dword [rdx + 0x10], 9
or eax, 0xffffffff
jmp 0x14001ab78
cmp dword [rbx + 0x18], 0
jl 0x14001aad2
mov r9d, dword [rsp + 0x50]
mov r8d, esi
mov rdx, rbp
mov rcx, rbx
call fcn.14001a2c0
jmp 0x14001ab78
mov rax, qword [rbx + 0x20]
test rax, rax
jne 0x14001aaf2
mov dword [rbx + 8], 7
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0x10], eax
xor eax, eax
jmp 0x14001ab78
jns 0x14001ab09
mov r9d, dword [rsp + 0x50]
mov r8d, esi
mov rdx, rbp
mov rcx, rbx
call fcn.14001a4a0
jmp 0x14001ab78
cmp rax, rsi
jge 0x14001ab10
mov esi, eax
mov r9d, dword [rsp + 0x50]
mov r8d, esi
mov rdx, rbp
mov rcx, rbx
call fcn.14001a4a0
movsxd rdi, eax
test eax, eax
js 0x14001aaac
sub qword [rbx + 0x20], rdi
cmp qword [rbx + 0x20], 0
jg 0x14001ab4b
cmp dword [rbx + 8], 7
je 0x14001ab4b
mov dword [rbx + 8], 7
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0x10], eax
mov rax, qword [rbx + 0x20]
mov qword [rbx + 0x20], rax
mov eax, edi
jmp 0x14001ab78
call fcn.14001b340
test eax, eax
je 0x14001aaac
mov rax, qword [rdi]
mov r9d, dword [rsp + 0x50]
mov r8d, esi
mov rdx, rbp
mov rcx, rdi
call qword [rax + 0x68]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001b800
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x30
mov rbx, qword [rdx + 0x78]
mov rdi, rdx
mov rbp, rcx
cmp r8d, 0xffffffff
je 0x14001b995
test r8d, r8d
je 0x14001b973
cmp r8d, 1
jne 0x14001b9d8
cmp dword [rbx + 8], 3
jne 0x14001b849
call fcn.14001b340
test eax, eax
je 0x14001b982
cmp dword [rbx + 8], 4
jne 0x14001b982
mov qword [rsp + 0x40], rsi
mov dword [rbx + 8], 5
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0x10], eax
nop dword [rax + rax]
mov rdx, rdi
mov rcx, rbp
call fcn.14001b600
mov esi, eax
cmp eax, 0x64
je 0x14001b870
mov r8, qword [rdi]
lea rdx, str.Transfer_Encoding
mov rcx, rdi
call qword [r8 + 0x18]
test rax, rax
je 0x14001b8da
lea rdx, str.chunked
mov rcx, rax
call fcn.1401e63ec
test eax, eax
jne 0x14001b8da
cmp dword [reloc.WS2_32.dll_accept], 1
jg 0x14001b8d0
lea r9, str.CHUNKED_encoding...
lea rdx, str.....mttpHttpProvider.cpp
lea ecx, [rax + 1]
mov r8d, 0x201
call fcn.1400045f0
xor eax, eax
mov dword [rbx + 0x18], eax
mov dword [rbx + 0x1c], eax
jmp 0x14001b946
xor eax, eax
mov dword [rbx + 0x18], 0xffffffff
lea rdx, str.Content_Length
mov dword [rbx + 0x1c], eax
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
mov rdi, rax
test rax, rax
je 0x14001b93e
cmp dword [reloc.WS2_32.dll_accept], 1
jg 0x14001b92a
lea r9, str.Content_length___s
lea rdx, str.....mttpHttpProvider.cpp
mov r8d, 0x20a
mov ecx, 1
mov qword [rsp + 0x20], rax
call fcn.1400045f0
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 0xa]
call fcn.1401ec050
mov qword [rbx + 0x20], rax
jmp 0x14001b946
mov qword [rbx + 0x20], 0xffffffffffffffff
cmp dword [rbx + 8], 6
je 0x14001b95c
mov dword [rbx + 8], 6
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0x10], eax
mov eax, esi
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp dword [rbx + 8], 3
jne 0x14001b9d8
call fcn.14001b340
test eax, eax
jne 0x14001b9d8
or eax, 0xffffffff
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov eax, dword [rbx + 8]
cmp eax, 2
jl 0x14001b9d8
cmp eax, 5
jle 0x14001b9c6
cmp eax, 6
jne 0x14001b9d8
cmp dword [rbx + 0x18], 0
jge 0x14001b9c2
cmp qword [rbx + 0x20], 0
jg 0x14001b9c2
cmp eax, 7
je 0x14001b9d8
mov dword [rbx + 8], 7
jmp 0x14001b9cf
test eax, eax
jmp 0x14001b9c8
test eax, eax
je 0x14001b9d8
xor eax, eax
mov dword [rbx + 8], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0x10], eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x14001cbc0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov rbx, rcx
mov rcx, qword [rcx + 0x18]
mov r12, r9
mov rax, qword [rcx]
mov rbp, r8
mov esi, edx
call qword [rax + 0x18]
mov r10, qword [rbx]
mov rcx, rbx
mov rdi, rax
call qword [r10 + 0x80]
cmp qword [0x1402e6868], 0
je 0x14001cc7e
xor r8d, r8d
lea edx, [r8 + 1]
lea ecx, [rdx + 1]
call sub.WS2_32.dll_socket
mov qword [rbx + 0x80], rax
cmp rax, 0xffffffffffffffff
je 0x14001cc7e
test esi, esi
jle 0x14001cc3b
lea r8, [rsp + 0x60]
mov edx, 0x8004667e
mov rcx, rax
mov dword [rsp + 0x60], 1
call sub.WS2_32.dll_ioctlsocket
mov rax, qword [rbx + 0x18]
mov dword [rbx + 0x88], esi
cmp dword [rax + 0x1c], 0x210
jne 0x14001cc85
cmp dword [rdi + 0x88], 0
je 0x14001cc85
cmp byte [rdi + 0x8c], 0
je 0x14001cc85
mov r8d, esi
mov rdx, rdi
mov rcx, rbx
call fcn.14001d620
test eax, eax
jne 0x14001cca5
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x80]
xor eax, eax
jmp 0x14001cdad
mov r8d, dword [rdi + 0x80]
mov edx, dword [rdi + 0x84]
mov r9d, esi
mov rcx, rbx
call fcn.14001d450
test eax, eax
je 0x14001cd71
mov rcx, qword [rbx + 0x90]
test rcx, rcx
je 0x14001ccb6
call fcn.14000ce20
mov rcx, qword [0x1402e6868]
call fcn.14000c4b0
mov r11, rax
mov qword [rbx + 0x90], rax
test rax, rax
jne 0x14001ccfd
cmp dword [reloc.WS2_32.dll_accept], 3
jg 0x14001ccf6
lea r9, str.Cant_create_ssl...
lea rdx, str.....mttpSSLConnection.cpp
lea ecx, [rax + 3]
mov r8d, 0x84
call fcn.1400045f0
xor eax, eax
jmp 0x14001cdad
mov eax, dword [rbx + 0x80]
xor r8d, r8d
mov r9, rdi
mov dword [r11], eax
mov rcx, qword [rbx + 0x90]
lea edx, [r8 + 0x37]
call fcn.14000c5e0
cmp dword [rbx + 0x98], 0
je 0x14001cd35
mov rcx, rbx
call fcn.14001cdc0
test eax, eax
je 0x14001cc7e
test rbp, rbp
je 0x14001cd81
mov rcx, qword [rbx + 0x90]
lea rax, [rsp + 0x30]
mov r9, r12
mov r8d, esi
xor edx, edx
mov qword [rsp + 0x20], rax
call rbp
test eax, eax
je 0x14001cd81
cmp dword [rbx + 0x74], 0
je 0x14001cd6a
mov rcx, qword [rbx + 0x18]
mov dword [rcx + 0x10], 5
cmp dword [rsp + 0x30], 0
je 0x14001cda8
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x80]
xor eax, eax
jmp 0x14001cdad
cmp dword [reloc.WS2_32.dll_accept], 1
jg 0x14001cda8
lea r9, str.Connected_with_using_ssl.
lea rdx, str.....mttpSSLConnection.cpp
mov r8d, 0xb1
mov ecx, 1
call fcn.1400045f0
mov eax, 1
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x14001d450
Capabilities:
Connect socket
Get socket status

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x1402e0068]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rcx
movzx ecx, r8w
mov edi, r9d
mov esi, r8d
mov dword [rsp + 0x254], edx
call sub.WS2_32.dll_htons
cmp dword [reloc.WS2_32.dll_accept], 1
mov word [rsp + 0x252], ax
mov eax, 2
mov word [rsp + 0x250], ax
jg 0x14001d4d6
mov ecx, dword [rsp + 0x254]
call sub.WS2_32.dll_inet_ntoa
mov r8d, 0x4a
lea r9, str.Socket_connecting_to__s:_d_...
lea rdx, str.....mttpTcpConnection.cpp
lea ecx, [r8 - 0x49]
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
call fcn.1400045f0
mov rcx, qword [rbx + 0x80]
lea rdx, [rsp + 0x250]
mov r8d, reloc.WS2_32.dll_recv
call sub.WS2_32.dll_connect
test eax, eax
je 0x14001d5d4
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x14001d5a2
test edi, edi
jle 0x14001d5a2
mov eax, 0x10624dd3
lea r8, [rsp + 0x40]
xor r9d, r9d
mov dword [rsp + 0x40], 1
imul edi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov rax, qword [rbx + 0x80]
mov dword [rsp + 0x30], edx
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x30]
imul edx, edx, 0x3e8
sub edi, edx
xor edx, edx
mov qword [rsp + 0x20], rax
lea ecx, [rdx + 1]
imul edi, edi, 0x3e8
mov dword [rsp + 0x34], edi
call sub.WS2_32.dll_select
test eax, eax
je 0x14001d570
cmp eax, 0xffffffff
jne 0x14001d5d4
mov rcx, qword [rbx + 0x80]
cmp rcx, 0xffffffffffffffff
je 0x14001d58d
call sub.WS2_32.dll_closesocket
mov qword [rbx + 0x80], 0xffffffffffffffff
cmp dword [rbx + 0x74], 0
je 0x14001d59e
mov rax, qword [rbx + 0x18]
mov dword [rax + 0x10], 5
xor eax, eax
jmp 0x14001d5ff
mov rcx, qword [rbx + 0x80]
cmp rcx, 0xffffffffffffffff
je 0x14001d5bf
call sub.WS2_32.dll_closesocket
mov qword [rbx + 0x80], 0xffffffffffffffff
cmp dword [rbx + 0x74], 0
je 0x14001d59e
mov rax, qword [rbx + 0x18]
mov dword [rax + 0x10], 5
xor eax, eax
jmp 0x14001d5ff
cmp dword [reloc.WS2_32.dll_accept], 1
jg 0x14001d5fa
mov r8d, 0x74
lea r9, str.Connected.
lea rdx, str.....mttpTcpConnection.cpp
lea ecx, [r8 - 0x73]
call fcn.1400045f0
mov eax, 1
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1401e6720
add rsp, 0x270
pop rdi
pop rsi
pop rbx
ret
Function at 0x14001d7e0
Capabilities:
Initialize winsock library
Set socket configuration

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x1f0
mov rax, qword [0x1402e0068]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
mov rbx, rcx
mov rcx, qword [rcx + 0x18]
mov r12, r9
mov rax, qword [rcx]
mov rbp, r8
mov esi, edx
call qword [rax + 0x18]
mov rdx, qword [rbx]
mov rcx, rbx
mov rdi, rax
call qword [rdx + 0x80]
mov dword [rbx + 0x88], esi
nop word [rax + rax]
xor r8d, r8d
lea edx, [r8 + 1]
lea ecx, [rdx + 1]
call sub.WS2_32.dll_socket
mov qword [rbx + 0x80], rax
cmp rax, 0xffffffffffffffff
jne 0x14001d873
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x276d
jne 0x14001d86c
lea rdx, [rsp + 0x40]
mov ecx, 0x101
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x14001d830
xor eax, eax
jmp 0x14001d997
test esi, esi
jle 0x14001d891
lea r8, [rsp + 0x30]
mov edx, 0x8004667e
mov rcx, rax
mov dword [rsp + 0x30], 1
call sub.WS2_32.dll_ioctlsocket
mov rax, qword [rbx + 0x18]
cmp dword [rax + 0x1c], 0x210
jne 0x14001d8d5
cmp dword [rdi + 0x88], 0
je 0x14001d8d5
cmp byte [rdi + 0x8c], 0
je 0x14001d8d5
mov r8d, esi
mov rdx, rdi
mov rcx, rbx
call fcn.14001d620
test eax, eax
jne 0x14001d904
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x80]
xor eax, eax
jmp 0x14001d997
mov r8d, dword [rdi + 0x80]
mov edx, dword [rdi + 0x84]
mov r9d, esi
mov rcx, rbx
call fcn.14001d450
test eax, eax
jne 0x14001d904
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x80]
xor eax, eax
jmp 0x14001d997
test rbp, rbp
je 0x14001d992
mov ecx, dword [rbx + 0x80]
lea rax, [rsp + 0x34]
mov r9, r12
mov r8d, esi
xor edx, edx
mov qword [rsp + 0x20], rax
call rbp
test eax, eax
je 0x14001d992
xor edi, edi
cmp dword [rsp + 0x34], edi
je 0x14001d94f
cmp dword [rbx + 0x74], edi
je 0x14001d986
mov rax, qword [rbx + 0x18]
mov dword [rax + 0x10], 5
cmp dword [rsp + 0x34], edi
sete dil
mov eax, edi
jmp 0x14001d997
test esi, esi
jle 0x14001d986
mov rcx, qword [rbx + 0x80]
cmp rcx, 0xffffffffffffffff
jne 0x14001d973
cmp dword [rsp + 0x34], edi
mov dword [rbx + 0x10], 6
sete dil
mov eax, edi
jmp 0x14001d997
lea r8, [rsp + 0x30]
mov edx, 0x8004667e
mov dword [rsp + 0x30], edi
call sub.WS2_32.dll_ioctlsocket
cmp dword [rsp + 0x34], edi
sete dil
mov eax, edi
jmp 0x14001d997
mov eax, 1
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.1401e6720
add rsp, 0x1f0
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001d9c0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
cmp qword [rcx + 0x80], 0xffffffffffffffff
mov ebp, r9d
mov esi, r8d
mov r12, rdx
mov rdi, rcx
jne 0x14001d9fa
mov dword [rcx + 0x10], 6
or eax, 0xffffffff
jmp 0x14001da7f
mov qword [rsp + 0x30], rbx
xor ebx, ebx
test r8d, r8d
jle 0x14001da78
nop word [rax + rax]
mov rcx, qword [rdi + 0x80]
mov r8d, esi
movsxd rdx, ebx
sub r8d, ebx
add rdx, r12
xor r9d, r9d
call sub.WS2_32.dll_send
test eax, eax
je 0x14001daa5
test eax, eax
jns 0x14001da6c
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x14001da95
mov eax, dword [rdi + 0x88]
mov rcx, qword [rdi + 0x80]
mov edx, 0x4e20
test eax, eax
cmovne edx, eax
call fcn.140007340
cmp eax, 1
je 0x14001da74
mov dword [rdi + 0x10], 7
or eax, 0xffffffff
jmp 0x14001da7a
add ebx, eax
test bpl, 1
je 0x14001daa1
cmp esi, ebx
jg 0x14001da10
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
mov dword [rdi + 0x10], 2
or eax, 0xffffffff
jmp 0x14001da7a
mov eax, ebx
jmp 0x14001da7a
mov dword [rdi + 0x10], 6
or eax, 0xffffffff
jmp 0x14001da7a

Function at 0x14001dac0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
cmp qword [rcx + 0x80], 0xffffffffffffffff
mov ebp, r9d
mov esi, r8d
mov r12, rdx
mov rdi, rcx
jne 0x14001dafa
mov dword [rcx + 0x10], 6
or eax, 0xffffffff
jmp 0x14001db7f
mov qword [rsp + 0x30], rbx
xor ebx, ebx
test r8d, r8d
jle 0x14001db78
nop word [rax + rax]
mov rcx, qword [rdi + 0x80]
mov r8d, esi
movsxd rdx, ebx
sub r8d, ebx
add rdx, r12
xor r9d, r9d
call sub.WS2_32.dll_recv
test eax, eax
je 0x14001dba5
test eax, eax
jns 0x14001db6c
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x14001db95
mov eax, dword [rdi + 0x88]
mov rcx, qword [rdi + 0x80]
mov edx, 0x4e20
test eax, eax
cmovne edx, eax
call fcn.140007290
cmp eax, 1
je 0x14001db74
mov dword [rdi + 0x10], 7
or eax, 0xffffffff
jmp 0x14001db7a
add ebx, eax
test bpl, 1
je 0x14001dba1
cmp esi, ebx
jg 0x14001db10
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
mov dword [rdi + 0x10], 2
or eax, 0xffffffff
jmp 0x14001db7a
mov eax, ebx
jmp 0x14001db7a
mov dword [rdi + 0x10], 6
or eax, 0xffffffff
jmp 0x14001db7a
Function at 0x1400206d0
Capabilities:
Capture microphone audio

Disassembly:
push rbx
sub rsp, 0x50
cmp dword [rcx - 0x90], 0x7e
mov rbx, rcx
jne 0x140020706
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
lea rcx, [rbx - 0x98]
call fcn.1400207a0
call qword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
add rsp, 0x50
pop rbx
ret
mov rcx, qword [rcx + 0x30]
test rcx, rcx
je 0x140020727
mov r8, qword [rbx - 0x88]
mov rdx, qword [rbx - 8]
call fcn.140021960
xor eax, eax
add rsp, 0x50
pop rbx
ret
lea rcx, [rsp + 0x20]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x14002078b
nop
cmp dword [rsp + 0x28], 0x3c0
jne 0x140020774
cmp qword [rbx - 8], 0
je 0x14002075f
mov rcx, qword [rbx - 8]
mov rdx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rbx + 0x20]
mov r8d, gethostbyaddr
call qword [sym.imp.WINMM.dll_waveInAddBuffer]
lea rcx, [rsp + 0x20]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x140020740
xor eax, eax
add rsp, 0x50
pop rbx
ret