Function at 0x43c340
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 0x43c36a
push 0x4b8070
lea ecx, [esp + 0x1c]
call fcn.0044df24
push 0x4b0b38
lea eax, [esp + 0x1c]
push eax
call fcn.0044d9a9
mov eax, dword [esp + 0x28]
movzx ecx, byte [eax]
movzx edx, byte [eax + 1]
shl edx, 0x10
shl ecx, 0x18
or ecx, edx
xor edx, edx
inc eax
mov dh, byte [eax + 1]
inc eax
push ebx
mov ebx, dword [ebp + 0x1e8]
push esi
push edi
or ecx, edx
movzx edx, byte [eax + 1]
or ecx, edx
inc eax
movzx esi, byte [eax + 1]
shl esi, 0x18
xor ecx, ebx
inc eax
movzx edx, byte [eax + 1]
shl edx, 0x10
or esi, edx
inc eax
xor edx, edx
mov dh, byte [eax + 1]
mov ebx, dword [ebp + 0x1ec]
inc eax
mov dword [esp + 0x18], ecx
or esi, edx
movzx edx, byte [eax + 1]
or esi, edx
xor esi, ebx
inc eax
movzx edx, byte [eax + 1]
inc eax
shl edx, 0x18
mov dword [esp + 0x34], esi
movzx esi, byte [eax + 1]
shl esi, 0x10
or edx, esi
inc eax
xor ebx, ebx
mov bh, byte [eax + 1]
inc eax
movzx esi, byte [eax + 1]
or edx, ebx
inc eax
or edx, esi
xor edx, dword [ebp + 0x1f0]
movzx esi, byte [eax + 1]
inc eax
movzx edi, byte [eax + 1]
shl esi, 0x18
inc eax
shl edi, 0x10
or esi, edi
xor ebx, ebx
mov bh, byte [eax + 1]
inc eax
mov dword [esp + 0x14], edx
mov bl, byte [eax + 1]
or ebx, esi
xor ebx, dword [ebp + 0x1f4]
mov esi, dword [ebp + 0x3d0]
cmp esi, 1
mov dword [esp + 0x10], ebx
mov dword [esp + 0x20], esi
jle 0x43c543
dec esi
lea edi, [ebp + 0x210]
mov dword [esp + 0x1c], esi
lea esp, [esp]
movzx esi, byte [esp + 0x37]
movzx eax, bh
mov eax, dword [eax*4 + 0x49ac20]
xor eax, dword [esi*4 + 0x49a420]
movzx esi, byte [esp + 0x1a]
xor eax, dword [esi*4 + 0x49a820]
and edx, 0xff
mov esi, dword [edx*4 + 0x49b020]
mov edx, dword [edi - 4]
xor eax, esi
movzx esi, byte [esp + 0x36]
xor eax, edx
movzx edx, byte [esp + 0x17]
mov edx, dword [edx*4 + 0x49a420]
xor edx, dword [esi*4 + 0x49a820]
movzx esi, ch
xor edx, dword [esi*4 + 0x49ac20]
and ebx, 0xff
mov esi, dword [ebx*4 + 0x49b020]
movzx ebx, byte [esp + 0x16]
xor edx, esi
xor edx, dword [edi]
movzx esi, byte [esp + 0x13]
mov esi, dword [esi*4 + 0x49a420]
xor esi, dword [ebx*4 + 0x49a820]
movzx ebx, byte [esp + 0x35]
xor esi, dword [ebx*4 + 0x49ac20]
and ecx, 0xff
mov ebx, dword [ecx*4 + 0x49b020]
mov ecx, dword [edi + 4]
xor esi, ebx
movzx ebx, byte [esp + 0x15]
xor esi, ecx
movzx ecx, byte [esp + 0x12]
mov ecx, dword [ecx*4 + 0x49a820]
xor ecx, dword [ebx*4 + 0x49ac20]
movzx ebx, byte [esp + 0x1b]
xor ecx, dword [ebx*4 + 0x49a420]
mov ebx, dword [esp + 0x34]
and ebx, 0xff
xor ecx, dword [ebx*4 + 0x49b020]
mov ebx, dword [edi - 8]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
xor ecx, ebx
add edi, 0x20
mov ebx, esi
dec eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], eax
jne 0x43c440
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
shl esi, 5
mov edi, dword [esi + ebp + 0x1e8]
mov ebx, edi
sar ebx, 0x18
lea esi, [esi + ebp + 0x1e8]
mov dword [esp + 0x1c], edi
movzx edi, byte [esp + 0x12]
shr eax, 0x18
xor bl, byte [eax + 0x499320]
mov eax, dword [esp + 0x38]
mov byte [eax], bl
mov ebx, dword [esp + 0x1c]
sar ebx, 0x10
xor bl, byte [edi + 0x499320]
movzx edi, dh
mov byte [eax + 1], bl
mov edx, dword [esp + 0x1c]
mov ebx, edx
sar ebx, 8
xor bl, byte [edi + 0x499320]
mov edi, dword [esp + 0x34]
mov byte [eax + 2], bl
and edi, 0xff
mov bl, byte [edi + 0x499320]
xor bl, dl
mov byte [eax + 3], bl
mov edx, dword [esi + 4]
movzx edi, byte [esp + 0x37]
mov ebx, edx
sar ebx, 0x18
xor bl, byte [edi + 0x499320]
movzx edi, byte [esp + 0x1a]
mov byte [eax + 4], bl
mov ebx, edx
sar ebx, 0x10
xor bl, byte [edi + 0x499320]
movzx edi, byte [esp + 0x11]
mov byte [eax + 5], bl
mov ebx, edx
sar ebx, 8
xor bl, byte [edi + 0x499320]
mov edi, dword [esp + 0x14]
mov byte [eax + 6], bl
and edi, 0xff
mov bl, byte [edi + 0x499320]
movzx edi, byte [esp + 0x17]
xor bl, dl
mov byte [eax + 7], bl
mov edx, dword [esi + 8]
mov ebx, edx
sar ebx, 0x18
xor bl, byte [edi + 0x499320]
movzx edi, byte [esp + 0x36]
mov byte [eax + 8], bl
mov ebx, edx
sar ebx, 0x10
xor bl, byte [edi + 0x499320]
movzx edi, ch
mov byte [eax + 9], bl
mov ebx, edx
sar ebx, 8
xor bl, byte [edi + 0x499320]
mov edi, dword [esp + 0x10]
mov byte [eax + 0xa], bl
and edi, 0xff
mov bl, byte [edi + 0x499320]
xor bl, dl
mov byte [eax + 0xb], bl
mov edx, dword [esi + 0xc]
movzx esi, byte [esp + 0x13]
mov ebx, edx
sar ebx, 0x18
xor bl, byte [esi + 0x499320]
movzx esi, byte [esp + 0x16]
mov byte [eax + 0xc], bl
mov ebx, edx
sar ebx, 0x10
xor bl, byte [esi + 0x499320]
movzx esi, byte [esp + 0x35]
mov byte [eax + 0xd], bl
mov ebx, edx
sar ebx, 8
xor bl, byte [esi + 0x499320]
pop edi
and ecx, 0xff
mov byte [eax + 0xe], bl
mov cl, byte [ecx + 0x499320]
pop esi
xor cl, dl
pop ebx
mov byte [eax + 0xf], cl
pop ebp
add esp, 0x20
ret 8