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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
mov bl, byte [esi]
lea eax, [esi + 0x10]
mov edx, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
mov byte [ebp + 0x17], bl
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], eax
test bl, 0x40
jne 0x581f53
push ecx
push eax
push esi
call edx
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 - 0x14], edx
cmp edx, 0xf
jae 0x581f83
nop dword [eax]
movzx eax, byte [edx + esi]
or ecx, eax
mov byte [edx + esi], 0
inc edx
shl ecx, 8
cmp edx, 0xf
jb 0x581f70
movzx eax, byte [esi + 0xf]
or ecx, eax
mov byte [esi + 0xf], 1
cmp ecx, edi
je 0x581f9b
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, edi
shr ebx, 4
test ebx, ebx
je 0x581fd8
lea eax, [esi + 0x10]
push eax
push esi
push dword [ebp - 4]
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [ebp + 0x18]
shl ebx, 4
add esp, 0x18
add dword [ebp + 0xc], ebx
add dword [ebp + 0x10], ebx
sub edi, ebx
je 0x58203c
shr ebx, 4
push ebx
push esi
call fcn.00582740
mov ebx, dword [ebp + 0xc]
add esp, 8
jmp 0x581fe7
mov eax, dword [ebp + 0x10]
mov ecx, edi
mov ebx, dword [ebp + 0xc]
mov dword [ebp + 0x10], eax
test ecx, ecx
je 0x58203c
push dword [ebp - 4]
lea eax, [ebp - 0x24]
push eax
push esi
call dword [ebp - 8]
add esp, 0xc
test edi, edi
je 0x58202b
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0x24]
mov eax, ecx
sub ebx, eax
sub dword [ebp + 0x10], eax
mov esi, dword [ebp + 0x10]
nop dword [eax]
mov al, byte [ebx + ecx]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [esi + ecx - 1], al
xor byte [edx - 1], al
sub edi, 1
jne 0x582010
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 4]
lea ebx, [esi + 0x10]
push edi
push ebx
push ebx
call dword [ebp - 8]
add esp, 0xc
jmp 0x582042
mov edi, dword [ebp - 4]
lea ebx, [esi + 0x10]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jae 0x582060
mov eax, 0x10
sub eax, ecx
push eax
lea eax, [ecx + esi]
push 0
push eax
call fcn.005d6d60
add esp, 0xc
push edi
lea eax, [ebp - 0x24]
push eax
push esi
call dword [ebp - 8]
mov eax, dword [ebp - 0x24]
add esp, 0xc
xor dword [ebx], eax
mov eax, dword [ebp - 0x20]
xor dword [ebx + 4], eax
mov eax, dword [ebp - 0x1c]
xor dword [esi + 0x18], eax
mov eax, dword [ebp - 0x18]
xor dword [esi + 0x1c], eax
mov al, byte [ebp + 0x17]
pop edi
mov byte [esi], al
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x583bf0
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 0x583cf6
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
cmp edx, 0x40
jb 0x583cd8
lea eax, [edx - 1]
add eax, ebx
cmp edi, eax
ja 0x583c2e
lea eax, [edi - 1]
add eax, edx
cmp eax, ebx
jae 0x583cd8
lea eax, [edx - 1]
add eax, esi
cmp edi, eax
ja 0x583c44
lea eax, [edi - 1]
add eax, edx
cmp eax, esi
jae 0x583cd8
mov eax, edx
mov edx, esi
sub edx, ebx
and eax, 0xffffffc0
mov dword [ebp - 4], edx
mov edx, edi
sub edx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edx
lea eax, [ebx + 0x10]
mov ebx, dword [ebp - 4]
mov edx, esi
sub edx, edi
mov dword [ebp - 0xc], edx
lea edx, [edi + 0x20]
nop word [eax + eax]
movups xmm0, xmmword [eax - 0x10]
mov edi, dword [ebp - 8]
lea eax, [eax + 0x40]
movups xmm1, xmmword [ecx + esi]
lea edx, [edx + 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x40]
movups xmmword [edx - 0x60], xmm1
movups xmm1, xmmword [ebx + eax - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x30]
movups xmmword [edi + eax - 0x40], xmm1
mov edi, dword [ebp - 0xc]
movups xmm1, xmmword [edi + edx - 0x40]
mov edi, dword [ebp + 0x14]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x20]
movups xmmword [edx - 0x40], xmm1
movups xmm1, xmmword [ecx + esi + 0x30]
add ecx, 0x40
pxor xmm1, xmm0
movups xmmword [edx - 0x30], xmm1
cmp ecx, dword [ebp - 0x10]
jb 0x583c70
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
cmp ecx, edx
jae 0x583cf3
sub esi, ebx
lea eax, [ecx + ebx]
sub edi, ebx
sub edx, ecx
mov cl, byte [eax + esi]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
mov byte [eax + edi - 1], cl
sub edx, 1
jne 0x583ce1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x583d00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
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 0x583da0
mov ecx, dword [edi + 0x18]
cmp esi, ecx
jb 0x583d54
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.004f4e40
add esp, 0x10
test eax, eax
jne 0x583d51
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x40], eax
mov ecx, ebx
mov eax, esi
shl ecx, 4
mov esi, edi
sub eax, ebx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
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.00583b80
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 0x583d65
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [edi + 0x14], esi
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 0x586a90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 0
je 0x586aa6
mov dword [ebp + 0x1c], fcn.005852a0
pop ebp
jmp fcn.00580120
mov dword [ebp + 0x1c], fcn.00584570
pop ebp
jmp fcn.0057fe90
Function at 0x58a480
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x84], 0xffffffff
jne 0x58a495
xor eax, eax
pop edi
pop ebp
ret
push ebx
push esi
push dword [edi]
call fcn.00518370
mov ecx, dword [ebp + 0x10]
add esp, 4
mov ebx, dword [ebp + 0xc]
mov esi, eax
mov dword [ecx], esi
test ebx, ebx
je 0x58a549
mov ecx, dword [edi + 0x84]
cmp ecx, esi
jne 0x58a4e6
test esi, esi
jle 0x58a527
mov edx, ebx
lea ecx, [edi + 4]
mov ebx, esi
nop dword [eax + eax]
mov al, byte [ecx + 0x60]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub ebx, 1
jne 0x58a4d0
jmp 0x58a524
sub eax, ecx
mov byte [ecx + edi + 0x64], 0x80
cmp eax, 1
jle 0x58a504
dec eax
push eax
lea eax, [edi + 0x65]
add eax, ecx
push 0
push eax
call fcn.005d6d60
add esp, 0xc
test esi, esi
jle 0x58a527
mov edx, ebx
lea ecx, [edi + 0x24]
mov ebx, esi
nop
mov al, byte [ecx + 0x40]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub ebx, 1
jne 0x58a510
mov ebx, dword [ebp + 0xc]
push esi
push ebx
push ebx
push dword [edi]
call fcn.00518880
add esp, 0x10
test eax, eax
jne 0x58a549
push esi
push ebx
call fcn.00432da0
add esp, 8
xor eax, eax
pop esi
pop ebx
pop edi
pop ebp
ret
pop esi
pop ebx
mov eax, 1
pop edi
pop ebp
ret
Function at 0x58c180
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [ebp + 0xc]
movups xmm0, xmmword [eax]
movups xmm1, xmmword [eax + 0x10]
movd eax, xmm0
movups xmmword [ebp - 0x60], xmm1
and al, 0xf8
psrldq xmm1, 0xc
movups xmmword [ebp - 0x70], xmm0
mov byte [ebp - 0x70], al
movd eax, xmm1
shr eax, 0x18
and al, 0x3f
or al, 0x40
mov byte [ebp - 0x51], al
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.0058e710
mov ecx, dword [ebp - 0xe8]
mov edx, dword [ebp - 0xc0]
lea eax, [ecx + edx]
sub edx, ecx
mov ecx, dword [ebp - 0xe4]
mov dword [ebp - 0x50], edx
mov edx, dword [ebp - 0xbc]
mov dword [ebp - 0x28], eax
lea eax, [edx + ecx]
sub edx, ecx
mov ecx, dword [ebp - 0xe0]
mov dword [ebp - 0x4c], edx
mov edx, dword [ebp - 0xb8]
mov dword [ebp - 0x24], eax
lea eax, [edx + ecx]
sub edx, ecx
mov ecx, dword [ebp - 0xdc]
mov dword [ebp - 0x48], edx
mov edx, dword [ebp - 0xb4]
mov dword [ebp - 0x20], eax
lea eax, [edx + ecx]
sub edx, ecx
mov ecx, dword [ebp - 0xd8]
mov dword [ebp - 0x44], edx
mov edx, dword [ebp - 0xb0]
mov dword [ebp - 0x1c], eax
lea eax, [edx + ecx]
sub edx, ecx
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 0x40], edx
mov edx, dword [ebp - 0xac]
mov dword [ebp - 0x18], eax
lea eax, [edx + ecx]
sub edx, ecx
mov ecx, dword [ebp - 0xd0]
mov dword [ebp - 0x3c], edx
mov edx, dword [ebp - 0xa8]
mov dword [ebp - 0x14], eax
lea eax, [edx + ecx]
sub edx, ecx
mov ecx, dword [ebp - 0xcc]
mov dword [ebp - 0x38], edx
mov edx, dword [ebp - 0xa4]
mov dword [ebp - 0x10], eax
lea eax, [edx + ecx]
sub edx, ecx
mov ecx, dword [ebp - 0xc8]
mov dword [ebp - 0x34], edx
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0xc], eax
lea eax, [edx + ecx]
sub edx, ecx
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0x30], edx
mov edx, dword [ebp - 0x9c]
mov dword [ebp - 8], eax
lea eax, [edx + ecx]
sub edx, ecx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x2c], edx
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.0058c850
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x28]
push eax
push eax
call fcn.0058ca80
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 8]
call fcn.0058df00
lea eax, [ebp - 0x70]
push 0x20
push eax
call fcn.00432da0
add esp, 0x2c
mov esp, ebp
pop ebp
ret
Function at 0x59a600
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 0x659650
push esi
call fcn.005d67e0
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 0x59a640
mov dword [ebp - 8], 0
xor edi, edi
mov dword [ebp - 4], 0
lea eax, [ebp - 8]
push esi
push eax
call fcn.0059b030
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 0x59a692
xor edi, edi
lea eax, [ebp - 8]
push esi
push eax
call fcn.0059b030
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 0x59a6b6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x59b5d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
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 - 0x14], 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 - 9], bl
mov eax, ebx
or edx, ecx
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, edx
shr eax, 0x18
mov byte [ebp - 8], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 7], al
mov eax, edx
shr eax, 8
mov edi, dword [ebp + 0x1c]
mov byte [ebp - 6], al
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], edx
mov esi, dword [edi]
mov byte [ebp - 5], dl
test eax, eax
je 0x59b73f
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 0x59b6dc
push dword [ebp + 0x14]
lea eax, [ebp - 0x14]
push eax
call fcn.0059b030
mov ebx, dword [ebp - 0x14]
add esp, 8
mov edx, dword [ebp - 0x10]
mov eax, ebx
shr eax, 0x18
mov ecx, dword [ebp - 4]
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, edx
shr eax, 0x18
mov byte [ebp - 8], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 7], al
mov eax, edx
shr eax, 8
inc ecx
mov byte [ebp - 9], bl
mov byte [ebp - 6], al
mov byte [ebp - 5], dl
mov dword [ebp - 4], ecx
jmp 0x59b6df
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov al, byte [eax + edi]
xor al, byte [ebp + esi - 0xc]
inc esi
mov byte [edi], al
and esi, 7
mov eax, dword [ebp + 0x10]
inc edi
test eax, eax
jne 0x59b680
test ecx, ecx
je 0x59b733
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 + 4], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 5], al
mov eax, edx
shr eax, 8
mov byte [edi + 3], bl
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 0x59d860
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
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 - 0x14], 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 - 9], bl
mov eax, ebx
or edx, ecx
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, edx
shr eax, 0x18
mov byte [ebp - 8], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 7], al
mov eax, edx
shr eax, 8
mov edi, dword [ebp + 0x1c]
mov byte [ebp - 6], al
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], edx
mov esi, dword [edi]
mov byte [ebp - 5], dl
test eax, eax
je 0x59d9cf
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 0x59d96c
push dword [ebp + 0x14]
lea eax, [ebp - 0x14]
push eax
call fcn.0059d240
mov ebx, dword [ebp - 0x14]
add esp, 8
mov edx, dword [ebp - 0x10]
mov eax, ebx
shr eax, 0x18
mov ecx, dword [ebp - 4]
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, edx
shr eax, 0x18
mov byte [ebp - 8], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 7], al
mov eax, edx
shr eax, 8
inc ecx
mov byte [ebp - 9], bl
mov byte [ebp - 6], al
mov byte [ebp - 5], dl
mov dword [ebp - 4], ecx
jmp 0x59d96f
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov al, byte [eax + edi]
xor al, byte [ebp + esi - 0xc]
inc esi
mov byte [edi], al
and esi, 7
mov eax, dword [ebp + 0x10]
inc edi
test eax, eax
jne 0x59d910
test ecx, ecx
je 0x59d9c3
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 + 4], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 5], al
mov eax, edx
shr eax, 8
mov byte [edi + 3], bl
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 0x59d9e0
Capabilities:
Encrypt data using rc6

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
cmp edi, 0x10
je 0x59da04
cmp edi, 0xc
je 0x59da04
cmp edi, 8
mov eax, 0x10
cmovne edi, eax
mov eax, dword [ebp + 8]
xor esi, esi
mov edx, dword [ebp + 0xc]
mov dword [ebp + 8], esi
mov dword [ebp + 0x14], esi
lea ebx, [eax + 4]
mov dword [eax], edi
lea eax, [edx - 8]
mov dword [ebp - 4], ebx
test eax, eax
js 0x59da95
mov eax, edx
shr eax, 3
mov dword [ebp + 8], eax
mov ebx, eax
shl eax, 3
mov dword [ebp + 0x14], 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 - 0x104], 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 - 0x100], edx
add esi, 2
sub ebx, 1
jne 0x59da34
mov ebx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov dword [ebp + 8], esi
jmp 0x59da98
mov eax, dword [ebp + 0x10]
mov ecx, edx
sub ecx, dword [ebp + 0x14]
je 0x59db10
mov ecx, edx
xor esi, esi
and ecx, 7
xor edx, edx
add eax, ecx
dec ecx
cmp ecx, 7
ja case.default.0x59dab0
jmp dword [ecx*4 + 0x59dbbc]
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 esi, byte [eax - 1]
dec eax
shl esi, 0x18
movzx ecx, byte [eax - 1]
dec eax
shl ecx, 0x10
or esi, ecx
movzx ecx, byte [eax - 1]
dec eax
shl ecx, 8
or esi, ecx
movzx eax, byte [eax - 1]
or esi, eax
mov eax, dword [ebp + 8]
mov dword [ebp + eax*4 - 0x100], edx
mov edx, dword [ebp + 0xc]
mov dword [ebp + eax*4 - 0x104], esi
lea eax, [edx + 3]
mov dword [ebx], 0xb7e15163
cdq
lea edi, [edi*2 + 2]
and edx, 3
mov ecx, 1
add edx, eax
sar edx, 2
cmp edi, ecx
jle 0x59db43
mov eax, dword [ebx + ecx*4 - 4]
sub eax, 0x61c88647
mov dword [ebx + ecx*4], eax
inc ecx
cmp ecx, edi
jl 0x59db32
cmp edi, edx
mov eax, edx
cmovg eax, edi
xor ecx, ecx
xor esi, esi
mov dword [ebp + 8], ecx
mov dword [ebp + 0x14], ecx
mov dword [ebp + 0xc], ecx
lea eax, [eax + eax*2]
mov dword [ebp - 4], eax
test eax, eax
jle 0x59dbb2
mov eax, dword [ebx + ecx*4]
add eax, dword [ebp + 0x14]
add eax, dword [ebp + 0xc]
rol eax, 3
mov dword [ebx + ecx*4], eax
mov ecx, eax
add ecx, dword [ebp + 0x14]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + esi*4 - 0x104]
add eax, dword [ebp + 0x14]
add eax, dword [ebp + 0xc]
rol eax, cl
lea ecx, [esi + 1]
mov dword [ebp + esi*4 - 0x104], eax
xor esi, esi
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 8]
inc eax
cmp eax, edi
cmovl esi, eax
mov dword [ebp + 8], esi
xor esi, esi
cmp ecx, edx
cmovl esi, ecx
sub dword [ebp - 4], 1
mov ecx, dword [ebp + 8]
jne 0x59db61
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x59dab7
Capabilities:
Encrypt data using rc6

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
cmp edi, 0x10
je 0x59da04
cmp edi, 0xc
je 0x59da04
cmp edi, 8
mov eax, 0x10
cmovne edi, eax
mov eax, dword [ebp + 8]
xor esi, esi
mov edx, dword [ebp + 0xc]
mov dword [ebp + 8], esi
mov dword [ebp + 0x14], esi
lea ebx, [eax + 4]
mov dword [eax], edi
lea eax, [edx - 8]
mov dword [ebp - 4], ebx
test eax, eax
js 0x59da95
mov eax, edx
shr eax, 3
mov dword [ebp + 8], eax
mov ebx, eax
shl eax, 3
mov dword [ebp + 0x14], 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 - 0x104], 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 - 0x100], edx
add esi, 2
sub ebx, 1
jne 0x59da34
mov ebx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov dword [ebp + 8], esi
jmp 0x59da98
mov eax, dword [ebp + 0x10]
mov ecx, edx
sub ecx, dword [ebp + 0x14]
je 0x59db10
mov ecx, edx
xor esi, esi
and ecx, 7
xor edx, edx
add eax, ecx
dec ecx
cmp ecx, 7
ja case.default.0x59dab0
jmp dword [ecx*4 + 0x59dbbc]
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 esi, byte [eax - 1]
dec eax
shl esi, 0x18
movzx ecx, byte [eax - 1]
dec eax
shl ecx, 0x10
or esi, ecx
movzx ecx, byte [eax - 1]
dec eax
shl ecx, 8
or esi, ecx
movzx eax, byte [eax - 1]
or esi, eax
mov eax, dword [ebp + 8]
mov dword [ebp + eax*4 - 0x100], edx
mov edx, dword [ebp + 0xc]
mov dword [ebp + eax*4 - 0x104], esi
lea eax, [edx + 3]
mov dword [ebx], 0xb7e15163
cdq
lea edi, [edi*2 + 2]
and edx, 3
mov ecx, 1
add edx, eax
sar edx, 2
cmp edi, ecx
jle 0x59db43
mov eax, dword [ebx + ecx*4 - 4]
sub eax, 0x61c88647
mov dword [ebx + ecx*4], eax
inc ecx
cmp ecx, edi
jl 0x59db32
cmp edi, edx
mov eax, edx
cmovg eax, edi
xor ecx, ecx
xor esi, esi
mov dword [ebp + 8], ecx
mov dword [ebp + 0x14], ecx
mov dword [ebp + 0xc], ecx
lea eax, [eax + eax*2]
mov dword [ebp - 4], eax
test eax, eax
jle 0x59dbb2
mov eax, dword [ebx + ecx*4]
add eax, dword [ebp + 0x14]
add eax, dword [ebp + 0xc]
rol eax, 3
mov dword [ebx + ecx*4], eax
mov ecx, eax
add ecx, dword [ebp + 0x14]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + esi*4 - 0x104]
add eax, dword [ebp + 0x14]
add eax, dword [ebp + 0xc]
rol eax, cl
lea ecx, [esi + 1]
mov dword [ebp + esi*4 - 0x104], eax
xor esi, esi
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 8]
inc eax
cmp eax, edi
cmovl esi, eax
mov dword [ebp + 8], esi
xor esi, esi
cmp ecx, edx
cmovl esi, ecx
sub dword [ebp - 4], 1
mov ecx, dword [ebp + 8]
jne 0x59db61
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret