joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402311a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1402311c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1402311c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x1402366a0
Capabilities:
Encode data using xor

Disassembly:
push rbx
movsxd rbx, r9d
mov r10, r8
mov r11, rdx
cmp rdx, r8
je 0x140236802
mov qword [rsp + 0x10], rsi
lea rsi, [rcx - 1]
not rcx
shr rsi, 0x3f
shr rcx, 0x3f
and rsi, rcx
mov ecx, dword [rdx + 8]
xor ecx, dword [r8 + 8]
dec rsi
and ecx, esi
xor dword [rdx + 8], ecx
xor dword [r8 + 8], ecx
mov ecx, dword [rdx + 0x10]
movq xmm4, rsi
xor ecx, dword [r8 + 0x10]
and ecx, esi
punpcklqdq xmm4, xmm4
xor dword [rdx + 0x10], ecx
xor dword [r8 + 0x10], ecx
mov edx, dword [rdx + 0x14]
mov ecx, dword [r8 + 0x14]
xor rcx, rdx
and ecx, 4
and rcx, rsi
mov eax, ecx
xor eax, edx
mov dword [r11 + 0x14], eax
xor dword [r8 + 0x14], ecx
xor ecx, ecx
mov edx, ecx
test r9d, r9d
jle 0x1402367be
cmp ebx, 2
jb 0x1402367be
mov r9, qword [r8]
lea rax, [rbx - 1]
mov r8, qword [r11]
mov qword [rsp + 0x18], rdi
lea rdi, [rbx - 1]
lea rdi, [r9 + rdi*8]
lea rax, [r8 + rax*8]
cmp r9, rax
ja 0x14023674e
cmp rdi, r8
jae 0x1402367b9
cmp r9, r10
ja 0x140236758
cmp rdi, r10
jae 0x1402367b9
cmp r9, r11
ja 0x140236762
cmp rdi, r11
jae 0x1402367b9
cmp r8, r10
ja 0x14023676c
cmp rax, r10
jae 0x1402367b9
cmp r8, r11
ja 0x140236776
cmp rax, r11
jae 0x1402367b9
mov eax, ebx
and eax, 0xfffffffe
nop dword [rax + rax]
movdqu xmm2, xmmword [r9 + rcx]
add edx, 2
movdqu xmm1, xmmword [r8 + rcx]
lea rcx, [rcx + 0x10]
movdqa xmm3, xmm2
xorps xmm3, xmm1
andps xmm3, xmm4
movdqa xmm0, xmm3
xorps xmm3, xmm2
xorps xmm0, xmm1
movdqu xmmword [r8 + rcx - 0x10], xmm0
movdqu xmmword [r9 + rcx - 0x10], xmm3
cmp edx, eax
jl 0x140236780
mov rdi, qword [rsp + 0x18]
movsxd rax, edx
cmp rax, rbx
jge 0x1402367fd
nop word [rax + rax]
mov rcx, qword [r11]
mov rdx, qword [rcx + rax*8]
lea r8, [rcx + rax*8]
mov rcx, qword [r10]
mov r9, rdx
xor r9, qword [rcx + rax*8]
and r9, rsi
xor rdx, r9
mov qword [r8], rdx
mov rcx, qword [r10]
xor qword [rcx + rax*8], r9
inc rax
cmp rax, rbx
jl 0x1402367d0
mov rsi, qword [rsp + 0x10]
pop rbx
ret
Function at 0x14024d850
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14024d890
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
xor ecx, ecx
mov dword [rbx], eax
cmp eax, 0xffffffff
setne cl
mov eax, ecx
add rsp, 0x20
pop rbx
ret

Function at 0x14024d9e0
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x14024ec70
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x38
cmp dword [0x1406a2460], 0
jne 0x14024ed04
xor edx, edx
mov dword [0x1406a2460], 1
mov r8d, 0x198
lea rcx, [0x1406a2470]
call fcn.140355f20
mov ecx, 0x202
lea rdx, [0x1406a2470]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14024ed04
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, 9
mov dword [rsp + 0x20], 0
lea r9, [0x14040b0d0]
mov r8d, eax
lea ecx, [rdx - 7]
call fcn.140244b50
mov edx, reloc.WS2_32.dll_WSASetLastError
mov dword [rsp + 0x20], 0
lea r9, [0x14040b0d0]
lea r8d, [rdx + 0xa]
lea ecx, [rdx - 0x50]
call fcn.140244b50
mov eax, 0xffffffff
add rsp, 0x38
ret
mov eax, 1
add rsp, 0x38
ret

Function at 0x14024ed10
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov dword [rsp + 0x40], edx
lea r8, [rsp + 0x40]
mov edx, 0x8004667e
movsxd rcx, ecx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor ebx, ebx
mov edi, eax
test eax, eax
jns 0x14024ed58
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r9, [0x14040b0d0]
mov dword [rsp + 0x20], ebx
mov r8d, eax
lea edx, [rbx + 5]
lea ecx, [rbx + 2]
call fcn.140244b50
test edi, edi
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14024ee70
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
xor edi, edi
mov ebx, r9d
mov ebp, r8d
mov r14, rdx
mov rsi, rcx
cmp r9d, 0x17
ja 0x14024efe4
mov eax, 0x800005
bt eax, ebx
jae 0x14024efe4
call fcn.14024ec70
cmp eax, 1
jne 0x14024f000
mov eax, dword [rsp + 0xa0]
mov ecx, edi
mov qword [rsp + 0x80], r15
xorps xmm0, xmm0
mov dword [rsp + 0x30], ecx
xorps xmm1, xmm1
mov dword [rsp + 0x34], ebx
mov r15d, edi
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x3c], edi
movdqu xmmword [rsp + 0x40], xmm0
movdqu xmmword [rsp + 0x50], xmm1
test rsi, rsi
je 0x14024eefd
test ebx, ebx
jne 0x14024eefd
bts ecx, 0xa
mov dword [rsp + 0x30], ecx
cmp ebp, 1
jne 0x14024ef08
or ecx, ebp
mov dword [rsp + 0x30], ecx
mov rbp, qword [rsp + 0xa8]
lea r8, [rsp + 0x30]
mov r9, rbp
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebx, eax
test eax, eax
je 0x14024ef6b
nop word [rax + rax]
cmp ebx, 8
je 0x14024efbe
mov ecx, dword [rsp + 0x30]
bt ecx, 0xa
jae 0x14024ef7d
btr ecx, 0xa
lea r8, [rsp + 0x30]
or ecx, 4
mov r9, rbp
mov dword [rsp + 0x30], ecx
mov rdx, r14
mov rcx, rsi
mov r15d, ebx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebx, eax
test eax, eax
jne 0x14024ef30
mov r15, qword [rsp + 0x80]
mov edi, 1
jmp 0x14024f000
mov edx, 0x8f
mov dword [rsp + 0x20], edi
lea r9, [0x14040b0d0]
lea ecx, [rdx - 0x6f]
lea r8d, [rcx - 0x1e]
call fcn.140244b50
test r15d, r15d
cmovne ebx, r15d
mov ecx, ebx
call fcn.14024f4b0
mov rdx, rax
mov ecx, 1
call fcn.140243f00
mov r15, qword [rsp + 0x80]
jmp 0x14024f000
mov edx, 0x8f
mov dword [rsp + 0x20], edi
lea r9, [0x14040b0d0]
lea ecx, [rdx - 0x6f]
lea r8d, [rdx - 0x4e]
call fcn.140244b50
mov r15, qword [rsp + 0x80]
jmp 0x14024f000
mov edx, 0x8f
mov dword [rsp + 0x20], edi
lea r9, [0x14040b0d0]
lea ecx, [rdx - 0x6f]
lea r8d, [rdx - 0xc]
call fcn.140244b50
lea r11, [rsp + 0x60]
mov eax, edi
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14024f2a0
Capabilities:
Resolve dns

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x488
mov rax, qword [0x14043c0c0]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov rdi, r9
mov rbx, r8
mov esi, edx
mov r14, rcx
call fcn.14024ec70
cmp eax, 1
je 0x14024f2db
xor eax, eax
jmp 0x14024f48f
xor edx, edx
mov qword [rsp + 0x480], rbp
mov r8d, 0x400
mov byte [rsp + 0x60], 0
lea rcx, [rsp + 0x61]
call fcn.140355f20
xor eax, eax
mov byte [rsp + 0x40], 0
mov qword [rsp + 0x51], rax
lea r8, [rsp + 0x60]
mov dword [rsp + 0x59], eax
neg esi
mov word [rsp + 0x5d], ax
mov ecx, reloc.WS2_32.dll_recv
mov byte [rsp + 0x5f], al
mov edx, 0x1c
sbb eax, eax
xorps xmm0, xmm0
and eax, 0xa
mov r9d, 0x401
cmp word [r14], 2
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x40]
cmove edx, ecx
mov dword [rsp + 0x28], 0x20
mov rcx, r14
mov qword [rsp + 0x20], rax
movups xmmword [rsp + 0x41], xmm0
call qword [sym.imp.WS2_32.dll_getnameinfo]
xor esi, esi
mov ebp, eax
test eax, eax
je 0x14024f39b
lea r9, [0x14040b0d0]
mov dword [rsp + 0x20], esi
mov edx, 0x86
lea ecx, [rsi + 0x20]
lea r8d, [rsi + 2]
call fcn.140244b50
mov ecx, ebp
call fcn.14024f4b0
mov rdx, rax
lea ecx, [rsi + 1]
call fcn.140243f00
xor eax, eax
jmp 0x14024f487
cmp byte [rsp + 0x40], sil
jne 0x14024f3e2
movzx eax, word [r14]
cmp ax, 2
jne 0x14024f3b3
movzx ecx, word [r14 + 2]
jmp 0x14024f3c2
cmp ax, 0x17
jne 0x14024f3c0
movzx ecx, word [r14 + 2]
jmp 0x14024f3c2
mov ecx, esi
call qword [sym.imp.WS2_32.dll_ntohs]
movzx r9d, ax
lea r8, [0x140364158]
mov edx, 0x20
lea rcx, [rsp + 0x40]
call fcn.140234d60
test rbx, rbx
je 0x14024f3fe
xor r8d, r8d
lea rdx, [0x14040b0d0]
lea rcx, [rsp + 0x60]
call fcn.14024e4e0
mov qword [rbx], rax
test rdi, rdi
je 0x14024f41a
xor r8d, r8d
lea rdx, [0x14040b0d0]
lea rcx, [rsp + 0x40]
call fcn.14024e4e0
mov qword [rdi], rax
test rbx, rbx
je 0x14024f424
cmp qword [rbx], rsi
je 0x14024f433
test rdi, rdi
je 0x14024f482
cmp qword [rdi], rsi
jne 0x14024f482
test rbx, rbx
je 0x14024f44d
mov rcx, qword [rbx]
lea rdx, [0x14040b0d0]
xor r8d, r8d
call fcn.140232630
mov qword [rbx], rsi
test rdi, rdi
je 0x14024f462
mov rcx, qword [rdi]
lea rdx, [0x14040b0d0]
xor r8d, r8d
call fcn.140232630
mov qword [rdi], rsi
mov edx, 0x86
mov dword [rsp + 0x20], esi
lea r9, [0x14040b0d0]
lea ecx, [rdx - 0x66]
lea r8d, [rdx - 0x45]
call fcn.140244b50
xor eax, eax
jmp 0x14024f487
mov eax, 1
mov rbp, qword [rsp + 0x480]
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140154c90
add rsp, 0x488
pop r14
pop rdi
pop rsi
pop rbx
ret

Function at 0x140257400
Capabilities:
Encode data using xor

Disassembly:
xor r9b, r9b
mov r10, rdx
test r8, r8
je 0x140257427
sub r10, rcx
nop
movzx edx, byte [r10 + rcx]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
xor dl, al
or r9b, dl
sub r8, 1
jne 0x140257410
movzx eax, r9b
ret
Function at 0x14025bda0
Capabilities:
Hash data using sha512

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x110
mov rax, qword [0x14043c0c0]
xor rax, rsp
mov qword [rsp + 0x100], rax
movabs rax, 0x6a09e667f3bcc908
mov dword [rsp + 0xf4], 0x40
mov qword [rsp + 0x20], rax
lea rsi, [0x1406a26a0]
movabs rax, 0xbb67ae8584caa73b
test r8, r8
mov qword [rsp + 0x28], rax
mov rbx, rdx
movabs rax, 0x3c6ef372fe94f82b
cmovne rsi, r8
mov qword [rsp + 0x30], rax
mov rdi, rcx
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rsp + 0x38], rax
movabs rax, 0x510e527fade682d1
mov qword [rsp + 0x40], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rsp + 0x48], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rsp + 0x50], rax
movabs rax, 0x5be0cd19137e2179
mov qword [rsp + 0x58], rax
xor eax, eax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov dword [rsp + 0xf0], eax
test rdx, rdx
je 0x14025bec7
mov rax, rdx
lea rcx, [rdx*8]
shr rax, 0x3d
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x60], rcx
cmp rdx, 0x80
jb 0x14025beb0
mov r8, rdx
lea rcx, [rsp + 0x20]
shr r8, 7
mov rdx, rdi
call fcn.14025c9f0
add rdi, rbx
and ebx, 0x7f
sub rdi, rbx
test rbx, rbx
je 0x14025bec7
mov r8, rbx
lea rcx, [rsp + 0x70]
mov rdx, rdi
call fcn.140355880
mov dword [rsp + 0xf0], ebx
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14025bf10
mov edx, 0xd8
lea rcx, [rsp + 0x20]
call fcn.14024e3b0
mov rax, rsi
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.140154c90
add rsp, 0x110
pop rdi
pop rsi
pop rbx
ret
Function at 0x14025fcc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movzx r9d, byte [rdx]
lea eax, [r8 - 1]
movzx r11d, r9b
movsxd r10, eax
shr r11b, 7
xor edi, edi
mov esi, r8d
mov rbx, rcx
test eax, eax
jle 0x14025fd24
mov r8, rcx
sub rdx, rcx
mov edi, eax
nop word [rax + rax]
movzx ecx, byte [r8 + rdx + 1]
lea r8, [r8 + 1]
add r9b, r9b
movzx eax, cl
shr al, 7
or al, r9b
movzx r9d, cl
mov byte [r8 - 1], al
sub r10, 1
jne 0x14025fd00
cmp esi, 0x10
mov eax, 0x87
mov rsi, qword [rsp + 0x10]
mov ecx, 0x1b
cmove ecx, eax
movsxd rax, edi
mov rdi, qword [rsp + 0x18]
neg r11b
and cl, r11b
add r9b, r9b
xor cl, r9b
mov byte [rax + rbx], cl
mov rbx, qword [rsp + 8]
ret

Function at 0x1402708e0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x38
mov r10, rcx
test r9, r9
jne 0x140270912
mov edx, 0xe2
mov dword [rsp + 0x20], r9d
lea r9, [0x14040b0d0]
mov ecx, reloc.WS2_32.dll_listen
lea r8d, [rdx - 4]
call fcn.140244b50
xor eax, eax
add rsp, 0x38
ret
movzx r11d, byte [r8]
and r11d, 0x80
test rdx, rdx
je 0x140270925
mov dword [rdx], r11d
cmp r9, 1
jne 0x140270947
test r10, r10
je 0x14027093d
movzx eax, byte [r8]
test r11d, r11d
je 0x14027093b
neg al
mov byte [rcx], al
mov eax, 1
add rsp, 0x38
ret
movzx ecx, byte [r8]
test cl, cl
jne 0x140270959
mov eax, 1
jmp 0x140270a0a
xor eax, eax
cmp cl, 0xff
jne 0x140270a43
xor edx, edx
lea rcx, [r9 - 1]
mov eax, 1
cmp r9, rax
jbe 0x1402709ff
cmp rcx, 8
jb 0x1402709f0
and ecx, 7
mov rdx, r9
sub rdx, rcx
xorps xmm3, xmm3
xorps xmm2, xmm2
nop dword [rax]
movd xmm1, dword [r8 + rax]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
orps xmm3, xmm1
movd xmm1, dword [r8 + rax + 4]
punpcklbw xmm1, xmm0
add rax, 8
punpcklwd xmm1, xmm0
orps xmm2, xmm1
cmp rax, rdx
jb 0x140270990
orps xmm2, xmm3
movdqa xmm0, xmm2
psrldq xmm0, 8
orps xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 4
orps xmm2, xmm0
movd edx, xmm2
cmp rax, r9
jae 0x1402709ff
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r8 + rax]
inc rax
or edx, ecx
cmp rax, r9
jb 0x1402709f0
xor eax, eax
test edx, edx
setne al
test edx, edx
je 0x140270a43
movzx ecx, byte [r8 + 1]
and ecx, 0x80
cmp r11d, ecx
jne 0x140270a43
mov edx, 0xe2
mov dword [rsp + 0x20], 0
lea r9, [0x14040b0d0]
mov ecx, reloc.WS2_32.dll_listen
lea r8d, [rdx - 5]
call fcn.140244b50
xor eax, eax
add rsp, 0x38
ret
mov qword [rsp + 0x30], rbx
mov rbx, r9
sub rbx, rax
test r10, r10
je 0x140270a8d
neg r11d
sbb r11d, r11d
add r9, r8
movzx r11d, r11b
mov edx, r11d
and edx, 1
test rbx, rbx
je 0x140270a8d
mov r8, rbx
nop
movzx ecx, byte [r9 - 1]
lea r9, [r9 - 1]
dec r8
xor ecx, r11d
add edx, ecx
mov byte [r10 + r8], dl
shr edx, 8
test r8, r8
jne 0x140270a70
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x38
ret

Function at 0x140270b60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r8d, dword [rcx + 4]
mov r9, rdx
movsxd rdx, dword [rcx]
and r8d, 0x100
mov rcx, qword [rcx + 8]
jmp fcn.140270b80
Function at 0x140270b80
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
mov r10, rdx
xor r11b, r11b
xor edx, edx
mov rdi, r9
mov rbx, rcx
test rcx, rcx
je 0x140270c81
test r10, r10
je 0x140270c81
movzx eax, byte [rcx]
test r8d, r8d
jne 0x140270bc9
cmp al, 0x7f
jbe 0x140270c7a
mov edx, 1
mov eax, edx
add rax, r10
jmp 0x140270c89
mov r11b, 0xff
cmp al, 0x80
jbe 0x140270bdf
mov edx, 1
mov eax, edx
add rax, r10
jmp 0x140270c89
jne 0x140270c7a
mov eax, 1
lea rcx, [r10 - 1]
cmp r10, rax
jbe 0x140270c6f
cmp rcx, 8
jb 0x140270c61
and ecx, 7
mov rdx, r10
sub rdx, rcx
xorps xmm3, xmm3
xorps xmm2, xmm2
nop dword [rax]
movd xmm1, dword [rbx + rax]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
orps xmm3, xmm1
movd xmm1, dword [rbx + rax + 4]
punpcklbw xmm1, xmm0
add rax, 8
punpcklwd xmm1, xmm0
orps xmm2, xmm1
cmp rax, rdx
jb 0x140270c10
orps xmm2, xmm3
movdqa xmm0, xmm2
psrldq xmm0, 8
orps xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 4
orps xmm2, xmm0
movd edx, xmm2
cmp rax, r10
jae 0x140270c6f
movzx ecx, byte [rbx + rax]
inc rax
or edx, ecx
cmp rax, r10
jb 0x140270c61
neg edx
sbb r11b, r11b
mov edx, r11d
and edx, 1
mov eax, edx
add rax, r10
jmp 0x140270c89
mov eax, 1
mov r10, rdx
test rdi, rdi
je 0x140270cd5
mov rcx, qword [r9]
test rcx, rcx
je 0x140270cd5
mov r8d, r11d
mov byte [rcx], r11b
and r8d, 1
lea r9, [rbx + r10]
test r10, r10
je 0x140270cd2
mov ebx, edx
add rbx, rcx
nop
movzx edx, byte [r9 - 1]
lea r9, [r9 - 1]
dec r10
movzx ecx, r11b
xor edx, ecx
add r8d, edx
mov byte [rbx + r10], r8b
shr r8d, 8
test r10, r10
jne 0x140270cb0
add qword [rdi], rax
mov rbx, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret

Function at 0x140277520
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edx, 1
mov rdi, rcx
call fcn.140242310
mov rdx, rax
mov rcx, rdi
mov rsi, rax
call fcn.140242190
test rax, rax
je 0x14027758d
mov qword [rsp + 0x30], rbx
mov r8d, esi
xor ebx, ebx
mov rdx, rax
xor ecx, ecx
lea r9d, [rbx + 2]
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
mov rcx, rdi
cmove rbx, rsi
mov rdx, rbx
lea r8, [rbx*8]
call fcn.140242220
mov rcx, rdi
call fcn.140242400
mov rbx, qword [rsp + 0x30]
test rax, rax
jne 0x140277595
mov rcx, rdi
call fcn.140242400
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14027a080
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
xor eax, eax
mov r10, rcx
test rcx, rcx
je 0x14027a0ec
movzx ecx, byte [rcx]
test cl, cl
je 0x14027a0ec
mov r11d, 0x100
nop word [rax + rax]
movsx r9d, cl
lea r10, [r10 + 1]
or r9d, r11d
mov r8d, eax
mov edx, r9d
mov ecx, 0x20
shr edx, 2
add r11d, 0x100
xor edx, r9d
imul r9d, r9d
and edx, 0xf
sub ecx, edx
shr r8, cl
mov ecx, edx
mov edx, eax
mov eax, r8d
shl edx, cl
movzx ecx, byte [r10]
or eax, edx
xor eax, r9d
test cl, cl
jne 0x14027a0a0
mov ecx, eax
shr ecx, 0x10
xor eax, ecx
ret
Function at 0x14027a0f0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rdi, rcx
test rcx, rcx
je 0x14027a178
movzx eax, byte [rcx]
test al, al
je 0x14027a178
mov qword [rsp + 0x30], rsi
mov esi, 0x100
movsx ecx, al
call fcn.14024f970
mov r9d, eax
mov edx, ebx
or r9d, esi
lea rdi, [rdi + 1]
mov eax, ebx
mov r8d, r9d
shr r8d, 2
mov ecx, 0x20
xor r8d, r9d
add esi, 0x100
and r8d, 0xf
imul r9d, r9d
sub ecx, r8d
shr rdx, cl
mov ecx, r8d
shl eax, cl
mov ebx, edx
or ebx, eax
movzx eax, byte [rdi]
xor ebx, r9d
test al, al
jne 0x14027a115
mov rsi, qword [rsp + 0x30]
mov eax, ebx
shr eax, 0x10
xor eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x140284120
Capabilities:
Get thread local storage value

Disassembly:
lea rcx, [0x1406a278c]
jmp fcn.14024d850

Function at 0x1402858c0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x30
movsxd rbx, ecx
mov edi, r8d
mov dword [rsp + 0x40], 1
mov rbp, rdx
cmp ebx, 0xffffffff
jne 0x140285915
xor ebx, ebx
lea r9, [0x14040b0d0]
mov edx, 0x8a
mov dword [rsp + 0x20], ebx
lea ecx, [rbx + 0x20]
lea r8d, [rdx - 3]
call fcn.140244b50
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov edx, edi
mov qword [rsp + 0x48], rsi
shr edx, 3
mov ecx, ebx
and edx, 1
call fcn.14024ed10
test eax, eax
je 0x140285998
mov rsi, rbx
test dil, 4
je 0x1402859af
lea r9, [rsp + 0x40]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 8
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x1402859af
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
xor ebx, ebx
lea r9, [0x14040b0d0]
mov r8d, eax
mov dword [rsp + 0x20], ebx
lea edx, [rbx + 0xe]
lea ecx, [rbx + 2]
call fcn.140244b50
mov edx, 0x8a
mov dword [rsp + 0x20], ebx
lea r9, [0x14040b0d0]
lea ecx, [rbx + 0x20]
lea r8d, [rdx - 1]
call fcn.140244b50
xor eax, eax
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
test dil, 0x10
je 0x140285a11
mov edx, 6
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x40]
mov rcx, rsi
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x140285a11
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
xor ebx, ebx
lea r9, [0x14040b0d0]
mov r8d, eax
mov dword [rsp + 0x20], ebx
lea edx, [rbx + 0xe]
lea ecx, [rbx + 2]
call fcn.140244b50
mov edx, 0x8a
mov dword [rsp + 0x20], ebx
mov r8d, edx
lea r9, [0x14040b0d0]
lea ecx, [rbx + 0x20]
jmp 0x140285993
mov rcx, rbp
call fcn.14024ee50
mov rcx, rbp
mov ebx, eax
call fcn.140158de0
mov rdx, rax
mov r8d, ebx
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140285a84
mov ecx, eax
call fcn.140285840
test eax, eax
jne 0x140285998
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, 2
lea r9, [0x14040b0d0]
xor ebx, ebx
mov ecx, edx
mov r8d, eax
mov dword [rsp + 0x20], ebx
call fcn.140244b50
lea r9, [0x14040b0d0]
mov dword [rsp + 0x20], ebx
mov edx, 0x8a
lea ecx, [rbx + 0x20]
lea r8d, [rbx + 0x67]
jmp 0x140285993
mov eax, 1
jmp 0x14028599a
Function at 0x14028f6b0
Capabilities:
Encrypt data using curve25519

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r13
push r14
push r15
sub rsp, 0x40
movsxd rbx, dword [rsp + 0x80]
xor esi, esi
cmp dword [rsp + 0x88], 2
mov r15, r9
mov edi, edx
mov r13, rcx
lea r14d, [rsi + 0x20]
je 0x14028f758
test r8, r8
je 0x14028f72c
mov r9, r8
lea rdx, [rsp + 0x30]
xor r8d, r8d
xor ecx, ecx
call fcn.14026d4d0
cmp dword [rsp + 0x30], 0xffffffff
je 0x14028f72c
mov ecx, reloc.WS2_32.dll_recv
mov dword [rsp + 0x20], esi
lea r9, [0x14040b0d0]
mov edx, 0x10a
lea r8d, [rcx + 0x56]
call fcn.140244b50
xor eax, eax
jmp 0x14028f8b7
test r15, r15
je 0x14028f707
cmp edi, 0x40a
je 0x14028f751
cmp edi, 0x43f
je 0x14028f751
cmp edi, 0x40b
mov eax, esi
setne al
add eax, 0x38
jmp 0x14028f754
mov eax, r14d
cmp ebx, eax
jne 0x14028f707
xor r8d, r8d
mov qword [rsp + 0x60], rbp
lea rdx, [0x14040b0d0]
lea ecx, [r8 + 0x48]
call fcn.140232950
mov rbp, rax
test rax, rax
jne 0x14028f79b
lea r9, [0x14040b0d0]
mov dword [rsp + 0x20], esi
mov edx, 0x10a
lea ecx, [rax + 0x10]
lea r8d, [rax + 0x41]
call fcn.140244b50
xor eax, eax
jmp 0x14028f8b2
cmp dword [rsp + 0x88], esi
jne 0x14028f7b7
mov r8, rbx
mov rdx, r15
mov rcx, rbp
call fcn.140355880
jmp 0x14028f8a0
cmp edi, 0x40a
je 0x14028f7d9
cmp edi, 0x43f
je 0x14028f7d9
cmp edi, 0x40b
mov rcx, rsi
setne cl
add rcx, 0x38
jmp 0x14028f7dc
mov rcx, r14
xor r8d, r8d
lea rdx, [0x14040b0d0]
call fcn.14024fa00
mov qword [rbp + 0x40], rax
mov rbx, rax
test rax, rax
jne 0x14028f815
lea r9, [0x14040b0d0]
mov dword [rsp + 0x20], esi
mov edx, 0x10a
lea ecx, [rax + 0x10]
lea r8d, [rax + 0x41]
call fcn.140244b50
jmp 0x14028f869
cmp dword [rsp + 0x88], 2
jne 0x14028f8ed
cmp edi, 0x40a
je 0x14028f844
cmp edi, 0x43f
je 0x14028f844
cmp edi, 0x40b
mov r14d, esi
setne r14b
add r14d, 0x38
mov edx, r14d
mov rcx, rbx
call fcn.140241890
test eax, eax
jg 0x14028f87f
xor r8d, r8d
lea rdx, [0x14040b0d0]
mov rcx, rbx
call fcn.14024f9f0
mov qword [rbp + 0x40], rsi
xor r8d, r8d
lea rdx, [0x14040b0d0]
mov rcx, rbp
call fcn.140232630
xor eax, eax
jmp 0x14028f8b2
cmp edi, 0x40a
jne 0x14028f8d1
movzx eax, byte [rbx + 0x1f]
and byte [rbx], 0xf8
and al, 0x3f
or al, 0x40
mov byte [rbx + 0x1f], al
mov rdx, rbx
mov rcx, rbp
call fcn.1402c0890
mov r8, rbp
mov edx, edi
mov rcx, r13
call fcn.14023b870
mov eax, 1
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
ret
cmp edi, 0x40b
jne 0x14028f91e
and byte [rbx], 0xfc
or byte [rbx + 0x37], 0x80
mov rdx, rbx
mov rcx, rbp
call fcn.1402c88e0
jmp 0x14028f8a0
cmp edi, 0x40a
je 0x14028f90d
cmp edi, 0x43f
je 0x14028f90d
cmp edi, 0x40b
setne sil
add rsi, 0x38
jmp 0x14028f910
mov rsi, r14
mov r8, rsi
mov rdx, r15
mov rcx, rbx
call fcn.140355880
mov ecx, edi
sub ecx, 0x40a
je 0x14028f895
sub ecx, 1
je 0x14028f8e0
sub ecx, 0x34
je 0x14028f94f
cmp ecx, 1
jne 0x14028f8a0
mov rdx, rbx
mov rcx, rbp
call fcn.1402cbf50
jmp 0x14028f8a0
mov rdx, rbx
mov rcx, rbp
call fcn.1402c02e0
jmp 0x14028f8a0