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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, ecx
shr ebx, 2
lea eax, [ebx + 6]
mov dword [edi + 0xc], eax
lea eax, [eax*4 + 4]
push eax
lea ecx, [edi + 0x10]
mov dword [ebp - 4], edi
call fcn.004101d6
push dword [ebp + 0x10]
mov esi, dword [edi + 0x18]
push dword [ebp + 0xc]
push ebx
push esi
push 1
call fcn.0040fc7d
add esp, 0x14
cmp dword [ebp + 0x10], 0x10
mov eax, 0xff
je 0x4104f3
cmp dword [ebp + 0x10], 0x18
je 0x4103d3
cmp dword [ebp + 0x10], 0x20
jne 0x4105fb
mov ecx, dword [esi + 0x1c]
mov ebx, ecx
shr ebx, 8
movzx edi, bl
mov edi, dword [edi*4 + str.ccccwwww]
mov edx, ecx
shr edx, 0x18
mov edx, dword [edx*4 + str.ccccwwww]
and edx, eax
and edi, 0xff0000
xor edx, edi
mov ebx, ecx
shr ebx, 0x10
movzx edi, bl
mov ebx, dword [edi*4 + str.ccccwwww]
mov edi, 0xff000000
and ebx, edi
xor edx, ebx
movzx ecx, cl
mov ebx, dword [ecx*4 + str.ccccwwww]
mov ecx, 0xff00
and ebx, ecx
xor edx, ebx
xor edx, dword [esi]
lea ebx, [esi + 0x20]
xor edx, dword [0x42bf08]
mov dword [ebp + 0x10], ebx
mov dword [ebx], edx
mov ebx, dword [esi + 4]
xor ebx, edx
mov edx, dword [esi + 8]
xor edx, ebx
mov dword [esi + 0x24], ebx
mov ebx, dword [esi + 0xc]
xor ebx, edx
mov dword [esi + 0x28], edx
mov dword [esi + 0x2c], ebx
mov dword [ebp + 0xc], 4
mov ebx, dword [esi + 0x2c]
mov edx, ebx
shr ebx, 0x18
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, edi
shr edx, 0x10
movzx edx, dl
mov edx, dword [edx*4 + str.ccccwwww]
and edx, 0xff0000
xor edx, ebx
mov ebx, dword [esi + 0x2c]
shr ebx, 8
movzx ebx, bl
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, ecx
xor edx, ebx
movzx ebx, byte [esi + 0x2c]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, eax
xor edx, ebx
xor edx, dword [esi + 0x10]
mov ebx, dword [esi + 0x14]
xor ebx, edx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x30], edx
mov edx, dword [esi + 0x18]
xor edx, ebx
mov ebx, dword [esi + 0x1c]
xor ebx, edx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x38], edx
mov esi, dword [ebp + 0x10]
mov ebx, dword [esi + 0x1c]
mov dword [ebp + 0x10], ebx
mov edx, ebx
shr ebx, 8
movzx ebx, bl
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff0000
shr edx, 0x18
mov edx, dword [edx*4 + str.ccccwwww]
and edx, eax
xor edx, ebx
mov ebx, dword [ebp + 0x10]
shr ebx, 0x10
movzx ebx, bl
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, edi
xor edx, ebx
movzx ebx, byte [ebp + 0x10]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, ecx
xor edx, ebx
mov ebx, dword [ebp + 0xc]
xor edx, dword [ebx + 0x42bf08]
add dword [ebp + 0xc], 4
xor edx, dword [esi]
lea ebx, [esi + 0x20]
mov dword [ebx], edx
mov dword [ebp + 0x10], ebx
mov ebx, dword [esi + 4]
xor ebx, edx
mov dword [esi + 0x24], ebx
mov edx, dword [esi + 8]
xor edx, ebx
mov dword [esi + 0x28], edx
mov ebx, dword [esi + 0xc]
xor ebx, edx
cmp dword [ebp + 0xc], 0x1c
mov dword [esi + 0x2c], ebx
jne 0x4102df
jmp 0x4105f8
mov ecx, dword [esi + 0x14]
mov ebx, ecx
shr ebx, 8
movzx edi, bl
mov edi, dword [edi*4 + str.ccccwwww]
mov edx, ecx
shr edx, 0x18
mov edx, dword [edx*4 + str.ccccwwww]
and edx, eax
and edi, 0xff0000
xor edx, edi
mov ebx, ecx
shr ebx, 0x10
movzx edi, bl
mov ebx, dword [edi*4 + str.ccccwwww]
mov edi, 0xff000000
and ebx, edi
xor edx, ebx
movzx ecx, cl
mov ebx, dword [ecx*4 + str.ccccwwww]
mov ecx, 0xff00
and ebx, ecx
xor edx, ebx
xor edx, dword [esi]
lea ebx, [esi + 0x18]
xor edx, dword [0x42bf08]
mov dword [ebp + 0x10], ebx
mov dword [ebx], edx
mov ebx, dword [esi + 4]
xor ebx, edx
mov edx, dword [esi + 8]
xor edx, ebx
mov dword [esi + 0x1c], ebx
mov ebx, dword [esi + 0xc]
xor ebx, edx
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], ebx
mov dword [ebp + 0xc], 4
mov edx, dword [esi + 0x10]
xor edx, dword [esi + 0x24]
mov ebx, dword [esi + 0x14]
xor ebx, edx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x28], edx
mov esi, dword [ebp + 0x10]
mov ebx, dword [esi + 0x14]
mov dword [ebp + 0x10], ebx
mov edx, ebx
shr ebx, 8
movzx ebx, bl
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff0000
shr edx, 0x18
mov edx, dword [edx*4 + str.ccccwwww]
and edx, eax
xor edx, ebx
mov ebx, dword [ebp + 0x10]
shr ebx, 0x10
movzx ebx, bl
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, edi
xor edx, ebx
movzx ebx, byte [ebp + 0x10]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, ecx
xor edx, ebx
mov ebx, dword [ebp + 0xc]
xor edx, dword [ebx + 0x42bf08]
add dword [ebp + 0xc], 4
xor edx, dword [esi]
lea ebx, [esi + 0x18]
mov dword [ebx], edx
mov dword [ebp + 0x10], ebx
mov ebx, dword [esi + 4]
xor ebx, edx
mov dword [esi + 0x1c], ebx
mov edx, dword [esi + 8]
xor edx, ebx
mov dword [esi + 0x20], edx
mov ebx, dword [esi + 0xc]
xor ebx, edx
cmp dword [ebp + 0xc], 0x20
mov dword [esi + 0x24], ebx
jne 0x410455
jmp 0x4105f8
mov ecx, dword [esi + 0xc]
mov ebx, ecx
shr ebx, 8
movzx edi, bl
mov edi, dword [edi*4 + str.ccccwwww]
mov edx, ecx
shr edx, 0x18
mov edx, dword [edx*4 + str.ccccwwww]
and edx, eax
and edi, 0xff0000
xor edx, edi
mov ebx, ecx
shr ebx, 0x10
movzx edi, bl
mov ebx, dword [edi*4 + str.ccccwwww]
mov edi, 0xff000000
and ebx, edi
xor edx, ebx
movzx ecx, cl
mov ebx, dword [ecx*4 + str.ccccwwww]
mov ecx, 0xff00
and ebx, ecx
xor edx, ebx
xor edx, dword [esi]
lea ebx, [esi + 0x10]
xor edx, dword [0x42bf08]
mov dword [ebp + 0xc], ebx
mov dword [ebx], edx
mov ebx, dword [esi + 4]
xor ebx, edx
mov edx, dword [esi + 8]
xor edx, ebx
mov dword [esi + 0x18], edx
xor edx, dword [esi + 0xc]
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], edx
mov dword [ebp + 0x10], 4
mov esi, dword [ebp + 0xc]
mov ebx, dword [esi + 0xc]
mov edx, ebx
shr ebx, 8
movzx ebx, bl
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, 0xff0000
shr edx, 0x18
mov edx, dword [edx*4 + str.ccccwwww]
and edx, eax
xor edx, ebx
mov ebx, dword [esi + 0xc]
shr ebx, 0x10
movzx ebx, bl
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, edi
xor edx, ebx
movzx ebx, byte [esi + 0xc]
mov ebx, dword [ebx*4 + str.ccccwwww]
and ebx, ecx
xor edx, ebx
mov ebx, dword [ebp + 0x10]
xor edx, dword [ebx + 0x42bf08]
add dword [ebp + 0x10], 4
xor edx, dword [esi]
lea ebx, [esi + 0x10]
mov dword [ebx], edx
mov dword [ebp + 0xc], ebx
mov ebx, dword [esi + 4]
xor ebx, edx
mov dword [esi + 0x14], ebx
mov edx, dword [esi + 8]
xor edx, ebx
mov dword [esi + 0x18], edx
mov ebx, dword [esi + 0xc]
xor ebx, edx
cmp dword [ebp + 0x10], 0x28
mov dword [esi + 0x1c], ebx
jne 0x410573
mov edi, dword [ebp - 4]
cmp dword [ebp + 8], 1
jne 0x410812
mov edx, dword [edi + 0xc]
and dword [ebp + 0xc], 0
mov ecx, dword [edi + 0x18]
shl edx, 2
mov dword [ebp + 8], edx
je 0x410678
lea esi, [ecx + edx*4 + 8]
lea edx, [ecx + 8]
mov ebx, dword [edx - 8]
mov dword [ebp + 0x10], ebx
mov ebx, dword [esi - 8]
mov dword [edx - 8], ebx
mov ebx, dword [ebp + 0x10]
mov dword [esi - 8], ebx
mov ebx, dword [edx - 4]
add dword [ebp + 0xc], 4
mov dword [ebp + 0x10], ebx
mov ebx, dword [esi - 4]
mov dword [edx - 4], ebx
mov ebx, dword [ebp + 0x10]
sub dword [ebp + 8], 4
mov dword [esi - 4], ebx
mov ebx, dword [edx]
mov dword [ebp + 0x10], ebx
mov ebx, dword [esi]
mov dword [edx], ebx
mov ebx, dword [ebp + 0x10]
mov dword [esi], ebx
mov ebx, dword [edx + 4]
mov dword [ebp + 0x10], ebx
mov ebx, dword [esi + 4]
mov dword [edx + 4], ebx
mov ebx, dword [ebp + 0x10]
mov dword [esi + 4], ebx
mov ebx, dword [ebp + 0xc]
add edx, 0x10
sub esi, 0x10
cmp ebx, dword [ebp + 8]
jb 0x41061e
xor edx, edx
inc edx
cmp dword [edi + 0xc], edx
mov dword [ebp + 0xc], edx
jbe 0x410812
add ecx, 0x10
mov esi, dword [ecx]
mov ebx, esi
shr ebx, 0x10
mov edx, esi
shr edx, 0x18
mov edx, dword [edx*4 + str.ccccwwww]
movzx ebx, bl
mov ebx, dword [ebx*4 + str.ccccwwww]
and edx, eax
mov edx, dword [edx*4 + 0x42ab08]
and ebx, eax
xor edx, dword [ebx*4 + 0x42af08]
mov ebx, esi
shr ebx, 8
movzx esi, bl
mov esi, dword [esi*4 + str.ccccwwww]
and esi, eax
xor edx, dword [esi*4 + 0x42b308]
movzx esi, byte [ecx]
mov esi, dword [esi*4 + str.ccccwwww]
and esi, eax
xor edx, dword [esi*4 + 0x42b708]
mov esi, dword [ecx + 4]
mov dword [ecx], edx
mov ebx, esi
shr ebx, 0x10
mov edx, esi
shr edx, 0x18
mov edx, dword [edx*4 + str.ccccwwww]
movzx ebx, bl
mov ebx, dword [ebx*4 + str.ccccwwww]
and edx, eax
mov edx, dword [edx*4 + 0x42ab08]
and ebx, eax
xor edx, dword [ebx*4 + 0x42af08]
mov ebx, esi
shr ebx, 8
movzx esi, bl
mov esi, dword [esi*4 + str.ccccwwww]
and esi, eax
xor edx, dword [esi*4 + 0x42b308]
movzx esi, byte [ecx + 4]
mov esi, dword [esi*4 + str.ccccwwww]
and esi, eax
xor edx, dword [esi*4 + 0x42b708]
mov esi, dword [ecx + 8]
mov dword [ecx + 4], edx
mov ebx, esi
shr ebx, 0x10
mov edx, esi
shr edx, 0x18
mov edx, dword [edx*4 + str.ccccwwww]
movzx ebx, bl
mov ebx, dword [ebx*4 + str.ccccwwww]
and edx, eax
mov edx, dword [edx*4 + 0x42ab08]
and ebx, eax
xor edx, dword [ebx*4 + 0x42af08]
mov ebx, esi
shr ebx, 8
movzx esi, bl
mov esi, dword [esi*4 + str.ccccwwww]
and esi, eax
xor edx, dword [esi*4 + 0x42b308]
movzx esi, byte [ecx + 8]
mov esi, dword [esi*4 + str.ccccwwww]
and esi, eax
xor edx, dword [esi*4 + 0x42b708]
mov esi, dword [ecx + 0xc]
mov dword [ecx + 8], edx
mov ebx, esi
shr ebx, 0x10
mov edx, esi
shr edx, 0x18
mov edx, dword [edx*4 + str.ccccwwww]
movzx ebx, bl
mov ebx, dword [ebx*4 + str.ccccwwww]
and edx, eax
mov edx, dword [edx*4 + 0x42ab08]
and ebx, eax
xor edx, dword [ebx*4 + 0x42af08]
mov ebx, esi
shr ebx, 8
movzx esi, bl
mov esi, dword [esi*4 + str.ccccwwww]
and esi, eax
xor edx, dword [esi*4 + 0x42b308]
movzx esi, byte [ecx + 0xc]
mov esi, dword [esi*4 + str.ccccwwww]
and esi, eax
xor edx, dword [esi*4 + 0x42b708]
inc dword [ebp + 0xc]
mov dword [ecx + 0xc], edx
mov edx, dword [ebp + 0xc]
cmp edx, dword [edi + 0xc]
jb 0x410687
pop edi
pop esi
pop ebx
leave
ret 0xc