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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ecx + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov ecx, dword [eax + 0x28]
imul ecx, dword [ebp + 0xc]
movsx esi, word [ebx]
push edi
mov dword [ebp + 0xc], esi
add ecx, dword [eax + 8]
mov eax, dword [ebp + 8]
lea edi, [ecx + eax*4]
test esi, esi
jle 0x569939
mov eax, dword [ebp + 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x56991a
cmp eax, 0xff
jne 0x5698c0
push esi
push 0xff000000
push edi
call fcn.0053596e
add esp, 0xc
jmp 0x56991a
mov ecx, eax
mov dword [ebp - 4], esi
shl ecx, 0x18
mov dword [ebp - 8], ecx
mov ecx, 0x100
sub ecx, eax
mov eax, 0xff00ff
mov dword [ebp + 8], ecx
mov ebx, ecx
dec esi
mov ecx, dword [edi + esi*4]
mov edx, ecx
and edx, eax
mov eax, ecx
imul edx, ebx
shr eax, 8
and eax, 0xffff00ff
shr ecx, 8
imul eax, ebx
shr edx, 8
xor edx, eax
mov eax, 0xff00ff
and ecx, eax
and edx, eax
imul ecx, ebx
xor edx, ecx
add edx, dword [ebp - 8]
mov dword [edi + esi*4], edx
test esi, esi
jg 0x5698dc
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
lea ebx, [ebx + esi*2]
add eax, esi
mov dword [ebp + 0x14], ebx
lea edi, [edi + esi*4]
mov dword [ebp + 0x10], eax
movsx esi, word [ebx]
mov dword [ebp + 0xc], esi
test esi, esi
jg 0x5698a1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x56a142
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov dl, byte [ebp + 0x14]
push esi
mov esi, ecx
test dl, dl
je 0x56a210
cmp dword [esi + 0x20], 0
je 0x56a210
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, dword [esi + 0xc]
mov ebx, 0xff
mov esi, dword [esi + 0x14]
mov ecx, dword [edi + 0x28]
imul ecx, dword [ebp + 0xc]
add ecx, dword [edi + 8]
lea ecx, [ecx + eax*4]
mov dword [ebp + 0x14], ecx
cmp dl, bl
je 0x56a1b6
mov ecx, esi
movzx edx, dl
mov eax, esi
and ecx, 0xff00ff
inc edx
shr eax, 8
imul ecx, edx
and eax, 0xffff00ff
imul eax, edx
shr esi, 8
shr ecx, 8
xor ecx, eax
mov eax, 0xff00ff
and esi, eax
and ecx, eax
imul esi, edx
xor esi, ecx
mov ecx, dword [ebp + 0x14]
mov eax, esi
shr eax, 0x18
sub ebx, eax
mov eax, dword [edi + 0x28]
mov edi, dword [ebp + 0x10]
sub edi, 1
mov dword [ebp + 0xc], eax
js 0x56a20e
mov eax, 0xff00ff
mov ecx, dword [ecx]
mov edx, ecx
and edx, eax
mov eax, ecx
imul edx, ebx
shr eax, 8
and eax, 0xffff00ff
shr ecx, 8
imul eax, ebx
shr edx, 8
xor edx, eax
mov eax, 0xff00ff
and ecx, eax
and edx, eax
imul ecx, ebx
xor edx, ecx
mov ecx, dword [ebp + 0x14]
add edx, esi
mov dword [ecx], edx
add ecx, dword [ebp + 0xc]
sub edi, 1
mov dword [ebp + 0x14], ecx
jns 0x56a1d0
pop edi
pop ebx
pop esi
pop ebp
ret 0x10
Function at 0x56a992
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0xc]
sar ebx, 3
sub eax, edi
mov dword [ebp + 8], eax
movzx ecx, word [eax + edi]
movzx eax, word [edi]
mov esi, ecx
mov edx, eax
and esi, 0x7e0
shl esi, 0x10
and edx, 0x7e0
or esi, ecx
shl edx, 0x10
or edx, eax
and esi, 0xfffff81f
and edx, 0xfffff81f
sub esi, edx
imul esi, ebx
shr esi, 5
add esi, edx
mov eax, esi
shr eax, 0x10
xor eax, esi
and eax, 0x7e0
xor eax, esi
mov word [edi], ax
lea edi, [edi + 2]
mov eax, dword [ebp + 0x14]
dec eax
mov dword [ebp + 0x14], eax
test eax, eax
mov eax, dword [ebp + 8]
jg 0x56a9a9
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x56b253
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov edx, ecx
and edx, 0xffffff00
movzx eax, cl
shl edx, 0xe
or edx, eax
mov eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
shr eax, 3
mov esi, 0x100
shr ecx, 0x18
and eax, 0x1fe000
shl edx, 2
sub esi, ecx
push edi
mov edi, dword [ebp + 0xc]
or edx, eax
shr esi, 3
movzx eax, word [edi]
mov ecx, eax
and ecx, 0x7e0
shl ecx, 0x10
or ecx, eax
and ecx, 0xfffff81f
imul ecx, esi
add ecx, edx
shr ecx, 5
mov eax, ecx
shr eax, 0x10
xor eax, ecx
and eax, 0x7e0
xor eax, ecx
mov word [edi], ax
lea edi, [edi + 2]
sub ebx, 1
jne 0x56b28e
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x56b42f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ecx + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov edx, dword [eax + 0x28]
imul edx, dword [ebp + 0xc]
add edx, dword [eax + 8]
mov eax, dword [ebp + 8]
lea esi, [edx + eax*2]
mov eax, dword [ecx + 0x14]
movsx edx, word [edi]
mov dword [ebp + 8], eax
mov eax, dword [ecx + 0x18]
mov dword [ebp + 0xc], eax
test edx, edx
jle 0x56b4e5
push ebx
mov ebx, dword [ebp + 0x10]
movzx ecx, byte [ebx]
lea edi, [edi + edx*2]
add ebx, edx
mov dword [ebp + 0x14], edi
mov dword [ebp + 0x10], ebx
lea eax, [edx + edx]
test ecx, ecx
je 0x56b4db
lea eax, [ecx + 1]
imul eax, dword [ebp + 0xc]
push 0x20
shr eax, 0xb
mov ecx, eax
imul ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov ebx, dword [ebp - 4]
pop ecx
sub ecx, eax
mov dword [ebp - 8], ecx
mov edi, ecx
movzx eax, word [esi]
mov ecx, eax
and ecx, 0x7e0
shl ecx, 0x10
or ecx, eax
and ecx, 0xfffff81f
imul ecx, edi
add ecx, ebx
shr ecx, 5
mov eax, ecx
shr eax, 0x10
xor eax, ecx
and eax, 0x7e0
xor eax, ecx
mov word [esi], ax
add esi, 2
sub edx, 1
jne 0x56b49c
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
jmp 0x56b4dd
add esi, eax
movsx edx, word [edi]
test edx, edx
jg 0x56b467
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x56b4ed
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ecx + 0xc]
push ebx
push esi
push edi
mov edx, dword [eax + 0x28]
imul edx, dword [ebp + 0xc]
movzx edi, word [ecx + 0x1e]
mov dword [ebp - 8], edi
add edx, dword [eax + 8]
mov eax, dword [ebp + 8]
lea ebx, [edx + eax*2]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0xc], edx
mov dl, byte [ecx + 0x22]
movzx ecx, word [ecx + 0x20]
mov byte [ebp + 0xb], dl
xor edx, edx
cmp byte [ebp + 0xb], dl
mov dword [ebp - 4], ecx
setne dl
xor eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], edx
test edx, eax
je 0x56b543
movzx eax, cx
movzx ecx, di
mov edi, eax
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edi
mov edx, dword [ebp + 0x14]
jmp 0x56b602
mov eax, dword [ebp + 0x10]
lea edx, [edx + esi*2]
add dword [ebp + 0x10], esi
mov dword [ebp + 0x14], edx
movzx eax, byte [eax]
test eax, eax
je 0x56b586
cmp eax, 0xff
jne 0x56b5a1
cmp byte [ebp + 0xb], 0
push esi
je 0x56b579
push ecx
push edi
push ebx
call fcn.0056c152
add esp, 0x10
jmp 0x56b583
push edi
push ebx
call fcn.0053588f
add esp, 0xc
mov edx, dword [ebp + 0x14]
lea ebx, [ebx + esi*2]
test dword [ebp - 0x18], esi
je 0x56b5ff
mov eax, dword [ebp - 4]
movzx eax, ax
movzx ecx, di
mov edi, eax
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edi
jmp 0x56b602
inc eax
mov edi, esi
shr eax, 3
mov ecx, eax
imul ecx, dword [ebp - 0xc]
push 0x20
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
pop ecx
sub ecx, eax
mov dword [ebp - 0x14], ecx
mov esi, ecx
movzx eax, word [ebx]
mov ecx, eax
and ecx, 0x7e0
shl ecx, 0x10
or ecx, eax
and ecx, 0xfffff81f
imul ecx, esi
add ecx, edx
shr ecx, 5
mov eax, ecx
shr eax, 0x10
xor eax, ecx
and eax, 0x7e0
xor eax, ecx
mov word [ebx], ax
add ebx, 2
sub edi, 1
jne 0x56b5bd
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp - 8]
mov edx, dword [ebp + 0x14]
jmp 0x56b589
mov ecx, dword [ebp - 4]
movsx esi, word [edx]
mov dword [ebp + 0xc], esi
test esi, esi
jg 0x56b54b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x56bb80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x18], 0
jne 0x56bbb4
movzx eax, word [edi + 0x1c]
push eax
mov eax, 0x100
sub eax, dword [edi + 0x18]
push eax
push dword [ebp + 0xc]
push ecx
push dword [edi + 0xc]
call fcn.0056adb5
add esp, 0x14
jmp 0x56bc79
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [edi + 0xc]
mov ecx, dword [edx]
mov eax, dword [esi + 0x28]
imul eax, dword [edx + 4]
lea eax, [eax + ecx*2]
add eax, dword [esi + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x14]
mov dword [ebp + 0xc], ebx
mov ebx, dword [edx + 4]
sub ebx, dword [eax + 8]
imul ebx, dword [ebp + 0xc]
sub ebx, dword [eax + 4]
add ebx, dword [eax]
mov eax, dword [edx + 8]
add ebx, ecx
sub eax, ecx
mov ecx, dword [edx + 0xc]
sub ecx, dword [edx + 4]
mov edx, dword [edi + 0x18]
mov dword [ebp + 8], ecx
mov ecx, dword [esi + 0x28]
mov esi, dword [ebp - 0xc]
mov dword [ebp - 4], eax
add eax, eax
sub ecx, eax
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
sub dword [ebp + 0xc], eax
mov dword [ebp - 0x14], ecx
mov ecx, dword [edi + 0x14]
mov dword [ebp - 0x10], ecx
mov edi, eax
movzx ecx, byte [ebx]
inc ebx
movzx eax, word [esi]
inc ecx
imul ecx, edx
mov edx, eax
and edx, 0x7e0
shl edx, 0x10
or edx, eax
and edx, 0xfffff81f
shr ecx, 0xb
push 0x20
pop eax
sub eax, ecx
imul ecx, dword [ebp - 0x10]
imul edx, eax
add edx, ecx
shr edx, 5
mov eax, edx
shr eax, 0x10
xor eax, edx
and eax, 0x7e0
xor eax, edx
mov edx, dword [ebp - 8]
mov word [esi], ax
add esi, 2
sub edi, 1
jne 0x56bc1a
add esi, dword [ebp - 0x14]
add ebx, dword [ebp + 0xc]
sub dword [ebp + 8], 1
mov eax, dword [ebp - 4]
jne 0x56bc18
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x56bc80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
mov dword [ebp - 8], ecx
cmp dword [edx + 0x18], 0
jne 0x56bcab
movzx eax, word [ecx + 0x1c]
push eax
push dword [ebp + 0xc]
push edx
push dword [ecx + 0xc]
call fcn.0056af96
add esp, 0x10
jmp 0x56bd5f
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ecx + 0xc]
mov ecx, dword [edx]
push edi
mov eax, dword [esi + 0x28]
imul eax, dword [edx + 4]
lea ebx, [eax + ecx*2]
mov eax, dword [ebp + 8]
add ebx, dword [esi + 8]
mov edi, dword [eax + 0x14]
mov dword [ebp + 0xc], edi
mov edi, dword [edx + 4]
sub edi, dword [eax + 8]
imul edi, dword [ebp + 0xc]
sub edi, dword [eax + 4]
add edi, dword [eax]
mov eax, dword [edx + 8]
add edi, ecx
sub eax, ecx
mov ecx, dword [edx + 0xc]
sub ecx, dword [edx + 4]
mov dword [ebp - 4], eax
add eax, eax
mov dword [ebp + 8], ecx
mov ecx, dword [esi + 0x28]
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 4]
sub dword [ebp + 0xc], ecx
mov eax, dword [eax + 0x14]
mov dword [ebp - 8], eax
mov esi, ecx
movzx eax, word [ebx]
movzx edx, byte [edi]
mov ecx, eax
and ecx, 0x7e0
shl ecx, 0x10
or ecx, eax
mov eax, dword [ebp - 8]
and ecx, 0xfffff81f
inc edx
sub eax, ecx
shr edx, 3
imul edx, eax
shr edx, 5
add edx, ecx
mov eax, edx
shr eax, 0x10
xor eax, edx
and eax, 0x7e0
xor eax, edx
inc edi
mov word [ebx], ax
add ebx, 2
sub esi, 1
jne 0x56bd09
add ebx, dword [ebp - 0xc]
add edi, dword [ebp + 0xc]
sub dword [ebp + 8], 1
mov ecx, dword [ebp - 4]
jne 0x56bd07
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x56bdaa
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ecx + 0xc]
push ebx
movzx ebx, word [ecx + 0x1c]
push esi
mov eax, dword [edx + 0x28]
imul eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push edi
add eax, dword [edx + 8]
cmp byte [ecx + 0x22], 0
lea edi, [eax + esi*2]
mov eax, dword [edx + 0x28]
mov dword [ebp - 8], eax
je 0x56be1a
movzx ecx, word [ecx + 0x20]
mov eax, esi
xor eax, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test al, 1
je 0x56bdef
movzx eax, cx
mov ecx, ebx
mov dword [ebp - 4], ecx
mov ebx, eax
mov esi, dword [ebp + 0x14]
jmp 0x56be13
push dword [ebp + 0x10]
push ecx
push ebx
push edi
call fcn.0056c152
mov eax, dword [ebp - 4]
add esp, 0x10
add edi, dword [ebp - 8]
movzx ecx, bx
movzx eax, ax
mov dword [ebp - 4], ecx
mov ebx, eax
sub esi, 1
jns 0x56bdf4
jmp 0x56be34
mov esi, dword [ebp + 0x14]
jmp 0x56be2f
push dword [ebp + 0x10]
push ebx
push edi
call fcn.0053588f
add esp, 0xc
add edi, dword [ebp - 8]
sub esi, 1
jns 0x56be1f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x56c019
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ecx + 0xc]
push edi
mov edi, dword [ecx + 0x14]
push 0x20
mov edx, dword [esi + 0x28]
imul edx, dword [ebp + 0xc]
pop ebx
add edx, dword [esi + 8]
lea edx, [edx + eax*2]
mov eax, dword [esi + 0x28]
mov esi, dword [ebp + 0x10]
mov dword [ebp + 0xc], eax
movzx eax, byte [ebp + 0x14]
inc eax
imul eax, dword [ecx + 0x18]
shr eax, 0xb
imul edi, eax
sub ebx, eax
movzx eax, word [edx]
mov ecx, eax
and ecx, 0x7e0
shl ecx, 0x10
or ecx, eax
and ecx, 0xfffff81f
imul ecx, ebx
add ecx, edi
shr ecx, 5
mov eax, ecx
shr eax, 0x10
xor eax, ecx
and eax, 0x7e0
xor eax, ecx
mov word [edx], ax
add edx, dword [ebp + 0xc]
sub esi, 1
jne 0x56c052
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x56c090
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ecx + 0xc]
push edi
mov edi, dword [ecx + 0x14]
push 0x20
mov edx, dword [esi + 0x28]
imul edx, dword [ebp + 0xc]
pop ebx
add edx, dword [esi + 8]
lea edx, [edx + eax*2]
mov eax, dword [esi + 0x28]
mov esi, dword [ebp + 0x10]
mov dword [ebp + 0xc], eax
movzx eax, byte [ebp + 0x14]
inc eax
shr eax, 3
imul edi, eax
sub ebx, eax
movzx eax, word [edx]
mov ecx, eax
and ecx, 0x7e0
shl ecx, 0x10
or ecx, eax
and ecx, 0xfffff81f
imul ecx, ebx
add ecx, edi
shr ecx, 5
mov eax, ecx
shr eax, 0x10
xor eax, ecx
and eax, 0x7e0
xor eax, ecx
mov word [edx], ax
add edx, dword [ebp + 0xc]
sub esi, 1
jne 0x56c0c5
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x588efd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call fcn.00588e9b
movss xmm0, dword [ebp + 0x14]
xor ecx, ecx
movss xmm1, dword [0x710b98]
addss xmm0, xmm0
mov al, byte [ebp + 0x18]
movaps xmm3, xmm1
mov byte [esi + 0x164], al
xorps xmm2, xmm2
mov eax, dword [esi + 0xfc]
mov dword [esi], vtable.GrConvolutionEffect.0
mulss xmm0, dword [ebp + 0x14]
mov dword [ebp + 0x14], ecx
lea edi, [eax*2 + 1]
movss dword [ebp + 0x18], xmm2
divss xmm3, xmm0
movss dword [ebp + 8], xmm3
test edi, edi
jle 0x588fd9
lea eax, [esi + 0x100]
mov dword [ebp + 0x10], eax
mov eax, ecx
sub eax, dword [esi + 0xfc]
push ecx
push ecx
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm0
mulss xmm0, xmm3
xorps xmm0, xmmword [0x710b80]
cvtss2sd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.00501920
mov eax, dword [ebp + 0x10]
movss xmm2, dword [ebp + 0x18]
movss xmm3, dword [ebp + 8]
fstp dword [ebp + 0xc]
movss xmm0, dword [ebp + 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp + 0x14]
addss xmm2, xmm0
inc ecx
movss dword [eax], xmm0
add eax, 4
mov dword [ebp + 0x14], ecx
mov dword [ebp + 0x10], eax
movss dword [ebp + 0x18], xmm2
cmp ecx, edi
jl 0x588f6e
movss xmm1, dword [0x710b98]
divss xmm1, xmm2
test edi, edi
jle 0x588ffb
lea eax, [esi + 0x100]
movss xmm0, dword [eax]
mulss xmm0, xmm1
movss dword [eax], xmm0
lea eax, [eax + 4]
sub edi, 1
jne 0x588fe7
push 8
push dword [ebp + 0x1c]
lea eax, [esi + 0x168]
push eax
call fcn.004e9970
add esp, 0xc
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18

Function at 0x59ef6b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ecx + 0xc]
mov eax, dword [edi + 0x28]
imul eax, esi
sub esi, dword [ecx + 0x18]
add eax, dword [edi + 8]
lea ebx, [eax + edx*2]
mov eax, dword [ecx + 0x10]
sub edx, dword [ecx + 0x14]
mov dword [ebp + 0xc], ebx
imul esi, dword [eax + 0x28]
lea esi, [esi + edx*2]
mov edx, dword [edi + 0x28]
add esi, dword [eax + 8]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], eax
movzx eax, byte [ecx + 0x20]
mov edx, eax
mov dword [ebp + 8], esi
shr edx, 3
add edx, eax
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x10]
mov edi, esi
mov dword [ebp - 8], ebx
sub edi, ebx
mov esi, ebx
mov ebx, eax
movzx eax, word [edi + esi]
mov ecx, eax
and eax, 0xf0f
and ecx, 0xf0f0
shl ecx, 0xc
or ecx, eax
movzx eax, word [esi]
imul ecx, edx
push eax
shr ecx, 4
mov eax, ecx
shr eax, 0xc
xor eax, ecx
shr ecx, 0xc
and eax, 0xf0f
xor eax, ecx
push eax
call fcn.0059ed37
mov edx, dword [ebp - 4]
mov word [esi], ax
lea esi, [esi + 2]
pop ecx
pop ecx
sub ebx, 1
jne 0x59efca
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
add ebx, dword [ebp - 0x10]
add esi, dword [ebp - 0x14]
sub dword [ebp + 0x14], 1
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], esi
jne 0x59efbc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x59f96a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ecx + 0xc]
mov eax, dword [edi + 0x28]
imul eax, esi
sub esi, dword [ecx + 0x18]
add eax, dword [edi + 8]
lea eax, [eax + edx*4]
sub edx, dword [ecx + 0x14]
mov dword [ebp + 0xc], eax
mov eax, dword [ecx + 0x10]
mov ecx, dword [edi + 0x28]
mov dword [ebp - 0xc], ecx
imul esi, dword [eax + 0x28]
lea ebx, [esi + edx*2]
add ebx, dword [eax + 8]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 4], ecx
mov ecx, ebx
mov dword [ebp + 8], ecx
mov ebx, eax
movzx eax, word [ecx]
mov edi, dword [ebx]
push eax
call fcn.0059f820
mov esi, eax
mov edx, 0x100
pop ecx
mov ecx, esi
mov eax, edi
shr ecx, 0x18
sub edx, ecx
shr eax, 8
mov ecx, edi
and eax, 0xffff00ff
and ecx, 0xff00ff
imul eax, edx
imul ecx, edx
shr edi, 8
shr ecx, 8
xor ecx, eax
mov eax, 0xff00ff
and edi, eax
and ecx, eax
imul edi, edx
xor ecx, edi
add ecx, esi
mov dword [ebx], ecx
lea ebx, [ebx + 4]
mov ecx, dword [ebp + 8]
add ecx, 2
sub dword [ebp - 4], 1
mov dword [ebp + 8], ecx
jne 0x59f9bd
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 8]
add eax, dword [ebp - 0xc]
add ebx, dword [ebp - 0x10]
sub dword [ebp + 0x14], 1
mov dword [ebp + 0xc], eax
mov dword [ebp - 8], ebx
jne 0x59f9b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x5a236f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
movzx eax, byte [ecx + 9]
xor edx, edx
shr eax, 2
push ebx
mov dword [ebp - 8], eax
mov eax, dword [ecx + 0xc]
push esi
movzx esi, byte [ecx + 0xa]
mov dword [ebp - 0x14], eax
add eax, 0xffffc000
push edi
mov edi, dword [ecx + 8]
shl eax, 5
shr edi, 3
shr esi, 3
and edi, 0x1f
cmp dword [ecx + 0x14], 1
mov dword [ebp - 0x18], eax
push 0x1f
pop eax
cmovne eax, edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x10], eax
xor eax, eax
cmp dword [ecx + 0x14], 1
mov dword [ebp - 0x20], edi
setne al
xor ebx, ebx
dec eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0x10], edx
jle 0x5a24e4
mov eax, dword [ebp + 8]
movzx eax, word [eax + ebx*2]
movzx edx, ax
mov dword [ebp - 0x1c], eax
mov eax, edx
shr eax, 0xb
sub eax, esi
mov esi, eax
neg esi
test eax, eax
cmovns esi, eax
mov eax, edx
shr eax, 5
and eax, 0x3f
sub eax, dword [ebp - 8]
mov ecx, eax
neg ecx
test eax, eax
cmovns ecx, eax
and edx, 0x1f
sub edx, edi
sar ecx, 1
mov eax, edx
neg eax
test edx, edx
cmovns eax, edx
cmp ecx, eax
cmovge eax, ecx
cmp esi, eax
cmovge eax, esi
xor eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x10]
mov esi, eax
sar esi, 4
add esi, eax
imul esi, dword [ebp - 0x14]
sub esi, dword [ebp - 0x18]
add esi, 0x2000
sar esi, 0xe
test esi, esi
jle 0x5a24d1
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x5a2465
movzx eax, byte [edx]
mov ecx, eax
shr ecx, 7
add ecx, eax
imul esi, ecx
shr esi, 8
inc edx
mov dword [ebp + 0x14], edx
test esi, esi
je 0x5a24d1
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1c]
movzx eax, ax
mov edi, eax
shl esi, 3
mov ebx, dword [ecx + ebx*4]
and edi, 0x1f
mov ecx, eax
mov edx, ebx
shr eax, 0xb
shr edx, 0x13
and edx, 0x1f
shr ecx, 5
sub edx, eax
and ecx, 0x3f
imul edx, esi
sar edx, 8
add edx, eax
mov eax, ebx
shr eax, 0xa
and eax, 0x3f
shr ebx, 3
sub eax, ecx
shl edx, 0xb
and ebx, 0x1f
imul eax, esi
sub ebx, edi
imul ebx, esi
sar eax, 8
add eax, ecx
shl eax, 5
sar ebx, 8
or edx, eax
mov eax, dword [ebp + 8]
add ebx, edi
mov edi, dword [ebp - 0x20]
or edx, ebx
mov ebx, dword [ebp - 4]
mov word [eax + ebx*2], dx
jmp 0x5a24d4
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x24]
inc ebx
mov dword [ebp - 4], ebx
cmp ebx, dword [ebp + 0x10]
jl 0x5a23d6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x5a24ed
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
movzx eax, byte [ecx + 0xa]
xor edx, edx
mov dword [ebp - 0xc], eax
movzx eax, byte [ecx + 9]
mov dword [ebp - 0x10], eax
movzx eax, byte [ecx + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ecx + 0xc]
push ebx
push edi
mov dword [ebp - 0x1c], eax
lea edi, [eax - 0x4000]
mov eax, 0xff
shl edi, 8
cmp dword [ecx + 0x14], 1
mov dword [ebp - 0x24], edi
cmovne eax, edx
xor ebx, ebx
cmp dword [ecx + 0x14], 1
mov dword [ebp - 0x18], eax
setne bl
dec ebx
mov dword [ebp - 0x28], ebx
cmp dword [ebp + 0x10], edx
jle 0x5a2683
push esi
mov esi, dword [ebp + 8]
sub dword [ebp + 0xc], esi
mov edx, dword [esi]
mov eax, edx
shr eax, 0x10
movzx eax, al
sub eax, dword [ebp - 0xc]
mov esi, eax
mov dword [ebp - 8], edx
neg esi
test eax, eax
cmovns esi, eax
mov eax, edx
shr eax, 8
movzx eax, al
sub eax, dword [ebp - 0x10]
mov ecx, eax
neg ecx
test eax, eax
cmovns ecx, eax
movzx eax, dl
sub eax, dword [ebp - 0x14]
mov edx, eax
neg edx
test eax, eax
cmovns edx, eax
cmp ecx, edx
cmovge edx, ecx
cmp esi, edx
cmovge edx, esi
xor edx, ebx
sub edx, ebx
add edx, dword [ebp - 0x18]
mov ebx, edx
shr ebx, 7
add ebx, edx
imul ebx, dword [ebp - 0x1c]
sub ebx, edi
add ebx, 0x2000
sar ebx, 0xe
mov dword [ebp - 4], ebx
test ebx, ebx
jle 0x5a266c
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x5a25de
movzx eax, byte [edx]
mov ecx, eax
shr ecx, 7
add eax, ecx
imul eax, ebx
shr eax, 8
inc edx
mov dword [ebp - 4], eax
mov dword [ebp + 0x14], edx
test eax, eax
je 0x5a266c
mov ecx, dword [ebp - 8]
mov ebx, ecx
mov esi, dword [ebp + 0xc]
mov eax, ecx
shr eax, 0x10
movzx edx, al
mov eax, ecx
shr eax, 8
movzx ecx, al
mov eax, dword [ebp - 8]
movzx edi, al
mov eax, dword [ebp + 8]
shr ebx, 0x18
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [esi + eax]
shr eax, 8
movzx esi, al
mov eax, dword [ebp + 8]
sub esi, ecx
imul esi, dword [ebp - 4]
sar esi, 8
add esi, ecx
mov ecx, dword [ebx + eax]
mov eax, ecx
shl esi, 8
shr eax, 0x10
movzx eax, al
sub eax, edx
imul eax, dword [ebp - 4]
sar eax, 8
add eax, edx
shl eax, 0x10
or esi, eax
mov eax, ecx
shr eax, 0x18
sub eax, dword [ebp - 0x20]
imul eax, dword [ebp - 4]
sar eax, 8
add eax, dword [ebp - 0x20]
shl eax, 0x18
or esi, eax
movzx eax, cl
sub eax, edi
imul eax, dword [ebp - 4]
sar eax, 8
add eax, edi
mov edi, dword [ebp - 0x24]
or esi, eax
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov esi, dword [ebp + 8]
mov ebx, dword [ebp - 0x28]
add esi, 4
sub dword [ebp + 0x10], 1
mov dword [ebp + 8], esi
jne 0x5a254a
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x10