joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ac020
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x51df40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x40
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x44]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov esi, dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0x67452301
mov dword [ebp - 0x50], 0xefcdab89
mov dword [ebp - 0x4c], 0x98badcfe
mov dword [ebp - 0x48], 0x10325476
test esi, esi
je 0x4ac0b9
mov dword [ebp - 0x5c], esi
cmp esi, 0x40
jb 0x4ac0a7
lea eax, [ebp - 0x5c]
push edi
push eax
call fcn.004ab6d0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4ac1e6
sub esi, 0x40
add edi, 0x40
cmp esi, 0x40
jae 0x4ac085
test esi, esi
je 0x4ac0b9
push esi
lea eax, [ebp - 0x44]
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x5c]
lea edx, [ebp - 0x44]
and ecx, 0x3f
mov byte [ebp + ecx - 0x44], 0x80
inc ecx
add edx, ecx
cmp ecx, 0x38
ja 0x4ac0dc
mov eax, 0x38
sub eax, ecx
push eax
push 0
push edx
jmp 0x4ac10d
mov eax, 0x40
sub eax, ecx
push eax
push 0
push edx
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004ab6d0
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x4ac1e6
push 0x38
push eax
lea eax, [ebp - 0x44]
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x58]
add esp, 0xc
mov ecx, dword [ebp - 0x5c]
lea edx, [eax*8]
mov eax, ecx
shr eax, 0x1d
or edx, eax
shl ecx, 3
mov eax, ecx
mov byte [ebp - 0xc], cl
shr eax, 8
mov byte [ebp - 0xb], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 0xa], al
mov eax, edx
shr eax, 8
mov byte [ebp - 7], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 6], al
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 8], dl
lea eax, [ebp - 0x5c]
shr ecx, 0x18
shr edx, 0x18
push eax
mov byte [ebp - 9], cl
mov byte [ebp - 5], dl
call fcn.004ab6d0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4ac1e6
mov ecx, dword [ebp - 0x60]
movzx eax, byte [ebp - 0x54]
mov byte [ecx], al
movzx eax, byte [ebp - 0x53]
mov byte [ecx + 1], al
movzx eax, byte [ebp - 0x52]
mov byte [ecx + 2], al
movzx eax, byte [ebp - 0x51]
mov byte [ecx + 3], al
movzx eax, byte [ebp - 0x50]
mov byte [ecx + 4], al
movzx eax, byte [ebp - 0x4f]
mov byte [ecx + 5], al
movzx eax, byte [ebp - 0x4e]
mov byte [ecx + 6], al
movzx eax, byte [ebp - 0x4d]
mov byte [ecx + 7], al
movzx eax, byte [ebp - 0x4c]
mov byte [ecx + 8], al
movzx eax, byte [ebp - 0x4b]
mov byte [ecx + 9], al
movzx eax, byte [ebp - 0x4a]
mov byte [ecx + 0xa], al
movzx eax, byte [ebp - 0x49]
mov byte [ecx + 0xb], al
movzx eax, byte [ebp - 0x48]
mov byte [ecx + 0xc], al
movzx eax, byte [ebp - 0x47]
mov byte [ecx + 0xd], al
movzx eax, byte [ebp - 0x46]
mov byte [ecx + 0xe], al
movzx eax, byte [ebp - 0x45]
mov byte [ecx + 0xf], al
lea eax, [ebp - 0x5c]
push 0x58
push eax
call fcn.004a0f10
mov ecx, dword [ebp - 4]
add esp, 8
mov eax, ebx
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004d3ed5
mov esp, ebp
pop ebp
ret
Function at 0x4ac3c0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
xor eax, eax
pop ebp
ret
Function at 0x4ae4d0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x51df40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4c]
push edi
mov edi, dword [ebp + 0x10]
push 0x40
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push dword [ebp + 0xc]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], 0
push esi
push eax
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0x67452301
mov dword [ebp - 0x5c], 0xefcdab89
mov dword [ebp - 0x58], 0x98badcfe
mov dword [ebp - 0x54], 0x10325476
mov dword [ebp - 0x50], 0xc3d2e1f0
call fcn.004ae860
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x4ae64a
mov eax, dword [ebp - 0x64]
mov esi, dword [ebp - 0x68]
lea edx, [eax*8]
mov eax, esi
shr eax, 0x1d
lea ecx, [esi*8]
or edx, eax
mov byte [ebp - 0xc], cl
mov eax, ecx
mov byte [ebp - 8], dl
shr eax, 8
and esi, 0x3f
mov byte [ebp - 0xb], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 0xa], al
mov eax, edx
shr eax, 8
mov byte [ebp - 7], al
mov eax, edx
shr eax, 0x10
shr ecx, 0x18
mov byte [ebp - 6], al
mov eax, 0x38
mov byte [ebp - 9], cl
sub eax, esi
shr edx, 0x18
mov ecx, 0x78
sub ecx, esi
mov byte [ebp - 5], dl
cmp esi, 0x38
cmovae eax, ecx
push eax
lea eax, [ebp - 0x68]
push 0x4f3d18
push eax
call fcn.004ae860
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4ae64a
push 8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.004ae860
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4ae64a
mov eax, dword [ebp - 0x60]
mov byte [edi], al
mov byte [edi + 1], ah
movzx eax, byte [ebp - 0x5e]
mov byte [edi + 2], al
movzx eax, byte [ebp - 0x5d]
mov byte [edi + 3], al
mov eax, dword [ebp - 0x5c]
mov byte [edi + 4], al
mov byte [edi + 5], ah
movzx eax, byte [ebp - 0x5a]
mov byte [edi + 6], al
movzx eax, byte [ebp - 0x59]
mov byte [edi + 7], al
mov eax, dword [ebp - 0x58]
mov byte [edi + 8], al
mov byte [edi + 9], ah
movzx eax, byte [ebp - 0x56]
mov byte [edi + 0xa], al
movzx eax, byte [ebp - 0x55]
mov byte [edi + 0xb], al
mov eax, dword [ebp - 0x54]
mov byte [edi + 0xc], al
mov byte [edi + 0xd], ah
movzx eax, byte [ebp - 0x52]
mov byte [edi + 0xe], al
movzx eax, byte [ebp - 0x51]
mov byte [edi + 0xf], al
mov eax, dword [ebp - 0x50]
mov byte [edi + 0x10], al
mov byte [edi + 0x11], ah
movzx eax, byte [ebp - 0x4e]
mov byte [edi + 0x12], al
movzx eax, byte [ebp - 0x4d]
mov byte [edi + 0x13], al
lea eax, [ebp - 0x68]
push 0x5c
push eax
call fcn.004a0f10
mov ecx, dword [ebp - 4]
add esp, 8
mov eax, esi
xor ecx, ebp
pop edi
pop esi
call fcn.004d3ed5
mov esp, ebp
pop ebp
ret

Function at 0x4ae820
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
xor eax, eax
pop ebp
ret
Function at 0x4afe40
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x51df40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x44]
push edi
mov edi, dword [ebp + 0x10]
push 0x40
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push dword [ebp + 0xc]
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], 0
push esi
push eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0x67452301
mov dword [ebp - 0x54], 0xefcdab89
mov dword [ebp - 0x50], 0x98badcfe
mov dword [ebp - 0x4c], 0x10325476
mov dword [ebp - 0x48], 0xc3d2e1f0
call fcn.004b0030
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x4afebb
lea eax, [ebp - 0x60]
push edi
push eax
call fcn.004afee0
add esp, 8
mov esi, eax
lea eax, [ebp - 0x60]
push 0x5c
push eax
call fcn.004a0f10
mov ecx, dword [ebp - 4]
add esp, 8
mov eax, esi
xor ecx, ebp
pop edi
pop esi
call fcn.004d3ed5
mov esp, ebp
pop ebp
ret
Function at 0x4b21b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x51df40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x54]
push edi
mov edi, dword [ebp + 0x18]
push eax
call fcn.0049a070
push edi
call fcn.0049a000
mov edi, eax
add esp, 8
test edi, edi
jne 0x4b21fb
pop edi
mov eax, 0xffffbf80
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d3ed5
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.0049a070
push 0
lea eax, [ebp - 0x54]
push edi
push eax
call fcn.0049a090
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4b234d
push edi
call fcn.00499ca0
movzx eax, al
push 0x40
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x44]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp + 0xc]
add esp, 0x10
mov dword [ebp - 0x48], ebx
test eax, eax
je 0x4b234d
cmp eax, dword [ebp - 0x58]
mov edi, eax
lea eax, [ebp - 0x54]
cmovae edi, dword [ebp - 0x58]
push eax
call fcn.0049a280
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4b234d
push dword [ebp + 0x14]
lea eax, [ebp - 0x54]
push dword [ebp - 0x5c]
push eax
call fcn.0049a330
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x4b234d
push 4
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0049a330
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x4b234d
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.00499b50
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4b234d
xor ecx, ecx
test edi, edi
je 0x4b233c
cmp edi, 0x40
jb 0x4b2330
lea edx, [esi - 1]
lea eax, [ebp + edi - 0x45]
add edx, edi
cmp esi, eax
ja 0x4b22db
lea eax, [ebp - 0x44]
cmp edx, eax
jae 0x4b2330
mov eax, edi
and eax, 0xffffffc0
movups xmm0, xmmword [esi]
movups xmm1, xmmword [ebp + ecx - 0x44]
pxor xmm1, xmm0
movups xmmword [esi], xmm1
movups xmm0, xmmword [esi + 0x10]
movups xmm1, xmmword [ebp + ecx - 0x34]
pxor xmm1, xmm0
movups xmmword [esi + 0x10], xmm1
movups xmm0, xmmword [esi + 0x20]
movups xmm1, xmmword [ebp + ecx - 0x24]
pxor xmm1, xmm0
movups xmmword [esi + 0x20], xmm1
movups xmm0, xmmword [esi + 0x30]
movups xmm1, xmmword [ebp + ecx - 0x14]
add ecx, 0x40
pxor xmm1, xmm0
movups xmmword [esi + 0x30], xmm1
add esi, 0x40
cmp ecx, eax
jb 0x4b22e0
cmp ecx, edi
jae 0x4b233c
mov al, byte [ebp + ecx - 0x44]
inc ecx
xor byte [esi], al
inc esi
cmp ecx, edi
jb 0x4b2330
mov eax, dword [ebp + 0xc]
inc byte [ebp - 0x45]
sub eax, edi
mov dword [ebp + 0xc], eax
jne 0x4b2247
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.004a0f10
lea eax, [ebp - 0x54]
push eax
call fcn.00499bf0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, ebx
xor ecx, ebp
pop ebx
pop edi
pop esi
call fcn.004d3ed5
mov esp, ebp
pop ebp
ret
Function at 0x4b4c40
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [esi], 0x61707865
mov dword [esi + 4], 0x3320646e
mov dword [esi + 8], 0x79622d32
mov dword [esi + 0xc], 0x6b206574
movzx ecx, byte [edx + 3]
shl ecx, 8
movzx eax, byte [edx + 2]
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx]
shl ecx, 8
or ecx, eax
mov dword [esi + 0x10], ecx
movzx ecx, byte [edx + 7]
shl ecx, 8
movzx eax, byte [edx + 6]
or ecx, eax
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 4]
shl ecx, 8
or ecx, eax
mov dword [esi + 0x14], ecx
movzx ecx, byte [edx + 0xb]
movzx eax, byte [edx + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 8]
shl ecx, 8
or ecx, eax
mov dword [esi + 0x18], ecx
movzx ecx, byte [edx + 0xf]
movzx eax, byte [edx + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xc]
shl ecx, 8
or ecx, eax
mov dword [esi + 0x1c], ecx
movzx ecx, byte [edx + 0x13]
movzx eax, byte [edx + 0x12]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x11]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x10]
shl ecx, 8
or ecx, eax
mov dword [esi + 0x20], ecx
movzx ecx, byte [edx + 0x17]
movzx eax, byte [edx + 0x16]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x15]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x14]
shl ecx, 8
or ecx, eax
mov dword [esi + 0x24], ecx
movzx ecx, byte [edx + 0x1b]
movzx eax, byte [edx + 0x1a]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x19]
shl ecx, 8
or ecx, eax
shl ecx, 8
movzx eax, byte [edx + 0x18]
or ecx, eax
mov dword [esi + 0x28], ecx
movzx ecx, byte [edx + 0x1f]
movzx eax, byte [edx + 0x1e]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x1d]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x1c]
shl ecx, 8
or ecx, eax
xor eax, eax
mov dword [esi + 0x2c], ecx
pop esi
pop ebp
ret
Function at 0x4b4e20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 4], esi
push edi
test ecx, ecx
je 0x4b4e6f
mov edi, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
sub edi, edx
mov esi, dword [ebx + 0x80]
cmp esi, 0x40
jae 0x4b4e69
mov al, byte [edi + edx]
xor al, byte [esi + ebx + 0x40]
mov esi, dword [ebp - 4]
mov byte [edx], al
inc esi
inc dword [ebx + 0x80]
inc edx
mov dword [ebp - 4], esi
sub ecx, 1
jne 0x4b4e40
jmp 0x4b4e6c
mov esi, dword [ebp - 4]
mov dword [ebp + 0xc], ecx
mov edi, dword [ebp + 0x10]
lea eax, [ebx + 0x40]
mov dword [ebp - 0x14], eax
cmp ecx, 0x40
jb 0x4b4f4d
mov edx, dword [ebp + 0x14]
lea eax, [ebx + 0x41]
mov dword [ebp - 0x10], eax
mov eax, edi
sub eax, edx
shr ecx, 6
inc edx
mov dword [ebp - 0xc], eax
add esi, edx
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
add edi, 3
mov eax, ecx
add edi, edx
shl eax, 6
add edx, eax
mov dword [ebp - 4], edx
nop dword [eax]
lea eax, [ebx + 0x40]
push eax
push ebx
call fcn.004b4920
mov ecx, dword [ebp - 0x10]
add esp, 8
inc dword [ebx + 0x30]
mov edx, 8
mov ebx, dword [ebp - 0xc]
nop dword [eax + eax]
movzx eax, byte [edi - 3]
lea ecx, [ecx + 8]
xor al, byte [ecx - 9]
mov byte [esi - 1], al
movzx eax, byte [esi + ebx]
xor al, byte [ecx - 8]
mov byte [esi], al
movzx eax, byte [edi - 1]
xor al, byte [ecx - 7]
mov byte [esi + 1], al
movzx eax, byte [ecx - 6]
xor al, byte [edi]
mov byte [esi + 2], al
movzx eax, byte [edi + 1]
xor al, byte [ecx - 5]
mov byte [esi + 3], al
movzx eax, byte [edi + 2]
xor al, byte [ecx - 4]
mov byte [esi + 4], al
movzx eax, byte [edi + 3]
xor al, byte [ecx - 3]
mov byte [esi + 5], al
movzx eax, byte [edi + 4]
add edi, 8
xor al, byte [ecx - 2]
mov byte [esi + 6], al
add esi, 8
sub edx, 1
jne 0x4b4ed0
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
sub ecx, 0x40
sub dword [ebp - 8], 1
mov dword [ebp + 0xc], ecx
jne 0x4b4eb0
mov edi, dword [ebp - 0xc]
lea eax, [ebx + 0x40]
mov esi, dword [ebp + 0x14]
jmp 0x4b4f52
mov esi, dword [ebp + 0x14]
sub edi, esi
test ecx, ecx
je 0x4b4f8f
push eax
push ebx
call fcn.004b4920
inc dword [ebx + 0x30]
add esp, 8
mov ebx, dword [ebp - 4]
xor edx, edx
add ebx, esi
nop word [eax + eax]
mov esi, dword [ebp - 0x14]
lea ecx, [ebx + edx]
mov al, byte [edi + ecx]
xor al, byte [esi + edx]
inc edx
mov esi, dword [ebp + 0xc]
mov byte [ecx], al
cmp edx, esi
jb 0x4b4f70
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x80], esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b5360
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x51df40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
lea ebx, [ebp - 0x14]
push edi
mov edi, dword [ebp + 0x24]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
push eax
push dword [ebp + 0x18]
push ecx
push edx
push ebx
push 1
push esi
call fcn.004b4fa0
add esp, 0x24
test eax, eax
jne 0x4b5453
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x10]
sub ecx, eax
xorps xmm4, xmm4
xorps xmm3, xmm3
sub edx, eax
mov esi, 2
nop dword [eax]
movd xmm2, dword [ecx + eax]
xorps xmm0, xmm0
movd xmm1, dword [eax]
lea eax, [eax + 8]
punpcklbw xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
movd xmm1, dword [eax - 4]
punpcklbw xmm1, xmm0
por xmm4, xmm2
movd xmm2, dword [edx + eax - 8]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
por xmm3, xmm2
sub esi, 1
jne 0x4b53c0
por xmm3, xmm4
movaps xmm0, xmm3
psrldq xmm0, 8
por xmm3, xmm0
movups xmm0, xmm3
psrldq xmm0, 4
por xmm3, xmm0
movd eax, xmm3
test eax, eax
je 0x4b5451
push ebx
push edi
call fcn.004a0f10
add esp, 8
lea eax, [esi - 0x56]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d3ed5
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d3ed5
mov esp, ebp
pop ebp
ret

Function at 0x4b5560
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b4c40
Function at 0x4b5620
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x51df40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x30], ebx
push eax
push 0x10
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
push ebx
movups xmmword [ebp - 0x14], xmm0
call fcn.004a5920
add esp, 0x14
test eax, eax
jne 0x4b5808
movzx eax, byte [ebp - 0x13]
xor edx, edx
movzx ecx, byte [ebp - 0x10]
push esi
movzx esi, byte [ebp - 0x14]
shl esi, 8
or esi, eax
shl ecx, 8
movzx eax, byte [ebp - 0x12]
shl esi, 8
or esi, eax
mov dword [ebx + 0xc8], 0
movzx eax, byte [ebp - 0x11]
shl esi, 8
or esi, eax
mov dword [ebx + 0xcc], 0
movzx eax, byte [ebp - 0xf]
or ecx, eax
mov dword [ebx + 0x10c], esi
movzx eax, byte [ebp - 0xe]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x48], 0
movzx eax, byte [ebp - 0xd]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x4c], 0
movzx eax, byte [ebp - 0xb]
or edx, ecx
movzx ecx, byte [ebp - 8]
push edi
movzx edi, byte [ebp - 0xc]
shl edi, 8
or edi, eax
shl ecx, 8
movzx eax, byte [ebp - 0xa]
shl edi, 8
or edi, eax
mov dword [ebp - 0x1c], edx
movzx eax, byte [ebp - 9]
xor edx, edx
shl edi, 8
or edi, eax
mov dword [ebp - 0x20], 4
movzx eax, byte [ebp - 7]
or ecx, eax
mov dword [ebx + 0x8c], edi
movzx eax, byte [ebp - 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 5]
shl ecx, 8
or ecx, eax
or edx, ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], edx
mov dword [ebx + 0x88], edx
mov dword [ebx + 0x108], ecx
shrd dword [ebp - 0x18], edi, 1
shl ecx, 0x1f
and edx, 1
shr edi, 1
xor eax, eax
or dword [ebp - 0x18], eax
or edi, ecx
mov ecx, dword [ebp - 0x1c]
shrd ecx, esi, 1
imul edx, edx, 0xe1000000
xor ecx, eax
shr esi, 1
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], ecx
xor esi, edx
mov edx, dword [ebp - 0x18]
mov dword [ebx + eax*8 + 0x48], edx
mov dword [ebx + eax*8 + 0x4c], edi
mov dword [ebx + eax*8 + 0xc8], ecx
mov dword [ebx + eax*8 + 0xcc], esi
shr eax, 1
mov dword [ebp - 0x20], eax
jne 0x4b5731
mov ecx, 2
mov dword [ebp - 0x20], ecx
lea edi, [ecx + 0x19]
mov eax, dword [ebx + edi*8]
lea edi, [ebx + edi*8]
mov dword [ebp - 0x1c], eax
lea edx, [ecx + 9]
mov eax, dword [edi + 4]
lea edx, [ebx + edx*8]
mov dword [ebp - 0x18], eax
mov eax, dword [edx]
mov dword [ebp - 0x28], eax
mov eax, dword [edx + 4]
mov dword [ebp - 0x2c], eax
cmp ecx, 1
jle 0x4b57fa
lea eax, [ebx + 0x50]
sub edi, edx
lea esi, [edx + 8]
lea ebx, [ecx - 1]
nop dword [eax]
mov ecx, dword [eax + 0x84]
lea eax, [eax + 8]
xor ecx, dword [ebp - 0x18]
lea esi, [esi + 8]
mov edx, dword [ebp - 0x1c]
xor edx, dword [eax + 0x78]
mov dword [edi + esi - 8], edx
mov edx, dword [ebp - 0x28]
mov dword [edi + esi - 4], ecx
mov ecx, dword [eax - 4]
xor edx, dword [eax - 8]
xor ecx, dword [ebp - 0x2c]
mov dword [esi - 8], edx
mov dword [esi - 4], ecx
sub ebx, 1
jne 0x4b57c0
mov ecx, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x30]
add ecx, ecx
mov dword [ebp - 0x20], ecx
cmp ecx, 8
jle 0x4b5786
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004d3ed5
mov esp, ebp
pop ebp
ret
Function at 0x4b5ac0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x51df40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x2c]
push ebx
mov ebx, dword [ebp + 0x28]
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
push eax
push 0
push esi
mov dword [ebp - 0x1c], ecx
call fcn.004b5f80
add esp, 0x10
test eax, eax
jne 0x4b5c4f
push dword [ebp + 0x1c]
push edi
push esi
call fcn.004b6350
add esp, 0xc
test eax, eax
jne 0x4b5c4f
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 0xc]
push eax
push dword [ebp - 0x1c]
push eax
push ebx
push esi
call fcn.004b6140
add esp, 0x18
test eax, eax
jne 0x4b5c4f
mov ebx, dword [ebp + 0x24]
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push esi
call fcn.004b5cd0
add esp, 0x18
test eax, eax
jne 0x4b5c4f
xor esi, esi
test ebx, ebx
je 0x4b5c4d
mov edi, dword [ebp + 0x20]
cmp ebx, 8
jb 0x4b5c09
mov edx, ebx
lea esi, [ebp - 0x14]
sub esi, edi
lea ebx, [ebp - 0x10]
and edx, 0xfffffff8
mov ecx, edi
sub ebx, edi
xorps xmm4, xmm4
mov dword [ebp - 0x18], ebx
xorps xmm3, xmm3
mov ebx, dword [ebp + 0x24]
mov edi, dword [ebp - 0x18]
nop word [eax + eax]
movd xmm2, dword [esi + ecx]
lea ecx, [ecx + 8]
movd xmm1, dword [ecx - 8]
xorps xmm0, xmm0
punpcklbw xmm2, xmm0
add eax, 8
punpcklbw xmm1, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
movd xmm1, dword [ecx - 4]
punpcklbw xmm1, xmm0
por xmm4, xmm2
movd xmm2, dword [edi + ecx - 8]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
por xmm3, xmm2
cmp eax, edx
jb 0x4b5b90
mov edi, dword [ebp + 0x20]
por xmm3, xmm4
movaps xmm0, xmm3
psrldq xmm0, 8
por xmm3, xmm0
movups xmm0, xmm3
psrldq xmm0, 4
por xmm3, xmm0
movd esi, xmm3
cmp eax, ebx
jae 0x4b5c25
lea ecx, [ebp - 0x14]
sub edi, ecx
nop
lea ecx, [ebp - 0x14]
add ecx, eax
inc eax
movzx edx, byte [edi + ecx]
movzx ecx, byte [ecx]
xor edx, ecx
or esi, edx
cmp eax, ebx
jb 0x4b5c10
test esi, esi
je 0x4b5c4d
push dword [ebp + 0xc]
push dword [ebp - 0x1c]
call fcn.004a0f10
add esp, 8
mov eax, 0xffffffee
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d3ed5
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d3ed5
mov esp, ebp
pop ebp
ret