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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r15
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbp, rcx
mov ecx, dword [rcx + 0x20]
mov rsi, rdx
add rcx, 0x18
mov r15d, r8d
lea r9d, [rax + rax]
add rcx, r9
call qword [str.h5_]
mov rbx, rax
test rax, rax
jne 0x1402373b3
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop rsi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rdi
mov qword [rbx + 0x10], rax
lea rdi, [rbp + 8]
mov qword [rsp + 0x50], r14
cmp r15d, dword [rbp + 0x1c]
jbe 0x140237400
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, rsi
call qword [rdi]
mov esi, dword [rbp + 0x18]
add rsi, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, rsi
call qword [rbp + reloc.WS2_32.dll_recv]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor r14d, r14d
test r15, r15
je 0x140237462
mov r14, r15
nop dword [rax]
movzx eax, byte [rsi]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rbx + 8]
call qword [rdi]
movzx eax, byte [rsi]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea rsi, [rsi + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rdi]
sub r15, 1
jne 0x140237420
lea rdi, [rbp + 8]
mov eax, dword [rbp + 0x1c]
cmp r14, rax
jae 0x1402374a1
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x1403a12f8]
mov r8d, 1
call qword [rdi]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1403a12f9]
mov r8d, 1
call qword [rdi]
mov eax, dword [rbp + 0x1c]
inc r14
cmp r14, rax
jb 0x140237470
mov r14, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rsi
pop rbp
ret

Function at 0x140238a30
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 0x140238a60
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 0x140238aa0
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 0x140239d20
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 0x140239d68
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r9, [0x140400f91]
mov dword [rsp + 0x20], ebx
mov r8d, eax
lea edx, [rbx + 5]
lea ecx, [rbx + 2]
call fcn.1401d6280
test edi, edi
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140239d80
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x38
cmp dword [0x1406c7c50], 0
jne 0x140239e14
xor edx, edx
mov dword [0x1406c7c50], 1
mov r8d, 0x198
lea rcx, [0x1406c7c60]
call fcn.1403743d0
mov ecx, 0x202
lea rdx, [0x1406c7c60]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140239e14
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, 9
mov dword [rsp + 0x20], 0
lea r9, [0x140400f91]
mov r8d, eax
lea ecx, [rdx - 7]
call fcn.1401d6280
mov edx, reloc.WS2_32.dll_WSASetLastError
mov dword [rsp + 0x20], 0
lea r9, [0x140400f91]
lea r8d, [rdx + 0xa]
lea ecx, [rdx - 0x50]
call fcn.1401d6280
mov eax, 0xffffffff
add rsp, 0x38
ret
mov eax, 1
add rsp, 0x38
ret
Function at 0x14023a1d0
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 0x14023a344
mov eax, 0x800005
bt eax, ebx
jae 0x14023a344
call fcn.140239d80
cmp eax, 1
jne 0x14023a360
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 0x14023a25d
test ebx, ebx
jne 0x14023a25d
bts ecx, 0xa
mov dword [rsp + 0x30], ecx
cmp ebp, 1
jne 0x14023a268
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 0x14023a2cb
nop word [rax + rax]
cmp ebx, 8
je 0x14023a31e
mov ecx, dword [rsp + 0x30]
bt ecx, 0xa
jae 0x14023a2dd
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 0x14023a290
mov r15, qword [rsp + 0x80]
mov edi, 1
jmp 0x14023a360
mov edx, 0x8f
mov dword [rsp + 0x20], edi
lea r9, [0x140400f91]
lea ecx, [rdx - 0x6f]
lea r8d, [rcx - 0x1e]
call fcn.1401d6280
test r15d, r15d
cmovne ebx, r15d
mov ecx, ebx
call fcn.140239e40
mov rdx, rax
mov ecx, 1
call fcn.1401d6900
mov r15, qword [rsp + 0x80]
jmp 0x14023a360
mov edx, 0x8f
mov dword [rsp + 0x20], edi
lea r9, [0x140400f91]
lea ecx, [rdx - 0x6f]
lea r8d, [rdx - 0x4e]
call fcn.1401d6280
mov r15, qword [rsp + 0x80]
jmp 0x14023a360
mov edx, 0x8f
mov dword [rsp + 0x20], edi
lea r9, [0x140400f91]
lea ecx, [rdx - 0x6f]
lea r8d, [rdx - 0xc]
call fcn.1401d6280
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 0x14023a3a0
Capabilities:
Resolve dns

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x488
mov rax, qword [0x140463cc0]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov rdi, r9
mov rbx, r8
mov esi, edx
mov r14, rcx
call fcn.140239d80
cmp eax, 1
je 0x14023a3db
xor eax, eax
jmp 0x14023a58f
xor edx, edx
mov qword [rsp + 0x480], rbp
mov r8d, 0x400
mov byte [rsp + 0x60], 0
lea rcx, [rsp + 0x61]
call fcn.1403743d0
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 0x14023a49b
lea r9, [0x140400f91]
mov dword [rsp + 0x20], esi
mov edx, 0x86
lea ecx, [rsi + 0x20]
lea r8d, [rsi + 2]
call fcn.1401d6280
mov ecx, ebp
call fcn.140239e40
mov rdx, rax
lea ecx, [rsi + 1]
call fcn.1401d6900
xor eax, eax
jmp 0x14023a587
cmp byte [rsp + 0x40], sil
jne 0x14023a4e2
movzx eax, word [r14]
cmp ax, 2
jne 0x14023a4b3
movzx ecx, word [r14 + 2]
jmp 0x14023a4c2
cmp ax, 0x17
jne 0x14023a4c0
movzx ecx, word [r14 + 2]
jmp 0x14023a4c2
mov ecx, esi
call qword [sym.imp.WS2_32.dll_ntohs]
movzx r9d, ax
lea r8, [0x140401aa8]
mov edx, 0x20
lea rcx, [rsp + 0x40]
call fcn.1401ba430
test rbx, rbx
je 0x14023a4fe
xor r8d, r8d
lea rdx, [0x140400f91]
lea rcx, [rsp + 0x60]
call fcn.1402399e0
mov qword [rbx], rax
test rdi, rdi
je 0x14023a51a
xor r8d, r8d
lea rdx, [0x140400f91]
lea rcx, [rsp + 0x40]
call fcn.1402399e0
mov qword [rdi], rax
test rbx, rbx
je 0x14023a524
cmp qword [rbx], rsi
je 0x14023a533
test rdi, rdi
je 0x14023a582
cmp qword [rdi], rsi
jne 0x14023a582
test rbx, rbx
je 0x14023a54d
mov rcx, qword [rbx]
lea rdx, [0x140400f91]
xor r8d, r8d
call fcn.1401b7d10
mov qword [rbx], rsi
test rdi, rdi
je 0x14023a562
mov rcx, qword [rdi]
lea rdx, [0x140400f91]
xor r8d, r8d
call fcn.1401b7d10
mov qword [rdi], rsi
mov edx, 0x86
mov dword [rsp + 0x20], esi
lea r9, [0x140400f91]
lea ecx, [rdx - 0x66]
lea r8d, [rdx - 0x45]
call fcn.1401d6280
xor eax, eax
jmp 0x14023a587
mov eax, 1
mov rbp, qword [rsp + 0x480]
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14016e4d0
add rsp, 0x488
pop r14
pop rdi
pop rsi
pop rbx
ret

Function at 0x140242640
Capabilities:
Encode data using xor

Disassembly:
xor r9b, r9b
mov r10, rdx
test r8, r8
je 0x140242667
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 0x140242650
movzx eax, r9b
ret
Function at 0x1402477b0
Capabilities:
Hash data using sha512

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x110
mov rax, qword [0x140463cc0]
xor rax, rsp
mov qword [rsp + 0x100], rax
movabs rax, 0x6a09e667f3bcc908
mov dword [rsp + 0xf4], 0x40
mov qword [rsp + 0x20], rax
lea rsi, [0x1406c86d0]
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 0x1402478d7
mov rax, rdx
lea rcx, [rdx*8]
shr rax, 0x3d
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x60], rcx
cmp rdx, 0x80
jb 0x1402478c0
mov r8, rdx
lea rcx, [rsp + 0x20]
shr r8, 7
mov rdx, rdi
call fcn.140247a50
add rdi, rbx
and ebx, 0x7f
sub rdi, rbx
test rbx, rbx
je 0x1402478d7
mov r8, rbx
lea rcx, [rsp + 0x70]
mov rdx, rdi
call fcn.140373d30
mov dword [rsp + 0xf0], ebx
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140246fa0
mov edx, 0xd8
lea rcx, [rsp + 0x20]
call fcn.140239460
mov rax, rsi
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.14016e4d0
add rsp, 0x110
pop rdi
pop rsi
pop rbx
ret
Function at 0x14025b4e0
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.14025b720

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

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
mov r10, rdx
xor r11b, r11b
xor edx, edx
mov rsi, r9
mov rbx, rcx
test rcx, rcx
je 0x14025b821
test r10, r10
je 0x14025b821
movzx eax, byte [rcx]
test r8d, r8d
jne 0x14025b765
cmp al, 0x7f
jbe 0x14025b81a
mov edx, 1
mov eax, edx
add rax, r10
jmp 0x14025b829
mov r11b, 0xff
cmp al, 0x80
jbe 0x14025b77b
mov edx, 1
mov eax, edx
add rax, r10
jmp 0x14025b829
jne 0x14025b81a
mov eax, 1
lea rcx, [r10 - 1]
cmp r10, rax
jbe 0x14025b80f
cmp rcx, 8
jb 0x14025b801
and ecx, 7
mov rdx, r10
sub rdx, rcx
xorps xmm3, xmm3
xorps xmm2, xmm2
nop dword [rax + rax]
movd xmm1, dword [rax + rbx]
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 0x14025b7b0
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 0x14025b80f
movzx ecx, byte [rax + rbx]
inc rax
or edx, ecx
cmp rax, r10
jb 0x14025b801
neg edx
sbb r11b, r11b
mov edx, r11d
and edx, 1
mov eax, edx
add rax, r10
jmp 0x14025b829
mov eax, 1
mov r10, rdx
mov qword [rsp + 0x18], rdi
test rsi, rsi
je 0x14025b885
mov rdi, qword [r9]
test rdi, rdi
je 0x14025b885
mov r8d, r11d
mov byte [rdi], r11b
and r8d, 1
lea r9, [rbx + r10]
test r10, r10
je 0x14025b882
mov ebx, edx
add rbx, rdi
nop dword [rax]
nop word [rax + rax]
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 0x14025b860
add qword [rsi], rax
mov rdi, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x20]
pop rsi
ret
Function at 0x14025b8a0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x38
mov r10, rcx
test r9, r9
jne 0x14025b8d2
mov edx, 0xe2
mov dword [rsp + 0x20], r9d
lea r9, [0x140400f91]
mov ecx, reloc.WS2_32.dll_listen
lea r8d, [rdx - 4]
call fcn.1401d6280
xor eax, eax
add rsp, 0x38
ret
movzx r11d, byte [r8]
and r11d, 0x80
test rdx, rdx
je 0x14025b8e5
mov dword [rdx], r11d
cmp r9, 1
jne 0x14025b907
test r10, r10
je 0x14025b8fd
movzx eax, byte [r8]
test r11d, r11d
je 0x14025b8fb
neg al
mov byte [rcx], al
mov eax, 1
add rsp, 0x38
ret
movzx ecx, byte [r8]
test cl, cl
jne 0x14025b919
mov eax, 1
jmp 0x14025b9ca
xor eax, eax
cmp cl, 0xff
jne 0x14025ba03
xor edx, edx
lea rcx, [r9 - 1]
mov eax, 1
cmp r9, rax
jbe 0x14025b9bf
cmp rcx, 8
jb 0x14025b9b0
and ecx, 7
mov rdx, r9
sub rdx, rcx
xorps xmm3, xmm3
xorps xmm2, xmm2
nop dword [rax]
movd xmm1, dword [rax + r8]
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 0x14025b950
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 0x14025b9bf
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [rax + r8]
inc rax
or edx, ecx
cmp rax, r9
jb 0x14025b9b0
xor eax, eax
test edx, edx
setne al
test edx, edx
je 0x14025ba03
movzx ecx, byte [r8 + 1]
and ecx, 0x80
cmp r11d, ecx
jne 0x14025ba03
mov edx, 0xe2
mov dword [rsp + 0x20], 0
lea r9, [0x140400f91]
mov ecx, reloc.WS2_32.dll_listen
lea r8d, [rdx - 5]
call fcn.1401d6280
xor eax, eax
add rsp, 0x38
ret
mov qword [rsp + 0x30], rbx
mov rbx, r9
sub rbx, rax
test r10, r10
je 0x14025ba4d
neg r11d
sbb r11d, r11d
add r9, r8
movzx r11d, r11b
mov edx, r11d
and edx, 1
test rbx, rbx
je 0x14025ba4d
mov r8, rbx
nop
movzx ecx, byte [r9 - 1]
lea r9, [r9 - 1]
dec r8
xor ecx, r11d
add edx, ecx
mov byte [r8 + r10], dl
shr edx, 8
test r8, r8
jne 0x14025ba30
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x38
ret

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

Disassembly:
xor eax, eax
mov r10, rcx
test rcx, rcx
je 0x1402622dc
movzx ecx, byte [rcx]
test cl, cl
je 0x1402622dc
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 0x140262290
mov ecx, eax
shr ecx, 0x10
xor eax, ecx
ret
Function at 0x1402622f0
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 0x140262378
movzx eax, byte [rcx]
test al, al
je 0x140262378
mov qword [rsp + 0x30], rsi
mov esi, 0x100
movsx ecx, al
call fcn.14023aa10
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 0x140262315
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 0x1402646a0
Capabilities:
Get thread local storage value

Disassembly:
lea rcx, [0x1406c8760]
jmp fcn.140238a60
Function at 0x14028ade0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push r13
push r14
sub rsp, 0x40
mov rsi, qword [rcx + 0x70]
mov rbx, r8
mov r8d, dword [rsi + 0x70]
lea r13, [rsi + 0x70]
mov qword [rsp + 0x38], r13
mov rbp, r9
mov r14, rdx
test r8d, r8d
je 0x14028ae56
test r9, r9
je 0x14028ae32
cmp r8d, 0x40
jae 0x14028ae32
mov eax, r8d
inc r8d
movzx ecx, byte [rax + rsi + 0x30]
xor cl, byte [rbx]
inc rbx
mov byte [r14], cl
inc r14
sub rbp, 1
jne 0x14028ae10
mov dword [r13], r8d
test rbp, rbp
je 0x14028af89
cmp r8d, 0x40
jne 0x14028ae56
mov dword [r13], 0
add dword [rsi + 0x20], 1
jne 0x14028ae56
inc dword [rsi + 0x24]
mov ecx, dword [rsi + 0x20]
lea rax, [rsi + 0x20]
mov qword [rsp + 0x80], r12
mov r12d, ebp
and r12d, 0x3f
mov qword [rsp + 0x88], r15
mov r15d, r12d
sub rbp, r15
mov dword [rsp + 0x30], r12d
cmp rbp, 0x40
jb 0x14028af16
mov qword [rsp + 0x78], rdi
lea r13, [rsi + 0x20]
mov r12d, 0x10000000
mov r15d, ecx
nop dword [rax + rax]
mov rdx, rbp
mov qword [rsp + 0x20], r13
shr rdx, 6
mov r9, rsi
cmp rdx, r12
cmova rdx, r12
mov rdi, rdx
lea eax, [rdx + r15]
xor r15d, r15d
mov ecx, eax
cmp rcx, rdx
cmovae r15d, eax
sub rdi, rcx
cmp rcx, rdx
mov rcx, r14
cmovae rdi, rdx
mov rdx, rbx
shl rdi, 6
mov r8, rdi
call fcn.1402ea620
sub rbp, rdi
mov dword [r13], r15d
add rbx, rdi
add r14, rdi
test r15d, r15d
jne 0x14028aefa
inc dword [rsi + 0x24]
cmp rbp, 0x40
jae 0x14028aea0
mov r12d, dword [rsp + 0x30]
lea rax, [rsi + 0x20]
mov rdi, qword [rsp + 0x78]
mov r15d, r12d
mov r13, qword [rsp + 0x38]
test r12d, r12d
je 0x14028af79
lea rcx, [rsi + 0x30]
mov qword [rsp + 0x20], rax
xorps xmm0, xmm0
mov r9, rsi
movups xmmword [rcx], xmm0
mov r8d, 0x40
mov rdx, rcx
movups xmmword [rcx + 0x10], xmm0
movups xmmword [rcx + 0x20], xmm0
movups xmmword [rcx + 0x30], xmm0
call fcn.1402ea620
test r12d, r12d
je 0x14028af75
sub rsi, rbx
sub r14, rbx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rsi + rbx + 0x30]
xor al, byte [rbx]
mov byte [r14 + rbx], al
lea rbx, [rbx + 1]
sub r15, 1
jne 0x14028af60
mov dword [r13], r12d
mov r12, qword [rsp + 0x80]
mov r15, qword [rsp + 0x88]
mov eax, 1
add rsp, 0x40
pop r14
pop r13
pop rsi
pop rbp
pop rbx
ret
Function at 0x14028dc90
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.1401d4670
mov rdx, rax
mov rcx, rdi
mov rsi, rax
call fcn.1401d4820
test rax, rax
je 0x14028dcfd
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.1401d48b0
mov rcx, rdi
call fcn.1401d4650
mov rbx, qword [rsp + 0x30]
test rax, rax
jne 0x14028dd05
mov rcx, rdi
call fcn.1401d4650
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140296740
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x14029674b
xor eax, eax
ret
lea r11, [0x1403be6a0]
not ecx
cmp r8d, 8
jb 0x140296821
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x140296770
test r8d, r8d
je 0x14029684d
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x140296830
not ecx
mov eax, ecx
ret
Function at 0x14029b890
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 0x14029b8e5
xor ebx, ebx
lea r9, [0x140400f91]
mov edx, 0x8a
mov dword [rsp + 0x20], ebx
lea ecx, [rbx + 0x20]
lea r8d, [rdx - 3]
call fcn.1401d6280
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.140239d20
test eax, eax
je 0x14029b968
mov rsi, rbx
test dil, 4
je 0x14029b97f
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 0x14029b97f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
xor ebx, ebx
lea r9, [0x140400f91]
mov r8d, eax
mov dword [rsp + 0x20], ebx
lea edx, [rbx + 0xe]
lea ecx, [rbx + 2]
call fcn.1401d6280
mov edx, 0x8a
mov dword [rsp + 0x20], ebx
lea r9, [0x140400f91]
lea ecx, [rbx + 0x20]
lea r8d, [rdx - 1]
call fcn.1401d6280
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 0x14029b9e1
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 0x14029b9e1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
xor ebx, ebx
lea r9, [0x140400f91]
mov r8d, eax
mov dword [rsp + 0x20], ebx
lea edx, [rbx + 0xe]
lea ecx, [rbx + 2]
call fcn.1401d6280
mov edx, 0x8a
mov dword [rsp + 0x20], ebx
mov r8d, edx
lea r9, [0x140400f91]
lea ecx, [rbx + 0x20]
jmp 0x14029b963
mov rcx, rbp
call fcn.14023a380
mov rcx, rbp
mov ebx, eax
call fcn.140187740
mov rdx, rax
mov r8d, ebx
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x14029ba54
mov ecx, eax
call fcn.140261130
test eax, eax
jne 0x14029b968
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, 2
lea r9, [0x140400f91]
xor ebx, ebx
mov ecx, edx
mov r8d, eax
mov dword [rsp + 0x20], ebx
call fcn.1401d6280
lea r9, [0x140400f91]
mov dword [rsp + 0x20], ebx
mov edx, 0x8a
lea ecx, [rbx + 0x20]
lea r8d, [rbx + 0x67]
jmp 0x14029b963
mov eax, 1
jmp 0x14029b96a