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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, dword [ebp + 8]
mov bl, byte [esi]
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
mov byte [ebp - 1], bl
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], eax
test bl, 0x40
jne 0x4f9bec
push eax
lea eax, [esi + 0x10]
push eax
push esi
call ecx
add esp, 0xc
movzx eax, bl
mov edx, 0xf
and eax, 7
xor ecx, ecx
sub edx, eax
mov byte [esi], al
mov dword [ebp - 0x18], edx
cmp edx, 0xf
jae 0x4f9c18
movzx eax, byte [edx + esi]
or ecx, eax
mov byte [edx + esi], 0
inc edx
shl ecx, 8
cmp edx, 0xf
jb 0x4f9c05
movzx eax, byte [esi + 0xf]
mov ebx, dword [ebp + 0x14]
or ecx, eax
mov byte [esi + 0xf], 1
cmp ecx, ebx
je 0x4f9c32
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, ebx
shr edi, 4
test edi, edi
je 0x4f9c77
lea eax, [esi + 0x10]
push eax
push esi
push dword [ebp - 8]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
add esp, 0x18
shl edi, 4
add eax, edi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
add eax, edi
mov dword [ebp + 0x14], eax
sub ebx, edi
je 0x4f9ce5
shr edi, 4
push edi
push esi
call fcn.004fa370
add esp, 8
jmp 0x4f9c83
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
test ebx, ebx
je 0x4f9ce5
push dword [ebp - 8]
lea eax, [ebp - 0x28]
push eax
push esi
call dword [ebp - 0x10]
add esp, 0xc
xor edi, edi
test ebx, ebx
je 0x4f9cd4
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x28]
sub eax, ecx
sub dword [ebp + 0x14], ecx
lea ecx, [esi + 0x10]
mov dword [ebp - 0xc], eax
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x28]
add ecx, edi
movzx edx, byte [eax + ecx]
movzx eax, byte [ecx]
xor edx, eax
mov eax, dword [ebp - 0x14]
mov byte [esi + ecx], dl
xor byte [eax + edi], dl
inc edi
mov eax, dword [ebp - 0xc]
cmp edi, ebx
jb 0x4f9cb2
mov esi, dword [ebp + 8]
mov ebx, dword [ebp - 8]
lea eax, [esi + 0x10]
push ebx
push eax
push eax
call dword [ebp - 0x10]
add esp, 0xc
jmp 0x4f9ce8
mov ebx, dword [ebp - 8]
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jae 0x4f9d0a
mov ecx, 0x10
lea edi, [edx + esi]
sub ecx, edx
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push ebx
lea eax, [ebp - 0x28]
push eax
push esi
call dword [ebp - 0x10]
mov eax, dword [ebp - 0x28]
add esp, 0xc
xor dword [esi + 0x10], eax
mov eax, dword [ebp - 0x24]
xor dword [esi + 0x14], eax
mov eax, dword [ebp - 0x20]
xor dword [esi + 0x18], eax
mov eax, dword [ebp - 0x1c]
xor dword [esi + 0x1c], eax
mov al, byte [ebp - 1]
pop edi
mov byte [esi], al
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4fb6b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
sub esp, 0x10
xor ecx, ecx
test edx, edx
je 0x4fb785
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
cmp edx, 0x20
jb 0x4fb763
lea eax, [ebx - 1]
add eax, edx
cmp esi, eax
ja 0x4fb6ea
lea eax, [esi - 1]
add eax, edx
cmp eax, ebx
jae 0x4fb763
lea eax, [edi - 1]
add eax, edx
cmp esi, eax
ja 0x4fb6fc
lea eax, [esi - 1]
add eax, edx
cmp eax, edi
jae 0x4fb763
mov eax, edx
mov edx, edi
sub edx, ebx
and eax, 0xffffffe0
mov dword [ebp - 4], edx
mov edx, esi
sub edx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edx
mov eax, ebx
mov ebx, dword [ebp - 8]
mov edx, edi
mov edi, dword [ebp - 4]
sub edx, esi
mov dword [ebp - 0xc], edx
lea edx, [esi + 0x10]
movups xmm0, xmmword [eax]
mov esi, dword [ebp - 0xc]
add ecx, 0x20
lea eax, [eax + 0x20]
lea edx, [edx + 0x20]
movups xmm1, xmmword [edi + eax - 0x20]
pxor xmm1, xmm0
movups xmmword [ebx + eax - 0x20], xmm1
movups xmm1, xmmword [esi + edx - 0x20]
mov esi, dword [ebp + 0x14]
movups xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movups xmmword [edx - 0x20], xmm1
cmp ecx, dword [ebp - 0x10]
jb 0x4fb724
mov edx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
cmp ecx, edx
jae 0x4fb782
sub edi, ebx
lea eax, [ecx + ebx]
sub esi, ebx
sub edx, ecx
mov cl, byte [eax + edi]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
mov byte [eax + esi - 1], cl
sub edx, 1
jne 0x4fb770
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4fb790
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0x14]
cmp esi, ebx
jbe 0x4fb83e
mov ecx, dword [edi + 0x18]
cmp esi, ecx
jb 0x4fb7e4
mov eax, esi
sub eax, ecx
add eax, 4
and eax, 0xfffffffc
add eax, ecx
push 0x7a
mov dword [edi + 0x18], eax
push str.........prog3rdPartyLibsopenssl_1.1cryptomodesocb128.c
shl eax, 4
push eax
push dword [edi + 0x40]
call fcn.004600c0
add esp, 0x10
test eax, eax
jne 0x4fb7e1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x40], eax
cmp ebx, esi
jae 0x4fb83b
mov eax, esi
mov ecx, ebx
sub eax, ebx
shl ecx, 4
add ebx, eax
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov esi, edi
mov dword [ebp - 0xc], ebx
nop
add ecx, dword [esi + 0x40]
mov al, byte [ecx]
lea edi, [ecx + 0x10]
push edi
shr al, 7
movzx eax, al
push 1
push ecx
imul ebx, eax, 0x87
call fcn.004fb640
mov ecx, dword [ebp - 4]
add esp, 0xc
xor byte [edi + 0xf], bl
add ecx, 0x10
sub dword [ebp - 8], 1
mov dword [ebp - 4], ecx
jne 0x4fb800
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 0xc]
mov dword [edi + 0x14], ebx
shl esi, 4
add esi, dword [edi + 0x40]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4fe5a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 0
je 0x4fe5b6
mov dword [ebp + 0x1c], fcn.004fcda0
pop ebp
jmp fcn.004f7e80
mov dword [ebp + 0x1c], fcn.004fc070
pop ebp
jmp fcn.004f7c20

Function at 0x502420
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov ecx, dword [edx + 4]
mov esi, edx
push edi
mov edi, dword [ebp + 0x10]
cmp ecx, dword [edi + 4]
cmovge esi, edi
cmovge edi, edx
mov dword [ebp + 0xc], esi
push dword [edi + 4]
push ebx
call fcn.0047a0d0
add esp, 8
test eax, eax
jne 0x502455
pop edi
pop esi
pop ebx
pop ebp
ret
xor eax, eax
cmp dword [esi + 4], eax
jle 0x502478
nop dword [eax]
mov ecx, dword [edi]
mov edx, dword [esi]
mov esi, dword [ecx + eax*4]
xor esi, dword [edx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], esi
inc eax
mov esi, dword [ebp + 0xc]
cmp eax, dword [esi + 4]
jl 0x502460
cmp eax, dword [edi + 4]
jge 0x502490
nop dword [eax]
mov ecx, dword [edi]
mov edx, dword [ebx]
mov ecx, dword [ecx + eax*4]
mov dword [edx + eax*4], ecx
inc eax
cmp eax, dword [edi + 4]
jl 0x502480
mov eax, dword [edi + 4]
push ebx
mov dword [ebx + 4], eax
call fcn.00479eb0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x5087c0
Capabilities:
Encode data using xor
Encrypt data using blowfish
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x1048
push 0x5da4e0
push esi
call fcn.005849d0
mov ebx, dword [ebp + 0x10]
mov edi, 0x48
add esp, 0xc
mov dword [ebp + 8], 0
cmp dword [ebp + 0xc], edi
mov eax, ebx
cmovle edi, dword [ebp + 0xc]
add edi, ebx
nop dword [eax]
movzx edx, byte [eax]
inc eax
cmp eax, edi
cmovae eax, ebx
shl edx, 8
movzx ecx, byte [eax]
inc eax
or edx, ecx
cmp eax, edi
cmovae eax, ebx
shl edx, 8
movzx ecx, byte [eax]
inc eax
or edx, ecx
cmp eax, edi
cmovae eax, ebx
shl edx, 8
movzx ecx, byte [eax]
inc eax
or edx, ecx
mov ecx, dword [ebp + 8]
cmp eax, edi
cmovae eax, ebx
xor dword [esi + ecx*4], edx
inc ecx
mov dword [ebp + 8], ecx
cmp ecx, 0x12
jl 0x508800
mov dword [ebp - 8], 0
xor edi, edi
mov dword [ebp - 4], 0
lea eax, [ebp - 8]
push esi
push eax
call fcn.00509200
mov eax, dword [ebp - 8]
add esp, 8
mov dword [esi + edi*4], eax
mov eax, dword [ebp - 4]
mov dword [esi + edi*4 + 4], eax
add edi, 2
cmp edi, 0x12
jl 0x508852
xor edi, edi
lea eax, [ebp - 8]
push esi
push eax
call fcn.00509200
mov eax, dword [ebp - 8]
add esp, 8
mov dword [esi + edi*4 + 0x48], eax
mov eax, dword [ebp - 4]
mov dword [esi + edi*4 + 0x4c], eax
add edi, 2
cmp edi, 0x400
jl 0x508876
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5097c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0x18]
lea edx, [eax + 1]
mov dword [ebp - 4], 0
movzx ecx, byte [edx + 3]
movzx ebx, byte [eax]
movzx eax, byte [edx]
shl eax, 0x10
shl ebx, 0x18
or ebx, eax
shl ecx, 0x18
movzx eax, byte [edx + 1]
shl eax, 8
or ebx, eax
movzx eax, byte [edx + 2]
or ebx, eax
movzx eax, byte [edx + 4]
shl eax, 0x10
or ecx, eax
mov dword [ebp - 0xc], ebx
movzx eax, byte [edx + 6]
mov dword [ebp - 8], ecx
movzx ecx, byte [edx + 5]
mov edx, dword [ebp - 8]
shl ecx, 8
or ecx, eax
mov byte [ebp - 0x15], bl
mov eax, ebx
or edx, ecx
shr eax, 0x18
mov byte [ebp - 0x18], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0x17], al
mov eax, ebx
shr eax, 8
mov byte [ebp - 0x16], al
mov eax, edx
shr eax, 0x18
mov byte [ebp - 0x14], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 0x13], al
mov eax, edx
shr eax, 8
mov edi, dword [ebp + 0x1c]
mov byte [ebp - 0x12], al
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], edx
mov esi, dword [edi]
mov byte [ebp - 0x11], dl
test eax, eax
je 0x50992f
mov edi, dword [ebp + 0xc]
sub dword [ebp + 8], edi
nop word [eax + eax]
dec eax
mov dword [ebp + 0x10], eax
test esi, esi
jne 0x5098cc
push dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push eax
call fcn.00509200
mov ebx, dword [ebp - 0xc]
add esp, 8
mov edx, dword [ebp - 8]
mov eax, ebx
shr eax, 0x18
mov ecx, dword [ebp - 4]
mov byte [ebp - 0x18], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0x17], al
mov eax, ebx
shr eax, 8
mov byte [ebp - 0x16], al
mov eax, edx
shr eax, 0x18
mov byte [ebp - 0x14], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 0x13], al
mov eax, edx
shr eax, 8
inc ecx
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x12], al
mov byte [ebp - 0x11], dl
mov dword [ebp - 4], ecx
jmp 0x5098cf
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov al, byte [eax + edi]
xor al, byte [ebp + esi - 0x18]
inc esi
mov byte [edi], al
and esi, 7
mov eax, dword [ebp + 0x10]
inc edi
test eax, eax
jne 0x509870
test ecx, ecx
je 0x509923
mov edi, dword [ebp + 0x18]
mov eax, ebx
shr eax, 0x18
mov byte [edi], al
mov eax, ebx
shr eax, 0x10
mov byte [edi + 1], al
mov eax, ebx
shr eax, 8
mov byte [edi + 2], al
mov eax, edx
shr eax, 0x18
mov byte [edi + 3], bl
mov byte [edi + 4], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 5], al
mov eax, edx
shr eax, 8
mov byte [edi + 6], al
mov byte [edi + 7], dl
mov eax, dword [ebp + 0x1c]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50ba00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0x18]
lea edx, [eax + 1]
mov dword [ebp - 4], 0
movzx ecx, byte [edx + 3]
movzx ebx, byte [eax]
movzx eax, byte [edx]
shl eax, 0x10
shl ebx, 0x18
or ebx, eax
shl ecx, 0x18
movzx eax, byte [edx + 1]
shl eax, 8
or ebx, eax
movzx eax, byte [edx + 2]
or ebx, eax
movzx eax, byte [edx + 4]
shl eax, 0x10
or ecx, eax
mov dword [ebp - 0xc], ebx
movzx eax, byte [edx + 6]
mov dword [ebp - 8], ecx
movzx ecx, byte [edx + 5]
mov edx, dword [ebp - 8]
shl ecx, 8
or ecx, eax
mov byte [ebp - 0x15], bl
mov eax, ebx
or edx, ecx
shr eax, 0x18
mov byte [ebp - 0x18], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0x17], al
mov eax, ebx
shr eax, 8
mov byte [ebp - 0x16], al
mov eax, edx
shr eax, 0x18
mov byte [ebp - 0x14], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 0x13], al
mov eax, edx
shr eax, 8
mov edi, dword [ebp + 0x1c]
mov byte [ebp - 0x12], al
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], edx
mov esi, dword [edi]
mov byte [ebp - 0x11], dl
test eax, eax
je 0x50bb6f
mov edi, dword [ebp + 0xc]
sub dword [ebp + 8], edi
nop word [eax + eax]
dec eax
mov dword [ebp + 0x10], eax
test esi, esi
jne 0x50bb0c
push dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push eax
call fcn.0050b3c0
mov ebx, dword [ebp - 0xc]
add esp, 8
mov edx, dword [ebp - 8]
mov eax, ebx
shr eax, 0x18
mov ecx, dword [ebp - 4]
mov byte [ebp - 0x18], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0x17], al
mov eax, ebx
shr eax, 8
mov byte [ebp - 0x16], al
mov eax, edx
shr eax, 0x18
mov byte [ebp - 0x14], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 0x13], al
mov eax, edx
shr eax, 8
inc ecx
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x12], al
mov byte [ebp - 0x11], dl
mov dword [ebp - 4], ecx
jmp 0x50bb0f
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov al, byte [eax + edi]
xor al, byte [ebp + esi - 0x18]
inc esi
mov byte [edi], al
and esi, 7
mov eax, dword [ebp + 0x10]
inc edi
test eax, eax
jne 0x50bab0
test ecx, ecx
je 0x50bb63
mov edi, dword [ebp + 0x18]
mov eax, ebx
shr eax, 0x18
mov byte [edi], al
mov eax, ebx
shr eax, 0x10
mov byte [edi + 1], al
mov eax, ebx
shr eax, 8
mov byte [edi + 2], al
mov eax, edx
shr eax, 0x18
mov byte [edi + 3], bl
mov byte [edi + 4], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 5], al
mov eax, edx
shr eax, 8
mov byte [edi + 6], al
mov byte [edi + 7], dl
mov eax, dword [ebp + 0x1c]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50bb80
Capabilities:
Encrypt data using rc6

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
cmp ebx, 0x10
je 0x50bba4
cmp ebx, 0xc
je 0x50bba4
cmp ebx, 8
mov eax, 0x10
cmovne ebx, eax
mov eax, dword [ebp + 8]
xor esi, esi
mov edx, dword [ebp + 0xc]
mov dword [ebp + 8], esi
lea edi, [eax + 4]
mov dword [eax], ebx
lea eax, [edx - 8]
mov dword [ebp + 0x14], edi
test eax, eax
js 0x50bc30
add eax, 8
shr eax, 3
mov dword [ebp - 4], eax
mov edi, eax
shl eax, 3
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x10]
movzx ecx, byte [eax + 1]
movzx edx, byte [eax]
shl ecx, 8
or edx, ecx
movzx ecx, byte [eax + 2]
shl ecx, 0x10
or edx, ecx
movzx ecx, byte [eax + 3]
shl ecx, 0x18
or edx, ecx
movzx ecx, byte [eax + 5]
mov dword [ebp + esi*4 - 0x108], edx
movzx edx, byte [eax + 4]
shl ecx, 8
or edx, ecx
movzx ecx, byte [eax + 6]
shl ecx, 0x10
or edx, ecx
movzx ecx, byte [eax + 7]
shl ecx, 0x18
add eax, 8
or edx, ecx
mov dword [ebp + esi*4 - 0x104], edx
add esi, 2
sub edi, 1
jne 0x50bbd2
mov edi, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
jmp 0x50bc33
mov eax, dword [ebp + 0x10]
mov ecx, edx
sub ecx, dword [ebp + 8]
je 0x50bcab
mov ecx, edx
xor edi, edi
and ecx, 7
xor edx, edx
add eax, ecx
dec ecx
cmp ecx, 7
ja case.default.0x50bc4b
jmp dword [ecx*4 + 0x50bd54]
movzx edx, byte [eax - 1]
dec eax
shl edx, 0x18
movzx ecx, byte [eax - 1]
dec eax
shl ecx, 0x10
or edx, ecx
movzx ecx, byte [eax - 1]
dec eax
shl ecx, 8
or edx, ecx
movzx ecx, byte [eax - 1]
dec eax
or edx, ecx
movzx edi, byte [eax - 1]
dec eax
shl edi, 0x18
movzx ecx, byte [eax - 1]
dec eax
shl ecx, 0x10
or edi, ecx
movzx ecx, byte [eax - 1]
dec eax
shl ecx, 8
or edi, ecx
movzx eax, byte [eax - 1]
or edi, eax
mov dword [ebp + esi*4 - 0x108], edi
mov edi, dword [ebp + 0x14]
mov dword [ebp + esi*4 - 0x104], edx
mov edx, dword [ebp + 0xc]
lea eax, [edx + 3]
mov dword [edi], 0xb7e15163
cdq
lea ebx, [ebx*2 + 2]
and edx, 3
mov ecx, 1
add edx, eax
sar edx, 2
mov dword [ebp - 8], edx
cmp ebx, ecx
jle 0x50bce1
mov eax, dword [edi + ecx*4 - 4]
sub eax, 0x61c88647
mov dword [edi + ecx*4], eax
inc ecx
cmp ecx, ebx
jl 0x50bcd0
cmp ebx, edx
mov eax, edx
cmovg eax, ebx
xor ecx, ecx
xor edx, edx
mov dword [ebp + 8], ecx
xor esi, esi
lea eax, [eax + eax*2]
mov dword [ebp + 0xc], eax
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], eax
jle 0x50bd4a
add esi, edx
add esi, dword [edi + ecx*4]
rol esi, 3
mov dword [edi + ecx*4], esi
xor edi, edi
lea ecx, [edx + esi]
add edx, esi
add edx, dword [ebp + eax*4 - 0x108]
rol edx, cl
mov ecx, dword [ebp - 4]
mov dword [ebp + eax*4 - 0x108], edx
inc ecx
mov eax, dword [ebp + 8]
inc eax
cmp eax, ebx
cmovl edi, eax
xor eax, eax
cmp ecx, dword [ebp - 8]
mov dword [ebp + 8], edi
mov edi, dword [ebp + 0x14]
cmovl eax, ecx
sub dword [ebp + 0xc], 1
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], eax
jne 0x50bd01
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50bc52
Capabilities:
Encrypt data using rc6

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
cmp ebx, 0x10
je 0x50bba4
cmp ebx, 0xc
je 0x50bba4
cmp ebx, 8
mov eax, 0x10
cmovne ebx, eax
mov eax, dword [ebp + 8]
xor esi, esi
mov edx, dword [ebp + 0xc]
mov dword [ebp + 8], esi
lea edi, [eax + 4]
mov dword [eax], ebx
lea eax, [edx - 8]
mov dword [ebp + 0x14], edi
test eax, eax
js 0x50bc30
add eax, 8
shr eax, 3
mov dword [ebp - 4], eax
mov edi, eax
shl eax, 3
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x10]
movzx ecx, byte [eax + 1]
movzx edx, byte [eax]
shl ecx, 8
or edx, ecx
movzx ecx, byte [eax + 2]
shl ecx, 0x10
or edx, ecx
movzx ecx, byte [eax + 3]
shl ecx, 0x18
or edx, ecx
movzx ecx, byte [eax + 5]
mov dword [ebp + esi*4 - 0x108], edx
movzx edx, byte [eax + 4]
shl ecx, 8
or edx, ecx
movzx ecx, byte [eax + 6]
shl ecx, 0x10
or edx, ecx
movzx ecx, byte [eax + 7]
shl ecx, 0x18
add eax, 8
or edx, ecx
mov dword [ebp + esi*4 - 0x104], edx
add esi, 2
sub edi, 1
jne 0x50bbd2
mov edi, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
jmp 0x50bc33
mov eax, dword [ebp + 0x10]
mov ecx, edx
sub ecx, dword [ebp + 8]
je 0x50bcab
mov ecx, edx
xor edi, edi
and ecx, 7
xor edx, edx
add eax, ecx
dec ecx
cmp ecx, 7
ja case.default.0x50bc4b
jmp dword [ecx*4 + 0x50bd54]
movzx edx, byte [eax - 1]
dec eax
shl edx, 0x18
movzx ecx, byte [eax - 1]
dec eax
shl ecx, 0x10
or edx, ecx
movzx ecx, byte [eax - 1]
dec eax
shl ecx, 8
or edx, ecx
movzx ecx, byte [eax - 1]
dec eax
or edx, ecx
movzx edi, byte [eax - 1]
dec eax
shl edi, 0x18
movzx ecx, byte [eax - 1]
dec eax
shl ecx, 0x10
or edi, ecx
movzx ecx, byte [eax - 1]
dec eax
shl ecx, 8
or edi, ecx
movzx eax, byte [eax - 1]
or edi, eax
mov dword [ebp + esi*4 - 0x108], edi
mov edi, dword [ebp + 0x14]
mov dword [ebp + esi*4 - 0x104], edx
mov edx, dword [ebp + 0xc]
lea eax, [edx + 3]
mov dword [edi], 0xb7e15163
cdq
lea ebx, [ebx*2 + 2]
and edx, 3
mov ecx, 1
add edx, eax
sar edx, 2
mov dword [ebp - 8], edx
cmp ebx, ecx
jle 0x50bce1
mov eax, dword [edi + ecx*4 - 4]
sub eax, 0x61c88647
mov dword [edi + ecx*4], eax
inc ecx
cmp ecx, ebx
jl 0x50bcd0
cmp ebx, edx
mov eax, edx
cmovg eax, ebx
xor ecx, ecx
xor edx, edx
mov dword [ebp + 8], ecx
xor esi, esi
lea eax, [eax + eax*2]
mov dword [ebp + 0xc], eax
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], eax
jle 0x50bd4a
add esi, edx
add esi, dword [edi + ecx*4]
rol esi, 3
mov dword [edi + ecx*4], esi
xor edi, edi
lea ecx, [edx + esi]
add edx, esi
add edx, dword [ebp + eax*4 - 0x108]
rol edx, cl
mov ecx, dword [ebp - 4]
mov dword [ebp + eax*4 - 0x108], edx
inc ecx
mov eax, dword [ebp + 8]
inc eax
cmp eax, ebx
cmovl edi, eax
xor eax, eax
cmp ecx, dword [ebp - 8]
mov dword [ebp + 8], edi
mov edi, dword [ebp + 0x14]
cmovl eax, ecx
sub dword [ebp + 0xc], 1
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], eax
jne 0x50bd01
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50bc5a
Capabilities:
Encrypt data using rc6

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
cmp ebx, 0x10
je 0x50bba4
cmp ebx, 0xc
je 0x50bba4
cmp ebx, 8
mov eax, 0x10
cmovne ebx, eax
mov eax, dword [ebp + 8]
xor esi, esi
mov edx, dword [ebp + 0xc]
mov dword [ebp + 8], esi
lea edi, [eax + 4]
mov dword [eax], ebx
lea eax, [edx - 8]
mov dword [ebp + 0x14], edi
test eax, eax
js 0x50bc30
add eax, 8
shr eax, 3
mov dword [ebp - 4], eax
mov edi, eax
shl eax, 3
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x10]
movzx ecx, byte [eax + 1]
movzx edx, byte [eax]
shl ecx, 8
or edx, ecx
movzx ecx, byte [eax + 2]
shl ecx, 0x10
or edx, ecx
movzx ecx, byte [eax + 3]
shl ecx, 0x18
or edx, ecx
movzx ecx, byte [eax + 5]
mov dword [ebp + esi*4 - 0x108], edx
movzx edx, byte [eax + 4]
shl ecx, 8
or edx, ecx
movzx ecx, byte [eax + 6]
shl ecx, 0x10
or edx, ecx
movzx ecx, byte [eax + 7]
shl ecx, 0x18
add eax, 8
or edx, ecx
mov dword [ebp + esi*4 - 0x104], edx
add esi, 2
sub edi, 1
jne 0x50bbd2
mov edi, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
jmp 0x50bc33
mov eax, dword [ebp + 0x10]
mov ecx, edx
sub ecx, dword [ebp + 8]
je 0x50bcab
mov ecx, edx
xor edi, edi
and ecx, 7
xor edx, edx
add eax, ecx
dec ecx
cmp ecx, 7
ja case.default.0x50bc4b
jmp dword [ecx*4 + 0x50bd54]
movzx edx, byte [eax - 1]
dec eax
shl edx, 0x18
movzx ecx, byte [eax - 1]
dec eax
shl ecx, 0x10
or edx, ecx
movzx ecx, byte [eax - 1]
dec eax
shl ecx, 8
or edx, ecx
movzx ecx, byte [eax - 1]
dec eax
or edx, ecx
movzx edi, byte [eax - 1]
dec eax
shl edi, 0x18
movzx ecx, byte [eax - 1]
dec eax
shl ecx, 0x10
or edi, ecx
movzx ecx, byte [eax - 1]
dec eax
shl ecx, 8
or edi, ecx
movzx eax, byte [eax - 1]
or edi, eax
mov dword [ebp + esi*4 - 0x108], edi
mov edi, dword [ebp + 0x14]
mov dword [ebp + esi*4 - 0x104], edx
mov edx, dword [ebp + 0xc]
lea eax, [edx + 3]
mov dword [edi], 0xb7e15163
cdq
lea ebx, [ebx*2 + 2]
and edx, 3
mov ecx, 1
add edx, eax
sar edx, 2
mov dword [ebp - 8], edx
cmp ebx, ecx
jle 0x50bce1
mov eax, dword [edi + ecx*4 - 4]
sub eax, 0x61c88647
mov dword [edi + ecx*4], eax
inc ecx
cmp ecx, ebx
jl 0x50bcd0
cmp ebx, edx
mov eax, edx
cmovg eax, ebx
xor ecx, ecx
xor edx, edx
mov dword [ebp + 8], ecx
xor esi, esi
lea eax, [eax + eax*2]
mov dword [ebp + 0xc], eax
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], eax
jle 0x50bd4a
add esi, edx
add esi, dword [edi + ecx*4]
rol esi, 3
mov dword [edi + ecx*4], esi
xor edi, edi
lea ecx, [edx + esi]
add edx, esi
add edx, dword [ebp + eax*4 - 0x108]
rol edx, cl
mov ecx, dword [ebp - 4]
mov dword [ebp + eax*4 - 0x108], edx
inc ecx
mov eax, dword [ebp + 8]
inc eax
cmp eax, ebx
cmovl edi, eax
xor eax, eax
cmp ecx, dword [ebp - 8]
mov dword [ebp + 8], edi
mov edi, dword [ebp + 0x14]
cmovl eax, ecx
sub dword [ebp + 0xc], 1
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], eax
jne 0x50bd01
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret