joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180161d20
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov esi, dword [rcx + 8]
mov r14, rcx
mov eax, dword [rcx + 0xc]
lea ebx, [rsi + 4]
cmp ebx, eax
ja 0x180161d66
nop dword [rax]
mov rax, qword [r14]
mov edx, esi
mov r9, qword [r14 + 0x10]
mov ecx, esi
shl rcx, 6
add rcx, qword [rax + 0x18]
call fcn.18016d544
mov eax, dword [r14 + 0xc]
add esi, 4
add ebx, 4
cmp ebx, eax
jbe 0x180161d40
cmp esi, eax
jae 0x180161f43
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], r15
mov r15d, dword [0x1804be630]
nop dword [rax]
nop dword [rax + rax]
mov rdi, qword [r14 + 0x10]
mov r9d, 0x40
mov rax, qword [r14]
mov ecx, esi
mov ebx, esi
mov rbp, qword [rdi]
mov edx, dword [rdi + 0x20]
add rdx, rcx
shl rbx, 6
add rbx, qword [rax + 0x18]
movzx ecx, byte [rdi + 0x24]
mov r8, rbx
mov eax, dword [rdi + 0x1c]
imul rdx, rax
mov dword [rsp + 0x28], 0x40
shr rdx, cl
mov ecx, esi
imul edx, dword [rdi + 0x18]
mov qword [rsp + 0x20], rbx
sub ecx, edx
shl rcx, 6
movups xmm0, xmmword [rcx + rbp]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rcx + rbp + 0x10]
movups xmmword [rbx + 0x10], xmm1
movups xmm0, xmmword [rcx + rbp + 0x20]
movups xmmword [rbx + 0x20], xmm0
movups xmm1, xmmword [rcx + rbp + 0x30]
mov ecx, 0x200
movups xmmword [rbx + 0x30], xmm1
xor dword [rbx], esi
call fcn.180015bc0
xor r10d, r10d
xor r11d, r11d
movzx ecx, byte [rdi + 0x24]
mov rdx, r11
and edx, 0xf
mov eax, r10d
xor eax, esi
imul r8d, eax, 0x1000193
mov eax, dword [rdi + 0x1c]
xor r8d, dword [rbx + rdx*4]
mov edx, dword [rdi + 0x20]
add rdx, r8
imul rdx, rax
shr rdx, cl
imul edx, dword [rdi + 0x18]
sub r8d, edx
mov edx, r8d
shl rdx, 6
add rdx, rbp
cmp r15d, 2
jl 0x180161eca
lea rax, [rdx + 0x3c]
lea rcx, [rbx + 0x3c]
cmp rbx, rax
ja 0x180161e63
cmp rcx, rdx
jae 0x180161eca
movdqu xmm1, xmmword [rbx]
movdqa xmm2, xmmword [0x180487890]
movdqu xmm0, xmmword [rdx]
pmulld xmm1, xmm2
pxor xmm1, xmm0
movdqu xmm0, xmmword [rdx + 0x10]
movdqu xmmword [rbx], xmm1
movdqu xmm1, xmmword [rbx + 0x10]
pmulld xmm1, xmm2
pxor xmm1, xmm0
movdqu xmm0, xmmword [rdx + 0x20]
movdqu xmmword [rbx + 0x10], xmm1
movdqu xmm1, xmmword [rbx + 0x20]
pmulld xmm1, xmm2
pxor xmm1, xmm0
movdqu xmm0, xmmword [rdx + 0x30]
movdqu xmmword [rbx + 0x20], xmm1
movdqu xmm1, xmmword [rbx + 0x30]
pmulld xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rbx + 0x30], xmm1
jmp 0x180161ef7
mov rax, rbx
sub rdx, rbx
mov r9d, reloc.WS2_32.dll_recv
nop word [rax + rax]
imul ecx, dword [rax], 0x1000193
lea rax, [rax + 4]
xor ecx, dword [rdx + rax - 4]
mov dword [rax - 4], ecx
sub r9, 1
jne 0x180161ee0
inc r10d
inc r11
cmp r10d, 0x200
jne 0x180161e10
mov dword [rsp + 0x28], 0x40
mov r9d, 0x40
mov r8, rbx
mov qword [rsp + 0x20], rbx
mov ecx, r10d
call fcn.180015bc0
inc esi
cmp esi, dword [r14 + 0xc]
jb 0x180161d90
mov r15, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x180161fd0
Capabilities:
Create thread

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov r12, r8
mov rbx, rdx
mov r14, rcx
mov rdx, qword [rcx]
mov rdi, rbx
sub rdi, rdx
mov rax, qword [rcx + 8]
sub rax, rdx
sar rax, 4
movabs r9, 0xfffffffffffffff
cmp rax, r9
je 0x1801621cc
lea r8, [rax + 1]
mov qword [rsp + 0xa8], r8
mov rcx, qword [rcx + 0x10]
sub rcx, rdx
sar rcx, 4
mov rdx, rcx
shr rdx, 1
mov rax, r9
sub rax, rdx
cmp rcx, rax
jbe 0x18016210e
mov rsi, r9
mov qword [rsp + 0x98], r9
mov rcx, rsi
shl rcx, 4
call fcn.180003fe0
mov r15, rax
mov qword [rsp + 0x38], rax
and rdi, 0xfffffffffffffff0
lea r13, [rdi + rax]
lea rdi, [r13 + 0x10]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x90], rdi
mov ecx, 0x18
call fcn.18031edd0
movups xmm0, xmmword [r12]
movups xmmword [rax], xmm0
movsd xmm1, qword [r12 + 0x10]
movsd qword [rax + 0x10], xmm1
mov qword [rsp + 0x40], rax
lea r12, [r13 + 8]
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x1801621e0]
xor edx, edx
xor ecx, ecx
call fcn.18032d054
mov qword [r13], rax
test rax, rax
je 0x1801621b9
mov qword [rsp + 0x90], r13
mov rcx, qword [r14 + 8]
mov rax, qword [r14]
mov rdx, r15
cmp rbx, rcx
jne 0x180162132
cmp rax, rcx
je 0x180162190
nop dword [rax + rax]
xorps xmm0, xmm0
movups xmm1, xmmword [rax]
movups xmmword [rax], xmm0
movups xmmword [rdx], xmm1
lea rdx, [rdx + 0x10]
add rax, 0x10
cmp rax, rcx
jne 0x1801620f0
jmp 0x180162190
lea rax, [rdx + rcx]
mov rsi, r8
cmp rax, r8
cmovae rsi, rax
mov qword [rsp + 0x98], rsi
cmp rsi, r9
ja 0x1801621d2
jmp 0x180162047
cmp rax, rbx
je 0x18016215d
nop word [rax + rax]
xorps xmm0, xmm0
movups xmm1, xmmword [rax]
movups xmmword [rax], xmm0
movups xmmword [rdx], xmm1
lea rdx, [rdx + 0x10]
add rax, 0x10
cmp rax, rbx
jne 0x180162140
mov rcx, qword [r14 + 8]
mov qword [rsp + 0x90], r15
cmp rbx, rcx
je 0x180162190
sub rdi, rbx
nop dword [rax]
xorps xmm0, xmm0
movups xmm1, xmmword [rbx]
movups xmmword [rbx], xmm0
movups xmmword [rdi + rbx], xmm1
add rbx, 0x10
cmp rbx, rcx
jne 0x180162170
nop word [rax + rax]
mov r9, rsi
mov r8, qword [rsp + 0xa8]
mov rdx, r15
mov rcx, r14
call fcn.180151150
mov rax, r13
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov dword [r12], 0
mov ecx, 6
call fcn.18031d5f0
nop
call fcn.180014190
int3
call fcn.180003dd0
int3
Function at 0x180165590
Capabilities:
Encode data using xor

Disassembly:
lea rax, [rdx + 0x3f8]
lea r8, [rcx + 0x3f8]
cmp rcx, rax
ja 0x1801655d2
xor r9d, r9d
cmp r8, rdx
jb 0x1801655d2
mov r8d, 0x80
lea rax, [rcx + r9*8]
sub rdx, rcx
sub r8, r9
nop dword [rax + rax]
mov rcx, qword [rax + rdx]
xor qword [rax], rcx
lea rax, [rax + 8]
sub r8, 1
jne 0x1801655c0
ret
lea rax, [rcx + 0x10]
sub rdx, rcx
mov ecx, reloc.WS2_32.dll_recv
nop
movdqu xmm0, xmmword [rax - 0x10]
movdqu xmm1, xmmword [rdx + rax - 0x10]
movdqu xmm2, xmmword [rdx + rax]
lea rax, [rax + 0x40]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x50], xmm1
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmm1, xmmword [rdx + rax - 0x30]
pxor xmm2, xmm0
movdqu xmmword [rax - 0x40], xmm2
movdqu xmm0, xmmword [rax - 0x30]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x30], xmm1
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm1, xmmword [rdx + rax - 0x20]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x20], xmm1
sub rcx, 1
jne 0x1801655e0
ret
Function at 0x18016d3e8
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x1804be628]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, rdx
mov rsi, rcx
test dl, 0x3f
je 0x18016d417
xor al, al
jmp 0x18016d526
mov r14d, 0x40
shr rbx, 6
mov dword [rsp + 0x28], r14d
mov ecx, 0x200
mov qword [rsp + 0x20], rsi
lea r9d, [r14 - 0x20]
call fcn.180015bc0
lea edi, [r14 - 0x3f]
cmp ebx, edi
je 0x18016d472
mov ecx, edi
lea r8d, [rdi - 1]
shl rcx, 6
mov r9d, r14d
add rcx, rsi
shl r8, 6
mov dword [rsp + 0x28], r14d
add r8, rsi
mov qword [rsp + 0x20], rcx
mov ecx, 0x200
call fcn.180015bc0
inc edi
cmp edi, ebx
jne 0x18016d441
mov ebp, 3
xor edi, edi
test ebx, ebx
je 0x18016d51a
xor edx, edx
mov r9d, edi
shl r9, 6
add r9, rsi
mov eax, dword [r9]
div ebx
lea eax, [rbx - 1]
mov r8d, edx
add eax, edi
xor edx, edx
shl r8, 6
div ebx
mov ecx, edx
lea rdx, [rsp + 0x30]
shl rcx, 6
sub r8, rdx
add r8, rsi
mov edx, reloc.WS2_32.dll_recv
movups xmm0, xmmword [rcx + rsi]
movups xmm1, xmmword [rcx + rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [rcx + rsi + 0x20]
movaps xmmword [rsp + 0x40], xmm1
movups xmm1, xmmword [rcx + rsi + 0x30]
lea rcx, [rsp + 0x30]
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x60], xmm1
mov eax, dword [r8 + rcx]
xor dword [rcx], eax
lea rcx, [rcx + 4]
sub rdx, 1
jne 0x18016d4e4
mov dword [rsp + 0x28], r14d
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r9
mov ecx, 0x200
mov r9d, r14d
call fcn.180015bc0
inc edi
cmp edi, ebx
jne 0x18016d481
sub rbp, 1
jne 0x18016d477
mov al, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.18031edb0
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18016d544
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x1804be628]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r13, qword [r9]
xor ebp, ebp
mov r14, r9
mov dword [rsp + 0x30], edx
mov qword [rsp + 0x38], rcx
mov rsi, rcx
mov ebx, edx
lea edi, [rbp + 4]
mov eax, dword [r14 + 0x1c]
lea r8, [rbx + rbp]
mov cl, byte [r14 + 0x24]
mov r9d, 0x40
mov edx, dword [r14 + 0x20]
add rdx, r8
mov dword [rsp + 0x28], 0x40
imul rdx, rax
mov qword [rsp + 0x20], rsi
shr rdx, cl
mov ecx, 0x200
imul edx, dword [r14 + 0x18]
sub r8d, edx
mov eax, r8d
mov r8, rsi
shl rax, 6
movups xmm0, xmmword [rax + r13]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rax + r13 + 0x10]
movups xmmword [rsi + 0x10], xmm1
movups xmm0, xmmword [rax + r13 + 0x20]
movups xmmword [rsi + 0x20], xmm0
movups xmm1, xmmword [rax + r13 + 0x30]
lea eax, [rbx + rbp]
movups xmmword [rsi + 0x30], xmm1
xor dword [rsi], eax
call fcn.180015bc0
inc rbp
add rsi, 0x40
cmp rbp, rdi
jb 0x18016d588
mov rbx, qword [rsp + 0x38]
xor r9d, r9d
xor r10d, r10d
mov ebp, dword [r14 + 0x24]
lea r11, [rsp + 0x40]
mov r15d, dword [r14 + 0x20]
mov rax, r10
mov r12d, dword [r14 + 0x1c]
xor r8d, r8d
and eax, 0xf
lea rsi, [rbx + rax*4]
mov ebx, dword [rsp + 0x30]
lea eax, [r8 + rbx]
xor eax, r9d
imul ecx, eax, 0x1000193
xor ecx, dword [rsi]
mov edx, ecx
lea rax, [r15 + rcx]
mov rcx, rbp
imul rax, r12
shr rax, cl
imul eax, dword [r14 + 0x18]
sub edx, eax
mov ecx, edx
shl rcx, 6
add rcx, r13
mov qword [r11], rcx
prefetcht0 byte [rcx]
inc r8d
lea rsi, [rsi + 0x40]
lea r11, [r11 + 8]
cmp r8d, edi
jb 0x18016d635
mov rbx, qword [rsp + 0x38]
mov r11d, reloc.WS2_32.dll_recv
mov rdx, qword [rsp + 0x40]
mov rcx, rbx
sub rdx, rbx
mov r8d, r11d
imul eax, dword [rcx], 0x1000193
xor eax, dword [rdx + rcx]
mov dword [rcx], eax
add rcx, rdi
sub r8, 1
jne 0x18016d693
mov rdx, qword [rsp + 0x48]
lea rcx, [rbx + 0x40]
sub rdx, rbx
mov r8, r11
imul eax, dword [rcx], 0x1000193
xor eax, dword [rdx + rcx - 0x40]
mov dword [rcx], eax
add rcx, rdi
sub r8, 1
jne 0x18016d6b6
mov rdx, qword [rsp + 0x50]
lea rcx, [rbx + 0x80]
sub rdx, rbx
mov r8, r11
imul eax, dword [rcx], 0x1000193
xor eax, dword [rdx + rcx - 0x80]
mov dword [rcx], eax
add rcx, rdi
sub r8, 1
jne 0x18016d6dd
mov rdx, qword [rsp + 0x58]
lea rcx, [rbx + 0xc0]
sub rdx, rbx
mov r8, r11
imul eax, dword [rcx], 0x1000193
xor eax, dword [rdx + rcx - 0xc0]
mov dword [rcx], eax
add rcx, rdi
sub r8, 1
jne 0x18016d704
inc r9d
inc r10
cmp r9d, 0x200
jne 0x18016d613
mov dword [rsp + 0x28], 0x40
mov r9d, 0x40
mov r8, rbx
mov qword [rsp + 0x20], rbx
mov ecx, 0x200
call fcn.180015bc0
add rbx, 0x40
sub rdi, 1
jne 0x18016d72f
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18031edb0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180170a40
Capabilities:
Hash data using sha256

Disassembly:
mov r11, rsp
push rbx
push rsi
push r14
sub rsp, 0xc0
mov rax, qword [0x1804be628]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rsi, r8
mov rbx, rdx
mov r14, rcx
movups xmm0, xmmword [0x18043dca8]
movups xmm1, xmmword [0x18043dcb8]
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [r11 - 0x58], xmm1
mov qword [r11 - 0x48], 0
cmp r8, 0x80
jae 0x180170a9e
lea rcx, [rsp + 0x30]
call fcn.1801707a0
jmp 0x180170b04
mov qword [rsp + 0xb8], rbp
mov qword [rsp + 0xb0], rdi
mov rdi, rsi
shr rdi, 6
imul rbp, rdi, 0xffffffffffffffc0
add rbp, rsi
nop dword [rax]
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.18016df40
add rbx, 0x40
sub rdi, 1
jne 0x180170ac0
mov rdi, qword [rsp + 0xb0]
test rbp, rbp
je 0x180170af4
mov r8, rbp
lea rcx, [rsp + 0x30]
mov rdx, rbx
call fcn.180321590
add qword [rsp + 0x90], rsi
mov rbp, qword [rsp + 0xb8]
mov r9, r14
lea rcx, [rsp + 0x30]
call fcn.180170850
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.18031edb0
add rsp, 0xc0
pop r14
pop rsi
pop rbx
ret

Function at 0x180171b20
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
movzx ebp, r9b
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
add rcx, 0x70
xor edx, edx
mov r8d, 0x200
call fcn.180321c40
xor r14d, r14d
mov dword [rbx + 0x270], r14d
mov byte [rbx + 0x274], r14b
mov byte [rbx + 0x275], r14b
mov qword [rbx + 0x278], rdi
mov dword [rbx + 0x280], esi
mov byte [rbx + 0x284], bpl
mov qword [rbx + 0x288], r14
mov rcx, rbx
call fcn.1802f7240
lea rcx, [rbx + 0x28]
call fcn.1802f7190
lea ecx, [r14 + 0x10]
call fcn.18031edd0
mov rdi, rax
mov qword [rsp + 0x50], rax
lea ecx, [r14 + 0x10]
call fcn.18031edd0
mov qword [rax], rbx
lea rcx, [0x180171c40]
mov qword [rax + 8], rcx
mov qword [rsp + 0x58], rax
lea rsi, [rdi + 8]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], r14d
mov r9, rax
lea r8, [0x180053ae0]
xor edx, edx
xor ecx, ecx
call fcn.18032d054
mov qword [rdi], rax
test rax, rax
je 0x180171c2b
mov qword [rbx + 0x288], rdi
mov qword [rsp + 0x50], 1
nop word [rax + rax]
lea rcx, [rsp + 0x50]
call fcn.180064af0
movzx eax, byte [rbx + 0x274]
test al, al
je 0x180171c00
mov rax, rbx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
mov dword [rsi], r14d
mov ecx, 6
call fcn.18031d5f0
int3
Function at 0x180171d70
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov eax, 1
xchg dword [0x1807601a0], eax
test eax, eax
jne 0x180171f20
lea ecx, [rax + 1]
call fcn.18031edd0
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
mov r9, rax
lea r8, [0x1801743a0]
xor edx, edx
xor ecx, ecx
call fcn.18032d054
mov qword [rsp + 0x30], rax
test rax, rax
je 0x180171f35
cmp dword [rsp + 0x38], ebx
je 0x180171f44
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [rsp + 0x38], eax
je 0x180171f4f
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.18031dd30
test eax, eax
jne 0x180171f5a
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x30], xmm0
cmp dword [0x180756700], eax
jbe 0x180171e5b
lea rdx, str._____________________________________________
lea ecx, [rbx + 6]
call fcn.180025c20
cmp dword [0x180756700], ebx
jbe 0x180171e5b
lea rdx, str._________GhostRider_tuning_results_________
lea ecx, [rbx + 6]
call fcn.180025c20
cmp dword [0x180756700], ebx
jbe 0x180171e5b
lea rdx, str._____________________________________________
lea ecx, [rbx + 6]
call fcn.180025c20
lea rdi, str.cn_dark__512_KB_
mov esi, 6
lea rbp, [0x180000000]
nop
cmp dword [0x180756700], 0
jbe 0x180171eaf
movsd xmm0, qword [rbx + rbp + 0x4c51c0]
movsd qword [rsp + 0x28], xmm0
mov eax, dword [rbx + rbp + 0x4c51cc]
mov dword [rsp + 0x20], eax
mov r9d, dword [rbx + rbp + 0x4c51c8]
mov r8, qword [rdi]
lea rdx, str._24s___ux_u___.2f_h_s
mov ecx, 6
call fcn.180025c20
mov r9d, dword [rbx + rbp + 0x4c5168]
cmp r9d, dword [rbx + rbp + 0x4c51c8]
jne 0x180171ed1
mov eax, dword [rbx + rbp + 0x4c51cc]
cmp dword [rbx + rbp + 0x4c516c], eax
je 0x180171f08
cmp dword [0x180756700], 0
jbe 0x180171f08
movsd xmm0, qword [rbx + rbp + 0x4c5160]
movsd qword [rsp + 0x28], xmm0
mov eax, dword [rbx + rbp + 0x4c516c]
mov dword [rsp + 0x20], eax
mov r8, qword [rdi]
lea rdx, str._24s___ux_u___.2f_h_s
mov ecx, 6
call fcn.180025c20
add rbx, 0x10
add rdi, 8
sub rsi, 1
jne 0x180171e70
cmp dword [rsp + 0x38], esi
jne 0x180171f65
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
mov dword [rsp + 0x38], ebx
mov ecx, 6
call fcn.18031d5f0
nop
mov ecx, 1
call fcn.18031d5f0
int3
mov ecx, 5
call fcn.18031d5f0
int3
mov ecx, 2
call fcn.18031d5f0
nop
call fcn.18032a308
int3
Function at 0x1801ed030
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r15
mov eax, 0xd8
call fcn.18031fc30
sub rsp, rax
mov rax, qword [0x1804be628]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov r12, qword [rdx + 8]
xor esi, esi
mov r15, qword [rdx + 0x10]
mov rax, r12
sub rax, r8
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov rdi, r8
mov r13, rdx
mov ebp, esi
cmp r15, r8
jb 0x1801ed216
cmp r8, 0x40
ja 0x1801ed216
lea rax, [rsp + 0x40]
mov qword [rsp + 0x118], rbx
neg rax
mov qword [rsp + 0xd0], r14
and eax, 0x3f
lea r14, [rsp + 0x40]
add r14, rax
lea rax, [r8 + 0x100]
cmp r15, rax
jbe 0x1801ed0ca
mov rbp, r15
sub rbp, r8
sub rbp, 0x100
xor edx, edx
mov qword [rsp + 0x20], rsi
mov rcx, r14
mov rbx, rsi
call fcn.180321c40
mov r9, rsi
cmp rbp, r15
jae 0x1801ed187
mov r11, qword [r13 + 0x20]
mov r10, qword [rsp + 0x28]
lea r13, [r11 + r12]
nop word [rax + rax]
lea rdx, [r11 + rbp]
mov rax, rbp
xor rax, r10
mov rcx, rdx
sub rcx, r13
xor rcx, r12
lea r8, [rax - 1]
not rax
shr rax, 0x3f
shr r8, 0x3f
and r8, rax
mov rax, rbp
xor rax, r12
neg r8
or rcx, rax
mov rax, r8
xor rcx, rbp
or rax, rsi
shr rcx, 0x3f
and r8, r9
neg rcx
or rbx, r8
mov rsi, rcx
inc rbp
and rsi, rax
movzx eax, byte [rdx]
and al, sil
or byte [r9 + r14], al
inc r9
mov rcx, r9
mov rax, rdi
sub rcx, rdi
xor rax, r9
xor rcx, rdi
or rcx, rax
xor rcx, r9
shr rcx, 0x3f
neg rcx
and r9, rcx
cmp rbp, r15
jb 0x1801ed100
xor esi, esi
test rdi, rdi
je 0x1801ed1ff
mov r9, qword [rsp + 0x30]
mov rax, rbx
and rax, 0xffffffffffffffdf
movzx r8d, byte [rax + r14]
mov rax, rbx
or rax, 0x20
movzx edx, byte [rax + r14]
mov eax, ebx
and eax, 0x20
inc rbx
dec eax
shr eax, 0x1f
neg al
movzx eax, al
mov dword [rsp + 0x28], eax
not eax
mov dword [rsp + 0x20], eax
mov ecx, dword [rsp + 0x20]
mov eax, dword [rsp + 0x28]
and cl, dl
and al, r8b
or al, cl
mov rcx, rbx
sub rcx, rdi
mov byte [r9 + rsi], al
xor rcx, rdi
mov rax, rdi
xor rax, rbx
inc rsi
or rcx, rax
xor rcx, rbx
shr rcx, 0x3f
neg rcx
and rbx, rcx
cmp rsi, rdi
jb 0x1801ed191
mov r14, qword [rsp + 0xd0]
mov eax, 1
mov rbx, qword [rsp + 0x118]
jmp 0x1801ed218
xor eax, eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.18031edb0
add rsp, 0xd8
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180205690
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, gethostname
call fcn.18031fc30
sub rsp, rax
mov r10, r8
mov r11, rcx
test r9, r9
jne 0x1802056cf
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.180213090
xor eax, eax
add rsp, 0x38
ret
movzx r8d, byte [r8]
and r8d, 0x80
test rdx, rdx
je 0x1802056e2
mov dword [rdx], r8d
cmp r9, 1
jne 0x180205704
test r11, r11
je 0x1802056fa
movzx eax, byte [r10]
test r8d, r8d
je 0x1802056f8
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 0x180205721
mov eax, 1
mov ebx, eax
jmp 0x1802057cf
cmp cl, 0xff
jne 0x18020580d
mov eax, 1
lea rcx, [r9 - 1]
mov edx, ebx
cmp r9, rax
jbe 0x1802057bf
cmp rcx, 8
jb 0x1802057b0
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 0x180205753
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 0x1802057bf
nop
movzx ecx, byte [rax + r10]
inc rax
or edx, ecx
cmp rax, r9
jb 0x1802057b0
test edx, edx
mov eax, ebx
setne al
test edx, edx
setne bl
test edx, edx
je 0x18020580d
movzx ecx, byte [r10 + 1]
and ecx, 0x80
cmp r8d, ecx
jne 0x18020580d
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.180213090
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x38
ret
mov ecx, eax
sub r9, rcx
test r11, r11
je 0x180205861
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 0x18020585c
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 0x180205840
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
mov rax, r9
add rsp, 0x38
ret

Function at 0x180209030
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.18031fc30
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 0x1802173e0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
xor eax, eax
mov r10, rcx
test rcx, rcx
je 0x18021744c
movzx ecx, byte [rcx]
test cl, cl
je 0x18021744c
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 0x180217400
mov ecx, eax
shr ecx, 0x10
xor eax, ecx
ret

Function at 0x180217510
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.18031fc30
sub rsp, rax
xor ebx, ebx
mov rdi, rcx
test rcx, rcx
je 0x1802175a3
movzx eax, byte [rcx]
test al, al
je 0x1802175a3
mov qword [rsp + 0x30], rsi
mov esi, 0x100
nop
movsx ecx, al
call fcn.18024fe30
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 0x180217540
mov rsi, qword [rsp + 0x30]
mov eax, ebx
shr eax, 0x10
xor eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x18021f570
Capabilities:
Get thread local storage value

Disassembly:
mov eax, 0x28
call fcn.18031fc30
sub rsp, rax
lea rcx, [0x1804cad88]
add rsp, 0x28
jmp fcn.180208e90

Function at 0x18022a1a0
Capabilities:
Encode data using xor

Disassembly:
xor r9b, r9b
mov r10, rdx
test r8, r8
je 0x18022a1c7
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 0x18022a1b0
movzx eax, r9b
ret
Function at 0x180248ff0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
xor r10d, r10d
movsxd rbx, r8d
mov r11, rdx
mov rdi, rcx
test r8d, r8d
jle 0x18024902f
mov r9, rdx
mov rdx, rcx
sub rdx, r9
movzx eax, byte [r9]
cmp byte [rdx + r9], al
jne 0x18024902f
inc r9
inc r10d
mov rax, r9
sub rax, r11
cmp rax, rbx
jl 0x180249014
lea edx, [r8 - 1]
movsxd rax, edx
test edx, edx
js 0x18024905a
mov r8, rdi
lea rcx, [rax + r11]
sub r8, r11
cmp byte [rcx + r8], 0
jne 0x18024905a
cmp byte [rcx], 0xff
jne 0x18024905a
dec edx
dec rcx
cmp rcx, r11
jns 0x180249044
cmp r10d, edx
jl case.0x1802490b3.2
jle 0x180249078
lea eax, [r10*8]
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret
movsxd rax, r10d
movzx r8d, byte [rax + r11]
movzx r9d, byte [rax + rdi]
movzx edx, r8b
xor dl, r9b
movzx eax, dl
dec eax
cmp eax, 0x7e
ja case.0x1802490b3.2
lea r11, [0x180000000]
cdqe
movzx eax, byte [r11 + rax + 0x249128]
mov ecx, dword [r11 + rax*4 + 0x249108]
add rcx, r11
jmp rcx
mov eax, 7
jmp 0x1802490e4
mov eax, 6
jmp 0x1802490e4
mov eax, 5
jmp 0x1802490e4
mov eax, 4
jmp 0x1802490e4
mov eax, 3
jmp 0x1802490e4
mov eax, 2
jmp 0x1802490e4
mov eax, 1
test dl, r9b
jne case.0x1802490b3.2
and r8b, dl
lea eax, [rax + r10*8]
cmp r8b, dl
je 0x1802490fa
mov eax, 0xffffffff
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret