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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0x14], ebx
push edi
test esi, esi
je 0x10035eb1
mov ecx, dword [ebp + 0x10]
cmp ecx, 0x10
je 0x10035ad8
cmp ecx, 0x18
je 0x10035ad8
cmp ecx, 0x20
je 0x10035ad8
mov dword [ebp + 8], str.Incorrect_key_length
jmp 0x10035eb8
mov eax, dword [ebp + 0x14]
cmp eax, 0x10
je 0x10035af6
cmp eax, 0x18
je 0x10035af6
cmp eax, 0x20
je 0x10035af6
mov dword [ebp + 8], str.Incorrect_block_length
jmp 0x10035eb8
push eax
mov dword [ebx + 0x3cc], eax
mov edi, 0x10205bd0
lea eax, [ebx + 0x3d4]
mov dword [ebx + 0x3c8], ecx
push edi
push eax
call fcn.100e1b00
push dword [ebx + 0x3cc]
lea eax, [ebx + 0x3f4]
push edi
push eax
call fcn.100e1b00
mov eax, dword [ebx + 0x3c8]
add esp, 0x18
cmp eax, 0x10
je 0x10035b4d
push 0xe
cmp eax, 0x18
pop eax
jne 0x10035b69
cmp dword [ebx + 0x3cc], 0x20
push 0xc
pop ecx
cmovne eax, ecx
jmp 0x10035b69
mov ecx, dword [ebx + 0x3cc]
cmp ecx, 0x10
jne 0x10035b5d
push 0xa
pop eax
jmp 0x10035b69
push 0xe
pop eax
push 0xc
cmp ecx, 0x18
pop edx
cmove eax, edx
mov dword [ebx + 0x3d0], eax
mov eax, dword [ebx + 0x3cc]
mov ecx, dword [ebx + 0x3d0]
cdq
and edx, 3
lea edi, [edx + eax]
xor eax, eax
sar edi, 2
mov dword [ebp + 0x10], edi
mov dword [ebp + 8], eax
test ecx, ecx
js 0x10035bb7
lea edx, [ebx + 8]
test edi, edi
jle 0x10035ba6
mov ecx, edi
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [ebx + 0x3d0]
inc eax
add edx, 0x20
mov dword [ebp + 8], eax
cmp eax, ecx
jle 0x10035b94
xor eax, eax
mov dword [ebp + 8], eax
test ecx, ecx
js 0x10035be9
lea edx, [ebx + 0x1e8]
test edi, edi
jle 0x10035bd8
mov ecx, edi
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [ebx + 0x3d0]
inc eax
add edx, 0x20
mov dword [ebp + 8], eax
cmp eax, ecx
jle 0x10035bc6
lea eax, [ecx + 1]
imul eax, edi
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x3c8]
cdq
and edx, 3
lea ecx, [edx + eax]
sar ecx, 2
lea eax, [ebx + 0x414]
mov dword [ebp + 8], ecx
mov dword [ebp - 0x10], eax
test ecx, ecx
jle 0x10035c53
mov ebx, ecx
mov edi, eax
movzx eax, byte [esi]
lea esi, [esi + 4]
shl eax, 0x18
mov dword [edi], eax
movzx edx, byte [esi - 3]
shl edx, 0x10
or edx, eax
mov dword [edi], edx
movzx ecx, byte [esi - 2]
shl ecx, 8
or ecx, edx
mov dword [edi], ecx
movzx eax, byte [esi - 1]
or eax, ecx
mov dword [edi], eax
lea edi, [edi + 4]
sub ebx, 1
jne 0x10035c16
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
xor esi, esi
mov dword [ebp + 0x14], esi
test ecx, ecx
jle 0x10035ca8
mov ecx, eax
mov dword [ebp - 8], ecx
jmp 0x10035c66
mov ecx, dword [ebp - 8]
cmp esi, dword [ebp - 4]
jge 0x10035e2c
mov eax, esi
mov ecx, dword [ecx]
cdq
idiv edi
lea esi, [edx + eax*8]
mov dword [ebx + esi*4 + 8], ecx
mov ecx, dword [ebx + 0x3d0]
mov esi, dword [ebp + 0x14]
sub ecx, eax
inc esi
mov dword [ebp + 0x14], esi
lea ecx, [edx + ecx*8]
mov edx, dword [ebp - 8]
mov eax, dword [edx]
add edx, 4
mov dword [ebx + ecx*4 + 0x1e8], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], edx
cmp esi, ecx
jl 0x10035c63
cmp esi, dword [ebp - 4]
jge 0x10035e2c
mov dword [ebp - 8], 0x101e7228
mov edx, dword [ebx + ecx*4 + 0x410]
mov eax, edx
sar eax, 0x10
movzx eax, al
movsx ecx, byte [eax + str.cw]
mov eax, dword [ebp - 8]
movsx eax, byte [eax]
xor ecx, eax
mov eax, edx
sar eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
xor ecx, eax
movzx eax, dl
shl ecx, 8
sar edx, 0x18
movzx eax, byte [eax + str.cw]
xor ecx, eax
movzx eax, dl
shl ecx, 8
movzx eax, byte [eax + str.cw]
xor ecx, eax
lea eax, [ebx + 0x414]
xor dword [eax], ecx
inc dword [ebp - 8]
mov ecx, dword [ebp + 8]
cmp ecx, 8
je 0x10035d45
cmp ecx, 1
jle 0x10035dcc
lea edx, [ebx + 0x418]
lea edi, [ecx - 1]
mov eax, dword [edx - 4]
xor dword [edx], eax
lea edx, [edx + 4]
sub edi, 1
jne 0x10035d30
mov edi, dword [ebp + 0x10]
jmp 0x10035dc6
push 3
lea ecx, [ebx + 0x418]
pop edx
mov eax, dword [ecx - 4]
xor dword [ecx], eax
lea ecx, [ecx + 4]
sub edx, 1
jne 0x10035d4e
mov edx, dword [ebx + 0x420]
mov eax, edx
sar eax, 0x18
movzx eax, al
push 3
movsx ecx, byte [eax + str.cw]
mov eax, edx
sar eax, 0x10
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
xor ecx, eax
mov eax, edx
sar eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
xor ecx, eax
movzx eax, dl
shl ecx, 8
pop edx
movzx eax, byte [eax + str.cw]
xor ecx, eax
xor dword [ebx + 0x424], ecx
lea ecx, [ebx + 0x428]
mov eax, dword [ecx - 4]
xor dword [ecx], eax
lea ecx, [ecx + 4]
sub edx, 1
jne 0x10035db6
mov ecx, dword [ebp + 8]
lea eax, [ebx + 0x414]
and dword [ebp - 0x10], 0
test ecx, ecx
jle 0x10035e23
mov ecx, eax
mov dword [ebp - 0xc], ecx
jmp 0x10035dde
mov ecx, dword [ebp - 0xc]
cmp esi, dword [ebp - 4]
jge 0x10035e2c
mov eax, esi
mov ecx, dword [ecx]
cdq
idiv edi
lea esi, [edx + eax*8]
mov dword [ebx + esi*4 + 8], ecx
mov ecx, dword [ebx + 0x3d0]
mov esi, dword [ebp + 0x14]
sub ecx, eax
lea ecx, [edx + ecx*8]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
add edx, 4
mov dword [ebx + ecx*4 + 0x1e8], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
inc eax
inc esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov dword [ebp + 0x14], esi
cmp eax, ecx
jl 0x10035ddb
cmp esi, dword [ebp - 4]
jl 0x10035cb8
xor esi, esi
inc esi
cmp dword [ebx + 0x3d0], esi
jle 0x10035ea6
lea eax, [ebx + 0x208]
mov dword [ebp + 8], eax
test edi, edi
jle 0x10035e97
mov ebx, edi
mov dword [ebp + 0x14], eax
mov edi, eax
mov edx, dword [edi]
mov eax, edx
sar eax, 0x18
movzx ecx, al
mov eax, edx
sar eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x101e7248]
xor ecx, dword [eax*4 + 0x101e5528]
mov eax, edx
sar eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x101e7f48]
movzx eax, dl
xor ecx, dword [eax*4 + 0x101e6e28]
mov dword [edi], ecx
lea edi, [edi + 4]
sub ebx, 1
jne 0x10035e4b
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
inc esi
add eax, 0x20
mov dword [ebp + 8], eax
cmp esi, dword [ebx + 0x3d0]
jl 0x10035e40
pop edi
pop esi
mov byte [ebx + 4], 1
pop ebx
leave
ret 0x10
mov dword [ebp + 8], str.Empty_key
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.10035a13
push 0x1026b484
mov eax, ecx
push eax
call fcn.100e172b
int3