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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov r9, r8
mov rdi, rcx
mov r8, rdi
mov r15, rdx
add r15, 8
mov r12, rdx
Function at 0x1804cd2d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov qword [rsp + 0x58], rdx
movsxd rax, dword [rcx + 0x3c]
mov qword [rsp + 0x28], rcx
mov edx, dword [rcx + rax + 0x88]
mov rcx, rdx
mov qword [rsp + 0x38], rdx
test rdx, rdx
je 0x1804cd4a2
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx + rax + 0x8c]
mov qword [rsp + 0x48], rax
test rax, rax
je 0x1804cd4a2
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x38]
mov eax, dword [rax + rcx + 0x1c]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1804cd4a2
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x38]
add rax, rcx
mov qword [rsp + 0x30], rax
mov r12d, dword [rax + 0x14]
test r12d, r12d
je 0x1804cd4a2
mov rax, qword [rsp + 0x30]
mov r15d, dword [rax + 0x20]
test r15, r15
je 0x1804cd4a2
mov rax, qword [rsp + 0x30]
mov ebp, dword [rax + 0x18]
test ebp, ebp
je 0x1804cd4a2
mov rdi, r8
mov rax, qword [rsp + 0x28]
add qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 0x24]
add r15, rax
add rcx, rax
mov qword [rsp + 0x50], rcx
xor r13d, r13d
jmp 0x1804cd3bb
mov ebp, ebx
cmp r13d, ebp
jae 0x1804cd4a2
lea r14d, [rbp + r13]
mov ebx, r14d
shr ebx, 1
cmp ebx, r12d
jae 0x1804cd4a2
mov eax, ebx
mov edx, dword [r15 + rax*4]
add rdx, qword [rsp + 0x28]
mov r8, 0xffffffffffffffff
cmp byte [rdx + r8 + 1], 0
lea r8, [r8 + 1]
jne 0x1804cd3e0
lea rcx, [rsp + 0x60]
call fcn.18068ac20
cmp qword [rsp + 0x60], 0
jne 0x1804cd4a2
mov rcx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x70]
mov rsi, r8
sub rsi, rdi
cmovae r8, rdi
mov rdx, qword [rsp + 0x58]
call fcn.1806a7e40
cdqe
test eax, eax
cmovne rsi, rax
xor eax, eax
test rsi, rsi
setne al
mov ecx, 0xff
cmovs eax, ecx
cmp al, 1
je 0x1804cd3b0
movzx eax, al
cmp eax, 0xff
jne 0x1804cd45a
inc ebx
mov r13d, ebx
cmp r13d, ebp
jb 0x1804cd3bb
jmp 0x1804cd4a2
and r14d, 0xfffffffe
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + r14]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax*4]
add qword [rsp + 0x28], rax
cmp eax, dword [rsp + 0x38]
jb 0x1804cd48c
mov rax, qword [rsp + 0x30]
add rax, qword [rsp + 0x48]
cmp qword [rsp + 0x28], rax
jb 0x1804cd4a2
mov rax, qword [rsp + 0x28]
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
Function at 0x1804cda90
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x1804cdad2
mov r10d, 8
sub r10, r11
cmp r10, r8
mov rdi, r8
cmovb rdi, r10
cmp rdi, 4
jb 0x1804cdada
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x1804cdaeb
jmp 0x1804cdb02
xor r10d, r10d
jmp 0x1804cdb8d
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x1804cdb02
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x1804cdb19
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x1804cdb39
add r11, r8
jmp 0x1804cdc6a
mov rcx, qword [rax + 0x18]
xor rcx, rsi
mov r11, qword [rax + 0x10]
mov r9, qword [rax]
add r9, r11
mov rdi, qword [rax + 8]
add rdi, rcx
rol r11, 0xd
xor r11, r9
rol rcx, 0x10
rol r9, 0x20
xor rcx, rdi
add rdi, r11
rol r11, 0x11
add r9, rcx
xor r11, rdi
rol rcx, 0x15
mov qword [rax + 0x10], r11
xor rcx, r9
rol rdi, 0x20
mov qword [rax + 0x18], rcx
mov qword [rax + 8], rdi
xor r9, rsi
mov qword [rax], r9
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x1804cdc02
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
mov rbx, qword [rdx + r10]
xor rdi, rbx
add rcx, rsi
rol rsi, 0xd
add r9, rdi
xor rsi, rcx
rol rdi, 0x10
xor rdi, r9
rol rcx, 0x20
add r9, rsi
add rcx, rdi
rol rsi, 0x11
xor rsi, r9
rol rdi, 0x15
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x1804cdbb0
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 4
jb 0x1804cdc20
mov r9d, dword [rdx + r10]
mov r8d, 4
mov rcx, r8
or rcx, 1
cmp rcx, r11
jb 0x1804cdc32
jmp 0x1804cdc4c
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x1804cdc4c
lea rcx, [r8 + r10]
movzx esi, word [rdx + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x1804cdc66
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret
Function at 0x1804cdc80
Capabilities:
Parse pe header

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
movzx eax, word [rcx]
mov r8d, 0xb
cmp eax, 0x5a4d
jne 0x1804cdee4
mov r13, rcx
movsxd rax, dword [rcx + 0x3c]
test rax, rax
je 0x1804cdd54
cmp eax, 0x40
jb 0x1804cdf05
cmp rax, rdx
ja 0x1804cdf05
movzx r9d, word [rax + r13 + 0x18]
cmp r9d, 0x10b
je 0x1804cdd5f
mov r11d, 5
cmp r9d, 0x20b
jne 0x1804cdee7
mov r11d, 2
cmp dword [r13 + rax], 0x4550
jne 0x1804cdee7
lea r10, [rax + r13]
movzx r9d, word [r10 + 4]
mov r11d, 3
cmp r9d, 0x8664
jne 0x1804cdee7
movzx r9d, word [r10 + 0x16]
mov r11d, 4
test r9b, 2
je 0x1804cdee7
lea r8, [rax + 0x108]
cmp r8, rdx
ja 0x1804cdf05
mov esi, 1
mov dword [rsp + 0x2c], 0
jmp 0x1804cddbd
mov r11d, 1
jmp 0x1804cdee7
mov r11d, 2
cmp dword [r13 + rax], 0x4550
jne 0x1804cdee7
lea r10, [rax + r13]
movzx r9d, word [r10 + 4]
mov r11d, 3
cmp r9d, 0x14c
jne 0x1804cdee7
movzx r9d, word [r10 + 0x16]
mov r11d, 4
test r9b, 2
je 0x1804cdee7
lea r8, [rax + 0xf8]
cmp r8, rdx
ja 0x1804cdf05
mov cl, 1
mov dword [rsp + 0x2c], ecx
xor esi, esi
mov rdi, rdx
sub rdi, r8
movzx r14d, word [r13 + rax + 6]
lea rbx, [r14*8]
lea rbx, [rbx + rbx*4]
sub rdi, rbx
jb 0x1804cdf05
lea r15, [rax - 0x40]
lea r12, [r13 + 0x40]
mov r11, r13
shr r11, 8
add r8, r13
add rbx, r8
mov ebp, r14d
shr ebp, 8
mov rcx, r13
shr rcx, 0x38
mov byte [rsp + 0x47], cl
mov rcx, r13
shr rcx, 0x28
mov word [rsp + 0x45], cx
mov dword [rsp + 0x41], r11d
mov byte [rsp + 0x40], r13b
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], r10
mov qword [rsp + 0x68], r8
mov byte [rsp + 0x70], r14b
mov dword [rsp + 0x71], ebp
mov byte [rsp + 0x77], 0
mov word [rsp + 0x75], 0
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rdi
mov qword [rsp + 0x88], r13
mov qword [rsp + 0x90], rdx
cmp byte [rsp + 0x2c], 0
je 0x1804cde74
mov r8d, 6
jmp 0x1804cdee7
test r9d, 0x2000
jne 0x1804cde9b
cmp dword [r13 + rax + 0xfc], 0
je 0x1804cdea3
cmp dword [r13 + rax + 0xf8], 0
je 0x1804cdea3
mov r8d, 9
jmp 0x1804cdee7
mov r8d, 7
jmp 0x1804cdee7
mov esi, dword [r13 + rax + 0x28]
test rsi, rsi
je 0x1804cdecf
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x40]
call fcn.1804cfcb0
cmp dword [rsp + 0x30], 0
je 0x1804cded7
mov r8d, dword [rsp + 0x34]
mov r11d, dword [rsp + 0x38]
jmp 0x1804cdee7
mov r8d, 8
jmp 0x1804cdee7
add rsi, qword [rsp + 0x38]
call rsi
mov r8d, 0xe
xor r11d, r11d
shl r11, 0x20
mov eax, r8d
or rax, r11
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
Function at 0x18050d0b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
mov ebx, edx
mov rsi, rcx
movzx r14d, dl
test dl, dl
je 0x18050d116
lea ecx, [r14 + 0x2f6]
lea eax, [r14 + 0x19c]
and eax, ecx
shr eax, 8
inc al
cmp al, 1
jbe 0x18050d10e
xor edi, edi
cmp bl, 0x64
jae 0x18050d13c
mov r15d, 2
cmp bl, 0xa
jb 0x18050d164
lea rax, str.00010203040506070809101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
movzx eax, word [rax + r14*2]
mov word [rsp + 0x41], ax
mov r15d, 1
jmp 0x18050d16c
test al, al
je 0x18050d1ff
mov rdx, qword [rsi + 0x10]
cmp qword [rsi], rdx
je 0x18050d1d9
mov rax, qword [rsi + 8]
mov byte [rax + rdx], 0x30
inc rdx
mov qword [rsi + 0x10], rdx
mov edi, 1
cmp bl, 0x64
jb 0x18050d0ea
lea eax, [r14 + r14*4]
lea eax, [r14 + rax*8]
shr eax, 0xc
imul ecx, eax, 0x64
sub bl, cl
movzx ecx, bl
lea rdx, str.00010203040506070809101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
movzx ecx, word [rdx + rcx*2]
mov word [rsp + 0x41], cx
xor r15d, r15d
mov ebx, eax
or bl, 0x30
mov byte [rsp + r15 + 0x40], bl
mov rbx, r15
xor rbx, 3
mov rax, qword [rsi]
mov r14, qword [rsi + 0x10]
sub rax, r14
cmp rax, rbx
jb 0x18050d1b6
lea rdx, [rsp + r15]
add rdx, 0x40
mov rcx, qword [rsi + 8]
add rcx, r14
mov r8, rbx
call fcn.1806a7400
add r14, rbx
mov qword [rsi + 0x10], r14
add rdi, rbx
xor eax, eax
mov rdx, rdi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov qword [rsp + 0x20], 1
mov r9d, 1
mov rcx, rsi
mov rdx, r14
mov r8, rbx
call fcn.1806a7f20
mov r14, qword [rsi + 0x10]
jmp 0x18050d182
mov qword [rsp + 0x20], 1
mov r8d, 1
mov r9d, 1
mov rcx, rsi
call fcn.1806a7f20
mov rdx, qword [rsi + 0x10]
jmp 0x18050d123
mov r12, qword [rsi + 0x10]
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
xor edi, edi
lea rbx, [rsp + 0x28]
lea r14, [rsp + 0x40]
jmp 0x18050d22c
mov byte [rax + r12], 0x30
inc r12
mov qword [rsi + 0x10], r12
cmp r12, rcx
jne 0x18050d220
cmp rcx, 0xffffffffffffffff
je 0x18050d2a0
lea r15, [rcx + 1]
lea rdx, [rcx + rcx]
cmp rdx, r15
cmova r15, rdx
cmp r15, 9
jae 0x18050d252
mov r15d, 8
test r15, r15
js 0x18050d2a0
test rcx, rcx
je 0x18050d26d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], rcx
mov eax, 1
jmp 0x18050d26f
xor eax, eax
mov qword [rsp + 0x48], rax
mov edx, 1
mov rcx, rbx
mov r8, r15
mov r9, r14
call fcn.1804cd5f0
cmp qword [rsp + 0x28], 0
jne 0x18050d2a8
mov rax, qword [rsp + 0x30]
mov qword [rsi + 8], rax
mov qword [rsi], r15
mov rcx, r15
jmp 0x18050d220
mov rcx, rdi
call fcn.18063bc30
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
call fcn.18063bc30
int3
Function at 0x180530870
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov rsi, rdx
cmp dword [rcx], 2
jne 0x180530906
movdqu xmm0, xmmword [rcx + 8]
pshufd xmm1, xmm0, 0x44
pxor xmm1, xmmword [str.uespemosarenegylmodnarodsetybdet]
movdqa xmmword [rsp + 0x30], xmm1
pshufd xmm1, xmm0, 0xee
pxor xmm1, xmmword [0x1806c8f60]
movdqa xmmword [rsp + 0x40], xmm1
movdqa xmmword [rsp + 0x50], xmm0
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], 0
mov rdi, qword [rsi]
xor eax, eax
test rdi, rdi
setne al
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x28]
mov r8d, 8
call fcn.1804cda90
test rdi, rdi
je 0x180530995
mov rdx, qword [rsi + 8]
mov r8, qword [rsi + 0x10]
lea rcx, [rsp + 0x30]
jmp 0x1805309ae
mov rdx, qword [rsi]
xor ecx, ecx
test rdx, rdx
setne cl
movabs rax, 0xcbf29ce484222325
xor rax, rcx
movabs rcx, 0x1efac7090aef4a21
imul rax, rcx
test rdx, rdx
je 0x180530aa6
mov r9, qword [rsi + 0x10]
test r9, r9
je 0x180530b28
mov rcx, qword [rsi + 8]
movabs rdx, 0x100000001b3
mov r10, r9
and r10, 7
je 0x180530ab3
mov r11, rax
mov r8, rcx
nop word cs:[rax + rax]
movzx eax, byte [r8]
inc r8
xor rax, r11
imul rax, rdx
mov r11, rax
dec r10
jne 0x180530970
cmp r9, 8
jae 0x180530abc
jmp 0x180530b28
movzx eax, byte [rsi + 8]
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x28]
mov r8d, 8
call fcn.1804cda90
mov rax, qword [rsp + 0x40]
mov r9, qword [rsp + 0x60]
shl r9, 0x38
or r9, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x48]
xor rcx, r9
mov r8, qword [rsp + 0x30]
add r8, rax
mov rdx, qword [rsp + 0x38]
add rdx, rcx
rol rax, 0xd
xor rax, r8
rol rcx, 0x10
rol r8, 0x20
xor rcx, rdx
add rdx, rax
rol rax, 0x11
add r8, rcx
xor rax, rdx
rol rcx, 0x15
xor rcx, r8
rol rdx, 0x20
xor r8, r9
xor rdx, 0xff
add r8, rax
rol rax, 0xd
add rdx, rcx
xor rax, r8
rol rcx, 0x10
xor rcx, rdx
rol r8, 0x20
add rdx, rax
add r8, rcx
rol rax, 0x11
xor rax, rdx
rol rcx, 0x15
rol rdx, 0x20
xor rcx, r8
add r8, rax
rol rax, 0xd
add rdx, rcx
xor rax, r8
rol rcx, 0x10
xor rcx, rdx
rol r8, 0x20
add rdx, rax
add r8, rcx
rol rax, 0x11
xor rax, rdx
rol rcx, 0x15
rol rdx, 0x20
xor rcx, r8
add r8, rax
rol rax, 0xd
add rdx, rcx
xor rax, r8
shl rcx, 0x10
xor rcx, rdx
add rdx, rax
shr rax, 0x2f
shr rcx, 0x2b
xor rcx, rax
mov rax, rdx
shr rax, 0x20
xor rax, rdx
xor rax, rcx
jmp 0x180530b28
movzx edx, byte [rsi + 8]
xor rax, rdx
imul rax, rcx
jmp 0x180530b28
mov r8, rcx
cmp r9, 8
jb 0x180530b28
add rcx, r9
nop
movzx r9d, byte [r8]
xor r9, rax
imul r9, rdx
movzx eax, byte [r8 + 1]
xor rax, r9
imul rax, rdx
movzx r9d, byte [r8 + 2]
xor r9, rax
imul r9, rdx
movzx eax, byte [r8 + 3]
xor rax, r9
imul rax, rdx
movzx r9d, byte [r8 + 4]
xor r9, rax
imul r9, rdx
movzx eax, byte [r8 + 5]
xor rax, r9
imul rax, rdx
movzx r9d, byte [r8 + 6]
xor r9, rax
imul r9, rdx
movzx eax, byte [r8 + 7]
add r8, 8
xor rax, r9
imul rax, rdx
cmp r8, rcx
jne 0x180530ac0
and eax, 0x7fff
add rsp, 0x78
pop rdi
pop rsi
ret
Function at 0x18053dbf0
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [rcx + 0x20]
movzx eax, word [rcx]
cmp eax, 0x5a4d
jne 0x18053dc41
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x18053dc41
cmp dword [rcx + rdx + 0x84], 7
jb 0x18053dc41
mov eax, dword [rcx + rdx + 0xb8]
test rax, rax
je 0x18053dc41
mov edx, dword [rcx + rdx + 0xbc]
imul r8d, edx, 0xb6db6db7
ror r8d, 2
cmp r8d, 0x9249249
ja 0x18053dc41
cmp edx, 0x1c
jae 0x18053dc44
xor eax, eax
ret
shr edx, 2
imul rdx, rdx, 0x24924925
shr rdx, 0x20
mov r9d, edx
lea rdx, [rax + rcx]
add rdx, 0x14
lea rax, [r9 + r9*8]
lea r8, [rax + rax*2]
add r8, r9
xor eax, eax
xor r9d, r9d
jmp 0x18053dc79
add r9, 0x1c
cmp r8, r9
je 0x18053dc95
cmp dword [rdx + r9 - 8], 2
jne 0x18053dc70
mov r10d, dword [rdx + r9]
cmp dword [rcx + r10], 0x53445352
jne 0x18053dc70
add rcx, r10
mov rax, rcx
ret

Function at 0x180540530
Capabilities:
Get hostname

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov dword [rsp + 0x2c], 0
lea r8, [rsp + 0x2c]
mov ecx, 5
xor edx, edx
call qword [sym.imp.kernel32.dll_GetComputerNameExW]
test eax, eax
jne 0x180540580
call fcn.180540650
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x40], edx
mov qword [rsp + 0x30], 1
test rax, rax
je 0x180540580
lea rcx, [rsp + 0x38]
call fcn.180505a50
mov r14d, dword [rsp + 0x2c]
lea rdi, [r14 + r14]
test r14, r14
je 0x1805405b0
movzx eax, byte [0x1807afe04]
mov edx, 2
mov rcx, rdi
call fcn.1804caf90
test rax, rax
je 0x180540637
mov rbx, rax
jmp 0x1805405b5
mov ebx, 2
lea r8, [rsp + 0x2c]
mov ecx, 5
mov rdx, rbx
call qword [sym.imp.kernel32.dll_GetComputerNameExW]
test eax, eax
je 0x1805405de
mov r8d, dword [rsp + 0x2c]
mov rcx, rsi
mov rdx, rbx
call fcn.180675dd0
jmp 0x180540614
call fcn.180540650
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], edx
shl rdx, 0x20
or rdx, 2
mov qword [rsi + 8], rdx
movabs rcx, 0x8000000000000000
mov qword [rsi], rcx
test rax, rax
je 0x180540614
lea rcx, [rsp + 0x30]
call fcn.180505a50
test r14d, r14d
je 0x18054062a
mov r8d, 2
mov rcx, rbx
mov rdx, rdi
call fcn.1804cafa0
mov rax, rsi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, 2
mov rdx, rdi
call fcn.18063bc30
int3
Function at 0x1805567a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
cmp edx, 0x1ff
jg 0x18055683a
dec edx
cmp edx, 0x3f
ja case.0x1805567c8.64
lea rax, [0x1806d5c9c]
movsxd rdx, dword [rax + rdx*4]
add rdx, rax
jmp rdx
movzx eax, byte [rcx]
test rax, rax
je 0x18055680a
lea ecx, [rax - 1]
mov edx, 1
xor r9d, r9d
shld r9, rdx, cl
mov r10d, ecx
shr r10b, 7
movzx r10d, r10b
xor r11d, r11d
shl rdx, cl
test cl, 0x40
cmovne r9, rdx
cmovne rdx, r11
shl r10, 4
or qword [r8 + r10], rdx
or qword [r8 + r10 + 8], r9
mov r10d, eax
shr r10d, 7
mov edx, 1
xor r9d, r9d
mov ecx, eax
shld r9, rdx, cl
shl rdx, cl
xor ecx, ecx
test al, 0x40
cmovne r9, rdx
cmovne rdx, rcx
shl r10, 4
add r8, r10
jmp 0x180556987
cmp edx, 0x1fff
jle 0x18055685a
cmp edx, 0x7fff
jle case.0x1805567c8.64
cmp edx, 0x8000
je case.0x1805567c8.64
cmp edx, 0x20000
jmp case.0x1805567c8.64
cmp edx, 0x7ff
xor eax, eax
lea rdx, [0x1806d6be0]
mov r9d, 1
xor ecx, ecx
movzx r10d, cx
lea r11d, [rcx + 1]
movzx esi, r11w
xor r11d, r11d
lea edi, [r10 + r11]
movzx edi, di
cmp edi, 0xff
jae 0x180556934
cmp byte [r10 + rdx], 0
setne bl
lea rdi, [rsi + r11]
cmp byte [rdx + rdi], 0
setne dil
xor dil, bl
inc r11
test dil, dil
je 0x180556880
test cl, cl
je 0x1805568e6
dec ecx
xor esi, esi
shld rsi, r9, cl
mov ebx, ecx
shr bl, 7
movzx edi, bl
mov ebx, 1
shl rbx, cl
test cl, 0x40
cmovne rsi, rbx
cmovne rbx, rax
shl rdi, 4
or qword [r8 + rdi], rbx
or qword [r8 + rdi + 8], rsi
lea ecx, [r10 - 1]
movzx esi, cl
add rsi, r11
lea ecx, [r10 - 1]
movzx ecx, cl
add rcx, r11
add r10, r11
xor r11d, r11d
shld r11, r9, cl
shr sil, 7
movzx esi, sil
mov edi, 1
shl rdi, cl
test cl, 0x40
cmovne r11, rdi
cmovne rdi, rax
shl rsi, 4
or qword [r8 + rsi], rdi
or qword [r8 + rsi + 8], r11
mov ecx, r10d
jmp 0x180556871
cmp r10d, 0xff
ja case.0x1805567c8.3
test cl, cl
je 0x180556977
dec ecx
mov eax, 1
xor edx, edx
shld rdx, rax, cl
mov r9d, ecx
shr r9b, 7
movzx r9d, r9b
xor r10d, r10d
shl rax, cl
test cl, 0x40
cmovne rdx, rax
cmovne rax, r10
shl r9, 4
or qword [r8 + r9], rax
or qword [r8 + r9 + 8], rdx
add r8, 0x10
movabs r9, 0x8000000000000000
xor edx, edx
or qword [r8], rdx
or qword [r8 + 8], r9
pop rbx
pop rdi
pop rsi
ret
mov edx, 0x3600
xor r9d, r9d
jmp 0x180556987
ud2
Function at 0x18055ef90
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, 0x58
mov r12, r8
mov rdi, rdx
mov rbx, rcx
cmp r9, 8
jb 0x18055f00d
mov r14, r9
shr r14, 3
mov r15, r14
shl r15, 7
lea rdx, [rbx + r15]
mov rsi, r12
imul r12, r14, 0xe0
lea r8, [rbx + r12]
mov rcx, rbx
mov r9, r14
call fcn.18055ef90
mov rbx, rax
lea rdx, [rdi + r15]
lea r8, [rdi + r12]
mov rcx, rdi
mov r9, r14
call fcn.18055ef90
mov rdi, rax
add r15, rsi
add r12, rsi
mov rcx, rsi
mov rdx, r15
mov r8, r12
mov r9, r14
call fcn.18055ef90
mov r12, rax
mov qword [rsp + 0x38], rdi
mov rbp, qword [rbx + 8]
mov rsi, qword [rbx + 0x10]
mov rdx, qword [rdi + 8]
mov r8, qword [rdi + 0x10]
mov r13, rsi
sub r13, r8
mov qword [rsp + 0x48], r8
cmovb r8, rsi
mov rcx, rbp
mov qword [rsp + 0x50], rdx
call fcn.1806a7e40
cdqe
test eax, eax
cmovne r13, rax
movzx r15d, byte [rbx + 0x18]
movzx ecx, byte [rdi + 0x18]
mov eax, r15d
mov byte [rsp + 0x2f], cl
sub al, cl
xor r14d, r14d
cmp al, 0xff
sete r14b
xor eax, eax
test r13, r13
sets al
cmovne r14d, eax
mov rdx, qword [r12 + 8]
mov r13, qword [r12 + 0x10]
mov rdi, r12
mov r12, rsi
sub r12, r13
cmovae rsi, r13
mov rcx, rbp
mov qword [rsp + 0x30], rdx
mov r8, rsi
call fcn.1806a7e40
cdqe
test eax, eax
cmovne r12, rax
mov qword [rsp + 0x40], rdi
movzx ebp, byte [rdi + 0x18]
sub r15b, bpl
xor eax, eax
cmp r15b, 0xff
sete al
xor ecx, ecx
test r12, r12
sets cl
cmovne eax, ecx
cmp r14b, al
jne 0x18055f113
mov rax, qword [rsp + 0x48]
mov rsi, rax
sub rsi, r13
cmovb r13, rax
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x30]
mov r8, r13
call fcn.1806a7e40
cdqe
test eax, eax
cmovne rsi, rax
movzx ecx, byte [rsp + 0x2f]
sub cl, bpl
xor eax, eax
cmp cl, 0xff
sete al
xor ecx, ecx
test rsi, rsi
sets cl
cmovne eax, ecx
xor r14b, al
mov rbx, qword [rsp + 0x38]
cmovne rbx, qword [rsp + 0x40]
mov rax, rbx
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x18055f130
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp r9, 8
jb 0x18055f1ae
mov r14, r9
mov r15, r9
shr r15, 3
and r14, 0xfffffffffffffff8
lea rdx, [rbx + r14]
mov r12, r15
shl r12, 4
sub r12, r15
sub r12, r15
lea r8, [rbx + r12]
mov rcx, rbx
mov r9, r15
call fcn.18055f130
mov rbx, rax
lea rdx, [rdi + r14]
lea r8, [rdi + r12]
mov rcx, rdi
mov r9, r15
call fcn.18055f130
mov rdi, rax
add r14, rsi
add r12, rsi
mov rcx, rsi
mov rdx, r14
mov r8, r12
mov r9, r15
call fcn.18055f130
mov rsi, rax
movzx r10d, byte [rbx]
movzx r11d, byte [rbx + 1]
movzx ecx, byte [rdi]
movzx edx, byte [rdi + 1]
xor r8d, r8d
cmp r11b, dl
setb r8b
xor eax, eax
cmp r10b, cl
setb al
cmove eax, r8d
movzx r8d, byte [rsi]
movzx r9d, byte [rsi + 1]
xor ebp, ebp
cmp r11b, r9b
setb bpl
xor r11d, r11d
cmp r10b, r8b
setb r11b
cmove r11d, ebp
cmp al, r11b
jne 0x18055f218
xor r10d, r10d
cmp dl, r9b
setb r10b
xor edx, edx
cmp cl, r8b
setb dl
cmove edx, r10d
xor al, dl
cmovne rdi, rsi
mov rbx, rdi
mov rax, rbx
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1805953c0
Capabilities:
Encode data using xor

Disassembly:
push rsi
sub rsp, 0x60
mov rsi, rcx
movzx eax, byte [0x1807afe04]
mov ecx, 0x18e0
mov edx, 4
call fcn.1804caf90
test rax, rax
je 0x1805954ca
xor ecx, ecx
lea rdx, [0x1806d9640]
movdqa xmm0, xmmword [0x1806d1ac0]
nop dword [rax + rax]
movdqu xmm1, xmmword [rcx + rdx]
pshufd xmm2, xmm1, 0xe8
pshufd xmm1, xmm1, 0xed
movdqa xmm3, xmm2
pxor xmm3, xmm0
movdqa xmm4, xmm1
pxor xmm4, xmm0
pcmpgtd xmm4, xmm3
movdqa xmm3, xmm4
pandn xmm3, xmm1
movdqa xmm5, xmm4
pandn xmm5, xmm2
pand xmm2, xmm4
por xmm2, xmm3
pand xmm4, xmm1
por xmm4, xmm5
punpckldq xmm2, xmm4
movdqu xmmword [rax + rcx], xmm2
add rcx, 0x10
cmp rcx, 0x18e0
jne 0x180595400
mov rcx, rax
add rcx, 0x18e0
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], 0x31c
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x38], rcx
lea rcx, [rsp + 0x48]
lea rdx, [rsp + 0x20]
call fcn.18058e260
mov rax, qword [rsp + 0x58]
test rax, rax
mov qword [rsp + 0x30], rax
movups xmm0, xmmword [rsp + 0x48]
movaps xmmword [rsp + 0x20], xmm0
sete byte [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.180594460
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rax, rsi
add rsp, 0x60
pop rsi
ret
mov ecx, 4
mov edx, 0x18e0
call fcn.18063bc30
int3

Function at 0x1805955c0
Capabilities:
Encode data using xor

Disassembly:
push rsi
sub rsp, 0x60
mov rsi, rcx
movzx eax, byte [0x1807afe04]
mov ecx, 0x238
mov edx, 4
call fcn.1804caf90
test rax, rax
je 0x1805956db
xor ecx, ecx
lea rdx, [0x1806daf20]
movdqa xmm0, xmmword [0x1806d1ac0]
nop dword [rax + rax]
movdqu xmm1, xmmword [rcx + rdx]
pshufd xmm2, xmm1, 0xe8
pshufd xmm1, xmm1, 0xed
movdqa xmm3, xmm2
pxor xmm3, xmm0
movdqa xmm4, xmm1
pxor xmm4, xmm0
pcmpgtd xmm4, xmm3
movdqa xmm3, xmm4
pandn xmm3, xmm1
movdqa xmm5, xmm4
pandn xmm5, xmm2
pand xmm2, xmm4
por xmm2, xmm3
pand xmm4, xmm1
por xmm4, xmm5
punpckldq xmm2, xmm4
movdqu xmmword [rax + rcx], xmm2
add rcx, 0x10
cmp rcx, 0x230
jne 0x180595600
movabs rcx, 0x1fbf90001fbf0
mov qword [rax + 0x230], rcx
mov rcx, rax
add rcx, 0x238
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], 0x47
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x38], rcx
lea rcx, [rsp + 0x48]
lea rdx, [rsp + 0x20]
call fcn.18058e260
mov rax, qword [rsp + 0x58]
test rax, rax
mov qword [rsp + 0x30], rax
movups xmm0, xmmword [rsp + 0x48]
movaps xmmword [rsp + 0x20], xmm0
sete byte [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.180594460
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rax, rsi
add rsp, 0x60
pop rsi
ret
mov ecx, 4
mov edx, 0x238
call fcn.18063bc30
int3