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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x10
xor eax, eax
mov rdi, rcx
mov r10d, 4
mov qword [rcx], rax
mov qword [rcx + 8], rax
mov r8, qword [rdx]
mov r9, qword [rdx + 8]
lea rcx, [rsp]
mov qword [rsp], r8
mov qword [rsp + 8], r9
mov rax, qword [rcx]
movabs r11, 0xe100000000000000
mov qword [rdi + 0x80], rax
mov rax, qword [rcx + 8]
mov qword [rdi + 0x88], rax
nop
mov rdx, r9
mov rcx, r8
mov rax, r9
and edx, 1
shl rcx, 0x3f
shr rax, 1
neg rdx
mov r9, rcx
shr r8, 1
or r9, rax
and rdx, r11
movsxd rcx, r10d
xor r8, rdx
add rcx, rcx
lea rdx, [rsp]
mov qword [rsp + 8], r9
mov qword [rsp], r8
mov rax, qword [rdx]
mov qword [rdi + rcx*8], rax
mov rax, qword [rdx + 8]
sar r10d, 1
mov qword [rdi + rcx*8 + 8], rax
test r10d, r10d
jg 0x1400153b0
mov r10d, 2
nop word [rax + rax]
movsxd r11, r10d
lea rcx, [rsp]
mov r8, r11
shl r8, 4
add r8, rdi
cmp r11, 1
mov rax, qword [r8]
mov qword [rcx], rax
mov rax, qword [r8 + 8]
mov qword [rcx + 8], rax
jle 0x140015475
mov rbx, qword [rsp]
mov r9, rdi
lea rcx, [r8 + 0x18]
sub r9, r8
lea r8, [r11 - 1]
mov r11, qword [rsp + 8]
lea rdx, [rdi + 0x10]
mov rax, rbx
add rcx, 0x10
add rdx, 0x10
xor rax, qword [rdx - 0x10]
mov qword [rcx - 0x18], rax
mov rax, qword [r9 + rcx - 0x10]
xor rax, r11
sub r8, 1
mov qword [rcx - 0x10], rax
jne 0x140015450
add r10d, r10d
cmp r10d, 0x10
jl 0x140015410
mov rbx, qword [rsp + 0x20]
add rsp, 0x10
pop rdi
ret
Function at 0x140015530
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 0x140015590
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 0x14001567f
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 0x140015614
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 0x1400155d0
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x40]
call r13
add rdi, 0x10
sub r12, 1
jne 0x1400155c1
mov r14, qword [rsp + 0x60]
test rbp, rbp
je 0x14001564b
mov rcx, r12
test rbp, rbp
je 0x140015640
nop word [rax + rax]
movzx eax, byte [rcx + rdi]
inc rcx
xor byte [rbx + rcx + 0x3f], al
cmp rcx, rbp
jb 0x140015630
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 0x1400156b0
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 0x1400156ee
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 0x1400157bb
cmp rcx, rdi
jb 0x1400157bb
mov qword [rsp + 0x40], rsi
mov esi, dword [rbx + 0x174]
mov qword [rbx + 0x30], rcx
test esi, esi
je 0x140015752
test rdi, rdi
je 0x140015743
movzx eax, byte [rbp]
mov ecx, esi
inc rbp
xor byte [rcx + rbx + 0x40], al
dec rdi
inc esi
and esi, 0xf
jne 0x140015725
jmp 0x140015747
test esi, esi
jne 0x1400157a0
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x40]
call r8
mov qword [rsp + 0x48], r12
mov r12, rdi
and r12, 0xfffffffffffffff0
je 0x140015777
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 0x1400157a0
xor ecx, ecx
mov esi, edi
test rdi, rdi
je 0x1400157a0
nop word [rax + rax]
movzx eax, byte [rcx + rbp]
inc rcx
xor byte [rbx + rcx + 0x3f], al
cmp rcx, rdi
jb 0x140015790
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 0x1400181a0
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 0x140018211
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.1400045a0
cmp dword [rbx + 8], 7
je 0x14001823e
mov rcx, qword [rbx + 0x28]
mov rax, qword [rcx]
call qword [rax + 0x80]
cmp dword [rbx + 8], edi
je 0x140018398
mov dword [rbx + 8], edi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0x10], eax
jmp 0x140018398
mov rcx, qword [rbx + 0x28]
mov rax, qword [rcx]
lea rdx, str.Connection
call qword [rax + 0x18]
test rax, rax
je 0x140018325
lea rdx, str.Keep_Alive
mov rcx, rax
call fcn.1401e35ac
test eax, eax
jne 0x140018301
cmp dword [rbx + 8], 1
je 0x140018285
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 0x1400182ee
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1400199e0
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 0x1400182e9
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.1400045a0
nop
jmp 0x140018398
mov dword [rbx + 0xc], 0x1e
mov dword [rbx + 0x14], 0xa
jmp 0x140018398
mov rcx, qword [rbx + 0x28]
mov rax, qword [rcx]
call qword [rax + 0x80]
cmp dword [rbx + 8], edi
je 0x140018398
mov dword [rbx + 8], edi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0x10], eax
jmp 0x140018398
mov rbp, qword [rbx + 0x28]
cmp qword [rbp + 0x68], rdi
jbe 0x140018398
nop
mov rax, qword [rbp + 0x58]
mov rsi, qword [rax + rdi*8]
test rsi, rsi
je 0x140018350
mov rdx, qword [rsi]
lea rcx, str.Connection
call fcn.1401e35ac
test eax, eax
je 0x14001835b
inc rdi
cmp rdi, qword [rbp + 0x68]
jae 0x140018398
jmp 0x140018330
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x140018398
lea rdx, str.Keep_Alive
call fcn.1401e35ac
test eax, eax
jne 0x140018398
cmp dword [rbx + 8], 1
je 0x14001838a
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 0x140018560
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 0x140018657
sub r9d, 1
je 0x140018664
sub r9d, 2
je 0x1400185b4
cmp r9d, 1
je 0x1400185eb
mov dword [rdx + 0x10], 9
or eax, 0xffffffff
jmp 0x140018678
cmp dword [rbx + 0x18], 0
jl 0x1400185d2
mov r9d, dword [rsp + 0x50]
mov r8d, esi
mov rdx, rbp
mov rcx, rbx
call fcn.140017dc0
jmp 0x140018678
mov rax, qword [rbx + 0x20]
test rax, rax
jne 0x1400185f2
mov dword [rbx + 8], 7
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0x10], eax
xor eax, eax
jmp 0x140018678
jns 0x140018609
mov r9d, dword [rsp + 0x50]
mov r8d, esi
mov rdx, rbp
mov rcx, rbx
call fcn.140017fa0
jmp 0x140018678
cmp rax, rsi
jge 0x140018610
mov esi, eax
mov r9d, dword [rsp + 0x50]
mov r8d, esi
mov rdx, rbp
mov rcx, rbx
call fcn.140017fa0
movsxd rdi, eax
test eax, eax
js 0x1400185ac
sub qword [rbx + 0x20], rdi
cmp qword [rbx + 0x20], 0
jg 0x14001864b
cmp dword [rbx + 8], 7
je 0x14001864b
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 0x140018678
call fcn.140018e40
test eax, eax
je 0x1400185ac
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 0x140019300
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 0x140019495
test r8d, r8d
je 0x140019473
cmp r8d, 1
jne 0x1400194d8
cmp dword [rbx + 8], 3
jne 0x140019349
call fcn.140018e40
test eax, eax
je 0x140019482
cmp dword [rbx + 8], 4
jne 0x140019482
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.140019100
mov esi, eax
cmp eax, 0x64
je 0x140019370
mov r8, qword [rdi]
lea rdx, str.Transfer_Encoding
mov rcx, rdi
call qword [r8 + 0x18]
test rax, rax
je 0x1400193da
lea rdx, str.chunked
mov rcx, rax
call fcn.1401e35ac
test eax, eax
jne 0x1400193da
cmp dword [reloc.WS2_32.dll_accept], 1
jg 0x1400193d0
lea r9, str.CHUNKED_encoding...
lea rdx, str.....mttpHttpProvider.cpp
lea ecx, [rax + 1]
mov r8d, 0x201
call fcn.1400045a0
xor eax, eax
mov dword [rbx + 0x18], eax
mov dword [rbx + 0x1c], eax
jmp 0x140019446
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 0x14001943e
cmp dword [reloc.WS2_32.dll_accept], 1
jg 0x14001942a
lea r9, str.Content_length___s
lea rdx, str.....mttpHttpProvider.cpp
mov r8d, 0x20a
mov ecx, 1
mov qword [rsp + 0x20], rax
call fcn.1400045a0
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 0xa]
call fcn.1401e9290
mov qword [rbx + 0x20], rax
jmp 0x140019446
mov qword [rbx + 0x20], 0xffffffffffffffff
cmp dword [rbx + 8], 6
je 0x14001945c
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 0x1400194d8
call fcn.140018e40
test eax, eax
jne 0x1400194d8
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 0x1400194d8
cmp eax, 5
jle 0x1400194c6
cmp eax, 6
jne 0x1400194d8
cmp dword [rbx + 0x18], 0
jge 0x1400194c2
cmp qword [rbx + 0x20], 0
jg 0x1400194c2
cmp eax, 7
je 0x1400194d8
mov dword [rbx + 8], 7
jmp 0x1400194cf
test eax, eax
jmp 0x1400194c8
test eax, eax
je 0x1400194d8
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 0x14001a6c0
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 [0x1402e4c28], 0
je 0x14001a77e
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 0x14001a77e
test esi, esi
jle 0x14001a73b
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 0x14001a785
cmp dword [rdi + 0x88], 0
je 0x14001a785
cmp byte [rdi + 0x8c], 0
je 0x14001a785
mov r8d, esi
mov rdx, rdi
mov rcx, rbx
call fcn.14001b120
test eax, eax
jne 0x14001a7a5
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x80]
xor eax, eax
jmp 0x14001a8ad
mov r8d, dword [rdi + 0x80]
mov edx, dword [rdi + 0x84]
mov r9d, esi
mov rcx, rbx
call fcn.14001af50
test eax, eax
je 0x14001a871
mov rcx, qword [rbx + 0x90]
test rcx, rcx
je 0x14001a7b6
call fcn.14000cdd0
mov rcx, qword [0x1402e4c28]
call fcn.14000c460
mov r11, rax
mov qword [rbx + 0x90], rax
test rax, rax
jne 0x14001a7fd
cmp dword [reloc.WS2_32.dll_accept], 3
jg 0x14001a7f6
lea r9, str.Cant_create_ssl...
lea rdx, str.....mttpSSLConnection.cpp
lea ecx, [rax + 3]
mov r8d, 0x84
call fcn.1400045a0
xor eax, eax
jmp 0x14001a8ad
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.14000c590
cmp dword [rbx + 0x98], 0
je 0x14001a835
mov rcx, rbx
call fcn.14001a8c0
test eax, eax
je 0x14001a77e
test rbp, rbp
je 0x14001a881
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 0x14001a881
cmp dword [rbx + 0x74], 0
je 0x14001a86a
mov rcx, qword [rbx + 0x18]
mov dword [rcx + 0x10], 5
cmp dword [rsp + 0x30], 0
je 0x14001a8a8
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x80]
xor eax, eax
jmp 0x14001a8ad
cmp dword [reloc.WS2_32.dll_accept], 1
jg 0x14001a8a8
lea r9, str.Connected_with_using_ssl.
lea rdx, str.....mttpSSLConnection.cpp
mov r8d, 0xb1
mov ecx, 1
call fcn.1400045a0
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 0x14001af50
Capabilities:
Connect socket
Get socket status

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x1402de400]
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 0x14001afd6
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.1400045a0
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 0x14001b0d4
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x14001b0a2
test edi, edi
jle 0x14001b0a2
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 0x14001b070
cmp eax, 0xffffffff
jne 0x14001b0d4
mov rcx, qword [rbx + 0x80]
cmp rcx, 0xffffffffffffffff
je 0x14001b08d
call sub.WS2_32.dll_closesocket
mov qword [rbx + 0x80], 0xffffffffffffffff
cmp dword [rbx + 0x74], 0
je 0x14001b09e
mov rax, qword [rbx + 0x18]
mov dword [rax + 0x10], 5
xor eax, eax
jmp 0x14001b0ff
mov rcx, qword [rbx + 0x80]
cmp rcx, 0xffffffffffffffff
je 0x14001b0bf
call sub.WS2_32.dll_closesocket
mov qword [rbx + 0x80], 0xffffffffffffffff
cmp dword [rbx + 0x74], 0
je 0x14001b09e
mov rax, qword [rbx + 0x18]
mov dword [rax + 0x10], 5
xor eax, eax
jmp 0x14001b0ff
cmp dword [reloc.WS2_32.dll_accept], 1
jg 0x14001b0fa
mov r8d, 0x74
lea r9, str.Connected.
lea rdx, str.....mttpTcpConnection.cpp
lea ecx, [r8 - 0x73]
call fcn.1400045a0
mov eax, 1
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1401e42a0
add rsp, 0x270
pop rdi
pop rsi
pop rbx
ret
Function at 0x14001b2e0
Capabilities:
Initialize winsock library
Set socket configuration

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x1f0
mov rax, qword [0x1402de400]
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 0x14001b373
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x276d
jne 0x14001b36c
lea rdx, [rsp + 0x40]
mov ecx, 0x101
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x14001b330
xor eax, eax
jmp 0x14001b497
test esi, esi
jle 0x14001b391
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 0x14001b3d5
cmp dword [rdi + 0x88], 0
je 0x14001b3d5
cmp byte [rdi + 0x8c], 0
je 0x14001b3d5
mov r8d, esi
mov rdx, rdi
mov rcx, rbx
call fcn.14001b120
test eax, eax
jne 0x14001b404
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x80]
xor eax, eax
jmp 0x14001b497
mov r8d, dword [rdi + 0x80]
mov edx, dword [rdi + 0x84]
mov r9d, esi
mov rcx, rbx
call fcn.14001af50
test eax, eax
jne 0x14001b404
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x80]
xor eax, eax
jmp 0x14001b497
test rbp, rbp
je 0x14001b492
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 0x14001b492
xor edi, edi
cmp dword [rsp + 0x34], edi
je 0x14001b44f
cmp dword [rbx + 0x74], edi
je 0x14001b486
mov rax, qword [rbx + 0x18]
mov dword [rax + 0x10], 5
cmp dword [rsp + 0x34], edi
sete dil
mov eax, edi
jmp 0x14001b497
test esi, esi
jle 0x14001b486
mov rcx, qword [rbx + 0x80]
cmp rcx, 0xffffffffffffffff
jne 0x14001b473
cmp dword [rsp + 0x34], edi
mov dword [rbx + 0x10], 6
sete dil
mov eax, edi
jmp 0x14001b497
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 0x14001b497
mov eax, 1
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.1401e42a0
add rsp, 0x1f0
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001b4c0
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 0x14001b4fa
mov dword [rcx + 0x10], 6
or eax, 0xffffffff
jmp 0x14001b57f
mov qword [rsp + 0x30], rbx
xor ebx, ebx
test r8d, r8d
jle 0x14001b578
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 0x14001b5a5
test eax, eax
jns 0x14001b56c
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x14001b595
mov eax, dword [rdi + 0x88]
mov rcx, qword [rdi + 0x80]
mov edx, 0x4e20
test eax, eax
cmovne edx, eax
call fcn.1400072f0
cmp eax, 1
je 0x14001b574
mov dword [rdi + 0x10], 7
or eax, 0xffffffff
jmp 0x14001b57a
add ebx, eax
test bpl, 1
je 0x14001b5a1
cmp esi, ebx
jg 0x14001b510
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 0x14001b57a
mov eax, ebx
jmp 0x14001b57a
mov dword [rdi + 0x10], 6
or eax, 0xffffffff
jmp 0x14001b57a

Function at 0x14001b5c0
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 0x14001b5fa
mov dword [rcx + 0x10], 6
or eax, 0xffffffff
jmp 0x14001b67f
mov qword [rsp + 0x30], rbx
xor ebx, ebx
test r8d, r8d
jle 0x14001b678
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 0x14001b6a5
test eax, eax
jns 0x14001b66c
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x14001b695
mov eax, dword [rdi + 0x88]
mov rcx, qword [rdi + 0x80]
mov edx, 0x4e20
test eax, eax
cmovne edx, eax
call fcn.140007240
cmp eax, 1
je 0x14001b674
mov dword [rdi + 0x10], 7
or eax, 0xffffffff
jmp 0x14001b67a
add ebx, eax
test bpl, 1
je 0x14001b6a1
cmp esi, ebx
jg 0x14001b610
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 0x14001b67a
mov eax, ebx
jmp 0x14001b67a
mov dword [rdi + 0x10], 6
or eax, 0xffffffff
jmp 0x14001b67a
Function at 0x14001e1c0
Capabilities:
Capture microphone audio

Disassembly:
push rbx
sub rsp, 0x50
cmp dword [rcx - 0x90], 0x7e
mov rbx, rcx
jne 0x14001e1f6
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
lea rcx, [rbx - 0x98]
call fcn.14001e290
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 0x14001e217
mov r8, qword [rbx - 0x88]
mov rdx, qword [rbx - 8]
call fcn.14001f450
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 0x14001e27b
nop
cmp dword [rsp + 0x28], 0x3c0
jne 0x14001e264
cmp qword [rbx - 8], 0
je 0x14001e24f
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 0x14001e230
xor eax, eax
add rsp, 0x50
pop rbx
ret