joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140027fa0
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001bc64
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001bc64
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400280f0
cmp rax, 0xffffffffffffffff
je 0x1400280f0
xor edi, edi
test rbp, rbp
jle 0x14002809b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001e250
mov rbx, rax
test rax, rax
jne 0x140028028
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140028091
mov edx, 0x8000
mov ecx, r14d
call fcn.140015818
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001c940
cmp eax, 0xffffffff
je 0x140028071
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140028038
mov edx, r15d
mov ecx, r14d
call fcn.140015818
jmp 0x140028091
cmp byte [rsi + 0x38], dil
je 0x140028088
cmp dword [rsi + 0x34], 5
jne 0x140028088
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140028091
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001a328
jmp 0x140028104
jns 0x140028104
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001bc64
cmp rax, 0xffffffffffffffff
jne 0x1400280bc
cmp byte [rsi + 0x30], dil
je 0x140028104
mov edi, dword [rsi + 0x2c]
jmp 0x140028104
mov ecx, r14d
call fcn.140016e18
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140028104
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140028104
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400280fd
mov eax, dword [rsi + 0x2c]
jmp 0x140028102
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001bc64
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x180005450
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r15, qword [rsp + 0x80]
xor ebx, ebx
mov rax, qword [rcx + 8]
mov r14, r8
movzx ebp, r9w
mov edi, edx
mov r9, qword [rcx + 0x18]
mov r13, rcx
mov word [r15], bx
lea r12, [r9 + 8]
test edx, edx
js 0x1800055ea
mov r8d, dword [rax + 8]
cmp edx, r8d
ja 0x1800055ea
mov ecx, dword [rax + 0xc]
add ecx, 0x10
js 0x1800055ea
mov rax, qword [r12 + 0xa0]
mov edx, dword [rax + 0xc]
cmp ecx, edx
jae 0x1800055ea
test ecx, ecx
mov eax, 0x18
cmove ecx, eax
sub edx, ecx
cmp edi, edx
jae 0x1800055ea
lea esi, [rcx + rdi]
mov dword [rsp + 0x80], esi
cmp r8d, edi
jbe 0x1800055e5
mov edx, r8d
sub edx, edi
cmp ebp, edx
jbe 0x1800054fd
movzx ebp, r8w
sub bp, di
mov dl, 1
mov rcx, r9
call fcn.180004850
movzx r10d, ax
test ax, ax
jne 0x1800055f0
mov rax, qword [r12 + 0xa0]
mov ecx, dword [rax + 0xc]
sub ecx, esi
movzx esi, bp
cmp esi, ecx
cmovae esi, ecx
test esi, esi
jne 0x180005538
mov r10d, recv
jmp 0x1800055f0
movzx r8d, word [r15]
lea rax, [rsp + 0x68]
mov edx, dword [rsp + 0x80]
add r8, r14
movzx r9d, si
mov qword [rsp + 0x20], rax
mov rcx, r12
call fcn.180004720
movzx r10d, ax
test ax, ax
jne 0x1800055f0
cmp word [rsp + 0x68], si
jne 0x18000552d
movzx r11d, si
add r11w, word [r15]
mov word [r15], r11w
cmp bp, si
jne 0x18000552d
mov rax, qword [r13 + 8]
mov eax, dword [rax + 0x14]
cmp eax, dword [0x180182448]
jne 0x1800055f4
mov r9d, dword [r13 + 0xa0]
and di, 0x1f
je 0x1800055c8
movzx edx, di
mov eax, r9d
mov ecx, edx
mov r8d, 1
shl r8d, cl
mov ecx, 0x20
dec r8d
sub ecx, edx
and r8d, r9d
shl r8d, cl
mov ecx, edx
shr eax, cl
mov r9d, r8d
or r9d, eax
cmp bx, r11w
jae 0x1800055f4
nop
movzx eax, bx
inc bx
xor byte [rax + r14], r9b
ror r9d, 1
cmp bx, r11w
jb 0x1800055d0
jmp 0x1800055f4
movzx eax, bx
jmp 0x1800055f8
mov r10d, send
mov word [r15], bx
movzx eax, r10w
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180005c70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor eax, eax
mov r13, r9
mov word [rsp + 0x60], ax
mov r12d, r8d
mov r14, rdx
mov r15, rcx
mov esi, eax
mov ebx, 0xffffffff
test rcx, rcx
je 0x180005e6d
test rdx, rdx
je 0x180005e6d
test r9, r9
je 0x180005e6d
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rdi
lea rdi, [0x1801839f0]
nop dword [rax + rax]
lea rax, [rsp + 0x60]
mov r9d, 0x1000
mov r8, r14
mov qword [rsp + 0x20], rax
mov edx, esi
mov rcx, r15
call fcn.180005450
test ax, ax
jne 0x180005e50
movzx ebp, word [rsp + 0x60]
add esi, ebp
mov r10d, ebp
test bp, bp
je 0x180005e3a
mov r11, r14
cmp ebp, 8
jb 0x180005dc9
mov edi, ebp
lea rbp, [0x1801839f0]
shr rdi, 3
nop dword [rax]
nop word [rax + rax]
xor ebx, dword [r11]
add r10d, 0xfffffff8
mov r9d, dword [r11 + 4]
add r11, 8
mov r8d, ebx
mov eax, ebx
shr rax, 0x10
movzx edx, al
mov eax, ebx
shr rax, 8
movzx ecx, al
mov eax, r9d
mov ebx, dword [rbp + rdx*4 + 0x1400]
shr rax, 0x10
xor ebx, dword [rbp + rcx*4 + 0x1800]
movzx ecx, al
mov eax, r9d
shr rax, 8
xor ebx, dword [rbp + rcx*4 + 0x400]
movzx ecx, al
mov eax, r8d
shr rax, 0x18
xor ebx, dword [rbp + rcx*4 + 0x800]
xor ebx, dword [rbp + rax*4 + 0x1000]
mov eax, r9d
shr rax, 0x18
xor ebx, dword [rbp + rax*4]
movzx eax, r8b
xor ebx, dword [rbp + rax*4 + 0x1c00]
movzx eax, r9b
xor ebx, dword [rbp + rax*4 + 0xc00]
sub rdi, 1
jne 0x180005d30
movzx ebp, word [rsp + 0x60]
lea rdi, [0x1801839f0]
cmp r10d, 4
jb 0x180005e12
xor ebx, dword [r11]
add r11, 4
mov r8d, ebx
mov eax, ebx
shr rax, 0x10
movzx edx, al
mov eax, ebx
shr rax, 8
movzx ecx, al
mov eax, r8d
mov ebx, dword [rdi + rdx*4 + 0x400]
shr rax, 0x18
xor ebx, dword [rdi + rcx*4 + 0x800]
xor ebx, dword [rdi + rax*4]
movzx eax, r8b
xor ebx, dword [rdi + rax*4 + 0xc00]
add r10d, 0xfffffffc
test r10d, r10d
je 0x180005e3a
nop word [rax + rax]
movzx eax, byte [r11]
lea r11, [r11 + 1]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [rdi + rcx*4]
add r10d, 0xffffffff
jne 0x180005e20
cmp esi, r12d
jge 0x180005e48
test bp, bp
jne 0x180005cd0
not ebx
xor eax, eax
mov dword [r13], ebx
mov rbp, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rsi
ret
mov rbx, qword [rsp + 0x78]
mov eax, 1
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rsi
ret
Function at 0x180005e90
Capabilities:
Hash data using sha256

Disassembly:
mov r11, rsp
push rbp
push r13
push r15
lea rbp, [r11 - 0x78]
sub rsp, 0x160
mov rax, qword [0x180198b38]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rax, rcx
mov qword [rsp + 0x38], rcx
xor ecx, ecx
mov qword [rsp + 0x40], r9
mov dword [rsp + 0x34], r8d
mov r13, rdx
mov word [rsp + 0x30], cx
mov r15d, ecx
test rax, rax
je 0x1800060d3
test rdx, rdx
je 0x1800060d3
test r9, r9
je 0x1800060d3
xorps xmm0, xmm0
mov qword [r11 + 0x18], rbx
movups xmmword [rsp + 0x68], xmm0
mov qword [r11 - 0x20], rsi
movups xmmword [rsp + 0x78], xmm0
mov qword [r11 - 0x28], rdi
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x58], ecx
lea rcx, [0x180007320]
mov qword [r11 - 0x38], r14
mov qword [r11 - 0x30], r12
movups xmmword [rbp - 0x58], xmm0
mov dword [rsp + 0x68], 0x6a09e667
movups xmmword [rbp - 0x48], xmm0
mov dword [rsp + 0x6c], 0xbb67ae85
movups xmmword [rbp - 0x38], xmm0
mov dword [rsp + 0x70], 0x3c6ef372
movups xmmword [rbp - 0x28], xmm0
mov dword [rsp + 0x74], 0xa54ff53a
movups xmmword [rbp - 0x18], xmm0
mov dword [rsp + 0x78], 0x510e527f
movups xmmword [rbp - 8], xmm0
mov dword [rsp + 0x7c], 0x9b05688c
movups xmmword [rbp + 8], xmm0
mov dword [rbp - 0x80], 0x1f83d9ab
movups xmmword [rbp + 0x18], xmm0
mov dword [rbp - 0x7c], 0x5be0cd19
movups xmmword [rbp - 0x78], xmm0
mov dword [rsp + 0x60], 0x40
movups xmmword [rbp - 0x68], xmm0
mov qword [rbp + 0x28], rcx
mov dword [rsp + 0x5c], 0x100
nop word [rax + rax]
lea rcx, [rsp + 0x30]
mov r9d, 0x1000
mov qword [rsp + 0x20], rcx
mov r8, r13
mov rcx, rax
mov edx, r15d
call fcn.180005450
test ax, ax
jne 0x180006092
movzx r12d, word [rsp + 0x30]
mov r14, r13
mov eax, dword [rsp + 0x50]
add r15d, r12d
mov esi, r12d
lea ecx, [rax + r12*8]
lea eax, [r12*8]
mov dword [rsp + 0x50], ecx
cmp ecx, eax
mov ecx, dword [rsp + 0x54]
jae 0x180005ff4
inc ecx
mov eax, r12d
shr eax, 0x1d
add ecx, eax
mov dword [rsp + 0x54], ecx
test r12d, r12d
je 0x18000606b
nop word [rax + rax]
mov eax, dword [rsp + 0x58]
lea rcx, [rbp - 0x58]
mov ebx, dword [rsp + 0x60]
add rcx, rax
sub ebx, eax
mov rdx, r14
cmp ebx, esi
ja 0x18000605f
mov r8d, ebx
mov edi, ebx
call fcn.1800e7950
mov rax, qword [rbp + 0x28]
lea rcx, [fcn.180007920]
sub esi, ebx
add r14, rdi
cmp rax, rcx
lea rcx, [rsp + 0x50]
jne 0x180006053
call fcn.180007920
jmp 0x180006059
call qword [case.0x180001ec5.0]
test esi, esi
jne 0x180006010
jmp 0x18000606b
mov r8d, esi
call fcn.1800e7950
add dword [rsp + 0x58], esi
cmp r15d, dword [rsp + 0x34]
jge 0x180006081
mov rax, qword [rsp + 0x38]
test r12w, r12w
jne 0x180005fa0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.180007ec0
xor eax, eax
mov r12, qword [rsp + 0x148]
mov rdi, qword [rsp + 0x150]
mov rsi, qword [rsp + 0x158]
mov rbx, qword [rsp + 0x190]
mov r14, qword [rsp + 0x140]
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.1800e5e30
add rsp, 0x160
pop r15
pop r13
pop rbp
ret
mov eax, 1
jmp 0x1800060ba
Function at 0x180008440
Capabilities:
Encode data using xor

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x18
movzx eax, byte [rcx + 8]
lea r15, [rcx + 0x18]
movzx edi, byte [rcx + 0xc]
lea r10, [0x180185d70]
movzx esi, byte [rcx + 0xd]
mov r13d, 8
movzx ebp, byte [rcx + 0xe]
movzx r14d, byte [rcx + 0xf]
mov byte [rsp], al
movzx eax, byte [rcx + 9]
mov byte [rsp + 0x68], al
movzx eax, byte [rcx + 0xa]
mov byte [rsp + 0x70], al
movzx eax, byte [rcx + 0xb]
movzx ecx, byte [rsp]
mov byte [rsp + 0x78], al
nop
movzx edx, byte [r15 - 8]
lea r15, [r15 + 1]
movzx eax, dil
movzx r12d, r14b
xor rdx, rax
movzx eax, sil
movzx r8d, byte [rdx + r10]
movzx edx, byte [r15 - 1]
movzx r11d, r8b
xor rdx, rax
and r8b, 0xf
movzx eax, bpl
and r11b, 0xf0
movzx r9d, byte [rdx + r10 + 0x100]
movzx edx, byte [r15 + 7]
movzx ebx, r9b
xor rdx, rax
and r9b, 0xf
movzx eax, r14b
and bl, 0xf0
or bl, r8b
movzx r8d, byte [rdx + r10 + 0x200]
movzx edx, byte [r15 + 0xf]
movzx r10d, r8b
xor rdx, rax
and r10b, 0xf0
or r10b, r9b
lea rax, [0x180185d70]
and r8b, 0xf
movzx r14d, r10b
xor r14b, byte [rsp + 0x78]
lea r10, [0x180185d70]
movzx r9d, byte [rdx + rax + 0x300]
movzx edx, dil
movzx eax, r9b
mov byte [rsp + 0x78], r12b
and al, 0xf0
and r9b, 0xf
or al, r8b
or r9b, r11b
movzx r8d, sil
movzx r11d, bpl
movzx edi, al
movzx esi, r9b
xor sil, byte [rsp + 0x68]
xor dil, cl
movzx ebp, bl
mov byte [rsp + 0x68], r8b
xor bpl, byte [rsp + 0x70]
movzx ecx, dl
mov byte [rsp + 0x70], r11b
sub r13, 1
jne 0x1800084a0
mov rcx, qword [rsp + 0x60]
mov byte [rcx + 8], dil
mov byte [rcx + 9], sil
mov byte [rcx + 0xa], bpl
mov byte [rcx + 0xb], r14b
mov byte [rcx + 0xc], dl
mov byte [rcx + 0xd], r8b
mov byte [rcx + 0xe], r11b
mov byte [rcx + 0xf], r12b
add rsp, 0x18
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180013ad0
Capabilities:
Encode data using xor

Disassembly:
xor r9b, r9b
mov r10, rdx
test r8, r8
je 0x180013af7
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 0x180013ae0
movzx eax, r9b
ret
Function at 0x180033ed0
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.1800e6940
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 0x180039d50
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x38
call fcn.1800e6940
sub rsp, rax
mov r10, r8
mov r11, rcx
test r9, r9
jne 0x180039d8f
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.180014e10
xor eax, eax
add rsp, 0x38
ret
movzx r8d, byte [r8]
and r8d, 0x80
test rdx, rdx
je 0x180039da2
mov dword [rdx], r8d
cmp r9, 1
jne 0x180039dc4
test r11, r11
je 0x180039dba
movzx eax, byte [r10]
test r8d, r8d
je 0x180039db8
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 0x180039de1
mov eax, 1
mov ebx, eax
jmp 0x180039e8f
cmp cl, 0xff
jne 0x180039ecd
mov eax, 1
lea rcx, [r9 - 1]
mov edx, ebx
cmp r9, rax
jbe 0x180039e7f
cmp rcx, 8
jb 0x180039e70
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 0x180039e13
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 0x180039e7f
nop
movzx ecx, byte [rax + r10]
inc rax
or edx, ecx
cmp rax, r9
jb 0x180039e70
test edx, edx
mov eax, ebx
setne al
test edx, edx
setne bl
test edx, edx
je 0x180039ecd
movzx ecx, byte [r10 + 1]
and ecx, 0x80
cmp r8d, ecx
jne 0x180039ecd
mov edx, 0xe2
mov dword [rsp + 0x20], 0xbb
lea r9, str.crypto_asn1_a_int.c
mov ecx, recv
lea r8d, [rdx - 5]
call fcn.180014e10
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x38
ret
mov ecx, eax
sub r9, rcx
test r11, r11
je 0x180039f21
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 0x180039f1c
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 0x180039f00
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
mov rax, r9
add rsp, 0x38
ret
Function at 0x18003fa00
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.1800e6940
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 0x18003fa78
mov rdx, qword [rsp + 0x98]
nop dword [rax]
test rbx, rbx
je 0x18003fa71
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 0x18003fa50
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 0x18003fbae
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 0x18003fb6d
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 0x18003fb50
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 0x18003fad0
mov edi, dword [rsp + 0x80]
mov r13d, recv
mov r9, qword [rsp + 0xa0]
test rbx, rbx
je 0x18003fc51
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 0x18003fc27
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 0x18003fc10
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 0x18003fc30
mov rax, qword [rsp + 0xa0]
mov dword [rax], edi
jmp 0x18003fc54
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 0x1800403d0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push r14
mov eax, 0x20
call fcn.1800e6940
sub rsp, rax
cmp qword [rcx + 0x38], 0
mov rbx, r8
mov r14, rdx
mov rbp, rcx
je 0x180040400
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 0x1800404f2
cmp rcx, rbx
jb 0x1800404f2
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 0x180040475
test rbx, rbx
je 0x1800404d2
movzx eax, byte [r14]
dec rbx
mov ecx, esi
inc r14
xor byte [rcx + rbp + 0x40], al
inc esi
and esi, 0xf
jne 0x180040440
lea r12, [rbp + 0x60]
lea rdi, [rbp + 0x40]
mov rdx, r12
mov rcx, rdi
call fcn.180041a80
jmp 0x18004047d
lea r12, [rbp + 0x60]
lea rdi, [rbp + 0x40]
mov qword [rsp + 0x58], r15
mov r15, rbx
and r15, 0xfffffffffffffff0
je 0x1800404a2
mov r9, r15
mov r8, r14
mov rdx, r12
mov rcx, rdi
call fcn.1800418c0
add r14, r15
sub rbx, r15
mov r15, qword [rsp + 0x58]
test rbx, rbx
je 0x1800404d2
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 0x1800404c0
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 0x1800418c0
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, [0x180134be0]
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, recv
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 0x180041950
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 0x180041900
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 0x180041a80
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, [0x180134be0]
mov r8d, eax
mov r11, rcx
and eax, 0xf
and r8, 0xfffffffffffffff0
add rax, rax
mov rbx, rdx
mov edi, recv
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 0x180041ae0
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 0x180045b00
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
xor eax, eax
mov r10, rcx
test rcx, rcx
je 0x180045b6c
movzx ecx, byte [rcx]
test cl, cl
je 0x180045b6c
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 0x180045b20
mov ecx, eax
shr ecx, 0x10
xor eax, ecx
ret
Function at 0x180045c30
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x20
call fcn.1800e6940
sub rsp, rax
xor ebx, ebx
mov rdi, rcx
test rcx, rcx
je 0x180045cc3
movzx eax, byte [rcx]
test al, al
je 0x180045cc3
mov qword [rsp + 0x30], rsi
mov esi, 0x100
nop
movsx ecx, al
call fcn.180045d00
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 0x180045c60
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