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

Disassembly:
sub esp, 0x20
push ebp
mov ebp, ecx
mov al, byte [ebp + 4]
test al, al
jne 0x43d04a
push 0x4bb0c0
lea ecx, [esp + 0x1c]
call fcn.0044ee54
push 0x4b3ed8
lea eax, [esp + 0x1c]
push eax
call fcn.0044e8d9
mov eax, dword [esp + 0x28]
movzx ecx, byte [eax + 1]
xor edx, edx
shl ecx, 0x10
push ebx
movzx ebx, byte [eax]
shl ebx, 0x18
or ebx, ecx
inc eax
mov dh, byte [eax + 1]
inc eax
movzx ecx, byte [eax + 1]
push esi
mov esi, dword [ebp + 8]
or ebx, edx
or ebx, ecx
xor ebx, esi
inc eax
movzx esi, byte [eax + 1]
shl esi, 0x18
inc eax
movzx edx, byte [eax + 1]
shl edx, 0x10
or esi, edx
inc eax
xor ecx, ecx
mov ch, byte [eax + 1]
inc eax
movzx edx, byte [eax + 1]
push edi
mov edi, dword [ebp + 0xc]
or esi, ecx
or esi, edx
inc eax
movzx ecx, byte [eax + 1]
inc eax
movzx edx, byte [eax + 1]
xor esi, edi
shl ecx, 0x18
shl edx, 0x10
or ecx, edx
inc eax
xor edx, edx
mov dh, byte [eax + 1]
inc eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], ebx
or ecx, edx
movzx edx, byte [eax + 1]
or ecx, edx
mov edx, dword [ebp + 0x10]
inc eax
movzx esi, byte [eax + 1]
inc eax
xor ecx, edx
movzx edx, byte [eax + 1]
shl esi, 0x18
inc eax
shl edx, 0x10
or esi, edx
xor edx, edx
mov dh, byte [eax + 1]
inc eax
mov dword [esp + 0x1c], ecx
mov dl, byte [eax + 1]
or edx, esi
xor edx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x3d0]
cmp esi, 1
mov eax, edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], esi
jle 0x43d229
dec esi
lea edi, [ebp + 0x30]
mov dword [esp + 0x34], esi
mov edi, edi
mov edx, dword [esp + 0x1c]
shr edx, 0x10
movzx edx, dl
mov esi, dword [edx*4 + 0x49cb48]
movzx edx, byte [esp + 0x13]
movzx eax, ah
mov eax, dword [eax*4 + 0x49cf48]
xor eax, esi
mov esi, dword [edx*4 + 0x49c748]
mov edx, ebx
xor eax, esi
and edx, 0xff
mov esi, dword [edx*4 + 0x49d348]
mov edx, dword [edi - 4]
xor eax, esi
movzx esi, byte [esp + 0x1f]
xor eax, edx
mov edx, dword [esp + 0x14]
shr edx, 0x10
movzx edx, dl
mov edx, dword [edx*4 + 0x49cb48]
xor edx, dword [esi*4 + 0x49c748]
movzx esi, bh
mov ebx, dword [esi*4 + 0x49cf48]
mov esi, dword [esp + 0x10]
xor edx, ebx
and esi, 0xff
mov ebx, dword [esi*4 + 0x49d348]
mov esi, dword [edi]
xor edx, ebx
movzx ebx, byte [esp + 0x11]
xor edx, esi
movzx esi, byte [esp + 0x17]
mov esi, dword [esi*4 + 0x49c748]
xor esi, dword [ebx*4 + 0x49cf48]
movzx ebx, byte [esp + 0x1a]
xor esi, dword [ebx*4 + 0x49cb48]
mov ebx, ecx
and ebx, 0xff
xor esi, dword [ebx*4 + 0x49d348]
xor esi, dword [edi + 4]
movzx ebx, byte [esp + 0x12]
movzx ecx, ch
mov ecx, dword [ecx*4 + 0x49cf48]
xor ecx, dword [ebx*4 + 0x49cb48]
movzx ebx, byte [esp + 0x1b]
xor ecx, dword [ebx*4 + 0x49c748]
mov ebx, dword [esp + 0x14]
and ebx, 0xff
xor ecx, dword [ebx*4 + 0x49d348]
mov ebx, dword [edi - 8]
xor ebx, ecx
mov ecx, edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x10], eax
add edi, 0x20
mov eax, esi
dec edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], edx
jne 0x43d110
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
shr edx, 0x18
shl esi, 5
mov ebx, dword [esi + ebp + 8]
mov eax, ebx
lea esi, [esi + ebp + 8]
sar eax, 0x18
xor al, byte [edx + 0x49c548]
movzx edi, byte [esp + 0x13]
mov dl, al
mov eax, dword [esp + 0x38]
mov byte [eax], dl
mov edx, dword [esp + 0x10]
mov dword [esp + 0x34], ebx
sar ebx, 0x10
shr edx, 0x10
movzx edx, dl
xor bl, byte [edx + 0x49c548]
movzx edx, ch
mov byte [eax + 1], bl
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x34], ecx
mov ecx, ebx
sar ecx, 8
xor cl, byte [edx + 0x49c548]
mov edx, dword [esp + 0x14]
mov byte [eax + 2], cl
and edx, 0xff
mov dl, byte [edx + 0x49c548]
xor dl, bl
mov byte [eax + 3], dl
mov cl, byte [edi + 0x49c548]
mov edx, dword [esi + 4]
movzx edi, byte [esp + 0x1e]
mov ebx, edx
sar ebx, 0x18
xor bl, cl
mov byte [eax + 4], bl
mov cl, byte [edi + 0x49c548]
movzx edi, byte [esp + 0x15]
mov ebx, edx
sar ebx, 0x10
xor bl, cl
mov byte [eax + 5], bl
mov cl, byte [edi + 0x49c548]
mov edi, dword [esp + 0x18]
mov ebx, edx
sar ebx, 8
xor bl, cl
mov byte [eax + 6], bl
and edi, 0xff
mov bl, byte [edi + 0x49c548]
movzx edi, byte [esp + 0x1f]
xor bl, dl
mov byte [eax + 7], bl
mov edx, dword [esi + 8]
mov cl, byte [edi + 0x49c548]
movzx edi, byte [esp + 0x16]
mov ebx, edx
sar ebx, 0x18
xor bl, cl
mov byte [eax + 8], bl
mov cl, byte [edi + 0x49c548]
movzx edi, byte [esp + 0x19]
mov ebx, edx
sar ebx, 0x10
xor bl, cl
mov byte [eax + 9], bl
mov cl, byte [edi + 0x49c548]
mov edi, dword [esp + 0x10]
mov ebx, edx
sar ebx, 8
xor bl, cl
mov byte [eax + 0xa], bl
and edi, 0xff
mov bl, byte [edi + 0x49c548]
xor bl, dl
mov byte [eax + 0xb], bl
mov edx, dword [esi + 0xc]
movzx esi, byte [esp + 0x17]
mov cl, byte [esi + 0x49c548]
movzx esi, byte [esp + 0x1a]
mov ebx, edx
sar ebx, 0x18
xor bl, cl
mov byte [eax + 0xc], bl
mov cl, byte [esi + 0x49c548]
movzx esi, byte [esp + 0x11]
mov ebx, edx
sar ebx, 0x10
xor bl, cl
mov byte [eax + 0xd], bl
mov cl, byte [esi + 0x49c548]
mov ebx, edx
sar ebx, 8
xor bl, cl
mov ecx, dword [esp + 0x34]
pop edi
and ecx, 0xff
mov byte [eax + 0xe], bl
mov cl, byte [ecx + 0x49c548]
pop esi
xor cl, dl
pop ebx
mov byte [eax + 0xf], cl
pop ebp
add esp, 0x20
ret 8