Function at 0x2d42c1f
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
sub eax, 0x80
push edi
je 0x2d42c56
sub eax, 0x40
je 0x2d42c4b
sub eax, 0x40
je 0x2d42c40
xor eax, eax
inc eax
jmp 0x2d4305d
mov edi, dword [ebp + 8]
mov dword [edi], 0xe
jmp 0x2d42c5f
mov edi, dword [ebp + 8]
mov dword [edi], 0xc
jmp 0x2d42c5f
mov edi, dword [ebp + 8]
mov dword [edi], 0xa
mov ecx, dword [ebp + 0x10]
sar ecx, 5
push ebx
xor edx, edx
push esi
lea eax, [edi + 4]
mov dword [ebp - 4], ecx
test ecx, ecx
jle 0x2d42ca3
mov ecx, dword [ebp + 0xc]
add ecx, 2
movzx esi, byte [ecx - 2]
movzx ebx, byte [ecx - 1]
shl esi, 8
or esi, ebx
movzx ebx, byte [ecx]
shl esi, 8
or esi, ebx
movzx ebx, byte [ecx + 1]
shl esi, 8
or esi, ebx
mov dword [eax + edx*4], esi
inc edx
add ecx, 4
cmp edx, dword [ebp - 4]
jl 0x2d42c79
mov ecx, dword [ebp + 0x10]
sub ecx, 0x80
je 0x2d42e31
sub ecx, 0x40
je 0x2d42da3
sub ecx, 0x40
jne 0x2d42ea0
mov dword [ebp + 0x10], 0x2d4a968
mov esi, dword [eax + 0x1c]
mov ecx, esi
shr ecx, 0x10
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x2d48168]
shl ecx, 8
mov edx, esi
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x2d48168]
movzx edx, byte [eax + 0x1c]
shl ecx, 8
xor ecx, dword [edx*4 + 0x2d48168]
mov edx, esi
shl ecx, 8
shr edx, 0x18
xor ecx, dword [edx*4 + 0x2d48168]
mov edx, dword [ebp + 0x10]
xor ecx, dword [eax]
add dword [ebp + 0x10], 4
xor ecx, dword [edx]
lea edx, [eax + 0x20]
mov dword [edx], ecx
mov dword [ebp - 4], edx
mov edx, dword [eax + 4]
xor edx, ecx
mov ecx, dword [eax + 8]
xor ecx, edx
mov dword [eax + 0x24], edx
mov edx, dword [eax + 0xc]
xor edx, ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], edx
mov ecx, edx
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x2d48168]
mov ebx, edx
shl ecx, 8
shr ebx, 0x10
shr edx, 8
movzx ebx, bl
xor ecx, dword [ebx*4 + 0x2d48168]
movzx edx, dl
shl ecx, 8
xor ecx, dword [edx*4 + 0x2d48168]
movzx edx, byte [eax + 0x2c]
shl ecx, 8
xor ecx, dword [edx*4 + 0x2d48168]
mov edx, dword [eax + 0x14]
xor ecx, dword [eax + 0x10]
xor edx, ecx
mov dword [eax + 0x30], ecx
mov ecx, dword [eax + 0x18]
xor ecx, edx
xor esi, ecx
cmp dword [ebp + 0x10], 0x2d4a984
mov dword [eax + 0x34], edx
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], esi
mov eax, dword [ebp - 4]
jl 0x2d42ccb
jmp 0x2d42ea0
mov dword [ebp + 0x10], 0x2d4a968
mov esi, dword [eax + 0x14]
mov ecx, esi
shr ecx, 0x10
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x2d48168]
shl ecx, 8
mov edx, esi
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x2d48168]
movzx edx, byte [eax + 0x14]
shl ecx, 8
xor ecx, dword [edx*4 + 0x2d48168]
mov edx, esi
shl ecx, 8
shr edx, 0x18
xor ecx, dword [edx*4 + 0x2d48168]
mov edx, dword [ebp + 0x10]
xor ecx, dword [edx]
mov edx, dword [eax + 4]
xor ecx, dword [eax]
add dword [ebp + 0x10], 4
xor edx, ecx
lea ebx, [eax + 0x18]
mov dword [ebx], ecx
mov ecx, dword [eax + 8]
xor ecx, edx
mov dword [eax + 0x1c], edx
mov edx, dword [eax + 0xc]
xor edx, ecx
mov dword [eax + 0x20], ecx
mov ecx, dword [eax + 0x10]
xor ecx, edx
xor esi, ecx
cmp dword [ebp + 0x10], 0x2d4a988
mov dword [eax + 0x24], edx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], esi
mov eax, ebx
jl 0x2d42daa
jmp 0x2d42ea0
mov ebx, 0x2d4a968
mov esi, dword [eax + 0xc]
mov ecx, esi
shr ecx, 0x10
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x2d48168]
shl ecx, 8
mov edx, esi
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x2d48168]
movzx edx, byte [eax + 0xc]
shl ecx, 8
xor ecx, dword [edx*4 + 0x2d48168]
mov edx, esi
shl ecx, 8
shr edx, 0x18
xor ecx, dword [edx*4 + 0x2d48168]
mov edx, dword [eax + 4]
xor ecx, dword [eax]
add eax, 0x10
xor ecx, dword [ebx]
add ebx, 4
xor edx, ecx
mov dword [eax], ecx
mov ecx, dword [eax - 8]
xor ecx, edx
xor esi, ecx
cmp ebx, 0x2d4a990
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], esi
jl 0x2d42e36
xor ecx, ecx
cmp dword [edi], ecx
jl 0x2d42eeb
lea eax, [edi + 0x108]
mov edx, dword [edi]
sub edx, ecx
shl edx, 4
mov edx, dword [edx + edi + 4]
mov dword [eax - 4], edx
mov edx, dword [edi]
sub edx, ecx
shl edx, 4
mov edx, dword [edx + edi + 8]
mov dword [eax], edx
mov edx, dword [edi]
sub edx, ecx
shl edx, 4
mov edx, dword [edx + edi + 0xc]
mov dword [eax + 4], edx
mov edx, dword [edi]
sub edx, ecx
inc edx
shl edx, 4
mov edx, dword [edx + edi]
mov dword [eax + 8], edx
inc ecx
add eax, 0x10
cmp ecx, dword [edi]
jle 0x2d42eac
xor esi, esi
inc esi
cmp dword [edi], esi
lea eax, [edi + 0x114]
jle 0x2d43059
mov ecx, dword [eax]
mov ebx, ecx
mov edx, ecx
shr edx, 0x18
mov edx, dword [edx*4 + 0x2d48168]
mov edx, dword [edx*4 + 0x2d49968]
shr ecx, 8
shr ebx, 0x10
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x2d48168]
movzx ebx, bl
mov ebx, dword [ebx*4 + 0x2d48168]
xor edx, dword [ebx*4 + 0x2d49d68]
xor edx, dword [ecx*4 + 0x2d4a168]
movzx ecx, byte [eax]
mov ecx, dword [ecx*4 + 0x2d48168]
xor edx, dword [ecx*4 + 0x2d4a568]
mov ecx, dword [eax + 4]
mov dword [eax], edx
mov ebx, ecx
mov edx, ecx
shr edx, 0x18
mov edx, dword [edx*4 + 0x2d48168]
mov edx, dword [edx*4 + 0x2d49968]
shr ecx, 8
shr ebx, 0x10
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x2d48168]
movzx ebx, bl
mov ebx, dword [ebx*4 + 0x2d48168]
xor edx, dword [ebx*4 + 0x2d49d68]
add eax, 0x10
xor edx, dword [ecx*4 + 0x2d4a168]
movzx ecx, byte [eax - 0xc]
mov ecx, dword [ecx*4 + 0x2d48168]
xor edx, dword [ecx*4 + 0x2d4a568]
mov ecx, dword [eax - 8]
mov dword [eax - 0xc], edx
mov ebx, ecx
mov edx, ecx
shr edx, 0x18
mov edx, dword [edx*4 + 0x2d48168]
mov edx, dword [edx*4 + 0x2d49968]
shr ecx, 8
shr ebx, 0x10
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x2d48168]
movzx ebx, bl
mov ebx, dword [ebx*4 + 0x2d48168]
xor edx, dword [ebx*4 + 0x2d49d68]
xor edx, dword [ecx*4 + 0x2d4a168]
movzx ecx, byte [eax - 8]
mov ecx, dword [ecx*4 + 0x2d48168]
xor edx, dword [ecx*4 + 0x2d4a568]
mov ecx, dword [eax - 4]
mov dword [eax - 8], edx
mov ebx, ecx
mov edx, ecx
shr edx, 0x18
mov edx, dword [edx*4 + 0x2d48168]
mov edx, dword [edx*4 + 0x2d49968]
shr ebx, 0x10
shr ecx, 8
movzx ebx, bl
mov ebx, dword [ebx*4 + 0x2d48168]
xor edx, dword [ebx*4 + 0x2d49d68]
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x2d48168]
xor edx, dword [ecx*4 + 0x2d4a168]
movzx ecx, byte [eax - 4]
mov ecx, dword [ecx*4 + 0x2d48168]
xor edx, dword [ecx*4 + 0x2d4a568]
inc esi
mov dword [eax - 4], edx
cmp esi, dword [edi]
jl 0x2d42efc
pop esi
xor eax, eax
pop ebx
pop edi
leave
ret