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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub eax, 0x80
je 0x43f596
sub eax, 0x40
je 0x43f58b
sub eax, 0x40
je 0x43f580
or eax, 0xffffffff
pop ebp
ret
mov edx, dword [ebp + 8]
mov dword [edx], 0xe
jmp 0x43f59f
mov edx, dword [ebp + 8]
mov dword [edx], 0xc
jmp 0x43f59f
mov edx, dword [ebp + 8]
mov dword [edx], 0xa
mov ecx, dword [ebp + 0x10]
push ebx
push esi
sar ecx, 5
lea eax, [edx + 8]
xor esi, esi
push edi
mov dword [edx + 4], eax
mov dword [ebp + 0x10], ecx
test ecx, ecx
jle 0x43f5e7
mov ecx, dword [ebp + 0xc]
add ecx, 2
movzx edi, byte [ecx + 1]
movzx ebx, byte [ecx]
shl edi, 8
or edi, ebx
movzx ebx, byte [ecx - 1]
shl edi, 8
or edi, ebx
movzx ebx, byte [ecx - 2]
shl edi, 8
or edi, ebx
mov dword [eax + esi*4], edi
inc esi
add ecx, 4
cmp esi, dword [ebp + 0x10]
jl 0x43f5bd
mov edx, dword [edx]
sub edx, 0xa
je 0x43f767
dec edx
dec edx
je 0x43f6db
dec edx
dec edx
jne 0x43f7e1
mov dword [ebp + 0x10], 0x4565b8
mov esi, 0xff
mov ecx, dword [eax + 0x1c]
movzx edx, byte [eax + 0x1f]
movzx edx, byte [edx + str.cw]
and ecx, esi
movzx ecx, byte [ecx + str.cw]
shl ecx, 8
xor ecx, edx
movzx edx, byte [eax + 0x1e]
movzx edx, byte [edx + str.cw]
shl ecx, 8
xor ecx, edx
movzx edx, byte [eax + 0x1d]
movzx edx, byte [edx + str.cw]
shl ecx, 8
xor ecx, edx
mov edx, dword [ebp + 0x10]
xor ecx, dword [edx]
mov edx, dword [eax + 4]
xor ecx, dword [eax]
lea edi, [eax + 0x20]
xor edx, ecx
mov dword [edi], ecx
mov ecx, dword [eax + 8]
xor ecx, edx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x24], edx
mov edx, dword [eax + 0xc]
xor edx, ecx
mov dword [eax + 0x2c], edx
movzx ecx, byte [eax + 0x2f]
movzx ecx, byte [ecx + str.cw]
movzx ebx, byte [eax + 0x2e]
movzx ebx, byte [ebx + str.cw]
shl ecx, 8
xor ecx, ebx
movzx ebx, byte [eax + 0x2d]
movzx ebx, byte [ebx + str.cw]
add dword [ebp + 0x10], 4
shl ecx, 8
xor ecx, ebx
and edx, esi
movzx edx, byte [edx + str.cw]
shl ecx, 8
xor ecx, edx
xor ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
xor edx, ecx
mov dword [eax + 0x30], ecx
mov ecx, dword [eax + 0x18]
xor ecx, edx
mov dword [eax + 0x38], ecx
xor ecx, dword [eax + 0x1c]
cmp dword [ebp + 0x10], 0x4565d4
mov dword [eax + 0x34], edx
mov dword [eax + 0x3c], ecx
mov eax, edi
jl 0x43f60e
jmp 0x43f7e1
mov dword [ebp + 0x10], 0x4565b8
mov esi, 0xff
mov ebx, dword [eax + 0x14]
movzx edx, byte [eax + 0x17]
movzx edx, byte [edx + str.cw]
mov ecx, ebx
and ecx, esi
movzx ecx, byte [ecx + str.cw]
shl ecx, 8
xor ecx, edx
movzx edx, byte [eax + 0x16]
movzx edx, byte [edx + str.cw]
shl ecx, 8
xor ecx, edx
movzx edx, byte [eax + 0x15]
movzx edx, byte [edx + str.cw]
shl ecx, 8
xor ecx, edx
xor ecx, dword [eax]
mov edx, dword [ebp + 0x10]
xor ecx, dword [edx]
mov edx, dword [eax + 4]
add dword [ebp + 0x10], 4
xor edx, ecx
lea edi, [eax + 0x18]
mov dword [edi], 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
mov dword [eax + 0x28], ecx
xor ecx, ebx
cmp dword [ebp + 0x10], 0x4565d8
mov dword [eax + 0x24], edx
mov dword [eax + 0x2c], ecx
mov eax, edi
jl 0x43f6e7
jmp 0x43f7e1
mov dword [ebp + 0x10], 0x4565b8
mov esi, 0xff
mov ebx, dword [eax + 0xc]
movzx edx, byte [eax + 0xf]
movzx edx, byte [edx + str.cw]
mov ecx, ebx
and ecx, esi
movzx ecx, byte [ecx + str.cw]
shl ecx, 8
xor ecx, edx
movzx edx, byte [eax + 0xe]
movzx edx, byte [edx + str.cw]
shl ecx, 8
xor ecx, edx
movzx edx, byte [eax + 0xd]
movzx edx, byte [edx + str.cw]
shl ecx, 8
xor ecx, edx
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 edi, [eax + 0x10]
mov dword [edi], ecx
mov ecx, dword [eax + 8]
xor ecx, edx
mov dword [eax + 0x18], ecx
xor ecx, ebx
cmp dword [ebp + 0x10], 0x4565e0
mov dword [eax + 0x14], edx
mov dword [eax + 0x1c], ecx
mov eax, edi
jl 0x43f773
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret