joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140137fe0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1402c8b58]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [rcx + 0x290], 0xffffffffffffffff
mov rbx, rcx
je 0x140138071
movzx eax, byte [r8 + 0x169]
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x34], 0
test dl, dl
je 0x140138039
test al, al
je 0x140138032
mov rax, qword [r8]
lea rdx, str.Turning_on_TCP_NODELAY.
mov rcx, r8
call qword [rax + 0x30]
lea r9, [rsp + 0x30]
jmp 0x140138052
test al, al
je 0x14013804d
mov rax, qword [r8]
lea rdx, str.Turning_off_TCP_NODELAY.
mov rcx, r8
call qword [rax + 0x30]
lea r9, [rsp + 0x34]
mov rcx, qword [rbx + 0x290]
mov r8d, 1
mov dword [rsp + 0x20], 4
lea edx, [r8 + 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401e12d0
add rsp, 0x40
pop rbx
ret

Function at 0x140138090
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rbx, r8
mov rsi, rcx
cmp dword [rcx + 0xd4], edx
je 0x14013812b
cmp edx, 0x1000
jb 0x14013812b
mov eax, 0x800000
cmp edx, eax
cmovbe eax, edx
and eax, 0xfffff000
cmp qword [rcx + 0x290], 0xffffffffffffffff
mov dword [rcx + 0xd4], eax
je 0x14013812b
cmp byte [r8 + 0x169], 0
je 0x140138104
mov rax, qword [r8]
lea rdx, str.Setting_SO_RCVBUF_size
mov rcx, rbx
call qword [rax + 0x30]
mov r8d, dword [rsi + 0xd4]
lea rdx, str.recvBufSize
mov rcx, rbx
call fcn.140053ac0
mov rcx, qword [rsi + 0x290]
lea r9, [rsi + 0xd4]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x1002
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140138140
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
cmp dword [rcx + 0xc8], 0x4901fb2a
mov rbx, r8
mov rdi, rcx
je 0x14013817d
mov rax, qword [r8]
lea rdx, str.Internal_error:_Socket_object_already_deleted.
mov rcx, rbx
call qword [rax + 0x28]
xor ecx, ecx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp fcn.14000c920
mov qword [rsp + 0x40], rsi
cmp dword [rcx + 0xd0], edx
je 0x140138208
cmp edx, 0x1000
jb 0x140138208
mov eax, 0x800000
cmp edx, eax
cmovbe eax, edx
and eax, 0xfffff000
cmp qword [rcx + 0x290], 0xffffffffffffffff
mov dword [rcx + 0xd0], eax
je 0x140138208
cmp byte [r8 + 0x169], 0
je 0x1401381e1
mov rax, qword [r8]
lea rdx, str.Setting_SO_SNDBUF_size
mov rcx, rbx
call qword [rax + 0x30]
mov r8d, dword [rdi + 0xd0]
lea rdx, str.sendBufSize
mov rcx, rbx
call fcn.140053ac0
mov rcx, qword [rdi + 0x290]
lea r9, [rdi + 0xd0]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x1001
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140138220
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1402c8b58]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rdx
mov rbx, rcx
mov rcx, qword [rcx + 0x290]
cmp rcx, 0xffffffffffffffff
jne 0x140138253
mov byte [rbx + 0x288], 0
cmp byte [rbx + 0x288], 0
je 0x1401382b0
cmp byte [rbx + 0xce], 0
jne 0x1401382b0
cmp byte [rbx + 0xcd], 0
jne 0x140138317
cmp byte [rbx + 0xcc], 0
jne 0x140138317
cmp byte [rdx + 0x173], 0
jne 0x140138317
mov r9d, 2
lea r8d, [r9 - 1]
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x1401382ca
mov rdx, rdi
mov rcx, rbx
call fcn.140137540
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401e12d0
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
cmp eax, 0xffffffff
jg 0x140138317
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x140138317
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rax
lea r8, str.isConnected_recv_peek
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.1400531e0
nop
mov rdx, rdi
xor ecx, ecx
call fcn.140137e40
nop
lea rcx, [rsp + 0x20]
call fcn.140053390
jmp 0x1401382b0
mov al, 1
jmp 0x1401382b2
Function at 0x140164ec0
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1402c8b58]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, r8
mov esi, ecx
test ecx, ecx
js 0x140164f49
test rbx, rbx
je 0x140164f49
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rax
lea r8, str.getEntropy
mov rdx, r9
lea rcx, [rsp + 0x20]
call fcn.1400531e0
nop
call fcn.140052220
mov rdi, rax
test rax, rax
jne 0x140164f1a
xor bl, bl
jmp 0x140164f3a
mov r8, rbx
mov edx, esi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov ebx, eax
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test ebx, ebx
setne bl
lea rcx, [rsp + 0x20]
call fcn.140053390
movzx eax, bl
jmp 0x140164f4b
xor al, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401e12d0
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x140195210
Capabilities:
Encrypt data using curve25519

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov rax, qword [0x1402c8b58]
xor rax, rsp
mov qword [rbp + 0xc0], rax
movups xmm0, xmmword [rdx]
mov rbx, rcx
mov ecx, 2
movups xmm1, xmmword [rdx + 0x10]
movd eax, xmm0
movups xmmword [rbp + 0xb0], xmm1
and al, 0xf8
psrldq xmm1, 0xf
movups xmmword [rbp + 0xa0], xmm0
mov byte [rbp + 0xa0], al
movd eax, xmm1
and al, 0x3f
or al, 0x40
mov byte [rbp + 0xbf], al
add r8, 8
lea rax, [rsp + 0x40]
nop dword [rax + rax]
movd xmm1, dword [r8 - 8]
xorps xmm0, xmm0
movd xmm2, dword [r8 - 4]
lea rax, [rax + 0x40]
punpcklbw xmm1, xmm0
lea r8, [r8 + 0x10]
punpcklbw xmm2, xmm0
punpcklwd xmm1, xmm0
punpcklwd xmm2, xmm0
movdqu xmmword [rax - 0x60], xmm1
movd xmm1, dword [r8 - 0x10]
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
movdqu xmmword [rax - 0x50], xmm2
movd xmm2, dword [r8 - 0xc]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
movdqu xmmword [rax - 0x40], xmm1
movdqu xmmword [rax - 0x30], xmm2
sub rcx, 1
jne 0x140195280
lea rdx, [rbp + 0xa0]
lea rcx, [rsp + 0x20]
call fcn.140195440
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x60]
call fcn.140194e60
lea r8, [rbp - 0x60]
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x20]
call fcn.140194380
lea rcx, [rbp + 0x20]
call fcn.1401940c0
movzx eax, byte [rbp + 0x24]
mov byte [rbx + 1], al
movzx eax, byte [rbp + 0x28]
movzx r11d, byte [rbp + 0x20]
mov byte [rbx + 2], al
movzx eax, byte [rbp + 0x2c]
mov byte [rbx + 3], al
movzx eax, byte [rbp + 0x30]
mov byte [rbx + 4], al
movzx eax, byte [rbp + 0x34]
mov byte [rbx + 5], al
movzx eax, byte [rbp + 0x38]
mov byte [rbx + 6], al
movzx eax, byte [rbp + 0x3c]
mov byte [rbx + 7], al
movzx eax, byte [rbp + 0x40]
mov byte [rbx + 8], al
movzx eax, byte [rbp + 0x44]
mov byte [rbx + 9], al
movzx eax, byte [rbp + 0x48]
mov byte [rbx + 0xa], al
movzx eax, byte [rbp + 0x4c]
mov byte [rbx + 0xb], al
movzx eax, byte [rbp + 0x50]
mov byte [rbx + 0xc], al
movzx eax, byte [rbp + 0x54]
mov byte [rbx + 0xd], al
movzx eax, byte [rbp + 0x58]
mov byte [rbx + 0xe], al
movzx eax, byte [rbp + 0x5c]
mov byte [rbx + 0xf], al
movzx eax, byte [rbp + 0x60]
mov byte [rbx + 0x10], al
movzx eax, byte [rbp + 0x64]
mov byte [rbx + 0x11], al
movzx eax, byte [rbp + 0x68]
mov byte [rbx + 0x12], al
movzx eax, byte [rbp + 0x6c]
mov byte [rbx + 0x13], al
movzx eax, byte [rbp + 0x70]
mov byte [rbx + 0x14], al
movzx eax, byte [rbp + 0x74]
mov byte [rbx + 0x15], al
movzx eax, byte [rbp + 0x78]
mov byte [rbx + 0x16], al
movzx eax, byte [rbp + 0x7c]
mov byte [rbx + 0x17], al
movzx eax, byte [rbp + 0x80]
mov byte [rbx + 0x18], al
movzx eax, byte [rbp + 0x84]
mov byte [rbx + 0x19], al
movzx eax, byte [rbp + 0x88]
mov byte [rbx + 0x1a], al
movzx eax, byte [rbp + 0x8c]
mov byte [rbx + 0x1b], al
movzx eax, byte [rbp + 0x90]
mov byte [rbx + 0x1c], al
movzx eax, byte [rbp + 0x94]
mov byte [rbx + 0x1d], al
movzx eax, byte [rbp + 0x98]
mov byte [rbx + 0x1e], al
movzx eax, byte [rbp + 0x9c]
mov byte [rbx + 0x1f], al
xor eax, eax
mov byte [rbx], r11b
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.1401e12d0
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1d0
pop rbp
ret
Function at 0x140197130
Capabilities:
Encode data using xor

Disassembly:
mov r9, rdx
movzx r10d, r8b
neg r10d
lea rdx, [rcx + 0x7c]
lea rax, [r9 + 0x7c]
movd xmm2, r10d
pshufd xmm2, xmm2, 0
cmp rcx, rax
ja 0x140197177
cmp rdx, r9
jb 0x140197177
sub r9, rcx
mov r8d, 0x20
nop
mov edx, dword [rcx]
xor edx, dword [r9 + rcx]
lea rcx, [rcx + 4]
and edx, r10d
xor dword [rcx - 4], edx
sub r8, 1
jne 0x140197160
ret
lea rax, [rcx + 0x10]
sub r9, rcx
mov ecx, 4
nop dword [rax]
nop word [rax + rax]
movdqu xmm1, xmmword [rax - 0x10]
movdqu xmm0, xmmword [r9 + rax - 0x10]
lea rax, [rax + 0x20]
xorps xmm0, xmm1
andps xmm0, xmm2
xorps xmm0, xmm1
movdqu xmmword [rax - 0x30], xmm0
movdqu xmm1, xmmword [rax - 0x20]
movdqu xmm0, xmmword [r9 + rax - 0x20]
xorps xmm0, xmm1
andps xmm0, xmm2
xorps xmm0, xmm1
movdqu xmmword [rax - 0x20], xmm0
sub rcx, 1
jne 0x140197190
ret
Function at 0x140199a50
Capabilities:
Encrypt data using curve25519

Disassembly:
push rbx
sub rsp, 0x2f0
mov rax, qword [0x1402c8b58]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
mov rbx, rdx
test rcx, rcx
je 0x140199bae
test rdx, rdx
je 0x140199bae
test r8, r8
je 0x140199bae
movups xmm0, xmmword [rcx]
mov edx, 0x20
movups xmmword [r8], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [r8 + 0x10], xmm1
lea r8, [rsp + 0x2a0]
call fcn.1400f8d40
movzx eax, byte [rsp + 0x2bf]
lea rcx, [rsp + 0x40]
and byte [rsp + 0x2a0], 0xf8
and al, 0x3f
or al, 0x40
mov byte [rsp + 0x2bf], al
xor eax, eax
nop dword [rax]
movd xmm1, dword [rsp + rax + 0x2a0]
lea rcx, [rcx + 0x40]
movd xmm2, dword [rsp + rax + 0x2a4]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
punpcklbw xmm2, xmm0
punpcklwd xmm1, xmm0
movdqu xmmword [rcx - 0x60], xmm1
movd xmm1, dword [rsp + rax + 0x2a8]
punpcklwd xmm2, xmm0
movdqu xmmword [rcx - 0x50], xmm2
movd xmm2, dword [rsp + rax + 0x2ac]
add rax, 0x10
punpcklbw xmm1, xmm0
punpcklbw xmm2, xmm0
punpcklwd xmm1, xmm0
punpcklwd xmm2, xmm0
movdqu xmmword [rcx - 0x40], xmm1
movdqu xmmword [rcx - 0x30], xmm2
cmp rax, 0x20
jl 0x140199ad0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x220]
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0xb0], xmm0
movups xmmword [rsp + 0xc0], xmm0
movups xmmword [rsp + 0xd0], xmm0
movups xmmword [rsp + 0xe0], xmm0
movups xmmword [rsp + 0xf0], xmm0
movups xmmword [rsp + 0x100], xmm0
movups xmmword [rsp + 0x110], xmm0
call fcn.140195b50
lea rdx, [rsp + 0x220]
lea rcx, [rsp + 0x20]
call fcn.1401994a0
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140199270
mov al, 1
jmp 0x140199bb0
xor al, al
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.1401e12d0
add rsp, 0x2f0
pop rbx
ret
Function at 0x14019df50
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov r10, rcx
mov r9, qword [str.expand_32_byte_k]
movzx eax, byte [r9 + 2]
movzx r8d, byte [r9 + 3]
shl r8d, 8
or r8d, eax
movzx eax, byte [r9 + 1]
shl r8d, 8
or r8d, eax
movzx eax, byte [r9]
shl r8d, 8
or r8d, eax
mov dword [rcx], r8d
movzx eax, byte [r9 + 6]
movzx ecx, byte [r9 + 7]
shl ecx, 8
or ecx, eax
movzx eax, byte [r9 + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [r9 + 4]
shl ecx, 8
or ecx, eax
mov dword [r10 + 4], ecx
movzx eax, byte [r9 + 0xa]
movzx ecx, byte [r9 + 0xb]
shl ecx, 8
or ecx, eax
movzx eax, byte [r9 + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [r9 + 8]
shl ecx, 8
or ecx, eax
mov dword [r10 + 8], ecx
movzx eax, byte [r9 + 0xe]
movzx ecx, byte [r9 + 0xf]
shl ecx, 8
or ecx, eax
movzx eax, byte [r9 + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [r9 + 0xc]
shl ecx, 8
or ecx, eax
mov dword [r10 + 0xc], ecx
movzx eax, byte [rdx + 2]
movzx ecx, byte [rdx + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx]
shl ecx, 8
or ecx, eax
mov dword [r10 + 0x10], ecx
movzx eax, byte [rdx + 6]
movzx ecx, byte [rdx + 7]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 4]
shl ecx, 8
or ecx, eax
mov dword [r10 + 0x14], ecx
movzx eax, byte [rdx + 0xa]
movzx ecx, byte [rdx + 0xb]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 8]
shl ecx, 8
or ecx, eax
mov dword [r10 + 0x18], ecx
movzx ecx, byte [rdx + 0xf]
shl ecx, 8
movzx eax, byte [rdx + 0xe]
or ecx, eax
movzx eax, byte [rdx + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0xc]
shl ecx, 8
or ecx, eax
mov dword [r10 + 0x1c], ecx
movzx eax, byte [rdx + 0x12]
movzx ecx, byte [rdx + 0x13]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x11]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x10]
shl ecx, 8
or ecx, eax
mov dword [r10 + 0x20], ecx
movzx eax, byte [rdx + 0x16]
movzx ecx, byte [rdx + 0x17]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x15]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x14]
shl ecx, 8
or ecx, eax
mov dword [r10 + 0x24], ecx
movzx eax, byte [rdx + 0x1a]
movzx ecx, byte [rdx + 0x1b]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x19]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x18]
shl ecx, 8
or ecx, eax
mov dword [r10 + 0x28], ecx
movzx eax, byte [rdx + 0x1e]
movzx ecx, byte [rdx + 0x1f]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x1d]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 0x1c]
shl ecx, 8
or ecx, eax
mov dword [r10 + 0x40], 0x40
mov dword [r10 + 0x2c], ecx
ret
Function at 0x1401a22c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x1402c8b58]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rsi, r9
movzx ebp, r8b
mov rbx, rdx
mov r14, rcx
mov rdi, qword [rsp + 0x90]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rax
movzx r9d, byte [rdx + 0x38]
lea r8, str.readExpectedMessage
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.140053230
nop
cmp byte [rbx + 0x38], 0
je 0x1401a2335
cmp qword [rbx + 0x40], 0
jne 0x1401a2335
mov rax, qword [rdi]
lea rdx, str.No_m_pHandler.
mov rcx, rdi
call qword [rax + 0x28]
mov dword [rbx + 0x58], 0
cmp dword [rbx + 8], 0
jne 0x1401a2350
call sub.KERNEL32.dll_GetTickCount
mov dword [rbx + 8], eax
nop word [rax + rax]
mov eax, dword [rbx + 0x14]
cmp eax, 5
jne 0x1401a2380
cmp dword [0x1402cdcf0], 0xa
jge 0x1401a2377
mov rax, qword [rdi]
lea rdx, str.sshRp.m_totalTimeoutMs_wf_is_too_small__2_
mov rcx, rdi
call qword [rax + 0x28]
inc dword [0x1402cdcf0]
mov dword [rbx + 0x14], 0x7530
jmp 0x1401a2384
test eax, eax
je 0x1401a23b5
cmp dword [rbx + 8], 0
jne 0x1401a2392
call sub.KERNEL32.dll_GetTickCount
mov dword [rbx + 8], eax
cmp dword [rbx + 0x14], 0x3e8
jae 0x1401a23a2
mov dword [rbx + 0x14], 0x7530
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [rbx + 8]
cmp eax, ecx
jbe 0x1401a23b5
sub eax, ecx
cmp eax, dword [rbx + 0x14]
ja 0x1401a23e9
mov r9, rdi
mov r8, rsi
mov rdx, rbx
mov rcx, r14
call fcn.1401a4070
test al, al
je 0x1401a2421
mov rcx, rsi
call fcn.14007d010
test al, al
jne 0x1401a2421
test bpl, bpl
je 0x1401a23e5
cmp dword [rbx + 0x58], 0x5d
je 0x1401a2350
mov bl, 1
jmp 0x1401a2423
mov rcx, rsi
call fcn.14007d090
mov byte [rsi + 0x28], 1
cmp byte [rdi + 0x169], 0
je 0x1401a2421
mov rax, qword [rdi]
lea rdx, str.Too_much_time_elapsed_waiting_for_response.
mov rcx, rdi
call qword [rax + 0x28]
mov r8d, dword [rbx + 0x14]
lea rdx, str.totalTimeoutMs
mov rcx, rdi
call fcn.140053ac0
xor bl, bl
lea rcx, [rsp + 0x20]
call fcn.140053390
movzx eax, bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401e12d0
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1401a3fd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov r11, rdx
mov edi, r9d
mov r9d, dword [rsp + 0x30]
xor edx, edx
mov eax, r9d
mov rbx, r8
shr eax, 8
mov r8d, edi
movzx r10d, al
movzx eax, r9b
shl eax, 8
or r10d, eax
mov qword [r11 + 0x30], rdx
shl r10d, 8
mov eax, r9d
shr eax, 0x10
movzx ecx, al
or r10d, ecx
shr r9d, 0x18
shl r10d, 8
mov rcx, r11
or r10d, r9d
mov dword [r11 + 0x38], edx
mov qword [r11 + 0xb8], rdx
mov rdx, rbx
mov dword [r11 + 0x3c], r10d
mov dword [r11 + 0xc0], r10d
mov dword [r11 + 0x40], 0x40
mov dword [r11 + 0xc4], 0x40
mov dword [r11 + 0xb4], 1
mov rbx, qword [rsp + 0x10]
pop rdi
jmp fcn.14019dee0
Function at 0x1401ac950
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [rdx + 0x14], 0
mov rdi, r8
mov rbx, rdx
je 0x1401ac9b0
cmp dword [rdx + 8], 0
jne 0x1401ac974
call sub.KERNEL32.dll_GetTickCount
mov dword [rbx + 8], eax
cmp dword [rbx + 0x14], 0x3e8
jae 0x1401ac984
mov dword [rbx + 0x14], 0x7530
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [rbx + 8]
cmp eax, ecx
jbe 0x1401ac9b0
sub eax, ecx
cmp eax, dword [rbx + 0x14]
jbe 0x1401ac9b0
mov rcx, rdi
call fcn.14007d090
mov al, 1
mov byte [rdi + 0x28], 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor al, al
add rsp, 0x20
pop rdi
ret

Function at 0x1401b4130
Capabilities:
Resolve dns

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x1402c8b58]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, r9
mov rsi, r8
mov r14, rdx
mov rbx, rcx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rax
lea r8, str.dns_gethostbyname
mov rdx, r9
lea rcx, [rsp + 0x40]
call fcn.1400531e0
nop
xor ebp, ebp
mov dword [r14], ebp
mov rcx, rsi
call fcn.140033810
mov rax, qword [rdi]
mov r8, rbx
lea rdx, str.hostname
mov rcx, rdi
call qword [rax + 0x58]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x1401b4223
mov rcx, qword [rax + 0x18]
mov rdx, qword [rcx]
test rdx, rdx
je 0x1401b41bc
mov ebp, dword [rdx]
mov dword [r14], ebp
mov rax, qword [rax + 0x18]
mov r9, qword [rax]
lea rax, [r9 + 3]
lea rcx, [r9 + 2]
lea rdx, [r9 + 1]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rdx
lea r8, str._b._b._b._b
mov edx, 0x28
lea rcx, [rsp + 0x58]
call fcn.140051b10
lea rdx, [rsp + 0x58]
mov rcx, rsi
call fcn.14003a1d0
cmp byte [rdi + 0x169], 0
je 0x1401b421f
mov r8, rsi
lea rdx, [0x140231ba0]
mov rcx, rdi
call fcn.140053e80
mov bl, 1
jmp 0x1401b4225
xor bl, bl
lea rcx, [rsp + 0x40]
call fcn.140053390
movzx eax, bl
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1401e12d0
add rsp, 0x90
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1401b5ad0
Capabilities:
Connect socket
Connect udp socket
Create udp socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1402c8b58]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov esi, 2
mov qword [rcx + 8], 0
mov rdi, rcx
mov edx, esi
mov ecx, esi
xor r8d, r8d
mov rbx, r9
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rdi], rax
cmp rax, 0xffffffffffffffff
jne 0x1401b5b2b
mov rax, qword [rbx]
lea rdx, str.Failed_to_create_a_UDP_socket.
mov rcx, rbx
call qword [rax + 0x28]
xor al, al
jmp 0x1401b5b9e
lea rcx, [rdi + 0x28]
mov qword [rsp + 0x28], 0
mov word [rsp + 0x20], si
call fcn.1400366f0
mov rcx, rax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, 0x35
mov dword [rsp + 0x24], eax
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rdi]
lea rdx, [rsp + 0x20]
mov r8d, reloc.WS2_32.dll_recv
mov word [rsp + 0x22], ax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1401b5b9c
mov rax, qword [rbx]
lea rdx, str.Failed_to_specify_a_UDP_socket_destination_address.
mov rcx, rbx
call qword [rax + 0x28]
mov rcx, qword [rdi]
call qword [sym.imp.WS2_32.dll_closesocket]
xor al, al
mov qword [rdi], 0xffffffffffffffff
jmp 0x1401b5b9e
mov al, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401e12d0
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x670
mov rax, qword [0x1402c8b58]
xor rax, rsp
mov qword [rsp + 0x660], rax
mov rsi, qword [rsp + 0x6c0]
mov rdi, r8
mov rbx, qword [rsp + 0x6c8]
mov r14, rdx
movsxd rbp, ecx
mov rcx, r8
call fcn.1400409a0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x640
call fcn.140012bf0
mov rdx, rbx
mov rcx, rsi
call fcn.14007d210
test al, al
je 0x1401b5c39
mov rax, qword [rbx]
mov rcx, rbx
mov rdx, qword [str.DNS_query_aborted_by_application.]
call qword [rax + 0x28]
xor al, al
jmp 0x1401b5cd5
imul rcx, rbp, 0xb8
xor r9d, r9d
lea rdx, [rsp + 0x20]
mov r8d, 0x640
mov rcx, qword [rcx + r14]
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x1401b5cad
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2743
jne 0x1401b5c8e
mov byte [rsi + 0x2c], 1
mov ecx, eax
xor edx, edx
mov r8, rbx
call fcn.1401378a0
mov rax, qword [rbx]
lea rdx, str.Failed_to_receive_DNS_query_response_on_UDP_socket.
mov rcx, rbx
call qword [rax + 0x28]
xor al, al
jmp 0x1401b5cd5
cmp eax, 0x2733
je 0x1401b5c99
mov ecx, eax
jmp 0x1401b5c70
mov rax, qword [rbx]
lea rdx, str.Received_0_bytes.
mov rcx, rbx
call qword [rax + 0x28]
xor al, al
jmp 0x1401b5cd5
test eax, eax
jne 0x1401b5cc5
mov rax, qword [rbx]
lea rdx, str.Received_0_response_from_recv.
mov rcx, rbx
call qword [rax + 0x28]
xor al, al
jmp 0x1401b5cd5
mov r8d, eax
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14003eae0
mov rcx, qword [rsp + 0x660]
xor rcx, rsp
call fcn.1401e12d0
add rsp, 0x670
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1401b69e0
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1402c8b58]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [rsp + 0x90]
mov rsi, rcx
mov rcx, qword [rcx]
mov eax, r8d
mov rbp, rdx
cmp rcx, 0xffffffffffffffff
jne 0x1401b6a28
mov rax, qword [rdi]
lea rdx, str.Cannot_send_to_invalid_UDP_socket
mov rcx, rdi
call qword [rax + 0x28]
xor al, al
jmp 0x1401b6b15
cmp dword [rsi + 0x10], 6
jl 0x1401b6a45
mov rax, qword [rdi]
lea rdx, str.Too_many_retries_for_this_nameserver.
mov rcx, rdi
call qword [rax + 0x28]
xor al, al
jmp 0x1401b6b15
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov edx, eax
call fcn.1401b6f70
test al, al
jne 0x1401b6a7f
lea rdx, str.Waited__but_cannot_send_on_UDP_socket_without_waiting_longer.
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x28]
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_closesocket]
xor al, al
mov qword [rsi], 0xffffffffffffffff
jmp 0x1401b6b15
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x48], rbx
mov ecx, 2
call fcn.1400964c0
mov rcx, rbp
call fcn.140042d50
movzx edx, byte [rsp + 0x30]
mov rcx, rbp
mov byte [rax], dl
movzx edx, byte [rsp + 0x31]
mov byte [rax + 1], dl
movsxd rdx, dword [rsi + 0x10]
movzx eax, byte [rsp + 0x30]
mov byte [rsi + rdx*2 + 0x14], al
movsxd rdx, dword [rsi + 0x10]
movzx eax, byte [rsp + 0x31]
mov byte [rsi + rdx*2 + 0x15], al
call fcn.140043080
mov rcx, rbp
mov ebx, eax
call fcn.140042d50
mov rcx, qword [rsi]
mov rdx, rax
xor r9d, r9d
mov r8d, ebx
call qword [sym.imp.WS2_32.dll_send]
mov rbx, qword [rsp + 0x48]
cmp eax, 0xffffffff
jne 0x1401b6b10
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8, rdi
xor edx, edx
mov ecx, eax
call fcn.1401378a0
lea rdx, str.Failed_to_send_DNS_query_on_UDP_socket.
jmp 0x1401b6a5f
inc dword [rsi + 0x10]
mov al, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401e12d0
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401c14e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp byte [rcx + 0x3b0], 0
mov r9, r8
mov r8, rdx
lea rdx, [rcx + 0xb0]
jne 0x1401c2920
jmp 0x1401c1be0