joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140024860
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x18
xor r10d, r10d
test rdx, rdx
setg al
jle 0x140024a33
test r9, r9
jle 0x140024a33
lea rax, [rcx + 1]
mov qword [rsp + 8], rax
xor r10d, r10d
lea r11, [0x1402dccf0]
lea rsi, [0x1402dcdf0]
lea rbx, [0x1402dce10]
xor r15d, r15d
mov qword [rsp], r8
movzx ebp, byte [rcx + r15]
test bpl, bpl
js 0x1400248d0
mov r12d, 1
jmp 0x140024a01
mov eax, ebp
movsx r12, byte [rax + r11]
add rax, 0xffffffffffffff40
cmp rax, 0x3d
ja 0x1400249da
mov r11, rdx
sub r11, r15
cmp r11, 2
mov eax, 1
cmovl r11, rax
dec r11
cmp r12, 3
mov r13d, 2
cmovge r13, r12
lea rax, [r13 - 2]
cmp r11, rax
jbe 0x140024a4e
lea r8, [r13 - 1]
test rax, rax
mov qword [rsp + 0x10], r8
je 0x140024a1e
mov rax, qword [rsp + 8]
lea r14, [rax + r15]
mov rax, r8
and rax, 0xfffffffffffffffe
neg rax
mov r11d, 1
xor edi, edi
nop word cs:[rax + rax]
movzx esi, byte [r14 + r11 - 1]
mov ebx, esi
and bl, 0xc0
cmp bl, 0x80
setne bl
or bl, dil
movzx r8d, byte [r14 + r11]
mov edi, r8d
and dil, 0xc0
cmp dil, 0x80
setne dil
or dil, bl
shl ebp, 0xc
shl esi, 6
add ebp, r8d
add ebp, esi
lea r8, [rax + r11]
add r8, 2
add r11, 2
cmp r8, 1
jne 0x140024950
test byte [rsp + 0x10], 1
je 0x1400249bf
lea rax, [rcx + r15]
movzx eax, byte [rax + r11]
mov r8d, eax
and r8b, 0xc0
cmp r8b, 0x80
setne r8b
or dil, r8b
shl ebp, 6
add ebp, eax
mov r8, qword [rsp]
lea r11, [0x1402dccf0]
lea rsi, [0x1402dcdf0]
lea rbx, [0x1402dce10]
jmp 0x1400249e2
mov r13d, 1
xor edi, edi
xor eax, eax
cmp r13, r12
jne 0x140024a3d
test dil, 1
jne 0x140024a3d
sub ebp, dword [rsi + r12*4]
cmp ebp, 0x10ffff
ja 0x140024a3d
cmp dword [rbx + r12*4], ebp
ja 0x140024a4e
mov byte [r8 + r10], bpl
add r15, r12
inc r10
cmp r15, rdx
setl al
jge 0x140024a33
cmp r10, r9
jl 0x1400248b0
jmp 0x140024a33
mov r11d, 1
xor edi, edi
test byte [rsp + 0x10], 1
jne 0x14002499f
jmp 0x1400249bf
cmp r10, r9
setne cl
xor al, 1
or al, cl
add rsp, 0x18
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor eax, eax
jmp 0x140024a3d
Function at 0x140024a60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
xor r10d, r10d
test rdx, rdx
setg al
jle 0x140024caa
test r9, r9
jle 0x140024caa
lea rax, [r9 - 1]
mov qword [rsp + 0x18], rax
lea rax, [rcx + 1]
mov qword [rsp + 0x10], rax
xor edi, edi
lea r11, [0x1402dccf0]
lea rbx, [0x1402dcdf0]
lea r15, [0x1402dce10]
xor r10d, r10d
mov qword [rsp + 8], r9
mov qword [rsp], r8
nop dword [rax]
movzx ebp, byte [rcx + rdi]
test bpl, bpl
js 0x140024ae0
mov r13d, 1
jmp 0x140024c70
movsx r13, byte [rbp + r11]
mov rax, rbp
add rax, 0xffffffffffffff40
cmp rax, 0x3d
ja 0x140024bf8
mov r11, rdx
sub r11, rdi
cmp r11, 2
mov eax, 1
cmovl r11, rax
dec r11
cmp r13, 3
mov esi, 2
cmovge rsi, r13
lea rax, [rsi - 2]
cmp r11, rax
jbe 0x140024cc5
lea r8, [rsi - 1]
test rax, rax
mov qword [rsp + 0x20], r8
je 0x140024c8e
mov rax, qword [rsp + 0x10]
lea rbx, [rax + rdi]
mov rax, r8
and rax, 0xfffffffffffffffe
neg rax
mov r15d, 1
xor r12d, r12d
mov r14d, ebp
nop word [rax + rax]
movzx r11d, byte [rbx + r15 - 1]
mov r8d, r11d
and r8b, 0xc0
cmp r8b, 0x80
setne r8b
or r8b, r12b
movzx r9d, byte [rbx + r15]
mov r12d, r9d
and r12b, 0xc0
cmp r12b, 0x80
setne r12b
or r12b, r8b
shl r14d, 0xc
shl r11d, 6
add r14d, r9d
add r14d, r11d
lea r8, [rax + r15]
add r8, 2
add r15, 2
cmp r8, 1
jne 0x140024b60
test byte [rsp + 0x20], 1
je 0x140024bd8
lea rax, [rcx + rdi]
movzx eax, byte [rax + r15]
mov r8d, eax
and r8b, 0xc0
cmp r8b, 0x80
setne r8b
or r12b, r8b
shl r14d, 6
add r14d, eax
mov r9, qword [rsp + 8]
mov r8, qword [rsp]
lea r11, [0x1402dccf0]
lea rbx, [0x1402dcdf0]
lea r15, [0x1402dce10]
jmp 0x140024c03
mov esi, 1
xor r12d, r12d
mov r14d, ebp
xor eax, eax
cmp rsi, r13
jne 0x140024cb4
test r12b, 1
jne 0x140024cb4
sub r14d, dword [rbx + r13*4]
cmp r14d, 0x10ffff
ja 0x140024cb4
cmp dword [r15 + r13*4], r14d
ja 0x140024cc5
cmp bpl, 0xf0
jb 0x140024c6d
cmp r10, qword [rsp + 0x18]
je 0x140024cc5
mov eax, r14d
shr eax, 0xa
add eax, 0xffffd7c0
mov word [r8 + r10*2], ax
and r14d, 0x3ff
or r14d, 0xdc00
mov word [r8 + r10*2 + 2], r14w
inc r10
jmp 0x140024c75
mov ebp, r14d
mov word [r8 + r10*2], bp
add rdi, r13
inc r10
cmp rdi, rdx
setl al
jge 0x140024caa
cmp r10, r9
jl 0x140024ac0
jmp 0x140024caa
mov r15d, 1
xor r12d, r12d
mov r14d, ebp
test byte [rsp + 0x20], 1
jne 0x140024bb6
jmp 0x140024bd8
cmp r10, r9
setne cl
xor al, 1
or al, cl
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor eax, eax
jmp 0x140024cb4

Function at 0x140025370
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call fcn.140279a1c
cdqe
add rsp, 0x28
ret
mov rax, qword [rcx + 0x10]
mov ecx, dword [rax]
jmp 0x140025370

Function at 0x140026330
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x1403a6f08]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140263800
mov rax, rsi
add rsp, 0x60
pop rsi
ret
Function at 0x140026370
Capabilities:
Allocate or change rwx memory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
test dl, dl
mov eax, 0x40
mov r9d, 4
cmovne r9d, eax
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x1400263ba
mov rbx, rax
mov ecx, reloc.WS2_32.dll_recv
call fcn.140263a80
mov rdi, rax
mov qword [rax], rbx
mov qword [rax + 8], rsi
mov rax, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x140036420
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov r11, qword [rsp + 0x68]
inc r11
xor eax, eax
cmp r11, r9
ja 0x14003652e
movzx eax, byte [r8 + r9 - 1]
add r11, rax
mov r10, r9
sub r10, r11
xor r11, r9
xor r10, r9
or r10, r11
xor r10, r9
not r10
sar r10, 0x3f
cmp r9, 0x100
mov esi, 0x100
cmovb rsi, r9
test rsi, rsi
je 0x140036507
lea r11, [r9 - 1]
cmp rsi, 1
jne 0x140036487
xor edi, edi
jmp 0x1400364de
mov ebx, esi
and ebx, 0x1fe
lea r14, [r8 + r11]
xor edi, edi
mov r15, 0xffffffffffffffff
mov r12, r10
nop
movzx r10d, byte [r14]
xor r10b, al
movzx r13d, r10b
not r13
movzx r10d, byte [r14 - 1]
xor r10b, al
cmp rdi, rax
cmova r13, r15
movzx r10d, r10b
not r10
cmovae r10, r15
and r10, r12
and r10, r13
add rdi, 2
add r14, 0xfffffffffffffffe
mov r12, r10
cmp rbx, rdi
jne 0x1400364a0
test sil, 1
je 0x140036507
sub r11, rdi
movzx r8d, byte [r8 + r11]
xor r8b, al
cmp rdi, rax
movzx r8d, r8b
not r8
mov r11, 0xffffffffffffffff
cmovbe r11, r8
and r10, r11
xor r8d, r8d
cmp r10b, 0xff
sete r8b
mov r10, r8
neg r10
inc eax
neg r8d
and r8d, eax
sub r9, r8
mov qword [rdx], r9
mov qword [rcx], r10
mov eax, 1
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140036540
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
mov rbx, r9
mov r14, r8
mov rsi, rdx
mov qword [rsp + 0x28], rcx
mov r13, qword [rsp + 0x120]
mov rax, qword [0x1403a6f08]
xor rax, rsp
mov qword [rsp + 0xb0], rax
lea r15, [rdx + 0x100]
xor r12d, r12d
mov rax, r13
sub rax, r15
cmovae r12, rax
test rdx, rdx
je 0x1400365a3
lea rcx, [rsp + 0x70]
xor edx, edx
mov r8, rsi
call fcn.140266cb0
cmp r12, r13
jae 0x140036745
mov rcx, rbx
sub rcx, rsi
cmp r13, r15
cmovb r15, r13
mov rdx, rbx
neg rdx
xor eax, eax
xor r8d, r8d
xor r9d, r9d
nop word [rax + rax]
cmp r8, rsi
mov r10d, 0
cmovae r10, rsi
mov r11, r8
mov r13, r12
xor r13, rcx
mov rbp, r13
not rbp
dec r13
and r13, rbp
sar r13, 0x3f
movzx r9d, r9b
or r9, r13
mov rbp, r12
xor rbp, rbx
lea rdi, [rdx + r12]
xor rdi, r12
or rdi, rbp
xor rdi, r12
sar rdi, 0x3f
and edi, r9d
and dil, byte [r14 + r12]
sub r11, r10
or byte [rsp + r11 + 0x70], dil
and r13, r11
or rax, r13
inc r12
neg r10
add r8, r10
inc r8
dec r15
jne 0x1400365d0
cmp rsi, 2
jb 0x140036751
mov rcx, rsi
and rcx, 0xfffffffffffffffe
mov r8d, 1
lea r9, [rsp + 0x30]
lea r10, [rsp + 0x70]
jmp 0x140036672
add r8, r8
shr rax, 1
mov r10, rdx
cmp r8, rsi
jae 0x140036756
mov rdx, r9
mov r9, r10
mov r10d, eax
and r10d, 1
dec r10d
movzx r10d, r10b
mov r11, r10
not r10
mov r14, r8
xor ebx, ebx
jmp 0x1400366c7
sub r14, r15
movzx edi, byte [r9 + r14]
movzx ebp, byte [r9 + rbx + 1]
and ebp, r11d
and edi, r10d
or edi, ebp
mov byte [rdx + rbx + 1], dil
add rbx, 2
inc r14
cmp rcx, rbx
je 0x140036710
mov r15d, 0
cmp r14, rsi
jb 0x1400366d5
mov r15, rsi
mov rdi, r14
sub rdi, r15
movzx edi, byte [r9 + rdi]
movzx ebp, byte [r9 + rbx]
and ebp, r11d
and edi, r10d
or edi, ebp
mov byte [rdx + rbx], dil
neg r15
add r14, r15
inc r14
mov r15d, 0
cmp r14, rsi
jb 0x1400366a0
mov r15, rsi
jmp 0x1400366a0
test sil, 1
je 0x140036660
cmp r14, rsi
mov edi, 0
cmovae rdi, rsi
sub r14, rdi
movzx edi, byte [r9 + r14]
movzx ebp, byte [r9 + rbx]
and r11d, ebp
and r10d, edi
or r10d, r11d
mov byte [rdx + rbx], r10b
jmp 0x140036660
xor eax, eax
cmp rsi, 2
jae 0x140036644
lea rdx, [rsp + 0x70]
test rsi, rsi
je 0x140036768
mov rcx, qword [rsp + 0x28]
mov r8, rsi
call fcn.140266e70
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140263800
nop
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14003cf70
Capabilities:
Encrypt data using curve25519

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x1a8
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1403a6f08]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
lea r14, [rsp + 0xc0]
mov edx, 0x20
mov rcx, r8
mov r8, r14
call fcn.140067760
and byte [rsp + 0xc0], 0xf8
movzx eax, byte [rsp + 0xdf]
and al, 0x3f
or al, 0x40
mov byte [rsp + 0xdf], al
lea r8, [0x1402e3710]
lea r15, [rsp + 0x20]
mov rcx, r15
mov rdx, r14
call fcn.14003b450
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x170], rax
movups xmm0, xmmword [rsp + 0x70]
movups xmm1, xmmword [rsp + 0x80]
movaps xmmword [rsp + 0x160], xmm1
movaps xmmword [rsp + 0x150], xmm0
lea r14, [rsp + 0x128]
lea rdx, [rsp + 0x150]
mov rcx, r14
call fcn.140041e10
lea r12, [rsp + 0x150]
mov rcx, r12
mov rdx, r15
mov r8, r14
call fcn.140044850
lea rdx, [rsp + 0x48]
lea r15, [rsp + 0x100]
mov rcx, r15
mov r8, r14
call fcn.140044850
mov rcx, rdi
mov rdx, r15
call fcn.140037630
lea rcx, [rsp + 0x180]
mov rdx, r12
call fcn.140037630
movzx eax, byte [rsp + 0x180]
shl al, 7
xor byte [rdi + 0x1f], al
movups xmm0, xmmword [rbx]
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
movups xmm0, xmmword [rdi]
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rsi + 0x20], xmm0
movups xmmword [rsi + 0x30], xmm1
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140263800
nop
add rsp, 0x1a8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1400407b0
Capabilities:
Encrypt data using curve25519

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x168
mov qword [rsp + 0x20], rcx
mov rax, qword [0x1403a6f08]
xor rax, rsp
mov qword [rsp + 0x160], rax
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
movaps xmmword [rsp + 0x140], xmm0
movaps xmmword [rsp + 0x150], xmm1
and byte [rsp + 0x140], 0xf8
movzx eax, byte [rsp + 0x15f]
and al, 0x3f
or al, 0x40
mov byte [rsp + 0x15f], al
lea r8, [0x1402e3710]
lea rcx, [rsp + 0xa0]
lea rdx, [rsp + 0x140]
call fcn.14003b450
mov rax, qword [rsp + 0xf0]
mov r11, qword [rsp + 0xc8]
mov rsi, qword [rsp + 0xd0]
lea rdi, [r11 + rax]
mov rcx, qword [rsp + 0xf8]
lea rbx, [rsi + rcx]
mov rdx, qword [rsp + 0x100]
mov r14, qword [rsp + 0xd8]
lea r15, [r14 + rdx]
mov r8, qword [rsp + 0x108]
mov r12, qword [rsp + 0xe0]
lea r13, [r12 + r8]
mov r9, qword [rsp + 0x110]
mov rbp, qword [rsp + 0xe8]
lea r10, [rbp + r9]
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x88], r15
mov qword [rsp + 0x90], r13
mov qword [rsp + 0x98], r10
movabs r10, 0xffffffffffffe
add rax, r10
sub rax, r11
add rax, 0xffffffffffffffdc
add rcx, r10
sub rcx, rsi
add rdx, r10
sub rdx, r14
add r8, r10
sub r8, r12
add r9, r10
sub r9, rbp
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x68], r8
mov qword [rsp + 0x70], r9
lea rdi, [rsp + 0x28]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.140041e10
lea rdx, [rsp + 0x78]
mov rcx, rdi
mov r8, rdi
call fcn.140044850
mov rcx, qword [rsp + 0x20]
mov rdx, rdi
call fcn.140037630
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140263800
nop
add rsp, 0x168
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14004b470
Capabilities:
Encrypt data using openssl rsa

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rdx
mov rax, qword [0x1403a6f08]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x28]
mov r8d, 6
call fcn.1400327c0
xor edi, edi
test eax, eax
je 0x14004b627
lea rcx, [rsp + 0x28]
call fcn.1400297b0
movzx r15d, byte [reloc.WS2_32.dll_htons]
cmp rax, r15
jne 0x14004b4f5
mov rbx, rax
lea rcx, [rsp + 0x28]
call fcn.140032050
lea r14, [0x1402e5ed0]
test r15b, r15b
je 0x14004b61d
lea rdx, [0x1402e5ed4]
mov rcx, rax
mov r8, rbx
call fcn.140266bb0
test eax, eax
je 0x14004b61d
lea rcx, [rsp + 0x28]
call fcn.1400297b0
movzx r15d, byte [reloc.WS2_32.dll_getsockopt]
cmp rax, r15
jne 0x14004b543
mov rbx, rax
lea rcx, [rsp + 0x28]
call fcn.140032050
lea r14, [0x1402e5b38]
test r15b, r15b
je 0x14004b61d
lea rdx, [0x1402e5b3c]
mov rcx, rax
mov r8, rbx
call fcn.140266bb0
test eax, eax
je 0x14004b61d
lea rcx, [rsp + 0x28]
call fcn.1400297b0
movzx r15d, byte [reloc.WS2_32.dll_getsockopt]
cmp rax, r15
jne 0x14004b591
mov rbx, rax
lea rcx, [rsp + 0x28]
call fcn.140032050
lea r14, [0x1402e59a8]
test r15b, r15b
je 0x14004b61d
lea rdx, [0x1402e59ac]
mov rcx, rax
mov r8, rbx
call fcn.140266bb0
test eax, eax
je 0x14004b61d
lea rcx, [rsp + 0x28]
call fcn.1400297b0
movzx r15d, byte [reloc.WS2_32.dll_closesocket]
cmp rax, r15
jne 0x14004b5d7
mov rbx, rax
lea rcx, [rsp + 0x28]
call fcn.140032050
lea r14, [0x1402e5cc8]
test r15b, r15b
je 0x14004b61d
lea rdx, [0x1402e5ccc]
mov rcx, rax
mov r8, rbx
call fcn.140266bb0
test eax, eax
je 0x14004b61d
lea rcx, [rsp + 0x28]
call fcn.1400297b0
movzx r15d, byte [reloc.WS2_32.dll_closesocket]
cmp rax, r15
jne 0x14004b627
mov rbx, rax
lea rcx, [rsp + 0x28]
call fcn.140032050
lea r14, [0x1402e6060]
test r15b, r15b
je 0x14004b61d
lea rdx, [0x1402e6064]
mov rcx, rax
mov r8, rbx
call fcn.140266bb0
test eax, eax
jne 0x14004b627
mov eax, dword [r14]
mov dword [rsi], eax
mov edi, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140263800
mov eax, edi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14004f4a0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xf8
mov qword [rsp + 0x38], r9
mov qword [rsp + 0x30], r8
mov r14, rdx
mov r15, rcx
mov r12, qword [rsp + 0x168]
mov rax, qword [0x1403a6f08]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rcx, r12
call fcn.14004b110
mov rbx, rax
lea r13, [rsp + 0x40]
mov rcx, r13
call fcn.1400734a0
mov qword [rsp + 0x20], 0
mov rcx, r13
mov rdx, r15
mov r8, r14
mov r9, r12
call fcn.1400734d0
test eax, eax
je 0x14004f749
mov rsi, qword [rsp + 0x170]
test rsi, rsi
je 0x14004f74d
mov r14, qword [rsp + 0x178]
mov eax, 1
lea r15, [rsp + 0x40]
jmp 0x14004f552
add r14, rbp
mov eax, dword [rsp + 0x2c]
inc eax
sub rsi, rbp
je 0x14004f74d
cmp rbx, rsi
mov rbp, rsi
cmovb rbp, rbx
mov dword [rsp + 0x2c], eax
bswap eax
mov dword [rsp + 0xac], eax
mov qword [rsp + 0x20], 0
mov rcx, r15
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call fcn.1400734d0
test eax, eax
je 0x14004f749
mov rcx, r15
mov rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
call fcn.140073800
test eax, eax
je 0x14004f749
mov r8d, 4
mov rcx, r15
lea rdx, [rsp + 0xac]
call fcn.140073800
test eax, eax
je 0x14004f749
mov rcx, r15
lea rdx, [rsp + 0xb0]
xor r8d, r8d
call fcn.140073820
test eax, eax
je 0x14004f749
test rbp, rbp
je 0x14004f5f5
mov rcx, r14
lea rdx, [rsp + 0xb0]
mov r8, rbp
call fcn.140266e70
cmp dword [rsp + 0x160], 2
jb 0x14004f540
mov r12, rbp
and r12, 0xffffffffffffffe0
mov r13, rbp
and r13, 0xfffffffffffffff8
mov edi, 1
jmp 0x14004f62f
inc edi
cmp edi, dword [rsp + 0x160]
je 0x14004f540
mov qword [rsp + 0x20], 0
mov rcx, r15
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call fcn.1400734d0
test eax, eax
je 0x14004f749
mov rcx, r15
lea rdx, [rsp + 0xb0]
mov r8, rbx
call fcn.140073800
test eax, eax
je 0x14004f749
mov rcx, r15
lea rdx, [rsp + 0xb0]
xor r8d, r8d
call fcn.140073820
test eax, eax
je 0x14004f749
test rbp, rbp
je 0x14004f620
cmp rbp, 8
jae 0x14004f6a0
xor eax, eax
jmp 0x14004f730
cmp rbp, 0x20
jae 0x14004f6aa
xor ecx, ecx
jmp 0x14004f700
xor eax, eax
nop dword [rax]
movups xmm0, xmmword [r14 + rax]
movups xmm1, xmmword [r14 + rax + 0x10]
xorps xmm0, xmmword [rsp + rax + 0xb0]
xorps xmm1, xmmword [rsp + rax + 0xc0]
movups xmmword [r14 + rax], xmm0
movups xmmword [r14 + rax + 0x10], xmm1
add rax, 0x20
cmp r12, rax
jne 0x14004f6b0
cmp rbp, r12
je 0x14004f620
mov rcx, r12
mov rax, r12
test bpl, 0x18
je 0x14004f730
nop word cs:[rax + rax]
mov rax, qword [rsp + rcx + 0xb0]
xor qword [r14 + rcx], rax
add rcx, 8
cmp r13, rcx
jne 0x14004f700
mov rax, r13
cmp rbp, r13
je 0x14004f620
nop word cs:[rax + rax]
movzx ecx, byte [rsp + rax + 0xb0]
xor byte [r14 + rax], cl
inc rax
cmp rbp, rax
jne 0x14004f730
jmp 0x14004f620
xor esi, esi
jmp 0x14004f75b
xor esi, esi
cmp dword [rsp + 0x160], 0
setne sil
lea rcx, [rsp + 0x40]
call fcn.1400738e0
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.140263800
mov eax, esi
add rsp, 0xf8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140053040
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rax, qword [0x1403a6f08]
xor rax, rsp
mov qword [rsp + 0x30], rax
test r8, r8
je 0x1400532a3
mov r14, r9
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
mov r13, qword [rsp + 0xa8]
mov r12, qword [rsp + 0xa0]
cmp rcx, 0x20
setae al
add rcx, 0xffffffffffffffe0
cmp rcx, rdx
setae cl
cmp rsi, rdx
jb 0x1400530fa
and al, cl
jne 0x1400530fa
cmp rbx, 0x10
jb 0x140053154
lea r15, [rsp + 0x20]
nop dword [rax]
mov rcx, rsi
mov rdx, r15
mov r8, r14
call r13
mov rax, qword [rsi]
mov rcx, qword [r12]
xor rcx, qword [rsp + 0x20]
mov qword [rdi], rcx
mov qword [r12], rax
mov rax, qword [rsi + 8]
mov rcx, qword [r12 + 8]
xor rcx, qword [rsp + 0x28]
mov qword [rdi + 8], rcx
mov qword [r12 + 8], rax
add rbx, 0xfffffffffffffff0
add rsi, 0x10
add rdi, 0x10
cmp rbx, 0xf
ja 0x1400530b0
jmp 0x140053154
cmp rbx, 0x10
jb 0x140053149
mov rbp, r12
nop word cs:[rax + rax]
mov r15, rsi
mov rcx, rsi
mov rdx, rdi
mov r8, r14
call r13
mov rax, qword [rbp]
xor qword [rdi], rax
mov rax, qword [rbp + 8]
xor qword [rdi + 8], rax
add rbx, 0xfffffffffffffff0
add rsi, 0x10
add rdi, 0x10
mov rbp, r15
cmp rbx, 0xf
ja 0x140053110
lea rax, [rsi - 0x10]
jmp 0x14005314c
mov rax, r12
movups xmm0, xmmword [rax]
movups xmmword [r12], xmm0
test rbx, rbx
je 0x1400532a3
lea rdx, [rsp + 0x20]
mov rcx, rsi
mov r8, r14
call r13
cmp rbx, 0x10
mov eax, reloc.WS2_32.dll_recv
cmovb rax, rbx
cmp rax, 1
jne 0x140053186
xor ecx, ecx
test al, 1
jne 0x1400531d3
jmp 0x1400531eb
mov edx, eax
and edx, 0x1e
xor ecx, ecx
nop dword [rax]
movzx r8d, byte [rsi + rcx]
movzx r9d, byte [r12 + rcx]
xor r9b, byte [rsp + rcx + 0x20]
mov byte [rdi + rcx], r9b
mov byte [r12 + rcx], r8b
movzx r8d, byte [rsi + rcx + 1]
movzx r9d, byte [r12 + rcx + 1]
xor r9b, byte [rsp + rcx + 0x21]
mov byte [rdi + rcx + 1], r9b
mov byte [r12 + rcx + 1], r8b
add rcx, 2
cmp rdx, rcx
jne 0x140053190
lea rdx, [rcx - 1]
test al, 1
je 0x1400531eb
movzx edx, byte [r12 + rcx]
xor dl, byte [rsp + rcx + 0x20]
movzx r8d, byte [rsi + rcx]
mov byte [rdi + rcx], dl
mov byte [r12 + rcx], r8b
mov rdx, rcx
cmp rdx, 0xe
ja 0x1400532a3
xor ecx, ecx
mov edx, reloc.WS2_32.dll_ntohs
sub rdx, rax
cmovae rcx, rdx
inc rcx
cmp rcx, 8
jb 0x140053286
lea rdx, [rax + r12]
lea r8, [rax + rsi]
mov r9, rdx
sub r9, r8
cmp r9, 0x10
jb 0x140053286
cmp rcx, 0x10
jae 0x14005322b
xor r9d, r9d
jmp 0x140053262
mov r9, rcx
and r9, 0xfffffffffffffff0
xor r10d, r10d
nop word cs:[rax + rax]
movups xmm0, xmmword [r8 + r10]
movups xmmword [rdx + r10], xmm0
add r10, 0x10
cmp r9, r10
jne 0x140053240
cmp rcx, r9
je 0x1400532a3
test cl, 8
jne 0x140053262
add rax, r9
jmp 0x140053286
mov r10, rcx
and r10, 0xfffffffffffffff8
add rax, r10
nop dword [rax]
mov r11, qword [r8 + r9]
mov qword [rdx + r9], r11
add r9, 8
cmp r10, r9
jne 0x140053270
cmp rcx, r10
je 0x1400532a3
dec rax
nop dword [rax]
movzx ecx, byte [rsi + rax + 1]
mov byte [r12 + rax + 1], cl
inc rax
cmp rax, 0xf
jb 0x140053290
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140263800
nop
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140055000
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
cmp rdx, r9
mov r10, r9
cmovb r10, rdx
xor eax, eax
test r10, r10
je 0x140055076
xor r11d, r11d
nop dword [rax + rax]
mov rdi, qword [r8 + r11*8]
mov rsi, qword [rcx + r11*8]
mov rbx, rsi
xor rbx, rdi
mov r14d, eax
lea rax, [rbx - 1]
mov r15, rsi
sub r15, rdi
xor r15, rsi
or r15, rbx
not rbx
and rax, rbx
sar rax, 0x3f
xor r15, rsi
sar r15, 0x3f
mov rsi, r15
not r15
and r15d, 1
or r15, rsi
mov rsi, rax
and r14d, esi
not rax
and rax, r15
or rax, r14
inc r11
cmp r10, r11
jne 0x140055020
mov r11, rdx
sub r11, r9
jae 0x140055092
mov r11, r9
sub r11, rdx
cmp r11, 4
jae 0x1400550ad
xor r10d, r10d
mov rcx, rdx
jmp 0x140055110
jbe 0x1400551ce
cmp r11, 4
jae 0x140055139
xor r10d, r10d
mov r8, r9
jmp 0x1400551a0
mov rsi, r11
and rsi, 0xfffffffffffffffc
lea rcx, [rsi + rdx]
lea rdx, [r8 + rdx*8]
add rdx, 0x10
pxor xmm0, xmm0
xor r10d, r10d
pxor xmm1, xmm1
nop dword [rax + rax]
movdqu xmm2, xmmword [rdx + r10*8 - 0x10]
por xmm0, xmm2
movdqu xmm2, xmmword [rdx + r10*8]
por xmm1, xmm2
add r10, 4
cmp rsi, r10
jne 0x1400550d0
por xmm1, xmm0
pshufd xmm0, xmm1, 0xee
por xmm0, xmm1
movq r10, xmm0
cmp r11, rsi
je 0x14005511c
nop word cs:[rax + rax]
or r10, qword [r8 + rcx*8]
inc rcx
cmp r9, rcx
jne 0x140055110
mov rcx, r10
not rcx
dec r10
and r10, rcx
sar r10, 0x3f
mov rcx, r10
and ecx, eax
not r10
jmp 0x1400551c8
mov rsi, r11
and rsi, 0xfffffffffffffffc
lea r8, [rsi + r9]
lea r9, [rcx + r9*8]
add r9, 0x10
pxor xmm0, xmm0
xor r10d, r10d
pxor xmm1, xmm1
nop word [rax + rax]
movdqu xmm2, xmmword [r9 + r10*8 - 0x10]
por xmm0, xmm2
movdqu xmm2, xmmword [r9 + r10*8]
por xmm1, xmm2
add r10, 4
cmp rsi, r10
jne 0x140055160
por xmm1, xmm0
pshufd xmm0, xmm1, 0xee
por xmm0, xmm1
movq r10, xmm0
cmp r11, rsi
je 0x1400551ac
nop word cs:[rax + rax]
or r10, qword [rcx + r8*8]
inc r8
cmp rdx, r8
jne 0x1400551a0
mov rcx, r10
not rcx
dec r10
and r10, rcx
sar r10, 0x3f
mov rcx, r10
and ecx, eax
not r10
and r10d, 1
or r10d, ecx
mov eax, r10d
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret