joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402269a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rax, qword [rcx + 0x20]
xor r15d, r15d
sub rax, 0x34
mov qword [rcx + 0x78], r15
mov qword [rcx + 0x28], rax
mov r14d, edx
mov rax, qword [rcx + 0x30]
mov rbx, rcx
mov word [rcx + 0x6a], r15w
lea ebp, [r15 - 1]
mov dword [rcx + 0x3c], r15d
mov edi, r15d
mov qword [rcx + 0x70], rax
mov qword [rax + 0x10], rax
mov word [rcx + 0x68], r15w
cmp r15w, word [rcx + 0xb8]
jge 0x140226adb
mov esi, r15d
mov rax, qword [rbx + 0xd0]
lea edx, [rbp + 1]
mov dword [rbx + 0x88], r15d
mov r9d, r14d
mov qword [rbx + 0x80], r15
mov rcx, rbx
movsx ebp, word [rsi + rax]
mov r8d, ebp
call fcn.140226e70
test al, al
jne 0x140226b76
mov r8d, dword [rbx + 4]
mov edx, dword [rbx + 0x5c]
lea eax, [r8 - 1]
test edx, eax
jne 0x140226a6f
cmp edx, dword [rbx + 0x60]
jl 0x140226a6f
cmp edx, dword [rbx + 0x64]
jg 0x140226a6f
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x140226a6f
mov rax, qword [rbx + 0x70]
movzx ecx, byte [rcx + 0x18]
xor cl, byte [rax + 0x18]
test cl, 8
jne 0x140226a6f
add qword [rbx + 0x30], 0xfffffffffffffffc
mov r9, qword [rbx + 0x70]
mov rax, qword [r9 + 0x10]
cmp qword [rbx + 0x30], rax
je 0x140226a92
test byte [r9 + 0x18], 8
je 0x140226a92
neg r8d
and r8d, edx
sub edx, r8d
cmp edx, dword [rbx + 8]
jmp 0x140226aa3
lea eax, [r8 - 1]
neg r8d
add eax, edx
and eax, r8d
sub eax, edx
cmp eax, dword [rbx + 8]
setge dl
mov rcx, rbx
call fcn.140227840
test al, al
jne 0x140226b76
mov rax, qword [rbx + 0x80]
test rax, rax
je 0x140226ac6
mov qword [r9 + 0x28], rax
movsx eax, word [rbx + 0xb8]
inc edi
add rsi, 2
cmp edi, eax
jl 0x140226a03
movzx edi, word [rbx + 0x68]
mov rdx, qword [rbx + 0x78]
cmp di, 1
jbe 0x140226b7a
test rdx, rdx
je 0x140226b7a
mov ebp, 0xffff
nop dword [rax + rax]
lea rsi, [rdx + 8]
cmp di, 1
jbe 0x140226b18
movsxd rcx, dword [rdx + 0x1c]
mov rax, qword [rdx + 0x10]
lea r10, [rax + rcx*4]
jmp 0x140226b1b
mov r10, r15
mov qword [rsi], r10
test byte [rdx + 0x18], 8
mov r11d, dword [rdx + 0x20]
mov r8d, r11d
mov eax, dword [rdx + 0x1c]
je 0x140226b36
dec r11d
add r11d, eax
jmp 0x140226b4d
sub r8d, eax
inc r8d
dec eax
mov dword [rdx + 0x20], r8d
movsxd rcx, eax
shl rcx, 2
add qword [rdx + 0x10], rcx
mov edx, r8d
mov rcx, rbx
call fcn.140227b60
test al, al
jne 0x140226b76
lea edx, [r11 + 1]
mov rcx, rbx
call fcn.140227b60
test al, al
jne 0x140226b76
mov rdx, qword [rsi]
add di, bp
jne 0x140226b00
jmp 0x140226b7e
mov al, 1
jmp 0x140226b89
mov qword [rbx + 0x78], r15
mov rax, qword [rbx + 0x28]
cmp qword [rbx + 0x30], rax
setae al
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x14022d400
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x14022d40b
xor eax, eax
ret
lea r11, [0x1403944c0]
not ecx
cmp r8d, 8
jb 0x14022d4e1
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 0x14022d430
test r8d, r8d
je 0x14022d50d
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 0x14022d4f0
not ecx
mov eax, ecx
ret
Function at 0x140231190
Capabilities:
Parse pe header

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

Function at 0x140236690
Capabilities:
Encode data using xor

Disassembly:
push rbx
movsxd rbx, r9d
mov r10, r8
mov r11, rdx
cmp rdx, r8
je 0x1402367f2
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 0x1402367ae
cmp ebx, 2
jb 0x1402367ae
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 0x14023673e
cmp rdi, r8
jae 0x1402367a9
cmp r9, r10
ja 0x140236748
cmp rdi, r10
jae 0x1402367a9
cmp r9, r11
ja 0x140236752
cmp rdi, r11
jae 0x1402367a9
cmp r8, r10
ja 0x14023675c
cmp rax, r10
jae 0x1402367a9
cmp r8, r11
ja 0x140236766
cmp rax, r11
jae 0x1402367a9
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 0x140236770
mov rdi, qword [rsp + 0x18]
movsxd rax, edx
cmp rax, rbx
jge 0x1402367ed
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 0x1402367c0
mov rsi, qword [rsp + 0x10]
pop rbx
ret
Function at 0x14024d840
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 0x14024d880
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 0x14024d9d0
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 0x14024ec60
Capabilities:
Initialize winsock library

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

Function at 0x14024ed00
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 0x14024ed48
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r9, [0x14040b0a0]
mov dword [rsp + 0x20], ebx
mov r8d, eax
lea edx, [rbx + 5]
lea ecx, [rbx + 2]
call fcn.140244b40
test edi, edi
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14024ee60
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 0x14024efd4
mov eax, 0x800005
bt eax, ebx
jae 0x14024efd4
call fcn.14024ec60
cmp eax, 1
jne 0x14024eff0
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 0x14024eeed
test ebx, ebx
jne 0x14024eeed
bts ecx, 0xa
mov dword [rsp + 0x30], ecx
cmp ebp, 1
jne 0x14024eef8
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 0x14024ef5b
nop word [rax + rax]
cmp ebx, 8
je 0x14024efae
mov ecx, dword [rsp + 0x30]
bt ecx, 0xa
jae 0x14024ef6d
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 0x14024ef20
mov r15, qword [rsp + 0x80]
mov edi, 1
jmp 0x14024eff0
mov edx, 0x8f
mov dword [rsp + 0x20], edi
lea r9, [0x14040b0a0]
lea ecx, [rdx - 0x6f]
lea r8d, [rcx - 0x1e]
call fcn.140244b40
test r15d, r15d
cmovne ebx, r15d
mov ecx, ebx
call fcn.14024f4a0
mov rdx, rax
mov ecx, 1
call fcn.140243ef0
mov r15, qword [rsp + 0x80]
jmp 0x14024eff0
mov edx, 0x8f
mov dword [rsp + 0x20], edi
lea r9, [0x14040b0a0]
lea ecx, [rdx - 0x6f]
lea r8d, [rdx - 0x4e]
call fcn.140244b40
mov r15, qword [rsp + 0x80]
jmp 0x14024eff0
mov edx, 0x8f
mov dword [rsp + 0x20], edi
lea r9, [0x14040b0a0]
lea ecx, [rdx - 0x6f]
lea r8d, [rdx - 0xc]
call fcn.140244b40
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 0x14024f290
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.14024ec60
cmp eax, 1
je 0x14024f2cb
xor eax, eax
jmp 0x14024f47f
xor edx, edx
mov qword [rsp + 0x480], rbp
mov r8d, 0x400
mov byte [rsp + 0x60], 0
lea rcx, [rsp + 0x61]
call fcn.140355f10
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 0x14024f38b
lea r9, [0x14040b0a0]
mov dword [rsp + 0x20], esi
mov edx, 0x86
lea ecx, [rsi + 0x20]
lea r8d, [rsi + 2]
call fcn.140244b40
mov ecx, ebp
call fcn.14024f4a0
mov rdx, rax
lea ecx, [rsi + 1]
call fcn.140243ef0
xor eax, eax
jmp 0x14024f477
cmp byte [rsp + 0x40], sil
jne 0x14024f3d2
movzx eax, word [r14]
cmp ax, 2
jne 0x14024f3a3
movzx ecx, word [r14 + 2]
jmp 0x14024f3b2
cmp ax, 0x17
jne 0x14024f3b0
movzx ecx, word [r14 + 2]
jmp 0x14024f3b2
mov ecx, esi
call qword [sym.imp.WS2_32.dll_ntohs]
movzx r9d, ax
lea r8, [0x140364138]
mov edx, 0x20
lea rcx, [rsp + 0x40]
call fcn.140234d50
test rbx, rbx
je 0x14024f3ee
xor r8d, r8d
lea rdx, [0x14040b0a0]
lea rcx, [rsp + 0x60]
call fcn.14024e4d0
mov qword [rbx], rax
test rdi, rdi
je 0x14024f40a
xor r8d, r8d
lea rdx, [0x14040b0a0]
lea rcx, [rsp + 0x40]
call fcn.14024e4d0
mov qword [rdi], rax
test rbx, rbx
je 0x14024f414
cmp qword [rbx], rsi
je 0x14024f423
test rdi, rdi
je 0x14024f472
cmp qword [rdi], rsi
jne 0x14024f472
test rbx, rbx
je 0x14024f43d
mov rcx, qword [rbx]
lea rdx, [0x14040b0a0]
xor r8d, r8d
call fcn.140232620
mov qword [rbx], rsi
test rdi, rdi
je 0x14024f452
mov rcx, qword [rdi]
lea rdx, [0x14040b0a0]
xor r8d, r8d
call fcn.140232620
mov qword [rdi], rsi
mov edx, 0x86
mov dword [rsp + 0x20], esi
lea r9, [0x14040b0a0]
lea ecx, [rdx - 0x66]
lea r8d, [rdx - 0x45]
call fcn.140244b40
xor eax, eax
jmp 0x14024f477
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 0x1402573f0
Capabilities:
Encode data using xor

Disassembly:
xor r9b, r9b
mov r10, rdx
test r8, r8
je 0x140257417
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 0x140257400
movzx eax, r9b
ret
Function at 0x14025bd90
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 0x14025beb7
mov rax, rdx
lea rcx, [rdx*8]
shr rax, 0x3d
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x60], rcx
cmp rdx, 0x80
jb 0x14025bea0
mov r8, rdx
lea rcx, [rsp + 0x20]
shr r8, 7
mov rdx, rdi
call fcn.14025c9e0
add rdi, rbx
and ebx, 0x7f
sub rdi, rbx
test rbx, rbx
je 0x14025beb7
mov r8, rbx
lea rcx, [rsp + 0x70]
mov rdx, rdi
call fcn.140355870
mov dword [rsp + 0xf0], ebx
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14025bf00
mov edx, 0xd8
lea rcx, [rsp + 0x20]
call fcn.14024e3a0
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 0x14025fcb0
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 0x14025fd14
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 0x14025fcf0
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 0x1402708d0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x38
mov r10, rcx
test r9, r9
jne 0x140270902
mov edx, 0xe2
mov dword [rsp + 0x20], r9d
lea r9, [0x14040b0a0]
mov ecx, reloc.WS2_32.dll_listen
lea r8d, [rdx - 4]
call fcn.140244b40
xor eax, eax
add rsp, 0x38
ret
movzx r11d, byte [r8]
and r11d, 0x80
test rdx, rdx
je 0x140270915
mov dword [rdx], r11d
cmp r9, 1
jne 0x140270937
test r10, r10
je 0x14027092d
movzx eax, byte [r8]
test r11d, r11d
je 0x14027092b
neg al
mov byte [rcx], al
mov eax, 1
add rsp, 0x38
ret
movzx ecx, byte [r8]
test cl, cl
jne 0x140270949
mov eax, 1
jmp 0x1402709fa
xor eax, eax
cmp cl, 0xff
jne 0x140270a33
xor edx, edx
lea rcx, [r9 - 1]
mov eax, 1
cmp r9, rax
jbe 0x1402709ef
cmp rcx, 8
jb 0x1402709e0
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 0x140270980
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 0x1402709ef
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r8 + rax]
inc rax
or edx, ecx
cmp rax, r9
jb 0x1402709e0
xor eax, eax
test edx, edx
setne al
test edx, edx
je 0x140270a33
movzx ecx, byte [r8 + 1]
and ecx, 0x80
cmp r11d, ecx
jne 0x140270a33
mov edx, 0xe2
mov dword [rsp + 0x20], 0
lea r9, [0x14040b0a0]
mov ecx, reloc.WS2_32.dll_listen
lea r8d, [rdx - 5]
call fcn.140244b40
xor eax, eax
add rsp, 0x38
ret
mov qword [rsp + 0x30], rbx
mov rbx, r9
sub rbx, rax
test r10, r10
je 0x140270a7d
neg r11d
sbb r11d, r11d
add r9, r8
movzx r11d, r11b
mov edx, r11d
and edx, 1
test rbx, rbx
je 0x140270a7d
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 0x140270a60
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x38
ret

Function at 0x140270b50
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.140270b70
Function at 0x140270b70
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 0x140270c71
test r10, r10
je 0x140270c71
movzx eax, byte [rcx]
test r8d, r8d
jne 0x140270bb9
cmp al, 0x7f
jbe 0x140270c6a
mov edx, 1
mov eax, edx
add rax, r10
jmp 0x140270c79
mov r11b, 0xff
cmp al, 0x80
jbe 0x140270bcf
mov edx, 1
mov eax, edx
add rax, r10
jmp 0x140270c79
jne 0x140270c6a
mov eax, 1
lea rcx, [r10 - 1]
cmp r10, rax
jbe 0x140270c5f
cmp rcx, 8
jb 0x140270c51
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 0x140270c00
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 0x140270c5f
movzx ecx, byte [rbx + rax]
inc rax
or edx, ecx
cmp rax, r10
jb 0x140270c51
neg edx
sbb r11b, r11b
mov edx, r11d
and edx, 1
mov eax, edx
add rax, r10
jmp 0x140270c79
mov eax, 1
mov r10, rdx
test rdi, rdi
je 0x140270cc5
mov rcx, qword [r9]
test rcx, rcx
je 0x140270cc5
mov r8d, r11d
mov byte [rcx], r11b
and r8d, 1
lea r9, [rbx + r10]
test r10, r10
je 0x140270cc2
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 0x140270ca0
add qword [rdi], rax
mov rbx, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret

Function at 0x140277510
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.140242300
mov rdx, rax
mov rcx, rdi
mov rsi, rax
call fcn.140242180
test rax, rax
je 0x14027757d
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.140242210
mov rcx, rdi
call fcn.1402423f0
mov rbx, qword [rsp + 0x30]
test rax, rax
jne 0x140277585
mov rcx, rdi
call fcn.1402423f0
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
xor eax, eax
mov r10, rcx
test rcx, rcx
je 0x14027a0dc
movzx ecx, byte [rcx]
test cl, cl
je 0x14027a0dc
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 0x14027a090
mov ecx, eax
shr ecx, 0x10
xor eax, ecx
ret
Function at 0x14027a0e0
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 0x14027a168
movzx eax, byte [rcx]
test al, al
je 0x14027a168
mov qword [rsp + 0x30], rsi
mov esi, 0x100
movsx ecx, al
call fcn.14024f960
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 0x14027a105
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 0x140284110
Capabilities:
Get thread local storage value

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

Function at 0x1402858b0
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 0x140285905
xor ebx, ebx
lea r9, [0x14040b0a0]
mov edx, 0x8a
mov dword [rsp + 0x20], ebx
lea ecx, [rbx + 0x20]
lea r8d, [rdx - 3]
call fcn.140244b40
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.14024ed00
test eax, eax
je 0x140285988
mov rsi, rbx
test dil, 4
je 0x14028599f
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 0x14028599f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
xor ebx, ebx
lea r9, [0x14040b0a0]
mov r8d, eax
mov dword [rsp + 0x20], ebx
lea edx, [rbx + 0xe]
lea ecx, [rbx + 2]
call fcn.140244b40
mov edx, 0x8a
mov dword [rsp + 0x20], ebx
lea r9, [0x14040b0a0]
lea ecx, [rbx + 0x20]
lea r8d, [rdx - 1]
call fcn.140244b40
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 0x140285a01
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 0x140285a01
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
xor ebx, ebx
lea r9, [0x14040b0a0]
mov r8d, eax
mov dword [rsp + 0x20], ebx
lea edx, [rbx + 0xe]
lea ecx, [rbx + 2]
call fcn.140244b40
mov edx, 0x8a
mov dword [rsp + 0x20], ebx
mov r8d, edx
lea r9, [0x14040b0a0]
lea ecx, [rbx + 0x20]
jmp 0x140285983
mov rcx, rbp
call fcn.14024ee40
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 0x140285a74
mov ecx, eax
call fcn.140285830
test eax, eax
jne 0x140285988
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, 2
lea r9, [0x14040b0a0]
xor ebx, ebx
mov ecx, edx
mov r8d, eax
mov dword [rsp + 0x20], ebx
call fcn.140244b40
lea r9, [0x14040b0a0]
mov dword [rsp + 0x20], ebx
mov edx, 0x8a
lea ecx, [rbx + 0x20]
lea r8d, [rbx + 0x67]
jmp 0x140285983
mov eax, 1
jmp 0x14028598a