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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x62aabc]
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.004ca710
add esp, 0x24
test eax, eax
jne 0x4cabc3
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 0x4cab30
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 0x4cabc1
push ebx
push edi
call fcn.004b66d0
add esp, 8
lea eax, [esi - 0x56]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054f742
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.0054f742
mov esp, ebp
pop ebp
ret

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

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x62aabc]
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.004bb0e0
add esp, 0x14
test eax, eax
jne 0x4caf78
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 0x4caea1
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 0x4caf6a
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 0x4caf30
mov ecx, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x30]
add ecx, ecx
mov dword [ebp - 0x20], ecx
cmp ecx, 8
jle 0x4caef6
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0054f742
mov esp, ebp
pop ebp
ret
Function at 0x4cb230
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x62aabc]
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.004cb6f0
add esp, 0x10
test eax, eax
jne 0x4cb3bf
push dword [ebp + 0x1c]
push edi
push esi
call fcn.004cbac0
add esp, 0xc
test eax, eax
jne 0x4cb3bf
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.004cb8b0
add esp, 0x18
test eax, eax
jne 0x4cb3bf
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.004cb440
add esp, 0x18
test eax, eax
jne 0x4cb3bf
xor esi, esi
test ebx, ebx
je 0x4cb3bd
mov edi, dword [ebp + 0x20]
cmp ebx, 8
jb 0x4cb379
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 0x4cb300
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 0x4cb395
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 0x4cb380
test esi, esi
je 0x4cb3bd
push dword [ebp + 0xc]
push dword [ebp - 0x1c]
call fcn.004b66d0
add esp, 8
mov eax, 0xffffffee
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054f742
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.0054f742
mov esp, ebp
pop ebp
ret
Function at 0x4cb440
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x62aabc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [eax], 0
mov dword [ebp - 0x28], ecx
mov ecx, dword [edi + 0x148]
mov edx, ecx
mov eax, dword [edi + 0x14c]
mov ebx, eax
mov esi, dword [edi + 0x154]
shld ebx, edx, 3
shl edx, 3
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], edx
mov edx, dword [edi + 0x150]
mov ebx, edx
shld esi, ebx, 3
shl ebx, 3
or ecx, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
jne 0x4cb4b9
and edx, 0xf
or edx, ecx
je 0x4cb4b9
lea eax, [edi + 0x178]
push eax
push eax
push edi
call fcn.004cb050
add esp, 0xc
mov ebx, dword [ebp + 0x1c]
lea eax, [ebx - 4]
cmp eax, 0xc
ja 0x4cb5fe
mov eax, dword [edi + 0x148]
lea esi, [edi + 0x178]
and eax, 0xf
or eax, 0
je 0x4cb4e7
push esi
push esi
push edi
call fcn.004cb050
add esp, 0xc
push ebx
lea eax, [edi + 0x158]
push eax
push dword [ebp - 0x28]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x24]
add esp, 0xc
or eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
jne 0x4cb510
mov eax, edx
or eax, dword [ebp - 0x1c]
je 0x4cb5eb
mov ebx, dword [ebp - 0x1c]
mov ecx, edx
mov eax, ebx
mov byte [ebp - 0x11], bl
shr eax, 0x18
mov byte [ebp - 0x14], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0x13], al
mov eax, ebx
shr eax, 8
mov byte [ebp - 0x12], al
mov eax, ebx
shrd ecx, eax, 0x18
mov eax, ebx
mov byte [ebp - 0xd], dl
mov byte [ebp - 0x10], cl
mov ecx, edx
shrd ecx, eax, 0x10
mov eax, edx
mov edx, dword [ebp - 0x24]
shrd eax, ebx, 8
mov ebx, dword [ebp - 0x20]
mov byte [ebp - 0xe], al
mov eax, ebx
shr eax, 0x18
mov byte [ebp - 0xc], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0xb], al
mov eax, ebx
shr eax, 8
mov byte [ebp - 0xa], al
mov eax, ebx
mov byte [ebp - 0xf], cl
mov ecx, edx
shrd ecx, eax, 0x18
mov eax, ebx
mov byte [ebp - 9], bl
mov byte [ebp - 8], cl
mov ecx, edx
shrd ecx, eax, 0x10
mov eax, edx
mov byte [ebp - 5], dl
shrd eax, ebx, 8
mov byte [ebp - 7], cl
lea edx, [ebp - 0x13]
mov byte [ebp - 6], al
mov ebx, 4
lea eax, [edi + 0x179]
movzx ecx, byte [edx - 1]
lea edx, [edx + 4]
xor byte [eax - 1], cl
lea eax, [eax + 4]
movzx ecx, byte [edx - 4]
xor byte [eax - 4], cl
movzx ecx, byte [edx - 3]
xor byte [eax - 3], cl
movzx ecx, byte [edx - 2]
xor byte [eax - 2], cl
sub ebx, 1
jne 0x4cb5a1
push esi
push esi
push edi
call fcn.004cb050
mov ebx, dword [ebp + 0x1c]
add esp, 0xc
xor ecx, ecx
test ebx, ebx
je 0x4cb5eb
mov edx, dword [ebp - 0x28]
nop
mov al, byte [esi + ecx]
xor byte [edx + ecx], al
inc ecx
cmp ecx, ebx
jb 0x4cb5e0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054f742
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xffffffec
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054f742
mov esp, ebp
pop ebp
ret
Function at 0x4cb6f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x62aabc]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x24], 0
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1c], edi
test esi, esi
je 0x4cb88f
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
movups xmmword [edi + 0x168], xmm0
push ebx
lea ebx, [edi + 0x168]
mov dword [ebp - 0x20], ebx
movups xmmword [edi + 0x178], xmm0
mov dword [edi + 0x188], eax
mov dword [edi + 0x148], 0
mov dword [edi + 0x14c], 0
mov dword [edi + 0x150], 0
mov dword [edi + 0x154], 0
cmp esi, 0xc
jne 0x4cb78b
movq xmm0, qword [ecx]
movq qword [ebx], xmm0
mov eax, dword [ecx + 8]
mov dword [ebx + 8], eax
mov byte [edi + 0x177], 1
jmp 0x4cb867
mov ecx, 8
movlpd qword [ebp - 0x14], xmm0
mov eax, esi
mul ecx
mov ecx, edx
mov byte [ebp - 9], dl
shr ecx, 0x18
mov ebx, eax
mov byte [ebp - 0xc], cl
mov eax, edx
mov ecx, edx
mov byte [ebp - 5], bl
shr ecx, 0x10
mov byte [ebp - 0xb], cl
mov ecx, edx
shr ecx, 8
mov byte [ebp - 0xa], cl
mov ecx, ebx
shrd ecx, eax, 0x18
mov eax, edx
mov byte [ebp - 8], cl
mov ecx, ebx
shrd ecx, eax, 0x10
mov eax, ebx
mov ebx, dword [ebp - 0x20]
shrd eax, edx, 8
mov byte [ebp - 7], cl
mov byte [ebp - 6], al
mov eax, dword [ebp - 0x18]
nop
mov edi, 0x10
cmp esi, edi
cmovb edi, esi
test edi, edi
je 0x4cb806
mov edx, eax
mov esi, edi
mov eax, ebx
mov cl, byte [edx]
lea edx, [edx + 1]
xor byte [eax], cl
lea eax, [eax + 1]
sub esi, 1
jne 0x4cb7f4
mov esi, dword [ebp + 0x14]
push ebx
push ebx
push dword [ebp - 0x1c]
call fcn.004cb050
mov eax, dword [ebp - 0x18]
sub esi, edi
add eax, edi
mov dword [ebp + 0x14], esi
add esp, 0xc
mov dword [ebp - 0x18], eax
test esi, esi
jne 0x4cb7e0
mov edi, dword [ebp - 0x1c]
lea edx, [ebp - 0x13]
mov esi, 4
lea ecx, [edi + 0x169]
movzx eax, byte [edx - 1]
lea edx, [edx + 4]
xor byte [ecx - 1], al
lea ecx, [ecx + 4]
movzx eax, byte [edx - 4]
xor byte [ecx - 4], al
movzx eax, byte [edx - 3]
xor byte [ecx - 3], al
movzx eax, byte [edx - 2]
xor byte [ecx - 2], al
sub esi, 1
jne 0x4cb835
push ebx
push ebx
push edi
call fcn.004cb050
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
lea eax, [edi + 0x158]
push eax
push 0x10
push ebx
push edi
call fcn.004bb0e0
add esp, 0x14
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054f742
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xffffffec
pop edi
xor ecx, ebp
pop esi
call fcn.0054f742
mov esp, ebp
pop ebp
ret
Function at 0x4cbac0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov eax, dword [ecx + 0x150]
and eax, 0xf
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
je 0x4cbb4b
mov edx, 0x10
sub edx, eax
cmp edx, ebx
cmova edx, ebx
xor esi, esi
mov dword [ebp + 0x10], edx
test edx, edx
je 0x4cbb17
lea edx, [ecx + 0x178]
mov ecx, dword [ebp + 0x10]
add edx, eax
mov al, byte [esi + edi]
lea edx, [edx + 1]
xor byte [edx - 1], al
inc esi
cmp esi, ecx
jb 0x4cbb00
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
add eax, edx
lea esi, [ecx + 0x178]
mov dword [ebp - 4], esi
cmp eax, 0x10
jne 0x4cbb38
push esi
push esi
push ecx
call fcn.004cb050
mov ecx, dword [ebp + 8]
add esp, 0xc
mov edx, dword [ebp + 0x10]
add dword [ecx + 0x150], edx
adc dword [ecx + 0x154], 0
sub ebx, edx
add edi, edx
jmp 0x4cbb54
lea esi, [ecx + 0x178]
mov dword [ebp - 4], esi
add dword [ecx + 0x150], ebx
adc dword [ecx + 0x154], 0
cmp ebx, 0x10
jb 0x4cbbd6
add ecx, 0x179
mov eax, ebx
shr eax, 4
mov dword [ebp - 8], ecx
mov dword [ebp + 0x10], eax
nop word [eax + eax]
lea edx, [edi + 2]
mov eax, ecx
mov esi, 4
nop word [eax + eax]
movzx ecx, byte [edx - 2]
lea edx, [edx + 4]
xor byte [eax - 1], cl
lea eax, [eax + 4]
movzx ecx, byte [edx - 5]
xor byte [eax - 4], cl
movzx ecx, byte [edx - 4]
xor byte [eax - 3], cl
movzx ecx, byte [edx - 3]
xor byte [eax - 2], cl
sub esi, 1
jne 0x4cbb90
mov esi, dword [ebp - 4]
push esi
push esi
push dword [ebp + 8]
call fcn.004cb050
mov ecx, dword [ebp - 8]
add esp, 0xc
sub ebx, 0x10
add edi, 0x10
sub dword [ebp + 0x10], 1
jne 0x4cbb80
test ebx, ebx
je 0x4cbbef
nop word [eax + eax]
mov al, byte [edi]
lea edi, [edi + 1]
xor byte [esi], al
lea esi, [esi + 1]
sub ebx, 1
jne 0x4cbbe0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4cbd90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x62aabc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0x28]
mov edx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 0x30]
push edi
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x14]
push edi
push ebx
push eax
push dword [ebp + 0x20]
mov dword [ebp - 0x18], ebx
push ecx
push dword [ebp + 0x18]
push edx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.004cbc00
mov edi, dword [ebp + 0x30]
add esp, 0x2c
test eax, eax
jne 0x4cbed0
mov ebx, dword [ebp + 0x2c]
xor esi, esi
xor al, al
test edi, edi
je 0x4cbe88
cmp edi, 8
jb 0x4cbe88
mov edx, edi
xorps xmm4, xmm4
and edx, 0xfffffff8
xorps xmm3, xmm3
xor ecx, ecx
nop word [eax + eax]
movd xmm2, dword [ecx + ebx]
xorps xmm0, xmm0
movd xmm1, dword [ebp + ecx - 0x14]
lea ecx, [eax + 4]
punpcklbw xmm2, xmm0
add al, 8
punpcklbw xmm1, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
movzx ecx, cl
por xmm4, xmm2
movd xmm2, dword [ecx + ebx]
movd xmm1, dword [ebp + ecx - 0x14]
punpcklbw xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
movzx ecx, al
pxor xmm2, xmm1
por xmm3, xmm2
cmp ecx, edx
jb 0x4cbe10
por xmm3, xmm4
movaps xmm0, xmm3
psrldq xmm0, 8
por xmm3, xmm0
movups xmm0, xmm3
psrldq xmm0, 4
por xmm3, xmm0
movd esi, xmm3
movzx ecx, al
cmp ecx, edi
jae 0x4cbea6
nop
movzx edx, byte [ecx + ebx]
inc al
movzx ecx, byte [ebp + ecx - 0x14]
xor edx, ecx
movzx ecx, al
or esi, edx
cmp ecx, edi
jb 0x4cbe90
test esi, esi
je 0x4cbece
push dword [ebp + 0x10]
push dword [ebp - 0x18]
call fcn.004b66d0
add esp, 8
mov eax, 0xfffffff1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054f742
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.0054f742
mov esp, ebp
pop ebp
ret
Function at 0x4cbfc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x62aabc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x18]
lea eax, [ebp - 0x24]
push edi
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], esi
push eax
push 0x10
lea eax, [edi + 0x10]
mov dword [ebp - 0x24], 0
push eax
lea eax, [edi + 0x20]
push eax
movups xmmword [ebp - 0x14], xmm0
call fcn.004bb0e0
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x4cc02f
or dword [edi + 0x78], 0x10
lea eax, [ebp - 0x14]
push 0x10
push eax
call fcn.004b66d0
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054f742
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
xor ebx, ebx
test edx, edx
je 0x4cc12b
mov edi, dword [ebp + 0x14]
cmp edx, 0x40
jb 0x4cc105
lea eax, [edi - 1]
lea ecx, [edx - 1]
add eax, edx
add ecx, esi
cmp esi, eax
ja 0x4cc05e
cmp ecx, edi
jae 0x4cc105
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x14]
add eax, ecx
mov dword [ebp - 0x1c], eax
lea eax, [ecx + edx]
lea eax, [ebp + eax - 0x15]
cmp esi, eax
ja 0x4cc082
lea eax, [edx - 1]
add eax, esi
cmp eax, dword [ebp - 0x1c]
jae 0x4cc105
mov eax, edx
lea esi, [edi + 0x30]
and eax, 0xffffffc0
lea edx, [ebp - 4]
mov dword [ebp - 0x20], eax
add ecx, edx
mov eax, dword [ebp - 0x18]
mov edx, edi
add eax, 0x10
sub edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp + 0x10]
mov edi, dword [ebp - 0x1c]
movups xmm0, xmmword [esi - 0x30]
add ebx, 0x40
lea ecx, [ecx + 0x40]
lea esi, [esi + 0x40]
lea eax, [eax + 0x40]
movups xmm1, xmmword [ecx - 0x50]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x40]
movups xmmword [eax - 0x50], xmm1
movups xmm1, xmmword [edi + eax - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [esi - 0x50]
movups xmmword [eax - 0x40], xmm1
movups xmm1, xmmword [ecx - 0x30]
pxor xmm1, xmm0
movups xmm0, xmmword [esi - 0x40]
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [ecx - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp ebx, dword [ebp - 0x20]
jb 0x4cc0a6
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x20], ebx
cmp ebx, edx
jae 0x4cc12b
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp + 0xc]
lea ecx, [esi + ebx]
sub edi, dword [ebp - 0x18]
lea esi, [ebp - 0x14]
add eax, ebx
add esi, eax
sub edx, ebx
mov al, byte [edi + ecx]
lea esi, [esi + 1]
xor al, byte [esi - 1]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
sub edx, 1
jne 0x4cc117
lea eax, [ebp - 0x14]
push 0x10
push eax
call fcn.004b66d0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.0054f742
mov esp, ebp
pop ebp
ret
Function at 0x4cc6e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0x78]
test cl, 0x10
jne 0x4cc893
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x4cc87f
test cl, 8
jne 0x4cc893
mov edx, dword [esi + 0x68]
test cl, 4
jne 0x4cc72c
cmp ebx, edx
ja 0x4cc893
mov al, byte [esi + 0x69]
xor byte [esi], al
xor byte [esi + 1], dl
or ecx, 4
mov dword [esi + 0x78], ecx
jmp 0x4cc740
mov eax, dword [esi + 0x70]
add eax, ebx
cmp eax, edx
ja 0x4cc893
nop dword [eax]
mov edx, dword [esi + 0x70]
mov eax, 0x10
add edx, 2
mov ecx, ebx
and edx, 0xf
sub eax, edx
mov dword [ebp - 4], edx
cmp eax, ebx
cmovbe ecx, eax
xor bl, bl
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x4cc80e
cmp ecx, 0x40
jb 0x4cc80e
mov edi, dword [ebp + 0xc]
dec cl
lea eax, [edx + ecx]
movzx ecx, cl
movzx eax, al
add ecx, edi
add eax, esi
mov dword [ebp - 8], eax
movzx eax, dl
add eax, esi
cmp eax, ecx
ja 0x4cc793
cmp dword [ebp - 8], edi
jae 0x4cc80b
mov eax, dword [ebp + 8]
mov bh, 0x20
and eax, 0xffffffc0
xor ecx, ecx
mov dword [ebp - 8], eax
movups xmm1, xmmword [ecx + edi]
lea eax, [ecx + edx]
add bl, 0x40
movups xmm0, xmmword [eax + esi]
pxor xmm1, xmm0
movups xmmword [eax + esi], xmm1
mov al, bh
sub al, 0x10
movzx ecx, al
movups xmm1, xmmword [ecx + edi]
lea eax, [ecx + edx]
movzx ecx, bh
movups xmm0, xmmword [eax + esi]
pxor xmm1, xmm0
movups xmmword [eax + esi], xmm1
lea eax, [ecx + edx]
movups xmm0, xmmword [eax + esi]
movups xmm1, xmmword [ecx + edi]
pxor xmm1, xmm0
movups xmmword [eax + esi], xmm1
mov al, bh
add bh, 0x40
add al, 0x10
movzx ecx, al
movups xmm1, xmmword [ecx + edi]
lea eax, [ecx + edx]
movzx ecx, bl
movups xmm0, xmmword [eax + esi]
pxor xmm1, xmm0
movups xmmword [eax + esi], xmm1
cmp ecx, dword [ebp - 8]
jb 0x4cc7a0
mov ecx, dword [ebp + 8]
mov edi, dword [ebp - 4]
movzx edx, bl
cmp edx, ecx
jae 0x4cc830
mov eax, dword [ebp + 0xc]
lea ecx, [edx + edi]
inc bl
mov al, byte [edx + eax]
xor byte [ecx + esi], al
mov ecx, dword [ebp + 8]
movzx edx, bl
cmp edx, ecx
jb 0x4cc818
mov edx, dword [esi + 0x70]
lea eax, [ecx + edi]
mov ebx, dword [ebp + 0x10]
add edx, ecx
add dword [ebp + 0xc], ecx
sub ebx, ecx
mov dword [esi + 0x70], edx
mov dword [ebp + 0x10], ebx
cmp eax, 0x10
je 0x4cc850
cmp edx, dword [esi + 0x68]
jne 0x4cc86b
lea eax, [ebp - 0xc]
push eax
push esi
push 0x10
lea eax, [esi + 0x20]
push esi
push eax
call fcn.004bb0e0
add esp, 0x14
test eax, eax
jne 0x4cc888
mov edx, dword [esi + 0x70]
test ebx, ebx
jne 0x4cc740
cmp edx, dword [esi + 0x68]
jne 0x4cc87f
or dword [esi + 0x78], 8
mov dword [esi + 0x70], ebx
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
or dword [esi + 0x78], 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xfffffff3
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d2150
Capabilities:
Encrypt data using camellia

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov ebx, dword [ecx]
xor ebx, dword [eax]
mov ecx, dword [ecx + 4]
xor ecx, dword [eax + 4]
mov eax, ecx
shr eax, 0x18
movzx esi, byte [eax + 0x57ebc8]
mov eax, ecx
shr eax, 0x10
movzx eax, al
shl esi, 8
movzx eax, byte [eax + 0x57ecc8]
or esi, eax
mov eax, ecx
shr eax, 8
movzx eax, al
shl esi, 8
movzx eax, byte [eax + 0x57edc8]
or esi, eax
movzx eax, cl
shl esi, 8
movzx eax, byte [eax + 0x57eac8]
or esi, eax
mov eax, ebx
shr eax, 0x18
mov edx, esi
rol edx, 8
movzx ecx, byte [eax + 0x57eac8]
mov eax, ebx
shr eax, 0x10
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x57ebc8]
or ecx, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x57ecc8]
or ecx, eax
movzx eax, bl
shl ecx, 8
movzx eax, byte [eax + 0x57edc8]
or ecx, eax
xor edx, ecx
mov ecx, dword [ebp + 0x10]
mov eax, edx
rol eax, 0x10
xor esi, eax
mov eax, esi
ror eax, 8
xor edx, eax
mov eax, edx
ror eax, 8
xor eax, dword [ecx]
xor eax, esi
xor dword [ecx + 4], edx
pop esi
mov dword [ecx], eax
pop ebx
pop ebp
ret