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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [str._h__]
mov rdi, rax
test rax, rax
jne 0x1401046e2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x140104729
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + ioctlsocket]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x140104782
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + ioctlsocket]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + ioctlsocket]
sub rbp, 1
jne 0x140104740
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1401047c3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1402a780a]
mov r8d, 1
call qword [rbx + ioctlsocket]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1402a780b]
mov r8d, 1
call qword [rbx + ioctlsocket]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140104790
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140105ce0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push r15
sub rsp, 0x30
mov r15d, r8d
mov rsi, rdx
mov rdi, rcx
test rdx, rdx
jne 0x140105d14
mov dword [rsp + 0x20], edx
xor r9d, r9d
lea edx, [rsi + 2]
xor r8d, r8d
call fcn.140108ac0
xor al, al
add rsp, 0x30
pop r15
pop rdi
pop rsi
ret
mov qword [rsp + 0x58], rbp
call fcn.1401050c0
xor edx, edx
mov qword [rdi + 8], 0xffffffffffffffff
mov rcx, rsi
lea r8d, [rdx + 2]
call fcn.140255ac8
mov rcx, rsi
call fcn.140256020
xor r8d, r8d
movsxd rbp, eax
xor edx, edx
mov rcx, rsi
call fcn.140255ac8
test ebp, ebp
jg 0x140105d7a
xor r9d, r9d
mov dword [rsp + 0x20], 0
xor r8d, r8d
mov rcx, rdi
lea edx, [r9 + 0xc]
call fcn.140108ac0
mov rbp, qword [rsp + 0x58]
xor al, al
add rsp, 0x30
pop r15
pop rdi
pop rsi
ret
lea eax, [rbp + 1]
mov qword [rsp + 0x50], rbx
movsxd rcx, eax
mov qword [rsp + 0x60], r14
call fcn.140241020
mov r9, rsi
mov r8d, 1
mov rdx, rbp
mov rcx, rax
mov rbx, rax
mov byte [rax], 0
call fcn.1402557b8
mov rcx, rbx
cmp rax, 1
je 0x140105dd5
call fcn.140240d18
xor r9d, r9d
mov dword [rsp + 0x20], 0
xor r8d, r8d
mov rcx, rdi
lea edx, [r9 + 2]
call fcn.140108ac0
xor al, al
jmp 0x140105e2d
mov byte [rbp + rbx], 0
mov rax, rbx
movzx edx, byte [rbx]
test dl, dl
je 0x140105e09
inc rax
lea r8, [rcx + 1]
cmp dl, 0xd
jne 0x140105dfd
mov byte [rcx], 0xa
cmp byte [rax], 0xa
jne 0x140105dff
inc rax
jmp 0x140105dff
mov byte [rcx], dl
movzx edx, byte [rax]
mov rcx, r8
test dl, dl
jne 0x140105de4
mov byte [rcx], 0
mov r9d, r15d
mov rax, qword [rdi]
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, rbx
call fcn.140240d18
cmp byte [rdi + 0x68], 0
sete al
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r15
pop rdi
pop rsi
ret
Function at 0x14012add0
Capabilities:
Encode data using xor

Disassembly:
xor r9b, r9b
mov r10, rdx
test r8, r8
je 0x14012adf7
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 0x14012ade0
movzx eax, r9b
ret

Function at 0x14012e2a0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x30
call fcn.140240e90
sub rsp, rax
mov r10, r9
mov rbx, r8
mov r9, qword [rsp + 0xa0]
mov r14, rdx
mov rbp, rcx
mov edi, dword [r9]
mov dword [rsp + 0x80], edi
test edi, edi
je 0x14012e318
mov rdx, qword [rsp + 0x98]
nop dword [rax]
test rbx, rbx
je 0x14012e311
mov eax, edi
dec rbx
movzx ecx, byte [rax + rdx]
xor cl, byte [rbp]
inc rbp
mov byte [r14], cl
inc r14
inc edi
and edi, 0xf
jne 0x14012e2f0
mov dword [rsp + 0x80], edi
mov r8, qword [rsp + 0x90]
mov esi, 1
movzx r12d, byte [r8 + 0xc]
lea r15, [r8 + 0xc]
mov r11, qword [rsp + 0xa8]
shl r12d, 8
movzx eax, byte [r8 + 0xd]
lea r13d, [rsi + 0xb]
or r12d, eax
movzx eax, byte [r8 + 0xe]
shl r12d, 8
or r12d, eax
movzx eax, byte [r8 + 0xf]
shl r12d, 8
or r12d, eax
cmp rbx, 0x10
jb 0x14012e44e
mov eax, 0x10000000
mov edi, r13d
mov qword [rsp + 0x20], r8
mov rdx, rbx
shr rdx, 4
mov r9, r10
cmp rdx, rax
cmova rdx, rax
add r12d, edx
mov r13, rdx
mov eax, r12d
mov ecx, r12d
sub r13, rax
cmp rax, rdx
cmovae r13, rdx
xor r12d, r12d
cmp rax, rdx
mov r8, r13
mov rdx, r14
cmovae r12d, ecx
mov rcx, rbp
call r11
mov r8, qword [rsp + 0x90]
mov eax, r12d
shr eax, 0x18
mov byte [r15], al
mov eax, r12d
shr eax, 0x10
mov byte [r8 + 0xd], al
mov eax, r12d
shr eax, 8
mov byte [r8 + 0xe], al
mov byte [r8 + 0xf], r12b
test r12d, r12d
jne 0x14012e40d
mov r8d, edi
mov eax, esi
mov rdx, r15
nop dword [rax + rax]
movzx ecx, byte [rdx - 1]
lea rdx, [rdx - 1]
add eax, ecx
mov byte [rdx], al
shr eax, 8
add r8d, 0xffffffff
jne 0x14012e3f0
mov r8, qword [rsp + 0x90]
mov r10, qword [rsp + 0x88]
mov eax, 0x10000000
mov r11, qword [rsp + 0xa8]
shl r13, 4
sub rbx, r13
add r14, r13
add rbp, r13
cmp rbx, 0x10
jae 0x14012e370
mov edi, dword [rsp + 0x80]
mov r13d, InitCommonControls
mov r9, qword [rsp + 0xa0]
test rbx, rbx
je 0x14012e4f1
mov rax, qword [rsp + 0x98]
xorps xmm0, xmm0
mov qword [rsp + 0x20], r8
mov r9, r10
mov r8, rsi
mov rdx, rax
mov rcx, rax
movups xmmword [rax], xmm0
call r11
mov rcx, qword [rsp + 0x90]
inc r12d
mov eax, r12d
shr eax, 0x18
mov byte [r15], al
mov eax, r12d
shr eax, 0x10
mov byte [rcx + 0xd], al
mov eax, r12d
shr eax, 8
mov byte [rcx + 0xe], al
mov byte [rcx + 0xf], r12b
test r12d, r12d
jne 0x14012e4c7
nop dword [rax + rax]
movzx eax, byte [r15 - 1]
lea r15, [r15 - 1]
add esi, eax
mov byte [r15], sil
shr esi, 8
add r13d, 0xffffffff
jne 0x14012e4b0
mov rdx, qword [rsp + 0x98]
nop
mov ecx, edi
inc edi
movzx eax, byte [rcx + rbp]
xor al, byte [rcx + rdx]
mov byte [rcx + r14], al
sub rbx, 1
jne 0x14012e4d0
mov rax, qword [rsp + 0xa0]
mov dword [rax], edi
jmp 0x14012e4f4
mov dword [r9], edi
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14012ec70
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push r14
mov eax, 0x20
call fcn.140240e90
sub rsp, rax
cmp qword [rcx + 0x38], 0
mov rbx, r8
mov r14, rdx
mov rbp, rcx
je 0x14012eca0
mov eax, 0xfffffffe
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret
mov rcx, qword [rcx + 0x30]
movabs rax, 0x2000000000000000
add rcx, rbx
cmp rcx, rax
ja 0x14012ed92
cmp rcx, rbx
jb 0x14012ed92
mov qword [rsp + 0x40], rsi
mov esi, dword [rbp + 0x174]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], r12
mov qword [rbp + 0x30], rcx
test esi, esi
je 0x14012ed15
test rbx, rbx
je 0x14012ed72
movzx eax, byte [r14]
dec rbx
mov ecx, esi
inc r14
xor byte [rcx + rbp + 0x40], al
inc esi
and esi, 0xf
jne 0x14012ece0
lea r12, [rbp + 0x60]
lea rdi, [rbp + 0x40]
mov rdx, r12
mov rcx, rdi
call fcn.140130320
jmp 0x14012ed1d
lea r12, [rbp + 0x60]
lea rdi, [rbp + 0x40]
mov qword [rsp + 0x58], r15
mov r15, rbx
and r15, 0xfffffffffffffff0
je 0x14012ed42
mov r9, r15
mov r8, r14
mov rdx, r12
mov rcx, rdi
call fcn.140130160
add r14, r15
sub rbx, r15
mov r15, qword [rsp + 0x58]
test rbx, rbx
je 0x14012ed72
mov esi, ebx
sub r14, rbp
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r14 + rdi - 0x40]
xor byte [rdi], al
lea rdi, [rdi + 1]
sub rbx, 1
jne 0x14012ed60
mov rdi, qword [rsp + 0x48]
xor eax, eax
mov r12, qword [rsp + 0x50]
mov dword [rbp + 0x174], esi
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret
mov eax, 0xffffffff
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret
Function at 0x140130160
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
movzx r10d, byte [rcx + 0xf]
lea rbp, [r8 + 0xe]
mov rdi, rcx
lea r12, [0x1402b0170]
sub rdi, r8
mov r15, r9
mov rsi, rdx
mov r11, rcx
nop dword [rax]
movzx ecx, byte [rbp + 1]
mov rbx, rbp
movzx eax, r10b
mov r14d, reloc.WS2_32.dll_ntohs
xor rcx, rax
mov rdx, rcx
and ecx, 0xf
add rcx, rcx
and rdx, 0xfffffffffffffff0
mov r8, qword [rsi + rcx*8]
mov r10, qword [rsi + rcx*8 + 8]
mov rax, r8
mov rcx, r10
shr rax, 4
and ecx, 0xf
shr r10, 4
shl r8, 0x3c
or r10, r8
xor rax, qword [r12 + rcx*8]
xor rax, qword [rdx + rsi]
xor r10, qword [rdx + rsi + 8]
nop
movzx ecx, byte [rbx]
mov r9, rax
movzx edx, byte [rdi + rbx]
lea rbx, [rbx - 1]
xor rdx, rcx
shl rax, 0x3c
mov rcx, r10
shr r9, 4
shr r10, 4
mov r8, rdx
or rax, r10
and edx, 0xf
add rdx, rdx
and ecx, 0xf
and r8, 0xfffffffffffffff0
xor rax, qword [rsi + rdx*8 + 8]
xor r9, qword [r12 + rcx*8]
mov rcx, rax
xor r9, qword [rsi + rdx*8]
and ecx, 0xf
mov rdx, rax
mov r10, r9
shl r10, 0x3c
mov rax, r9
shr rax, 4
xor rax, qword [r12 + rcx*8]
xor rax, qword [r8 + rsi]
shr rdx, 4
or r10, rdx
xor r10, qword [r8 + rsi + 8]
sub r14, 1
jne 0x1401301f0
mov rdx, rax
mov byte [r11 + 7], al
shr rdx, 0x20
add rbp, 0x10
mov ecx, edx
mov byte [r11 + 3], dl
shr ecx, 0x18
sub rdi, 0x10
mov byte [r11], cl
mov ecx, edx
shr ecx, 0x10
mov byte [r11 + 1], cl
mov ecx, edx
shr ecx, 8
mov byte [r11 + 2], cl
mov ecx, eax
shr ecx, 0x18
mov byte [r11 + 4], cl
mov ecx, eax
shr ecx, 0x10
mov byte [r11 + 5], cl
mov ecx, eax
shr ecx, 8
mov byte [r11 + 6], cl
mov rcx, r10
shr rcx, 0x20
mov eax, ecx
mov byte [r11 + 0xb], cl
shr eax, 0x18
mov byte [r11 + 8], al
mov eax, ecx
shr eax, 0x10
mov byte [r11 + 9], al
mov eax, ecx
shr eax, 8
mov byte [r11 + 0xa], al
mov eax, r10d
shr eax, 0x18
mov byte [r11 + 0xc], al
mov eax, r10d
shr eax, 0x10
mov byte [r11 + 0xd], al
mov eax, r10d
shr eax, 8
mov byte [r11 + 0xe], al
mov byte [r11 + 0xf], r10b
sub r15, 0x10
jne 0x1401301a0
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
pop r15
pop r14
pop r12
ret
Function at 0x140130320
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movzx eax, byte [rcx + 0xf]
lea rsi, [0x1402b0170]
mov r8d, eax
mov r11, rcx
and eax, 0xf
and r8, 0xfffffffffffffff0
add rax, rax
mov rbx, rdx
mov edi, reloc.WLDAP32.dll_Ordinal_14
mov r10, qword [rdx + rax*8 + 8]
mov r9, qword [rdx + rax*8]
mov rcx, r10
and ecx, 0xf
shr r10, 4
mov rax, r9
shl r9, 0x3c
shr rax, 4
or r10, r9
xor rax, qword [rsi + rcx*8]
xor rax, qword [r8 + rdx]
xor r10, qword [r8 + rdx + 8]
movzx ecx, byte [rdi + r11]
mov r9, rax
mov r8d, ecx
shl rax, 0x3c
and ecx, 0xf
shr r9, 4
add rcx, rcx
and r8, 0xfffffffffffffff0
lea rdx, [rbx + rcx*8]
mov rcx, r10
shr r10, 4
and ecx, 0xf
or rax, r10
xor rax, qword [rdx + 8]
xor r9, qword [rsi + rcx*8]
mov rcx, rax
xor r9, qword [rdx]
and ecx, 0xf
mov rdx, rax
mov r10, r9
shl r10, 0x3c
mov rax, r9
shr rax, 4
xor rax, qword [rsi + rcx*8]
xor rax, qword [r8 + rbx]
shr rdx, 4
or r10, rdx
xor r10, qword [r8 + rbx + 8]
sub rdi, 1
jns 0x140130380
mov rbx, qword [rsp + 8]
mov rdx, rax
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov byte [r11 + 7], al
shr rdx, 0x20
mov ecx, edx
mov byte [r11 + 3], dl
shr ecx, 0x18
mov byte [r11], cl
mov ecx, edx
shr ecx, 0x10
mov byte [r11 + 1], cl
mov ecx, edx
shr ecx, 8
mov byte [r11 + 2], cl
mov ecx, eax
shr ecx, 0x18
mov byte [r11 + 4], cl
mov ecx, eax
shr ecx, 0x10
mov byte [r11 + 5], cl
mov ecx, eax
shr ecx, 8
mov byte [r11 + 6], cl
mov rcx, r10
shr rcx, 0x20
mov eax, ecx
mov byte [r11 + 0xb], cl
shr eax, 0x18
mov byte [r11 + 8], al
mov eax, ecx
shr eax, 0x10
mov byte [r11 + 9], al
mov eax, ecx
shr eax, 8
mov byte [r11 + 0xa], al
mov eax, r10d
shr eax, 0x18
mov byte [r11 + 0xc], al
mov eax, r10d
shr eax, 0x10
mov byte [r11 + 0xd], al
mov eax, r10d
shr eax, 8
mov byte [r11 + 0xe], al
mov byte [r11 + 0xf], r10b
ret

Function at 0x1401342b0
Capabilities:
Set thread local storage value

Disassembly:
mov eax, Ordinal_41
call fcn.140240e90
sub rsp, rax
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 0x1401517f0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, gethostname
call fcn.140240e90
sub rsp, rax
mov r10, r8
mov r11, rcx
test r9, r9
jne 0x14015182f
mov edx, 0xe2
mov dword [rsp + 0x20], 0x9a
lea r9, str.crypto_asn1_a_int.c
lea ecx, [rax - 0x2b]
lea r8d, [rdx - 4]
call fcn.140121de0
xor eax, eax
add rsp, 0x38
ret
movzx r8d, byte [r8]
and r8d, 0x80
test rdx, rdx
je 0x140151842
mov dword [rdx], r8d
cmp r9, 1
jne 0x140151864
test r11, r11
je 0x14015185a
movzx eax, byte [r10]
test r8d, r8d
je 0x140151858
neg al
mov byte [rcx], al
mov eax, 1
add rsp, 0x38
ret
movzx ecx, byte [r10]
mov qword [rsp + 0x40], rbx
xor ebx, ebx
mov eax, ebx
test cl, cl
jne 0x140151881
mov eax, 1
mov ebx, eax
jmp 0x14015192f
cmp cl, 0xff
jne 0x14015196d
mov eax, 1
lea rcx, [r9 - 1]
mov edx, ebx
cmp r9, rax
jbe 0x14015191f
cmp rcx, 8
jb 0x140151910
and ecx, 7
mov rdx, r9
sub rdx, rcx
xorps xmm2, xmm2
xorps xmm3, xmm3
movd xmm1, dword [rax + r10]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
por xmm2, xmm1
movd xmm1, dword [rax + r10 + 4]
punpcklbw xmm1, xmm0
add rax, 8
punpcklwd xmm1, xmm0
por xmm1, xmm3
movdqa xmm3, xmm1
cmp rax, rdx
jb 0x1401518b3
por xmm2, xmm1
movdqa xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movd edx, xmm2
cmp rax, r9
jae 0x14015191f
nop
movzx ecx, byte [rax + r10]
inc rax
or edx, ecx
cmp rax, r9
jb 0x140151910
test edx, edx
mov eax, ebx
setne al
test edx, edx
setne bl
test edx, edx
je 0x14015196d
movzx ecx, byte [r10 + 1]
and ecx, 0x80
cmp r8d, ecx
jne 0x14015196d
mov edx, 0xe2
mov dword [rsp + 0x20], 0xbb
lea r9, str.crypto_asn1_a_int.c
mov ecx, reloc.WS2_32.dll_listen
lea r8d, [rdx - 5]
call fcn.140121de0
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x38
ret
mov ecx, eax
sub r9, rcx
test r11, r11
je 0x1401519c1
neg r8d
mov qword [rsp + 0x30], rdi
lea r8, [rbx + r10]
sbb edi, edi
add r8, r9
movzx edi, dil
mov ecx, edi
and ecx, 1
test r9, r9
je 0x1401519bc
mov rdx, r8
sub rdx, rbx
sub rdx, r10
nop
movzx eax, byte [r8 - 1]
lea r8, [r8 - 1]
dec rdx
xor eax, edi
add ecx, eax
mov byte [rdx + r11], cl
shr ecx, 8
test rdx, rdx
jne 0x1401519a0
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
mov rax, r9
add rsp, 0x38
ret

Function at 0x14016ccf0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, Ordinal_41
call fcn.140240e90
sub rsp, rax
lea rcx, [0x140372370]
add rsp, 0x28
jmp fcn.140134110
Function at 0x1401991b0
Capabilities:
Encode data using xor

Disassembly:
mov eax, gethostname
call fcn.140240e90
sub rsp, rax
mov r10, rdx
mov dword [rsp + 0x40], reloc.WS2_32.dll_recv
add rdx, 0xf
lea rax, [r8 + 0xf]
mov r11, rcx
cmp r10, rax
ja 0x140199203
xor ecx, ecx
cmp rdx, r8
jb 0x140199203
sub r8, r10
lea rax, [rcx + r10]
mov edx, reloc.WS2_32.dll_recv
sub rdx, rcx
nop
movzx ecx, byte [r8 + rax]
xor byte [rax], cl
lea rax, [rax + 1]
sub rdx, 1
jne 0x1401991f0
jmp 0x140199216
movdqu xmm1, xmmword [r10]
movdqu xmm0, xmmword [r8]
pxor xmm1, xmm0
movdqu xmmword [r10], xmm1
mov rcx, qword [r11 + 8]
lea r8, [rsp + 0x40]
mov r9, r10
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov rdx, r10
call fcn.14010a620
test eax, eax
je 0x140199247
cmp dword [rsp + 0x40], 0x10
jne 0x140199247
mov eax, 1
add rsp, 0x38
ret
xor eax, eax
add rsp, 0x38
ret

Function at 0x1401993f0
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
test rdx, rdx
je 0x140199478
test r8, r8
je 0x140199478
mov rax, qword [rcx + 0x18]
cmp r8, rax
mov r9, rax
cmovb r9, r8
test r9, r9
je 0x140199436
add rcx, 0x20
mov r11, rdx
sub r11, r10
nop
movzx eax, byte [r11 + rcx - 0x20]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub r9, 1
jne 0x140199420
mov rax, qword [r10 + 0x18]
cmp r8, rax
jbe 0x140199478
sub r8, rax
cmp r8, 0x10
jbe 0x14019944c
mov r8d, reloc.WS2_32.dll_recv
jmp 0x140199451
test r8, r8
je 0x140199478
xor ecx, ecx
nop dword [rax]
nop word [rax + rax]
mov rax, qword [r10 + 0x18]
add rax, rcx
movzx eax, byte [rax + rdx]
xor byte [r10 + rcx + 0x40], al
inc rcx
cmp rcx, r8
jb 0x140199460
ret
Function at 0x1401d3120
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Encrypt data using salsa20 or chacha

Disassembly:
push rbp
push rsi
push rdi
mov eax, 0xb0
call fcn.140240e90
sub rsp, rax
mov rax, qword [0x14036a3c8]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xf0]
mov rbp, r8
mov dword [rsp + 0x60], 0x61707865
mov rsi, rdx
mov dword [rsp + 0x64], 0x3320646e
mov rdi, rcx
mov dword [rsp + 0x68], 0x79622d32
mov dword [rsp + 0x6c], 0x6b206574
movups xmm0, xmmword [r9]
movups xmm1, xmmword [r9 + 0x10]
movups xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x80], xmm1
movups xmmword [rsp + 0x90], xmm0
test r8, r8
je 0x1401d3301
mov qword [rsp + 0xd8], rbx
mov qword [rsp + 0xe0], r14
nop
mov ebx, 0x40
lea rdx, [rsp + 0x60]
cmp rbp, rbx
lea rcx, [rsp + 0x20]
cmovb rbx, rbp
call fcn.1401d3320
xor eax, eax
test rbx, rbx
je 0x1401d32db
cmp rbx, 0x40
jb 0x1401d32a9
lea rdx, [rdi - 1]
add rdx, rbx
lea rcx, [rsp + rbx + 0x1f]
cmp rdi, rcx
ja 0x1401d31ff
lea rcx, [rsp + 0x20]
cmp rdx, rcx
jae 0x1401d32a9
lea rcx, [rsi - 1]
add rcx, rbx
cmp rdi, rcx
ja 0x1401d3214
cmp rdx, rsi
jae 0x1401d32a9
mov r10, rbx
and r10, 0xffffffffffffffc0
mov rdx, rsi
lea r8, [rsp + 0x20]
lea r11, [rsp + 0x30]
sub rdx, rdi
sub r8, rdi
lea r14, [rsp + 0x40]
sub r11, rdi
lea rcx, [rdi + 0x10]
sub r14, rdi
nop dword [rax]
movdqu xmm0, xmmword [r8 + rcx - 0x10]
add rax, 0x40
movdqu xmm1, xmmword [rdx + rcx - 0x10]
movdqu xmm2, xmmword [rcx + r8]
lea rcx, [rcx + 0x40]
pxor xmm1, xmm0
movdqu xmm0, xmmword [rdx + rcx - 0x40]
movdqu xmmword [rcx - 0x50], xmm1
pxor xmm2, xmm0
movdqu xmm0, xmmword [rdx + rcx - 0x30]
movdqu xmm1, xmmword [rcx + r11 - 0x40]
movdqu xmmword [rcx - 0x40], xmm2
pxor xmm1, xmm0
movdqu xmm0, xmmword [rdx + rcx - 0x20]
movdqu xmm2, xmmword [rcx + r14 - 0x40]
movdqu xmmword [rcx - 0x30], xmm1
pxor xmm2, xmm0
movdqu xmmword [rcx - 0x20], xmm2
cmp rax, r10
jb 0x1401d3240
cmp rax, rbx
jae 0x1401d32db
lea rcx, [rsp + 0x20]
mov r8, rsi
sub r8, rcx
mov r9, rdi
lea rcx, [rsp + 0x20]
sub r9, rcx
nop
lea rdx, [rsp + 0x20]
add rdx, rax
inc rax
movzx ecx, byte [rdx + r8]
xor cl, byte [rdx]
mov byte [rdx + r9], cl
cmp rax, rbx
jb 0x1401d32c0
inc dword [rsp + 0x90]
add rdi, rbx
add rsi, rbx
sub rbp, rbx
jne 0x1401d31b0
mov r14, qword [rsp + 0xe0]
mov rbx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140240e30
add rsp, 0xb0
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401d5e50
Capabilities:
Encode data using xor

Disassembly:
mov eax, gethostname
call fcn.140240e90
sub rsp, rax
cmp dword [rsp + 0x68], 0
je 0x1401d5e79
lea rax, [0x1401d44b0]
mov qword [rsp + 0x68], rax
add rsp, 0x38
jmp fcn.14012df50
lea rax, [0x1401d3660]
mov qword [rsp + 0x68], rax
add rsp, 0x38
jmp fcn.14012dca0
Function at 0x1401dc6b0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
mov eax, 0x20
call fcn.140240e90
sub rsp, rax
mov rsi, r9
mov rbp, r9
shr rsi, 3
mov rdi, r8
mov rbx, rdx
mov r14, rcx
cmp r8, r9
jb 0x1401dc770
nop
xor edx, edx
test rsi, rsi
je 0x1401dc760
nop word [rax + rax]
movzx eax, byte [rbx + 6]
movzx ecx, byte [rbx + 7]
shl rcx, 8
or rcx, rax
movzx eax, byte [rbx + 5]
shl rcx, 8
or rcx, rax
movzx eax, byte [rbx + 4]
shl rcx, 8
or rcx, rax
movzx eax, byte [rbx + 3]
shl rcx, 8
or rcx, rax
movzx eax, byte [rbx + 2]
shl rcx, 8
or rcx, rax
movzx eax, byte [rbx + 1]
shl rcx, 8
or rcx, rax
movzx eax, byte [rbx]
shl rcx, 8
add rbx, 8
or rcx, rax
xor qword [r14 + rdx*8], rcx
inc rdx
cmp rdx, rsi
jb 0x1401dc700
mov rcx, r14
call fcn.1401dbe80
sub rdi, rbp
cmp rdi, rbp
jae 0x1401dc6f0
mov rbx, qword [rsp + 0x30]
mov rax, rdi
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140254f54
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140254f74
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1402521dc
or eax, 0xffffffff
jmp 0x140254f76
xor eax, eax
add rsp, 0x28
ret

Function at 0x14025de70
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14025dc9c

Function at 0x140269060
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x140268d86
call fcn.14025224c
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.14024809c
jmp 0x140268ed1
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140268ed1
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140268ed1
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140268db5
lock or dword [rcx + 0x14], 0x10
jmp 0x140268ed1
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140268dc9
call fcn.140269424
mov esi, dword [rbx + 0x10]
cmp esi, 1
jne 0x140268dd9
mov rax, qword [rbx]
mov bpl, byte [rax]
jmp 0x140268ddc
xor bpl, bpl
mov rdi, qword [rbx + 8]
mov rcx, rbx
mov qword [rbx], rdi
call fcn.14025d290
mov r8d, dword [rbx + 0x20]
mov ecx, eax
mov rdx, rdi
call fcn.14026324c
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x140268ebf
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x140268e6d
mov rcx, rbx
call fcn.14025d290
cmp eax, 0xffffffff
je 0x140268e58
mov rcx, rbx
call fcn.14025d290
cmp eax, 0xfffffffe
je 0x140268e58
mov rcx, rbx
call fcn.14025d290
movsxd rdi, eax
lea r14, [0x140373db0]
mov rcx, rbx
sar rdi, 6
call fcn.14025d290
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x140268e5f
lea rdx, [0x14036a8a0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140268e6d
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x140268e91
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x140268e91
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x140268e91
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp esi, 1
jne 0x140268eaf
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, bpl
or cx, ax
inc qword [rbx]
jmp 0x140268eba
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x140268ed6
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x140268d50